orb-billing 0.3.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +95 -55
  4. data/lib/orb/client.rb +4 -4
  5. data/lib/orb/errors.rb +1 -1
  6. data/lib/orb/internal/transport/base_client.rb +74 -5
  7. data/lib/orb/internal/transport/pooled_net_requester.rb +17 -1
  8. data/lib/orb/internal/type/array_of.rb +1 -1
  9. data/lib/orb/internal/type/base_model.rb +70 -30
  10. data/lib/orb/internal/type/converter.rb +18 -0
  11. data/lib/orb/internal/type/enum.rb +1 -0
  12. data/lib/orb/internal/type/hash_of.rb +1 -1
  13. data/lib/orb/internal/type/union.rb +1 -0
  14. data/lib/orb/internal/util.rb +56 -0
  15. data/lib/orb/internal.rb +6 -0
  16. data/lib/orb/models/coupon.rb +4 -0
  17. data/lib/orb/models/coupon_create_params.rb +6 -0
  18. data/lib/orb/models/customer_create_params.rb +9 -0
  19. data/lib/orb/models/customer_update_by_external_id_params.rb +9 -0
  20. data/lib/orb/models/customer_update_params.rb +9 -0
  21. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +14 -0
  22. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +14 -0
  23. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +14 -0
  24. data/lib/orb/models/customers/credits/ledger_list_response.rb +14 -0
  25. data/lib/orb/models/discount.rb +6 -0
  26. data/lib/orb/models/evaluate_price_group.rb +4 -0
  27. data/lib/orb/models/invoice.rb +22 -0
  28. data/lib/orb/models/invoice_fetch_upcoming_response.rb +22 -0
  29. data/lib/orb/models/invoice_level_discount.rb +4 -0
  30. data/lib/orb/models/invoice_line_item_create_response.rb +22 -0
  31. data/lib/orb/models/plan.rb +12 -0
  32. data/lib/orb/models/plan_create_params.rb +32 -0
  33. data/lib/orb/models/price.rb +35 -0
  34. data/lib/orb/models/subscription.rb +22 -0
  35. data/lib/orb/models/subscription_cancel_response.rb +22 -0
  36. data/lib/orb/models/subscription_change_apply_response.rb +22 -0
  37. data/lib/orb/models/subscription_change_cancel_response.rb +22 -0
  38. data/lib/orb/models/subscription_change_retrieve_response.rb +22 -0
  39. data/lib/orb/models/subscription_create_params.rb +88 -0
  40. data/lib/orb/models/subscription_create_response.rb +22 -0
  41. data/lib/orb/models/subscription_price_intervals_params.rb +89 -0
  42. data/lib/orb/models/subscription_price_intervals_response.rb +22 -0
  43. data/lib/orb/models/subscription_schedule_plan_change_params.rb +88 -0
  44. data/lib/orb/models/subscription_schedule_plan_change_response.rb +22 -0
  45. data/lib/orb/models/subscription_trigger_phase_response.rb +22 -0
  46. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +22 -0
  47. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +22 -0
  48. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +22 -0
  49. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +22 -0
  50. data/lib/orb/models/subscription_update_trial_params.rb +4 -0
  51. data/lib/orb/models/subscription_update_trial_response.rb +22 -0
  52. data/lib/orb/models/subscription_usage.rb +9 -0
  53. data/lib/orb/models.rb +24 -0
  54. data/lib/orb/request_options.rb +4 -0
  55. data/lib/orb/version.rb +1 -1
  56. data/lib/orb.rb +2 -0
  57. data/rbi/orb/internal/page.rbi +2 -1
  58. data/rbi/orb/internal/transport/base_client.rbi +31 -8
  59. data/rbi/orb/internal/transport/pooled_net_requester.rbi +10 -5
  60. data/rbi/orb/internal/type/base_model.rbi +31 -15
  61. data/rbi/orb/internal/type/base_page.rbi +1 -1
  62. data/rbi/orb/internal/type/converter.rbi +2 -0
  63. data/rbi/orb/internal/type/enum.rbi +1 -0
  64. data/rbi/orb/internal/type/union.rbi +1 -0
  65. data/rbi/orb/internal/util.rbi +28 -7
  66. data/rbi/orb/internal.rbi +2 -0
  67. data/rbi/orb/models/alert.rbi +13 -6
  68. data/rbi/orb/models/alert_create_for_customer_params.rbi +11 -2
  69. data/rbi/orb/models/alert_create_for_external_customer_params.rbi +14 -2
  70. data/rbi/orb/models/alert_create_for_subscription_params.rbi +11 -2
  71. data/rbi/orb/models/alert_disable_params.rbi +2 -1
  72. data/rbi/orb/models/alert_enable_params.rbi +2 -1
  73. data/rbi/orb/models/alert_list_params.rbi +2 -1
  74. data/rbi/orb/models/alert_retrieve_params.rbi +2 -1
  75. data/rbi/orb/models/alert_update_params.rbi +6 -2
  76. data/rbi/orb/models/amount_discount.rbi +2 -1
  77. data/rbi/orb/models/billable_metric.rbi +2 -1
  78. data/rbi/orb/models/coupon.rbi +1 -1
  79. data/rbi/orb/models/coupon_archive_params.rbi +2 -1
  80. data/rbi/orb/models/coupon_create_params.rbi +16 -3
  81. data/rbi/orb/models/coupon_fetch_params.rbi +2 -1
  82. data/rbi/orb/models/coupon_list_params.rbi +2 -1
  83. data/rbi/orb/models/coupons/subscription_list_params.rbi +4 -1
  84. data/rbi/orb/models/credit_note.rbi +45 -9
  85. data/rbi/orb/models/credit_note_create_params.rbi +8 -2
  86. data/rbi/orb/models/credit_note_fetch_params.rbi +4 -1
  87. data/rbi/orb/models/credit_note_list_params.rbi +4 -1
  88. data/rbi/orb/models/customer.rbi +41 -10
  89. data/rbi/orb/models/customer_create_params.rbi +61 -10
  90. data/rbi/orb/models/customer_delete_params.rbi +4 -1
  91. data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +4 -1
  92. data/rbi/orb/models/customer_fetch_params.rbi +2 -1
  93. data/rbi/orb/models/customer_list_params.rbi +2 -1
  94. data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +7 -1
  95. data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +7 -1
  96. data/rbi/orb/models/customer_update_by_external_id_params.rbi +67 -10
  97. data/rbi/orb/models/customer_update_params.rbi +61 -10
  98. data/rbi/orb/models/customers/balance_transaction_create_params.rbi +7 -1
  99. data/rbi/orb/models/customers/balance_transaction_create_response.rbi +21 -3
  100. data/rbi/orb/models/customers/balance_transaction_list_params.rbi +7 -1
  101. data/rbi/orb/models/customers/balance_transaction_list_response.rbi +21 -3
  102. data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +7 -1
  103. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +21 -3
  104. data/rbi/orb/models/customers/cost_list_params.rbi +4 -1
  105. data/rbi/orb/models/customers/cost_list_response.rbi +21 -3
  106. data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +7 -1
  107. data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +7 -1
  108. data/rbi/orb/models/customers/credit_list_params.rbi +4 -1
  109. data/rbi/orb/models/customers/credit_list_response.rbi +7 -1
  110. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +14 -2
  111. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +133 -21
  112. data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +14 -2
  113. data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +133 -21
  114. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +7 -1
  115. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +133 -21
  116. data/rbi/orb/models/customers/credits/ledger_list_params.rbi +7 -1
  117. data/rbi/orb/models/customers/credits/ledger_list_response.rbi +133 -21
  118. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +14 -2
  119. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +14 -2
  120. data/rbi/orb/models/customers/credits/top_up_create_params.rbi +14 -2
  121. data/rbi/orb/models/customers/credits/top_up_create_response.rbi +14 -2
  122. data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +7 -1
  123. data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +7 -1
  124. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +7 -1
  125. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +14 -2
  126. data/rbi/orb/models/customers/credits/top_up_list_params.rbi +7 -1
  127. data/rbi/orb/models/customers/credits/top_up_list_response.rbi +14 -2
  128. data/rbi/orb/models/dimensional_price_group.rbi +4 -1
  129. data/rbi/orb/models/dimensional_price_group_create_params.rbi +4 -1
  130. data/rbi/orb/models/dimensional_price_group_list_params.rbi +4 -1
  131. data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +7 -1
  132. data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +7 -1
  133. data/rbi/orb/models/dimensional_price_groups.rbi +4 -1
  134. data/rbi/orb/models/evaluate_price_group.rbi +2 -1
  135. data/rbi/orb/models/event_deprecate_params.rbi +4 -1
  136. data/rbi/orb/models/event_deprecate_response.rbi +4 -1
  137. data/rbi/orb/models/event_ingest_params.rbi +6 -2
  138. data/rbi/orb/models/event_ingest_response.rbi +18 -3
  139. data/rbi/orb/models/event_search_params.rbi +2 -1
  140. data/rbi/orb/models/event_search_response.rbi +11 -2
  141. data/rbi/orb/models/event_update_params.rbi +2 -1
  142. data/rbi/orb/models/event_update_response.rbi +4 -1
  143. data/rbi/orb/models/events/backfill_close_params.rbi +4 -1
  144. data/rbi/orb/models/events/backfill_close_response.rbi +7 -1
  145. data/rbi/orb/models/events/backfill_create_params.rbi +4 -1
  146. data/rbi/orb/models/events/backfill_create_response.rbi +7 -1
  147. data/rbi/orb/models/events/backfill_fetch_params.rbi +4 -1
  148. data/rbi/orb/models/events/backfill_fetch_response.rbi +7 -1
  149. data/rbi/orb/models/events/backfill_list_params.rbi +4 -1
  150. data/rbi/orb/models/events/backfill_list_response.rbi +7 -1
  151. data/rbi/orb/models/events/backfill_revert_params.rbi +4 -1
  152. data/rbi/orb/models/events/backfill_revert_response.rbi +7 -1
  153. data/rbi/orb/models/events/event_volumes.rbi +8 -2
  154. data/rbi/orb/models/events/volume_list_params.rbi +4 -1
  155. data/rbi/orb/models/invoice.rbi +156 -31
  156. data/rbi/orb/models/invoice_create_params.rbi +13 -3
  157. data/rbi/orb/models/invoice_fetch_params.rbi +2 -1
  158. data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +4 -1
  159. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +212 -31
  160. data/rbi/orb/models/invoice_issue_params.rbi +2 -1
  161. data/rbi/orb/models/invoice_line_item_create_params.rbi +4 -1
  162. data/rbi/orb/models/invoice_line_item_create_response.rbi +119 -17
  163. data/rbi/orb/models/invoice_list_params.rbi +2 -1
  164. data/rbi/orb/models/invoice_mark_paid_params.rbi +4 -1
  165. data/rbi/orb/models/invoice_pay_params.rbi +2 -1
  166. data/rbi/orb/models/invoice_update_params.rbi +2 -1
  167. data/rbi/orb/models/invoice_void_params.rbi +2 -1
  168. data/rbi/orb/models/item.rbi +5 -2
  169. data/rbi/orb/models/item_create_params.rbi +2 -1
  170. data/rbi/orb/models/item_fetch_params.rbi +2 -1
  171. data/rbi/orb/models/item_list_params.rbi +2 -1
  172. data/rbi/orb/models/item_update_params.rbi +9 -2
  173. data/rbi/orb/models/metric_create_params.rbi +2 -1
  174. data/rbi/orb/models/metric_fetch_params.rbi +2 -1
  175. data/rbi/orb/models/metric_list_params.rbi +2 -1
  176. data/rbi/orb/models/metric_update_params.rbi +2 -1
  177. data/rbi/orb/models/pagination_metadata.rbi +2 -1
  178. data/rbi/orb/models/percentage_discount.rbi +2 -1
  179. data/rbi/orb/models/plan.rbi +50 -14
  180. data/rbi/orb/models/plan_create_params.rbi +604 -89
  181. data/rbi/orb/models/plan_fetch_params.rbi +2 -1
  182. data/rbi/orb/models/plan_list_params.rbi +2 -1
  183. data/rbi/orb/models/plan_update_params.rbi +2 -1
  184. data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +4 -1
  185. data/rbi/orb/models/plans/external_plan_id_update_params.rbi +7 -1
  186. data/rbi/orb/models/price.rbi +1624 -270
  187. data/rbi/orb/models/price_create_params.rbi +100 -18
  188. data/rbi/orb/models/price_evaluate_params.rbi +2 -1
  189. data/rbi/orb/models/price_evaluate_response.rbi +4 -1
  190. data/rbi/orb/models/price_fetch_params.rbi +2 -1
  191. data/rbi/orb/models/price_list_params.rbi +2 -1
  192. data/rbi/orb/models/price_update_params.rbi +2 -1
  193. data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +7 -1
  194. data/rbi/orb/models/prices/external_price_id_update_params.rbi +7 -1
  195. data/rbi/orb/models/subscription.rbi +109 -19
  196. data/rbi/orb/models/subscription_cancel_params.rbi +4 -1
  197. data/rbi/orb/models/subscription_cancel_response.rbi +137 -20
  198. data/rbi/orb/models/subscription_change_apply_params.rbi +4 -1
  199. data/rbi/orb/models/subscription_change_apply_response.rbi +142 -21
  200. data/rbi/orb/models/subscription_change_cancel_params.rbi +4 -1
  201. data/rbi/orb/models/subscription_change_cancel_response.rbi +142 -21
  202. data/rbi/orb/models/subscription_change_retrieve_params.rbi +4 -1
  203. data/rbi/orb/models/subscription_change_retrieve_response.rbi +142 -21
  204. data/rbi/orb/models/subscription_create_params.rbi +1257 -198
  205. data/rbi/orb/models/subscription_create_response.rbi +137 -20
  206. data/rbi/orb/models/subscription_fetch_costs_params.rbi +4 -1
  207. data/rbi/orb/models/subscription_fetch_costs_response.rbi +21 -3
  208. data/rbi/orb/models/subscription_fetch_params.rbi +4 -1
  209. data/rbi/orb/models/subscription_fetch_schedule_params.rbi +4 -1
  210. data/rbi/orb/models/subscription_fetch_schedule_response.rbi +14 -2
  211. data/rbi/orb/models/subscription_fetch_usage_params.rbi +4 -1
  212. data/rbi/orb/models/subscription_list_params.rbi +4 -1
  213. data/rbi/orb/models/subscription_price_intervals_params.rbi +731 -115
  214. data/rbi/orb/models/subscription_price_intervals_response.rbi +140 -20
  215. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +1260 -198
  216. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +140 -20
  217. data/rbi/orb/models/subscription_trigger_phase_params.rbi +4 -1
  218. data/rbi/orb/models/subscription_trigger_phase_response.rbi +140 -20
  219. data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +7 -1
  220. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +140 -20
  221. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +7 -1
  222. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +140 -20
  223. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +7 -1
  224. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +140 -20
  225. data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +7 -1
  226. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +140 -20
  227. data/rbi/orb/models/subscription_update_params.rbi +4 -1
  228. data/rbi/orb/models/subscription_update_trial_params.rbi +4 -1
  229. data/rbi/orb/models/subscription_update_trial_response.rbi +140 -20
  230. data/rbi/orb/models/subscription_usage.rbi +63 -9
  231. data/rbi/orb/models/subscriptions.rbi +2 -1
  232. data/rbi/orb/models/top_level_ping_params.rbi +2 -1
  233. data/rbi/orb/models/top_level_ping_response.rbi +4 -1
  234. data/rbi/orb/models/trial_discount.rbi +2 -1
  235. data/rbi/orb/models/usage_discount.rbi +2 -1
  236. data/rbi/orb/request_options.rbi +1 -1
  237. data/sig/orb/internal/transport/base_client.rbs +16 -1
  238. data/sig/orb/internal/transport/pooled_net_requester.rbs +4 -0
  239. data/sig/orb/internal/type/base_model.rbs +11 -5
  240. data/sig/orb/internal/type/base_page.rbs +1 -1
  241. data/sig/orb/internal/type/converter.rbs +2 -0
  242. data/sig/orb/internal/type/enum.rbs +1 -0
  243. data/sig/orb/internal/type/union.rbs +1 -0
  244. data/sig/orb/internal/util.rbs +13 -0
  245. data/sig/orb/internal.rbs +2 -0
  246. metadata +2 -2
@@ -6,7 +6,10 @@ module Orb
6
6
  extend Orb::Internal::Type::RequestParameters::Converter
7
7
  include Orb::Internal::Type::RequestParameters
8
8
 
9
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Orb::SubscriptionPriceIntervalsParams, Orb::Internal::AnyHash)
12
+ end
10
13
 
11
14
  # A list of price intervals to add to the subscription.
12
15
  sig do
@@ -133,7 +136,13 @@ module Orb
133
136
  end
134
137
 
135
138
  class Add < Orb::Internal::Type::BaseModel
136
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
139
+ OrHash =
140
+ T.type_alias do
141
+ T.any(
142
+ Orb::SubscriptionPriceIntervalsParams::Add,
143
+ Orb::Internal::AnyHash
144
+ )
145
+ end
137
146
 
138
147
  # The start date of the price interval. This is the date that the price will start
139
148
  # billing on the subscription.
@@ -469,7 +478,13 @@ module Orb
469
478
  end
470
479
 
471
480
  class AllocationPrice < Orb::Internal::Type::BaseModel
472
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
481
+ OrHash =
482
+ T.type_alias do
483
+ T.any(
484
+ Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice,
485
+ Orb::Internal::AnyHash
486
+ )
487
+ end
473
488
 
474
489
  # An amount of the currency to allocate to the customer at the specified cadence.
475
490
  sig { returns(String) }
@@ -600,7 +615,13 @@ module Orb
600
615
  end
601
616
 
602
617
  class Amount < Orb::Internal::Type::BaseModel
603
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
618
+ OrHash =
619
+ T.type_alias do
620
+ T.any(
621
+ Orb::SubscriptionPriceIntervalsParams::Add::Discount::Amount,
622
+ Orb::Internal::AnyHash
623
+ )
624
+ end
604
625
 
605
626
  # Only available if discount_type is `amount`.
606
627
  sig { returns(Float) }
@@ -631,7 +652,13 @@ module Orb
631
652
  end
632
653
 
633
654
  class Percentage < Orb::Internal::Type::BaseModel
634
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
655
+ OrHash =
656
+ T.type_alias do
657
+ T.any(
658
+ Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage,
659
+ Orb::Internal::AnyHash
660
+ )
661
+ end
635
662
 
636
663
  sig { returns(Symbol) }
637
664
  attr_accessor :discount_type
@@ -664,7 +691,13 @@ module Orb
664
691
  end
665
692
 
666
693
  class Usage < Orb::Internal::Type::BaseModel
667
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
694
+ OrHash =
695
+ T.type_alias do
696
+ T.any(
697
+ Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage,
698
+ Orb::Internal::AnyHash
699
+ )
700
+ end
668
701
 
669
702
  sig { returns(Symbol) }
670
703
  attr_accessor :discount_type
@@ -727,7 +760,13 @@ module Orb
727
760
  end
728
761
 
729
762
  class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
730
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
763
+ OrHash =
764
+ T.type_alias do
765
+ T.any(
766
+ Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition,
767
+ Orb::Internal::AnyHash
768
+ )
769
+ end
731
770
 
732
771
  # The date that the fixed fee quantity transition should take effect.
733
772
  sig { returns(Time) }
@@ -794,7 +833,13 @@ module Orb
794
833
  end
795
834
 
796
835
  class Unit < Orb::Internal::Type::BaseModel
797
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
836
+ OrHash =
837
+ T.type_alias do
838
+ T.any(
839
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit,
840
+ Orb::Internal::AnyHash
841
+ )
842
+ end
798
843
 
799
844
  # The cadence to bill for this price on.
800
845
  sig do
@@ -1064,7 +1109,12 @@ module Orb
1064
1109
 
1065
1110
  class UnitConfig < Orb::Internal::Type::BaseModel
1066
1111
  OrHash =
1067
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1112
+ T.type_alias do
1113
+ T.any(
1114
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig,
1115
+ Orb::Internal::AnyHash
1116
+ )
1117
+ end
1068
1118
 
1069
1119
  # Rate per unit of usage
1070
1120
  sig { returns(String) }
@@ -1084,7 +1134,12 @@ module Orb
1084
1134
 
1085
1135
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
1086
1136
  OrHash =
1087
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1137
+ T.type_alias do
1138
+ T.any(
1139
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration,
1140
+ Orb::Internal::AnyHash
1141
+ )
1142
+ end
1088
1143
 
1089
1144
  # The duration of the billing period.
1090
1145
  sig { returns(Integer) }
@@ -1165,7 +1220,12 @@ module Orb
1165
1220
 
1166
1221
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
1167
1222
  OrHash =
1168
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1223
+ T.type_alias do
1224
+ T.any(
1225
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration,
1226
+ Orb::Internal::AnyHash
1227
+ )
1228
+ end
1169
1229
 
1170
1230
  # The duration of the billing period.
1171
1231
  sig { returns(Integer) }
@@ -1246,7 +1306,13 @@ module Orb
1246
1306
  end
1247
1307
 
1248
1308
  class Package < Orb::Internal::Type::BaseModel
1249
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1309
+ OrHash =
1310
+ T.type_alias do
1311
+ T.any(
1312
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Package,
1313
+ Orb::Internal::AnyHash
1314
+ )
1315
+ end
1250
1316
 
1251
1317
  # The cadence to bill for this price on.
1252
1318
  sig do
@@ -1516,7 +1582,12 @@ module Orb
1516
1582
 
1517
1583
  class PackageConfig < Orb::Internal::Type::BaseModel
1518
1584
  OrHash =
1519
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1585
+ T.type_alias do
1586
+ T.any(
1587
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig,
1588
+ Orb::Internal::AnyHash
1589
+ )
1590
+ end
1520
1591
 
1521
1592
  # A currency amount to rate usage by
1522
1593
  sig { returns(String) }
@@ -1552,7 +1623,12 @@ module Orb
1552
1623
 
1553
1624
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
1554
1625
  OrHash =
1555
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1626
+ T.type_alias do
1627
+ T.any(
1628
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration,
1629
+ Orb::Internal::AnyHash
1630
+ )
1631
+ end
1556
1632
 
1557
1633
  # The duration of the billing period.
1558
1634
  sig { returns(Integer) }
@@ -1633,7 +1709,12 @@ module Orb
1633
1709
 
1634
1710
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
1635
1711
  OrHash =
1636
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1712
+ T.type_alias do
1713
+ T.any(
1714
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration,
1715
+ Orb::Internal::AnyHash
1716
+ )
1717
+ end
1637
1718
 
1638
1719
  # The duration of the billing period.
1639
1720
  sig { returns(Integer) }
@@ -1714,7 +1795,13 @@ module Orb
1714
1795
  end
1715
1796
 
1716
1797
  class Matrix < Orb::Internal::Type::BaseModel
1717
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1798
+ OrHash =
1799
+ T.type_alias do
1800
+ T.any(
1801
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix,
1802
+ Orb::Internal::AnyHash
1803
+ )
1804
+ end
1718
1805
 
1719
1806
  # The cadence to bill for this price on.
1720
1807
  sig do
@@ -1984,7 +2071,12 @@ module Orb
1984
2071
 
1985
2072
  class MatrixConfig < Orb::Internal::Type::BaseModel
1986
2073
  OrHash =
1987
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2074
+ T.type_alias do
2075
+ T.any(
2076
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig,
2077
+ Orb::Internal::AnyHash
2078
+ )
2079
+ end
1988
2080
 
1989
2081
  # Default per unit rate for any usage not bucketed into a specified matrix_value
1990
2082
  sig { returns(String) }
@@ -2041,7 +2133,12 @@ module Orb
2041
2133
 
2042
2134
  class MatrixValue < Orb::Internal::Type::BaseModel
2043
2135
  OrHash =
2044
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2136
+ T.type_alias do
2137
+ T.any(
2138
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue,
2139
+ Orb::Internal::AnyHash
2140
+ )
2141
+ end
2045
2142
 
2046
2143
  # One or two matrix keys to filter usage to this Matrix value by. For example,
2047
2144
  # ["region", "tier"] could be used to filter cloud usage by a cloud region and an
@@ -2084,7 +2181,12 @@ module Orb
2084
2181
 
2085
2182
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
2086
2183
  OrHash =
2087
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2184
+ T.type_alias do
2185
+ T.any(
2186
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration,
2187
+ Orb::Internal::AnyHash
2188
+ )
2189
+ end
2088
2190
 
2089
2191
  # The duration of the billing period.
2090
2192
  sig { returns(Integer) }
@@ -2165,7 +2267,12 @@ module Orb
2165
2267
 
2166
2268
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
2167
2269
  OrHash =
2168
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2270
+ T.type_alias do
2271
+ T.any(
2272
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration,
2273
+ Orb::Internal::AnyHash
2274
+ )
2275
+ end
2169
2276
 
2170
2277
  # The duration of the billing period.
2171
2278
  sig { returns(Integer) }
@@ -2246,7 +2353,13 @@ module Orb
2246
2353
  end
2247
2354
 
2248
2355
  class MatrixWithAllocation < Orb::Internal::Type::BaseModel
2249
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2356
+ OrHash =
2357
+ T.type_alias do
2358
+ T.any(
2359
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation,
2360
+ Orb::Internal::AnyHash
2361
+ )
2362
+ end
2250
2363
 
2251
2364
  # The cadence to bill for this price on.
2252
2365
  sig do
@@ -2516,7 +2629,12 @@ module Orb
2516
2629
 
2517
2630
  class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel
2518
2631
  OrHash =
2519
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2632
+ T.type_alias do
2633
+ T.any(
2634
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig,
2635
+ Orb::Internal::AnyHash
2636
+ )
2637
+ end
2520
2638
 
2521
2639
  # Allocation to be used to calculate the price
2522
2640
  sig { returns(Float) }
@@ -2581,7 +2699,12 @@ module Orb
2581
2699
 
2582
2700
  class MatrixValue < Orb::Internal::Type::BaseModel
2583
2701
  OrHash =
2584
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2702
+ T.type_alias do
2703
+ T.any(
2704
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue,
2705
+ Orb::Internal::AnyHash
2706
+ )
2707
+ end
2585
2708
 
2586
2709
  # One or two matrix keys to filter usage to this Matrix value by. For example,
2587
2710
  # ["region", "tier"] could be used to filter cloud usage by a cloud region and an
@@ -2624,7 +2747,12 @@ module Orb
2624
2747
 
2625
2748
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
2626
2749
  OrHash =
2627
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2750
+ T.type_alias do
2751
+ T.any(
2752
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration,
2753
+ Orb::Internal::AnyHash
2754
+ )
2755
+ end
2628
2756
 
2629
2757
  # The duration of the billing period.
2630
2758
  sig { returns(Integer) }
@@ -2705,7 +2833,12 @@ module Orb
2705
2833
 
2706
2834
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
2707
2835
  OrHash =
2708
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2836
+ T.type_alias do
2837
+ T.any(
2838
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration,
2839
+ Orb::Internal::AnyHash
2840
+ )
2841
+ end
2709
2842
 
2710
2843
  # The duration of the billing period.
2711
2844
  sig { returns(Integer) }
@@ -2786,7 +2919,13 @@ module Orb
2786
2919
  end
2787
2920
 
2788
2921
  class Tiered < Orb::Internal::Type::BaseModel
2789
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2922
+ OrHash =
2923
+ T.type_alias do
2924
+ T.any(
2925
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered,
2926
+ Orb::Internal::AnyHash
2927
+ )
2928
+ end
2790
2929
 
2791
2930
  # The cadence to bill for this price on.
2792
2931
  sig do
@@ -3056,7 +3195,12 @@ module Orb
3056
3195
 
3057
3196
  class TieredConfig < Orb::Internal::Type::BaseModel
3058
3197
  OrHash =
3059
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3198
+ T.type_alias do
3199
+ T.any(
3200
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig,
3201
+ Orb::Internal::AnyHash
3202
+ )
3203
+ end
3060
3204
 
3061
3205
  # Tiers for rating based on total usage quantities into the specified tier
3062
3206
  sig do
@@ -3097,7 +3241,12 @@ module Orb
3097
3241
 
3098
3242
  class Tier < Orb::Internal::Type::BaseModel
3099
3243
  OrHash =
3100
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3244
+ T.type_alias do
3245
+ T.any(
3246
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier,
3247
+ Orb::Internal::AnyHash
3248
+ )
3249
+ end
3101
3250
 
3102
3251
  # Exclusive tier starting value
3103
3252
  sig { returns(Float) }
@@ -3144,7 +3293,12 @@ module Orb
3144
3293
 
3145
3294
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
3146
3295
  OrHash =
3147
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3296
+ T.type_alias do
3297
+ T.any(
3298
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration,
3299
+ Orb::Internal::AnyHash
3300
+ )
3301
+ end
3148
3302
 
3149
3303
  # The duration of the billing period.
3150
3304
  sig { returns(Integer) }
@@ -3225,7 +3379,12 @@ module Orb
3225
3379
 
3226
3380
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
3227
3381
  OrHash =
3228
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3382
+ T.type_alias do
3383
+ T.any(
3384
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration,
3385
+ Orb::Internal::AnyHash
3386
+ )
3387
+ end
3229
3388
 
3230
3389
  # The duration of the billing period.
3231
3390
  sig { returns(Integer) }
@@ -3306,7 +3465,13 @@ module Orb
3306
3465
  end
3307
3466
 
3308
3467
  class TieredBps < Orb::Internal::Type::BaseModel
3309
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3468
+ OrHash =
3469
+ T.type_alias do
3470
+ T.any(
3471
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps,
3472
+ Orb::Internal::AnyHash
3473
+ )
3474
+ end
3310
3475
 
3311
3476
  # The cadence to bill for this price on.
3312
3477
  sig do
@@ -3576,7 +3741,12 @@ module Orb
3576
3741
 
3577
3742
  class TieredBpsConfig < Orb::Internal::Type::BaseModel
3578
3743
  OrHash =
3579
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3744
+ T.type_alias do
3745
+ T.any(
3746
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig,
3747
+ Orb::Internal::AnyHash
3748
+ )
3749
+ end
3580
3750
 
3581
3751
  # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified
3582
3752
  # tiers
@@ -3619,7 +3789,12 @@ module Orb
3619
3789
 
3620
3790
  class Tier < Orb::Internal::Type::BaseModel
3621
3791
  OrHash =
3622
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3792
+ T.type_alias do
3793
+ T.any(
3794
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier,
3795
+ Orb::Internal::AnyHash
3796
+ )
3797
+ end
3623
3798
 
3624
3799
  # Per-event basis point rate
3625
3800
  sig { returns(Float) }
@@ -3674,7 +3849,12 @@ module Orb
3674
3849
 
3675
3850
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
3676
3851
  OrHash =
3677
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3852
+ T.type_alias do
3853
+ T.any(
3854
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration,
3855
+ Orb::Internal::AnyHash
3856
+ )
3857
+ end
3678
3858
 
3679
3859
  # The duration of the billing period.
3680
3860
  sig { returns(Integer) }
@@ -3755,7 +3935,12 @@ module Orb
3755
3935
 
3756
3936
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
3757
3937
  OrHash =
3758
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3938
+ T.type_alias do
3939
+ T.any(
3940
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration,
3941
+ Orb::Internal::AnyHash
3942
+ )
3943
+ end
3759
3944
 
3760
3945
  # The duration of the billing period.
3761
3946
  sig { returns(Integer) }
@@ -3836,7 +4021,13 @@ module Orb
3836
4021
  end
3837
4022
 
3838
4023
  class Bps < Orb::Internal::Type::BaseModel
3839
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
4024
+ OrHash =
4025
+ T.type_alias do
4026
+ T.any(
4027
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps,
4028
+ Orb::Internal::AnyHash
4029
+ )
4030
+ end
3840
4031
 
3841
4032
  sig do
3842
4033
  returns(
@@ -4051,7 +4242,12 @@ module Orb
4051
4242
 
4052
4243
  class BpsConfig < Orb::Internal::Type::BaseModel
4053
4244
  OrHash =
4054
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
4245
+ T.type_alias do
4246
+ T.any(
4247
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig,
4248
+ Orb::Internal::AnyHash
4249
+ )
4250
+ end
4055
4251
 
4056
4252
  # Basis point take rate per event
4057
4253
  sig { returns(Float) }
@@ -4140,7 +4336,12 @@ module Orb
4140
4336
 
4141
4337
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
4142
4338
  OrHash =
4143
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
4339
+ T.type_alias do
4340
+ T.any(
4341
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration,
4342
+ Orb::Internal::AnyHash
4343
+ )
4344
+ end
4144
4345
 
4145
4346
  # The duration of the billing period.
4146
4347
  sig { returns(Integer) }
@@ -4221,7 +4422,12 @@ module Orb
4221
4422
 
4222
4423
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
4223
4424
  OrHash =
4224
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
4425
+ T.type_alias do
4426
+ T.any(
4427
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration,
4428
+ Orb::Internal::AnyHash
4429
+ )
4430
+ end
4225
4431
 
4226
4432
  # The duration of the billing period.
4227
4433
  sig { returns(Integer) }
@@ -4302,7 +4508,13 @@ module Orb
4302
4508
  end
4303
4509
 
4304
4510
  class BulkBps < Orb::Internal::Type::BaseModel
4305
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
4511
+ OrHash =
4512
+ T.type_alias do
4513
+ T.any(
4514
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps,
4515
+ Orb::Internal::AnyHash
4516
+ )
4517
+ end
4306
4518
 
4307
4519
  sig do
4308
4520
  returns(
@@ -4517,7 +4729,12 @@ module Orb
4517
4729
 
4518
4730
  class BulkBpsConfig < Orb::Internal::Type::BaseModel
4519
4731
  OrHash =
4520
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
4732
+ T.type_alias do
4733
+ T.any(
4734
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig,
4735
+ Orb::Internal::AnyHash
4736
+ )
4737
+ end
4521
4738
 
4522
4739
  # Tiers for a bulk BPS pricing model where all usage is aggregated to a single
4523
4740
  # tier based on total volume
@@ -4560,7 +4777,12 @@ module Orb
4560
4777
 
4561
4778
  class Tier < Orb::Internal::Type::BaseModel
4562
4779
  OrHash =
4563
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
4780
+ T.type_alias do
4781
+ T.any(
4782
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier,
4783
+ Orb::Internal::AnyHash
4784
+ )
4785
+ end
4564
4786
 
4565
4787
  # Basis points to rate on
4566
4788
  sig { returns(Float) }
@@ -4662,7 +4884,12 @@ module Orb
4662
4884
 
4663
4885
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
4664
4886
  OrHash =
4665
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
4887
+ T.type_alias do
4888
+ T.any(
4889
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration,
4890
+ Orb::Internal::AnyHash
4891
+ )
4892
+ end
4666
4893
 
4667
4894
  # The duration of the billing period.
4668
4895
  sig { returns(Integer) }
@@ -4743,7 +4970,12 @@ module Orb
4743
4970
 
4744
4971
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
4745
4972
  OrHash =
4746
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
4973
+ T.type_alias do
4974
+ T.any(
4975
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration,
4976
+ Orb::Internal::AnyHash
4977
+ )
4978
+ end
4747
4979
 
4748
4980
  # The duration of the billing period.
4749
4981
  sig { returns(Integer) }
@@ -4824,7 +5056,13 @@ module Orb
4824
5056
  end
4825
5057
 
4826
5058
  class Bulk < Orb::Internal::Type::BaseModel
4827
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
5059
+ OrHash =
5060
+ T.type_alias do
5061
+ T.any(
5062
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk,
5063
+ Orb::Internal::AnyHash
5064
+ )
5065
+ end
4828
5066
 
4829
5067
  sig do
4830
5068
  returns(
@@ -5039,7 +5277,12 @@ module Orb
5039
5277
 
5040
5278
  class BulkConfig < Orb::Internal::Type::BaseModel
5041
5279
  OrHash =
5042
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
5280
+ T.type_alias do
5281
+ T.any(
5282
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig,
5283
+ Orb::Internal::AnyHash
5284
+ )
5285
+ end
5043
5286
 
5044
5287
  # Bulk tiers for rating based on total usage volume
5045
5288
  sig do
@@ -5080,7 +5323,12 @@ module Orb
5080
5323
 
5081
5324
  class Tier < Orb::Internal::Type::BaseModel
5082
5325
  OrHash =
5083
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
5326
+ T.type_alias do
5327
+ T.any(
5328
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier,
5329
+ Orb::Internal::AnyHash
5330
+ )
5331
+ end
5084
5332
 
5085
5333
  # Amount per unit
5086
5334
  sig { returns(String) }
@@ -5171,7 +5419,12 @@ module Orb
5171
5419
 
5172
5420
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
5173
5421
  OrHash =
5174
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
5422
+ T.type_alias do
5423
+ T.any(
5424
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration,
5425
+ Orb::Internal::AnyHash
5426
+ )
5427
+ end
5175
5428
 
5176
5429
  # The duration of the billing period.
5177
5430
  sig { returns(Integer) }
@@ -5252,7 +5505,12 @@ module Orb
5252
5505
 
5253
5506
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
5254
5507
  OrHash =
5255
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
5508
+ T.type_alias do
5509
+ T.any(
5510
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration,
5511
+ Orb::Internal::AnyHash
5512
+ )
5513
+ end
5256
5514
 
5257
5515
  # The duration of the billing period.
5258
5516
  sig { returns(Integer) }
@@ -5333,7 +5591,13 @@ module Orb
5333
5591
  end
5334
5592
 
5335
5593
  class ThresholdTotalAmount < Orb::Internal::Type::BaseModel
5336
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
5594
+ OrHash =
5595
+ T.type_alias do
5596
+ T.any(
5597
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount,
5598
+ Orb::Internal::AnyHash
5599
+ )
5600
+ end
5337
5601
 
5338
5602
  # The cadence to bill for this price on.
5339
5603
  sig do
@@ -5589,7 +5853,12 @@ module Orb
5589
5853
 
5590
5854
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
5591
5855
  OrHash =
5592
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
5856
+ T.type_alias do
5857
+ T.any(
5858
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration,
5859
+ Orb::Internal::AnyHash
5860
+ )
5861
+ end
5593
5862
 
5594
5863
  # The duration of the billing period.
5595
5864
  sig { returns(Integer) }
@@ -5670,7 +5939,12 @@ module Orb
5670
5939
 
5671
5940
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
5672
5941
  OrHash =
5673
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
5942
+ T.type_alias do
5943
+ T.any(
5944
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration,
5945
+ Orb::Internal::AnyHash
5946
+ )
5947
+ end
5674
5948
 
5675
5949
  # The duration of the billing period.
5676
5950
  sig { returns(Integer) }
@@ -5751,7 +6025,13 @@ module Orb
5751
6025
  end
5752
6026
 
5753
6027
  class TieredPackage < Orb::Internal::Type::BaseModel
5754
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
6028
+ OrHash =
6029
+ T.type_alias do
6030
+ T.any(
6031
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage,
6032
+ Orb::Internal::AnyHash
6033
+ )
6034
+ end
5755
6035
 
5756
6036
  # The cadence to bill for this price on.
5757
6037
  sig do
@@ -6007,7 +6287,12 @@ module Orb
6007
6287
 
6008
6288
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
6009
6289
  OrHash =
6010
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
6290
+ T.type_alias do
6291
+ T.any(
6292
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration,
6293
+ Orb::Internal::AnyHash
6294
+ )
6295
+ end
6011
6296
 
6012
6297
  # The duration of the billing period.
6013
6298
  sig { returns(Integer) }
@@ -6088,7 +6373,12 @@ module Orb
6088
6373
 
6089
6374
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
6090
6375
  OrHash =
6091
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
6376
+ T.type_alias do
6377
+ T.any(
6378
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration,
6379
+ Orb::Internal::AnyHash
6380
+ )
6381
+ end
6092
6382
 
6093
6383
  # The duration of the billing period.
6094
6384
  sig { returns(Integer) }
@@ -6169,7 +6459,13 @@ module Orb
6169
6459
  end
6170
6460
 
6171
6461
  class GroupedTiered < Orb::Internal::Type::BaseModel
6172
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
6462
+ OrHash =
6463
+ T.type_alias do
6464
+ T.any(
6465
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered,
6466
+ Orb::Internal::AnyHash
6467
+ )
6468
+ end
6173
6469
 
6174
6470
  # The cadence to bill for this price on.
6175
6471
  sig do
@@ -6425,7 +6721,12 @@ module Orb
6425
6721
 
6426
6722
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
6427
6723
  OrHash =
6428
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
6724
+ T.type_alias do
6725
+ T.any(
6726
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration,
6727
+ Orb::Internal::AnyHash
6728
+ )
6729
+ end
6429
6730
 
6430
6731
  # The duration of the billing period.
6431
6732
  sig { returns(Integer) }
@@ -6506,7 +6807,12 @@ module Orb
6506
6807
 
6507
6808
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
6508
6809
  OrHash =
6509
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
6810
+ T.type_alias do
6811
+ T.any(
6812
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration,
6813
+ Orb::Internal::AnyHash
6814
+ )
6815
+ end
6510
6816
 
6511
6817
  # The duration of the billing period.
6512
6818
  sig { returns(Integer) }
@@ -6587,7 +6893,13 @@ module Orb
6587
6893
  end
6588
6894
 
6589
6895
  class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel
6590
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
6896
+ OrHash =
6897
+ T.type_alias do
6898
+ T.any(
6899
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage,
6900
+ Orb::Internal::AnyHash
6901
+ )
6902
+ end
6591
6903
 
6592
6904
  # The cadence to bill for this price on.
6593
6905
  sig do
@@ -6843,7 +7155,12 @@ module Orb
6843
7155
 
6844
7156
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
6845
7157
  OrHash =
6846
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
7158
+ T.type_alias do
7159
+ T.any(
7160
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration,
7161
+ Orb::Internal::AnyHash
7162
+ )
7163
+ end
6847
7164
 
6848
7165
  # The duration of the billing period.
6849
7166
  sig { returns(Integer) }
@@ -6924,7 +7241,12 @@ module Orb
6924
7241
 
6925
7242
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
6926
7243
  OrHash =
6927
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
7244
+ T.type_alias do
7245
+ T.any(
7246
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration,
7247
+ Orb::Internal::AnyHash
7248
+ )
7249
+ end
6928
7250
 
6929
7251
  # The duration of the billing period.
6930
7252
  sig { returns(Integer) }
@@ -7005,7 +7327,13 @@ module Orb
7005
7327
  end
7006
7328
 
7007
7329
  class TieredWithMinimum < Orb::Internal::Type::BaseModel
7008
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
7330
+ OrHash =
7331
+ T.type_alias do
7332
+ T.any(
7333
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum,
7334
+ Orb::Internal::AnyHash
7335
+ )
7336
+ end
7009
7337
 
7010
7338
  # The cadence to bill for this price on.
7011
7339
  sig do
@@ -7261,7 +7589,12 @@ module Orb
7261
7589
 
7262
7590
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
7263
7591
  OrHash =
7264
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
7592
+ T.type_alias do
7593
+ T.any(
7594
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration,
7595
+ Orb::Internal::AnyHash
7596
+ )
7597
+ end
7265
7598
 
7266
7599
  # The duration of the billing period.
7267
7600
  sig { returns(Integer) }
@@ -7342,7 +7675,12 @@ module Orb
7342
7675
 
7343
7676
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
7344
7677
  OrHash =
7345
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
7678
+ T.type_alias do
7679
+ T.any(
7680
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration,
7681
+ Orb::Internal::AnyHash
7682
+ )
7683
+ end
7346
7684
 
7347
7685
  # The duration of the billing period.
7348
7686
  sig { returns(Integer) }
@@ -7423,7 +7761,13 @@ module Orb
7423
7761
  end
7424
7762
 
7425
7763
  class PackageWithAllocation < Orb::Internal::Type::BaseModel
7426
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
7764
+ OrHash =
7765
+ T.type_alias do
7766
+ T.any(
7767
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation,
7768
+ Orb::Internal::AnyHash
7769
+ )
7770
+ end
7427
7771
 
7428
7772
  # The cadence to bill for this price on.
7429
7773
  sig do
@@ -7679,7 +8023,12 @@ module Orb
7679
8023
 
7680
8024
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
7681
8025
  OrHash =
7682
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8026
+ T.type_alias do
8027
+ T.any(
8028
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration,
8029
+ Orb::Internal::AnyHash
8030
+ )
8031
+ end
7683
8032
 
7684
8033
  # The duration of the billing period.
7685
8034
  sig { returns(Integer) }
@@ -7760,7 +8109,12 @@ module Orb
7760
8109
 
7761
8110
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
7762
8111
  OrHash =
7763
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8112
+ T.type_alias do
8113
+ T.any(
8114
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration,
8115
+ Orb::Internal::AnyHash
8116
+ )
8117
+ end
7764
8118
 
7765
8119
  # The duration of the billing period.
7766
8120
  sig { returns(Integer) }
@@ -7841,7 +8195,13 @@ module Orb
7841
8195
  end
7842
8196
 
7843
8197
  class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel
7844
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8198
+ OrHash =
8199
+ T.type_alias do
8200
+ T.any(
8201
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum,
8202
+ Orb::Internal::AnyHash
8203
+ )
8204
+ end
7845
8205
 
7846
8206
  # The cadence to bill for this price on.
7847
8207
  sig do
@@ -8098,7 +8458,12 @@ module Orb
8098
8458
 
8099
8459
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
8100
8460
  OrHash =
8101
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8461
+ T.type_alias do
8462
+ T.any(
8463
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration,
8464
+ Orb::Internal::AnyHash
8465
+ )
8466
+ end
8102
8467
 
8103
8468
  # The duration of the billing period.
8104
8469
  sig { returns(Integer) }
@@ -8179,7 +8544,12 @@ module Orb
8179
8544
 
8180
8545
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
8181
8546
  OrHash =
8182
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8547
+ T.type_alias do
8548
+ T.any(
8549
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration,
8550
+ Orb::Internal::AnyHash
8551
+ )
8552
+ end
8183
8553
 
8184
8554
  # The duration of the billing period.
8185
8555
  sig { returns(Integer) }
@@ -8260,7 +8630,13 @@ module Orb
8260
8630
  end
8261
8631
 
8262
8632
  class UnitWithPercent < Orb::Internal::Type::BaseModel
8263
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8633
+ OrHash =
8634
+ T.type_alias do
8635
+ T.any(
8636
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent,
8637
+ Orb::Internal::AnyHash
8638
+ )
8639
+ end
8264
8640
 
8265
8641
  # The cadence to bill for this price on.
8266
8642
  sig do
@@ -8516,7 +8892,12 @@ module Orb
8516
8892
 
8517
8893
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
8518
8894
  OrHash =
8519
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8895
+ T.type_alias do
8896
+ T.any(
8897
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration,
8898
+ Orb::Internal::AnyHash
8899
+ )
8900
+ end
8520
8901
 
8521
8902
  # The duration of the billing period.
8522
8903
  sig { returns(Integer) }
@@ -8597,7 +8978,12 @@ module Orb
8597
8978
 
8598
8979
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
8599
8980
  OrHash =
8600
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8981
+ T.type_alias do
8982
+ T.any(
8983
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration,
8984
+ Orb::Internal::AnyHash
8985
+ )
8986
+ end
8601
8987
 
8602
8988
  # The duration of the billing period.
8603
8989
  sig { returns(Integer) }
@@ -8678,7 +9064,13 @@ module Orb
8678
9064
  end
8679
9065
 
8680
9066
  class TieredWithProration < Orb::Internal::Type::BaseModel
8681
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9067
+ OrHash =
9068
+ T.type_alias do
9069
+ T.any(
9070
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration,
9071
+ Orb::Internal::AnyHash
9072
+ )
9073
+ end
8682
9074
 
8683
9075
  # The cadence to bill for this price on.
8684
9076
  sig do
@@ -8934,7 +9326,12 @@ module Orb
8934
9326
 
8935
9327
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
8936
9328
  OrHash =
8937
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9329
+ T.type_alias do
9330
+ T.any(
9331
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration,
9332
+ Orb::Internal::AnyHash
9333
+ )
9334
+ end
8938
9335
 
8939
9336
  # The duration of the billing period.
8940
9337
  sig { returns(Integer) }
@@ -9015,7 +9412,12 @@ module Orb
9015
9412
 
9016
9413
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
9017
9414
  OrHash =
9018
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9415
+ T.type_alias do
9416
+ T.any(
9417
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration,
9418
+ Orb::Internal::AnyHash
9419
+ )
9420
+ end
9019
9421
 
9020
9422
  # The duration of the billing period.
9021
9423
  sig { returns(Integer) }
@@ -9096,7 +9498,13 @@ module Orb
9096
9498
  end
9097
9499
 
9098
9500
  class UnitWithProration < Orb::Internal::Type::BaseModel
9099
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9501
+ OrHash =
9502
+ T.type_alias do
9503
+ T.any(
9504
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration,
9505
+ Orb::Internal::AnyHash
9506
+ )
9507
+ end
9100
9508
 
9101
9509
  # The cadence to bill for this price on.
9102
9510
  sig do
@@ -9352,7 +9760,12 @@ module Orb
9352
9760
 
9353
9761
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
9354
9762
  OrHash =
9355
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9763
+ T.type_alias do
9764
+ T.any(
9765
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration,
9766
+ Orb::Internal::AnyHash
9767
+ )
9768
+ end
9356
9769
 
9357
9770
  # The duration of the billing period.
9358
9771
  sig { returns(Integer) }
@@ -9433,7 +9846,12 @@ module Orb
9433
9846
 
9434
9847
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
9435
9848
  OrHash =
9436
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9849
+ T.type_alias do
9850
+ T.any(
9851
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration,
9852
+ Orb::Internal::AnyHash
9853
+ )
9854
+ end
9437
9855
 
9438
9856
  # The duration of the billing period.
9439
9857
  sig { returns(Integer) }
@@ -9514,7 +9932,13 @@ module Orb
9514
9932
  end
9515
9933
 
9516
9934
  class GroupedAllocation < Orb::Internal::Type::BaseModel
9517
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9935
+ OrHash =
9936
+ T.type_alias do
9937
+ T.any(
9938
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation,
9939
+ Orb::Internal::AnyHash
9940
+ )
9941
+ end
9518
9942
 
9519
9943
  # The cadence to bill for this price on.
9520
9944
  sig do
@@ -9770,7 +10194,12 @@ module Orb
9770
10194
 
9771
10195
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
9772
10196
  OrHash =
9773
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
10197
+ T.type_alias do
10198
+ T.any(
10199
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration,
10200
+ Orb::Internal::AnyHash
10201
+ )
10202
+ end
9774
10203
 
9775
10204
  # The duration of the billing period.
9776
10205
  sig { returns(Integer) }
@@ -9851,7 +10280,12 @@ module Orb
9851
10280
 
9852
10281
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
9853
10282
  OrHash =
9854
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
10283
+ T.type_alias do
10284
+ T.any(
10285
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration,
10286
+ Orb::Internal::AnyHash
10287
+ )
10288
+ end
9855
10289
 
9856
10290
  # The duration of the billing period.
9857
10291
  sig { returns(Integer) }
@@ -9932,7 +10366,13 @@ module Orb
9932
10366
  end
9933
10367
 
9934
10368
  class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel
9935
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
10369
+ OrHash =
10370
+ T.type_alias do
10371
+ T.any(
10372
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum,
10373
+ Orb::Internal::AnyHash
10374
+ )
10375
+ end
9936
10376
 
9937
10377
  # The cadence to bill for this price on.
9938
10378
  sig do
@@ -10190,7 +10630,12 @@ module Orb
10190
10630
 
10191
10631
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
10192
10632
  OrHash =
10193
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
10633
+ T.type_alias do
10634
+ T.any(
10635
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration,
10636
+ Orb::Internal::AnyHash
10637
+ )
10638
+ end
10194
10639
 
10195
10640
  # The duration of the billing period.
10196
10641
  sig { returns(Integer) }
@@ -10271,7 +10716,12 @@ module Orb
10271
10716
 
10272
10717
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
10273
10718
  OrHash =
10274
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
10719
+ T.type_alias do
10720
+ T.any(
10721
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration,
10722
+ Orb::Internal::AnyHash
10723
+ )
10724
+ end
10275
10725
 
10276
10726
  # The duration of the billing period.
10277
10727
  sig { returns(Integer) }
@@ -10352,7 +10802,13 @@ module Orb
10352
10802
  end
10353
10803
 
10354
10804
  class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel
10355
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
10805
+ OrHash =
10806
+ T.type_alias do
10807
+ T.any(
10808
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum,
10809
+ Orb::Internal::AnyHash
10810
+ )
10811
+ end
10356
10812
 
10357
10813
  # The cadence to bill for this price on.
10358
10814
  sig do
@@ -10610,7 +11066,12 @@ module Orb
10610
11066
 
10611
11067
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
10612
11068
  OrHash =
10613
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11069
+ T.type_alias do
11070
+ T.any(
11071
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration,
11072
+ Orb::Internal::AnyHash
11073
+ )
11074
+ end
10614
11075
 
10615
11076
  # The duration of the billing period.
10616
11077
  sig { returns(Integer) }
@@ -10691,7 +11152,12 @@ module Orb
10691
11152
 
10692
11153
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
10693
11154
  OrHash =
10694
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11155
+ T.type_alias do
11156
+ T.any(
11157
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration,
11158
+ Orb::Internal::AnyHash
11159
+ )
11160
+ end
10695
11161
 
10696
11162
  # The duration of the billing period.
10697
11163
  sig { returns(Integer) }
@@ -10772,7 +11238,13 @@ module Orb
10772
11238
  end
10773
11239
 
10774
11240
  class MatrixWithDisplayName < Orb::Internal::Type::BaseModel
10775
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11241
+ OrHash =
11242
+ T.type_alias do
11243
+ T.any(
11244
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName,
11245
+ Orb::Internal::AnyHash
11246
+ )
11247
+ end
10776
11248
 
10777
11249
  # The cadence to bill for this price on.
10778
11250
  sig do
@@ -11028,7 +11500,12 @@ module Orb
11028
11500
 
11029
11501
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
11030
11502
  OrHash =
11031
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11503
+ T.type_alias do
11504
+ T.any(
11505
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration,
11506
+ Orb::Internal::AnyHash
11507
+ )
11508
+ end
11032
11509
 
11033
11510
  # The duration of the billing period.
11034
11511
  sig { returns(Integer) }
@@ -11109,7 +11586,12 @@ module Orb
11109
11586
 
11110
11587
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
11111
11588
  OrHash =
11112
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11589
+ T.type_alias do
11590
+ T.any(
11591
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration,
11592
+ Orb::Internal::AnyHash
11593
+ )
11594
+ end
11113
11595
 
11114
11596
  # The duration of the billing period.
11115
11597
  sig { returns(Integer) }
@@ -11190,7 +11672,13 @@ module Orb
11190
11672
  end
11191
11673
 
11192
11674
  class BulkWithProration < Orb::Internal::Type::BaseModel
11193
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11675
+ OrHash =
11676
+ T.type_alias do
11677
+ T.any(
11678
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration,
11679
+ Orb::Internal::AnyHash
11680
+ )
11681
+ end
11194
11682
 
11195
11683
  sig { returns(T::Hash[Symbol, T.anything]) }
11196
11684
  attr_accessor :bulk_with_proration_config
@@ -11446,7 +11934,12 @@ module Orb
11446
11934
 
11447
11935
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
11448
11936
  OrHash =
11449
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11937
+ T.type_alias do
11938
+ T.any(
11939
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration,
11940
+ Orb::Internal::AnyHash
11941
+ )
11942
+ end
11450
11943
 
11451
11944
  # The duration of the billing period.
11452
11945
  sig { returns(Integer) }
@@ -11527,7 +12020,12 @@ module Orb
11527
12020
 
11528
12021
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
11529
12022
  OrHash =
11530
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
12023
+ T.type_alias do
12024
+ T.any(
12025
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration,
12026
+ Orb::Internal::AnyHash
12027
+ )
12028
+ end
11531
12029
 
11532
12030
  # The duration of the billing period.
11533
12031
  sig { returns(Integer) }
@@ -11608,7 +12106,13 @@ module Orb
11608
12106
  end
11609
12107
 
11610
12108
  class GroupedTieredPackage < Orb::Internal::Type::BaseModel
11611
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
12109
+ OrHash =
12110
+ T.type_alias do
12111
+ T.any(
12112
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage,
12113
+ Orb::Internal::AnyHash
12114
+ )
12115
+ end
11612
12116
 
11613
12117
  # The cadence to bill for this price on.
11614
12118
  sig do
@@ -11864,7 +12368,12 @@ module Orb
11864
12368
 
11865
12369
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
11866
12370
  OrHash =
11867
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
12371
+ T.type_alias do
12372
+ T.any(
12373
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration,
12374
+ Orb::Internal::AnyHash
12375
+ )
12376
+ end
11868
12377
 
11869
12378
  # The duration of the billing period.
11870
12379
  sig { returns(Integer) }
@@ -11945,7 +12454,12 @@ module Orb
11945
12454
 
11946
12455
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
11947
12456
  OrHash =
11948
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
12457
+ T.type_alias do
12458
+ T.any(
12459
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration,
12460
+ Orb::Internal::AnyHash
12461
+ )
12462
+ end
11949
12463
 
11950
12464
  # The duration of the billing period.
11951
12465
  sig { returns(Integer) }
@@ -12026,7 +12540,13 @@ module Orb
12026
12540
  end
12027
12541
 
12028
12542
  class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel
12029
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
12543
+ OrHash =
12544
+ T.type_alias do
12545
+ T.any(
12546
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing,
12547
+ Orb::Internal::AnyHash
12548
+ )
12549
+ end
12030
12550
 
12031
12551
  # The cadence to bill for this price on.
12032
12552
  sig do
@@ -12284,7 +12804,12 @@ module Orb
12284
12804
 
12285
12805
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
12286
12806
  OrHash =
12287
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
12807
+ T.type_alias do
12808
+ T.any(
12809
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration,
12810
+ Orb::Internal::AnyHash
12811
+ )
12812
+ end
12288
12813
 
12289
12814
  # The duration of the billing period.
12290
12815
  sig { returns(Integer) }
@@ -12365,7 +12890,12 @@ module Orb
12365
12890
 
12366
12891
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
12367
12892
  OrHash =
12368
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
12893
+ T.type_alias do
12894
+ T.any(
12895
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration,
12896
+ Orb::Internal::AnyHash
12897
+ )
12898
+ end
12369
12899
 
12370
12900
  # The duration of the billing period.
12371
12901
  sig { returns(Integer) }
@@ -12446,7 +12976,13 @@ module Orb
12446
12976
  end
12447
12977
 
12448
12978
  class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel
12449
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
12979
+ OrHash =
12980
+ T.type_alias do
12981
+ T.any(
12982
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing,
12983
+ Orb::Internal::AnyHash
12984
+ )
12985
+ end
12450
12986
 
12451
12987
  # The cadence to bill for this price on.
12452
12988
  sig do
@@ -12704,7 +13240,12 @@ module Orb
12704
13240
 
12705
13241
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
12706
13242
  OrHash =
12707
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
13243
+ T.type_alias do
13244
+ T.any(
13245
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration,
13246
+ Orb::Internal::AnyHash
13247
+ )
13248
+ end
12708
13249
 
12709
13250
  # The duration of the billing period.
12710
13251
  sig { returns(Integer) }
@@ -12785,7 +13326,12 @@ module Orb
12785
13326
 
12786
13327
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
12787
13328
  OrHash =
12788
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
13329
+ T.type_alias do
13330
+ T.any(
13331
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration,
13332
+ Orb::Internal::AnyHash
13333
+ )
13334
+ end
12789
13335
 
12790
13336
  # The duration of the billing period.
12791
13337
  sig { returns(Integer) }
@@ -12866,7 +13412,13 @@ module Orb
12866
13412
  end
12867
13413
 
12868
13414
  class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel
12869
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
13415
+ OrHash =
13416
+ T.type_alias do
13417
+ T.any(
13418
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk,
13419
+ Orb::Internal::AnyHash
13420
+ )
13421
+ end
12870
13422
 
12871
13423
  # The cadence to bill for this price on.
12872
13424
  sig do
@@ -13122,7 +13674,12 @@ module Orb
13122
13674
 
13123
13675
  class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
13124
13676
  OrHash =
13125
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
13677
+ T.type_alias do
13678
+ T.any(
13679
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration,
13680
+ Orb::Internal::AnyHash
13681
+ )
13682
+ end
13126
13683
 
13127
13684
  # The duration of the billing period.
13128
13685
  sig { returns(Integer) }
@@ -13203,7 +13760,12 @@ module Orb
13203
13760
 
13204
13761
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
13205
13762
  OrHash =
13206
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
13763
+ T.type_alias do
13764
+ T.any(
13765
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration,
13766
+ Orb::Internal::AnyHash
13767
+ )
13768
+ end
13207
13769
 
13208
13770
  # The duration of the billing period.
13209
13771
  sig { returns(Integer) }
@@ -13296,7 +13858,13 @@ module Orb
13296
13858
  end
13297
13859
 
13298
13860
  class AddAdjustment < Orb::Internal::Type::BaseModel
13299
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
13861
+ OrHash =
13862
+ T.type_alias do
13863
+ T.any(
13864
+ Orb::SubscriptionPriceIntervalsParams::AddAdjustment,
13865
+ Orb::Internal::AnyHash
13866
+ )
13867
+ end
13300
13868
 
13301
13869
  # The definition of a new adjustment to create and add to the subscription.
13302
13870
  sig do
@@ -13397,7 +13965,13 @@ module Orb
13397
13965
  end
13398
13966
 
13399
13967
  class PercentageDiscount < Orb::Internal::Type::BaseModel
13400
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
13968
+ OrHash =
13969
+ T.type_alias do
13970
+ T.any(
13971
+ Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount,
13972
+ Orb::Internal::AnyHash
13973
+ )
13974
+ end
13401
13975
 
13402
13976
  sig { returns(Symbol) }
13403
13977
  attr_accessor :adjustment_type
@@ -13451,7 +14025,13 @@ module Orb
13451
14025
  end
13452
14026
 
13453
14027
  class UsageDiscount < Orb::Internal::Type::BaseModel
13454
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
14028
+ OrHash =
14029
+ T.type_alias do
14030
+ T.any(
14031
+ Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount,
14032
+ Orb::Internal::AnyHash
14033
+ )
14034
+ end
13455
14035
 
13456
14036
  sig { returns(Symbol) }
13457
14037
  attr_accessor :adjustment_type
@@ -13505,7 +14085,13 @@ module Orb
13505
14085
  end
13506
14086
 
13507
14087
  class AmountDiscount < Orb::Internal::Type::BaseModel
13508
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
14088
+ OrHash =
14089
+ T.type_alias do
14090
+ T.any(
14091
+ Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount,
14092
+ Orb::Internal::AnyHash
14093
+ )
14094
+ end
13509
14095
 
13510
14096
  sig { returns(Symbol) }
13511
14097
  attr_accessor :adjustment_type
@@ -13559,7 +14145,13 @@ module Orb
13559
14145
  end
13560
14146
 
13561
14147
  class Minimum < Orb::Internal::Type::BaseModel
13562
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
14148
+ OrHash =
14149
+ T.type_alias do
14150
+ T.any(
14151
+ Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum,
14152
+ Orb::Internal::AnyHash
14153
+ )
14154
+ end
13563
14155
 
13564
14156
  sig { returns(Symbol) }
13565
14157
  attr_accessor :adjustment_type
@@ -13621,7 +14213,13 @@ module Orb
13621
14213
  end
13622
14214
 
13623
14215
  class Maximum < Orb::Internal::Type::BaseModel
13624
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
14216
+ OrHash =
14217
+ T.type_alias do
14218
+ T.any(
14219
+ Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum,
14220
+ Orb::Internal::AnyHash
14221
+ )
14222
+ end
13625
14223
 
13626
14224
  sig { returns(Symbol) }
13627
14225
  attr_accessor :adjustment_type
@@ -13733,7 +14331,13 @@ module Orb
13733
14331
  end
13734
14332
 
13735
14333
  class Edit < Orb::Internal::Type::BaseModel
13736
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
14334
+ OrHash =
14335
+ T.type_alias do
14336
+ T.any(
14337
+ Orb::SubscriptionPriceIntervalsParams::Edit,
14338
+ Orb::Internal::AnyHash
14339
+ )
14340
+ end
13737
14341
 
13738
14342
  # The id of the price interval to edit.
13739
14343
  sig { returns(String) }
@@ -13893,7 +14497,13 @@ module Orb
13893
14497
  end
13894
14498
 
13895
14499
  class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
13896
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
14500
+ OrHash =
14501
+ T.type_alias do
14502
+ T.any(
14503
+ Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition,
14504
+ Orb::Internal::AnyHash
14505
+ )
14506
+ end
13897
14507
 
13898
14508
  # The date that the fixed fee quantity transition should take effect.
13899
14509
  sig { returns(Time) }
@@ -13944,7 +14554,13 @@ module Orb
13944
14554
  end
13945
14555
 
13946
14556
  class EditAdjustment < Orb::Internal::Type::BaseModel
13947
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
14557
+ OrHash =
14558
+ T.type_alias do
14559
+ T.any(
14560
+ Orb::SubscriptionPriceIntervalsParams::EditAdjustment,
14561
+ Orb::Internal::AnyHash
14562
+ )
14563
+ end
13948
14564
 
13949
14565
  # The id of the adjustment interval to edit.
13950
14566
  sig { returns(String) }