orb-billing 0.5.1 → 0.5.3

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 (337) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +4 -4
  4. data/SECURITY.md +2 -2
  5. data/lib/orb/internal/type/array_of.rb +8 -0
  6. data/lib/orb/internal/type/base_model.rb +7 -0
  7. data/lib/orb/internal/type/boolean.rb +8 -0
  8. data/lib/orb/internal/type/enum.rb +12 -0
  9. data/lib/orb/internal/type/file_input.rb +7 -0
  10. data/lib/orb/internal/type/hash_of.rb +8 -0
  11. data/lib/orb/internal/type/union.rb +12 -0
  12. data/lib/orb/internal/type/unknown.rb +8 -0
  13. data/lib/orb/internal/util.rb +45 -0
  14. data/lib/orb/internal.rb +3 -0
  15. data/lib/orb/models/alert.rb +23 -23
  16. data/lib/orb/models/alert_create_for_customer_params.rb +5 -5
  17. data/lib/orb/models/alert_create_for_external_customer_params.rb +5 -5
  18. data/lib/orb/models/alert_create_for_subscription_params.rb +5 -5
  19. data/lib/orb/models/alert_update_params.rb +3 -3
  20. data/lib/orb/models/amount_discount.rb +5 -5
  21. data/lib/orb/models/billable_metric.rb +7 -7
  22. data/lib/orb/models/coupon.rb +6 -10
  23. data/lib/orb/models/coupon_create_params.rb +3 -9
  24. data/lib/orb/models/credit_note.rb +33 -33
  25. data/lib/orb/models/credit_note_create_params.rb +4 -4
  26. data/lib/orb/models/customer.rb +39 -39
  27. data/lib/orb/models/customer_create_params.rb +26 -35
  28. data/lib/orb/models/customer_update_by_external_id_params.rb +26 -35
  29. data/lib/orb/models/customer_update_params.rb +26 -35
  30. data/lib/orb/models/customers/balance_transaction_create_params.rb +2 -2
  31. data/lib/orb/models/customers/cost_list_by_external_id_params.rb +2 -2
  32. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +2 -2
  33. data/lib/orb/models/customers/cost_list_params.rb +2 -2
  34. data/lib/orb/models/customers/cost_list_response.rb +2 -2
  35. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +7 -7
  36. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +0 -14
  37. data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +8 -8
  38. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +0 -14
  39. data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +4 -4
  40. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +0 -14
  41. data/lib/orb/models/customers/credits/ledger_list_params.rb +4 -4
  42. data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -14
  43. data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +6 -6
  44. data/lib/orb/models/customers/credits/top_up_create_params.rb +6 -5
  45. data/lib/orb/models/dimensional_price_group.rb +1 -1
  46. data/lib/orb/models/dimensional_price_groups.rb +4 -4
  47. data/lib/orb/models/discount.rb +1 -7
  48. data/lib/orb/models/evaluate_price_group.rb +0 -4
  49. data/lib/orb/models/event_ingest_params.rb +3 -3
  50. data/lib/orb/models/events/event_volumes.rb +2 -2
  51. data/lib/orb/models/invoice.rb +114 -135
  52. data/lib/orb/models/invoice_create_params.rb +10 -10
  53. data/lib/orb/models/invoice_fetch_upcoming_response.rb +6 -28
  54. data/lib/orb/models/invoice_level_discount.rb +1 -5
  55. data/lib/orb/models/invoice_line_item_create_response.rb +4 -26
  56. data/lib/orb/models/invoice_list_params.rb +4 -4
  57. data/lib/orb/models/item.rb +5 -5
  58. data/lib/orb/models/item_update_params.rb +5 -5
  59. data/lib/orb/models/percentage_discount.rb +5 -5
  60. data/lib/orb/models/plan.rb +58 -70
  61. data/lib/orb/models/plan_create_params.rb +448 -476
  62. data/lib/orb/models/plan_list_params.rb +2 -2
  63. data/lib/orb/models/price.rb +1204 -1239
  64. data/lib/orb/models/price_create_params.rb +50 -50
  65. data/lib/orb/models/price_evaluate_response.rb +2 -2
  66. data/lib/orb/models/subscription.rb +58 -78
  67. data/lib/orb/models/subscription_cancel_params.rb +2 -2
  68. data/lib/orb/models/subscription_cancel_response.rb +14 -36
  69. data/lib/orb/models/subscription_change_apply_response.rb +14 -36
  70. data/lib/orb/models/subscription_change_cancel_response.rb +14 -36
  71. data/lib/orb/models/subscription_change_retrieve_response.rb +14 -36
  72. data/lib/orb/models/subscription_create_params.rb +1002 -1075
  73. data/lib/orb/models/subscription_create_response.rb +14 -36
  74. data/lib/orb/models/subscription_fetch_costs_params.rb +2 -2
  75. data/lib/orb/models/subscription_fetch_costs_response.rb +2 -2
  76. data/lib/orb/models/subscription_fetch_usage_params.rb +4 -4
  77. data/lib/orb/models/subscription_list_params.rb +2 -2
  78. data/lib/orb/models/subscription_price_intervals_params.rb +596 -674
  79. data/lib/orb/models/subscription_price_intervals_response.rb +14 -36
  80. data/lib/orb/models/subscription_schedule_plan_change_params.rb +973 -1059
  81. data/lib/orb/models/subscription_schedule_plan_change_response.rb +14 -36
  82. data/lib/orb/models/subscription_trigger_phase_response.rb +14 -36
  83. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +14 -36
  84. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +14 -36
  85. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +14 -36
  86. data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +2 -2
  87. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +14 -36
  88. data/lib/orb/models/subscription_update_trial_params.rb +3 -3
  89. data/lib/orb/models/subscription_update_trial_response.rb +14 -36
  90. data/lib/orb/models/subscription_usage.rb +26 -35
  91. data/lib/orb/models/subscriptions.rb +4 -4
  92. data/lib/orb/models/trial_discount.rb +5 -5
  93. data/lib/orb/models/usage_discount.rb +5 -5
  94. data/lib/orb/models.rb +30 -16
  95. data/lib/orb/resources/alerts.rb +15 -15
  96. data/lib/orb/resources/coupons/subscriptions.rb +1 -1
  97. data/lib/orb/resources/coupons.rb +5 -5
  98. data/lib/orb/resources/credit_notes.rb +5 -5
  99. data/lib/orb/resources/customers/balance_transactions.rb +1 -1
  100. data/lib/orb/resources/customers/costs.rb +2 -2
  101. data/lib/orb/resources/customers/credits/ledger.rb +10 -10
  102. data/lib/orb/resources/customers/credits/top_ups.rb +4 -4
  103. data/lib/orb/resources/customers.rb +30 -30
  104. data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +1 -1
  105. data/lib/orb/resources/dimensional_price_groups.rb +3 -3
  106. data/lib/orb/resources/events/volume.rb +1 -1
  107. data/lib/orb/resources/events.rb +1 -1
  108. data/lib/orb/resources/invoices.rb +12 -12
  109. data/lib/orb/resources/items.rb +5 -5
  110. data/lib/orb/resources/metrics.rb +4 -4
  111. data/lib/orb/resources/plans/external_plan_id.rb +2 -2
  112. data/lib/orb/resources/plans.rb +7 -7
  113. data/lib/orb/resources/prices/external_price_id.rb +2 -2
  114. data/lib/orb/resources/prices.rb +17 -17
  115. data/lib/orb/resources/subscriptions.rb +32 -32
  116. data/lib/orb/version.rb +1 -1
  117. data/rbi/orb/internal/type/array_of.rbi +6 -0
  118. data/rbi/orb/internal/type/base_model.rbi +5 -0
  119. data/rbi/orb/internal/type/boolean.rbi +6 -0
  120. data/rbi/orb/internal/type/enum.rbi +5 -0
  121. data/rbi/orb/internal/type/file_input.rbi +5 -0
  122. data/rbi/orb/internal/type/hash_of.rbi +6 -0
  123. data/rbi/orb/internal/type/union.rbi +5 -0
  124. data/rbi/orb/internal/type/unknown.rbi +6 -0
  125. data/rbi/orb/internal/util.rbi +30 -0
  126. data/rbi/orb/internal.rbi +3 -0
  127. data/rbi/orb/models/coupon.rbi +2 -2
  128. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +2 -65
  129. data/rbi/orb/models/customers/cost_list_response.rbi +2 -65
  130. data/rbi/orb/models/evaluate_price_group.rbi +7 -3
  131. data/rbi/orb/models/invoice.rbi +10 -149
  132. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +10 -133
  133. data/rbi/orb/models/invoice_line_item_create_response.rbi +8 -114
  134. data/rbi/orb/models/plan.rbi +8 -134
  135. data/rbi/orb/models/price.rbi +56 -588
  136. data/rbi/orb/models/subscription.rbi +6 -99
  137. data/rbi/orb/models/subscription_cancel_response.rbi +6 -89
  138. data/rbi/orb/models/subscription_change_apply_response.rbi +6 -89
  139. data/rbi/orb/models/subscription_change_cancel_response.rbi +6 -89
  140. data/rbi/orb/models/subscription_change_retrieve_response.rbi +6 -89
  141. data/rbi/orb/models/subscription_create_response.rbi +6 -89
  142. data/rbi/orb/models/subscription_fetch_costs_response.rbi +2 -65
  143. data/rbi/orb/models/subscription_price_intervals_response.rbi +6 -89
  144. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +6 -89
  145. data/rbi/orb/models/subscription_trigger_phase_response.rbi +6 -89
  146. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +6 -89
  147. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +6 -89
  148. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +6 -89
  149. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +6 -89
  150. data/rbi/orb/models/subscription_update_trial_response.rbi +6 -89
  151. data/rbi/orb/resources/customers/credits/ledger.rbi +4 -36
  152. data/rbi/orb/resources/prices/external_price_id.rbi +2 -64
  153. data/rbi/orb/resources/prices.rbi +4 -130
  154. data/rbi/orb/resources/subscriptions.rbi +1 -6
  155. data/sig/orb/internal/page.rbs +2 -0
  156. data/sig/orb/internal/type/array_of.rbs +3 -0
  157. data/sig/orb/internal/type/base_model.rbs +2 -0
  158. data/sig/orb/internal/type/boolean.rbs +3 -0
  159. data/sig/orb/internal/type/enum.rbs +2 -0
  160. data/sig/orb/internal/type/file_input.rbs +2 -0
  161. data/sig/orb/internal/type/hash_of.rbs +3 -0
  162. data/sig/orb/internal/type/union.rbs +2 -0
  163. data/sig/orb/internal/type/unknown.rbs +3 -0
  164. data/sig/orb/internal/util.rbs +12 -0
  165. data/sig/orb/internal.rbs +2 -0
  166. data/sig/orb/models/alert.rbs +32 -4
  167. data/sig/orb/models/alert_create_for_customer_params.rbs +9 -0
  168. data/sig/orb/models/alert_create_for_external_customer_params.rbs +9 -0
  169. data/sig/orb/models/alert_create_for_subscription_params.rbs +9 -0
  170. data/sig/orb/models/alert_disable_params.rbs +5 -0
  171. data/sig/orb/models/alert_enable_params.rbs +5 -0
  172. data/sig/orb/models/alert_list_params.rbs +13 -0
  173. data/sig/orb/models/alert_retrieve_params.rbs +2 -0
  174. data/sig/orb/models/alert_update_params.rbs +7 -0
  175. data/sig/orb/models/amount_discount.rbs +11 -4
  176. data/sig/orb/models/billable_metric.rbs +13 -4
  177. data/sig/orb/models/coupon.rbs +14 -4
  178. data/sig/orb/models/coupon_archive_params.rbs +2 -0
  179. data/sig/orb/models/coupon_create_params.rbs +15 -0
  180. data/sig/orb/models/coupon_fetch_params.rbs +2 -0
  181. data/sig/orb/models/coupon_list_params.rbs +8 -0
  182. data/sig/orb/models/coupons/subscription_list_params.rbs +6 -0
  183. data/sig/orb/models/credit_note.rbs +88 -20
  184. data/sig/orb/models/credit_note_create_params.rbs +9 -0
  185. data/sig/orb/models/credit_note_fetch_params.rbs +2 -0
  186. data/sig/orb/models/credit_note_list_params.rbs +10 -0
  187. data/sig/orb/models/customer.rbs +86 -16
  188. data/sig/orb/models/customer_create_params.rbs +79 -8
  189. data/sig/orb/models/customer_delete_params.rbs +2 -0
  190. data/sig/orb/models/customer_fetch_by_external_id_params.rbs +2 -0
  191. data/sig/orb/models/customer_fetch_params.rbs +2 -0
  192. data/sig/orb/models/customer_list_params.rbs +10 -0
  193. data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +2 -0
  194. data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +2 -0
  195. data/sig/orb/models/customer_update_by_external_id_params.rbs +78 -8
  196. data/sig/orb/models/customer_update_params.rbs +78 -8
  197. data/sig/orb/models/customers/balance_transaction_create_params.rbs +7 -0
  198. data/sig/orb/models/customers/balance_transaction_create_response.rbs +17 -0
  199. data/sig/orb/models/customers/balance_transaction_list_params.rbs +10 -0
  200. data/sig/orb/models/customers/balance_transaction_list_response.rbs +17 -0
  201. data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +8 -0
  202. data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +20 -0
  203. data/sig/orb/models/customers/cost_list_params.rbs +8 -0
  204. data/sig/orb/models/customers/cost_list_response.rbs +20 -0
  205. data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +8 -0
  206. data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +10 -0
  207. data/sig/orb/models/customers/credit_list_params.rbs +8 -0
  208. data/sig/orb/models/customers/credit_list_response.rbs +10 -0
  209. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +23 -0
  210. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +177 -0
  211. data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +23 -0
  212. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +177 -0
  213. data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +14 -0
  214. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +177 -0
  215. data/sig/orb/models/customers/credits/ledger_list_params.rbs +14 -0
  216. data/sig/orb/models/customers/credits/ledger_list_response.rbs +177 -0
  217. data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +19 -0
  218. data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +18 -0
  219. data/sig/orb/models/customers/credits/top_up_create_params.rbs +19 -0
  220. data/sig/orb/models/customers/credits/top_up_create_response.rbs +18 -0
  221. data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +5 -0
  222. data/sig/orb/models/customers/credits/top_up_delete_params.rbs +5 -0
  223. data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +6 -0
  224. data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +18 -0
  225. data/sig/orb/models/customers/credits/top_up_list_params.rbs +6 -0
  226. data/sig/orb/models/customers/credits/top_up_list_response.rbs +18 -0
  227. data/sig/orb/models/dimensional_price_group.rbs +9 -0
  228. data/sig/orb/models/dimensional_price_group_create_params.rbs +9 -0
  229. data/sig/orb/models/dimensional_price_group_list_params.rbs +6 -0
  230. data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +2 -0
  231. data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +2 -0
  232. data/sig/orb/models/dimensional_price_groups.rbs +5 -0
  233. data/sig/orb/models/evaluate_price_group.rbs +10 -4
  234. data/sig/orb/models/event_deprecate_params.rbs +2 -0
  235. data/sig/orb/models/event_deprecate_response.rbs +2 -0
  236. data/sig/orb/models/event_ingest_params.rbs +16 -0
  237. data/sig/orb/models/event_ingest_response.rbs +15 -0
  238. data/sig/orb/models/event_search_params.rbs +7 -0
  239. data/sig/orb/models/event_search_response.rbs +12 -0
  240. data/sig/orb/models/event_update_params.rbs +9 -0
  241. data/sig/orb/models/event_update_response.rbs +2 -0
  242. data/sig/orb/models/events/backfill_close_params.rbs +2 -0
  243. data/sig/orb/models/events/backfill_close_response.rbs +14 -0
  244. data/sig/orb/models/events/backfill_create_params.rbs +11 -0
  245. data/sig/orb/models/events/backfill_create_response.rbs +14 -0
  246. data/sig/orb/models/events/backfill_fetch_params.rbs +2 -0
  247. data/sig/orb/models/events/backfill_fetch_response.rbs +14 -0
  248. data/sig/orb/models/events/backfill_list_params.rbs +6 -0
  249. data/sig/orb/models/events/backfill_list_response.rbs +14 -0
  250. data/sig/orb/models/events/backfill_revert_params.rbs +2 -0
  251. data/sig/orb/models/events/backfill_revert_response.rbs +14 -0
  252. data/sig/orb/models/events/event_volumes.rbs +8 -0
  253. data/sig/orb/models/events/volume_list_params.rbs +8 -0
  254. data/sig/orb/models/invoice.rbs +293 -36
  255. data/sig/orb/models/invoice_create_params.rbs +30 -4
  256. data/sig/orb/models/invoice_fetch_params.rbs +2 -0
  257. data/sig/orb/models/invoice_fetch_upcoming_params.rbs +5 -0
  258. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +257 -0
  259. data/sig/orb/models/invoice_issue_params.rbs +5 -0
  260. data/sig/orb/models/invoice_line_item_create_params.rbs +10 -0
  261. data/sig/orb/models/invoice_line_item_create_response.rbs +132 -0
  262. data/sig/orb/models/invoice_list_params.rbs +27 -4
  263. data/sig/orb/models/invoice_mark_paid_params.rbs +7 -0
  264. data/sig/orb/models/invoice_pay_params.rbs +2 -0
  265. data/sig/orb/models/invoice_update_params.rbs +5 -0
  266. data/sig/orb/models/invoice_void_params.rbs +2 -0
  267. data/sig/orb/models/item.rbs +16 -4
  268. data/sig/orb/models/item_create_params.rbs +2 -0
  269. data/sig/orb/models/item_fetch_params.rbs +2 -0
  270. data/sig/orb/models/item_list_params.rbs +6 -0
  271. data/sig/orb/models/item_update_params.rbs +15 -4
  272. data/sig/orb/models/metric_create_params.rbs +9 -0
  273. data/sig/orb/models/metric_fetch_params.rbs +2 -0
  274. data/sig/orb/models/metric_list_params.rbs +10 -0
  275. data/sig/orb/models/metric_update_params.rbs +5 -0
  276. data/sig/orb/models/pagination_metadata.rbs +2 -0
  277. data/sig/orb/models/percentage_discount.rbs +11 -4
  278. data/sig/orb/models/plan.rbs +141 -16
  279. data/sig/orb/models/plan_create_params.rbs +1070 -304
  280. data/sig/orb/models/plan_fetch_params.rbs +2 -0
  281. data/sig/orb/models/plan_list_params.rbs +11 -0
  282. data/sig/orb/models/plan_update_params.rbs +6 -0
  283. data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +2 -0
  284. data/sig/orb/models/plans/external_plan_id_update_params.rbs +6 -0
  285. data/sig/orb/models/price.rbs +2148 -460
  286. data/sig/orb/models/price_create_params.rbs +130 -8
  287. data/sig/orb/models/price_evaluate_params.rbs +10 -0
  288. data/sig/orb/models/price_evaluate_response.rbs +2 -0
  289. data/sig/orb/models/price_fetch_params.rbs +2 -0
  290. data/sig/orb/models/price_list_params.rbs +6 -0
  291. data/sig/orb/models/price_update_params.rbs +5 -0
  292. data/sig/orb/models/prices/external_price_id_fetch_params.rbs +2 -0
  293. data/sig/orb/models/prices/external_price_id_update_params.rbs +5 -0
  294. data/sig/orb/models/subscription.rbs +177 -12
  295. data/sig/orb/models/subscription_cancel_params.rbs +7 -0
  296. data/sig/orb/models/subscription_cancel_response.rbs +173 -0
  297. data/sig/orb/models/subscription_change_apply_params.rbs +6 -0
  298. data/sig/orb/models/subscription_change_apply_response.rbs +186 -0
  299. data/sig/orb/models/subscription_change_cancel_params.rbs +2 -0
  300. data/sig/orb/models/subscription_change_cancel_response.rbs +186 -0
  301. data/sig/orb/models/subscription_change_retrieve_params.rbs +2 -0
  302. data/sig/orb/models/subscription_change_retrieve_response.rbs +186 -0
  303. data/sig/orb/models/subscription_create_params.rbs +2368 -632
  304. data/sig/orb/models/subscription_create_response.rbs +173 -0
  305. data/sig/orb/models/subscription_fetch_costs_params.rbs +8 -0
  306. data/sig/orb/models/subscription_fetch_costs_response.rbs +20 -0
  307. data/sig/orb/models/subscription_fetch_params.rbs +2 -0
  308. data/sig/orb/models/subscription_fetch_schedule_params.rbs +10 -0
  309. data/sig/orb/models/subscription_fetch_schedule_response.rbs +13 -0
  310. data/sig/orb/models/subscription_fetch_usage_params.rbs +14 -0
  311. data/sig/orb/models/subscription_list_params.rbs +13 -0
  312. data/sig/orb/models/subscription_price_intervals_params.rbs +1348 -396
  313. data/sig/orb/models/subscription_price_intervals_response.rbs +173 -0
  314. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +2363 -632
  315. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +173 -0
  316. data/sig/orb/models/subscription_trigger_phase_params.rbs +6 -0
  317. data/sig/orb/models/subscription_trigger_phase_response.rbs +173 -0
  318. data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +2 -0
  319. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +173 -0
  320. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +2 -0
  321. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +173 -0
  322. data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +2 -0
  323. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +173 -0
  324. data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +9 -0
  325. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +173 -0
  326. data/sig/orb/models/subscription_update_params.rbs +9 -0
  327. data/sig/orb/models/subscription_update_trial_params.rbs +6 -0
  328. data/sig/orb/models/subscription_update_trial_response.rbs +173 -0
  329. data/sig/orb/models/subscription_usage.rbs +48 -8
  330. data/sig/orb/models/subscriptions.rbs +5 -0
  331. data/sig/orb/models/top_level_ping_params.rbs +2 -0
  332. data/sig/orb/models/top_level_ping_response.rbs +2 -0
  333. data/sig/orb/models/trial_discount.rbs +12 -4
  334. data/sig/orb/models/usage_discount.rbs +11 -4
  335. data/sig/orb/resources/invoices.rbs +1 -1
  336. data/sig/orb/resources/plans.rbs +1 -1
  337. metadata +2 -2
@@ -245,11 +245,7 @@ module Orb
245
245
  sig do
246
246
  returns(
247
247
  T::Array[
248
- T.any(
249
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount,
250
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage,
251
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage
252
- )
248
+ Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Variants
253
249
  ]
254
250
  )
255
251
  end
@@ -587,11 +583,7 @@ module Orb
587
583
  default_invoice_memo: T.nilable(String),
588
584
  discount_intervals:
589
585
  T::Array[
590
- T.any(
591
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount,
592
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage,
593
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage
594
- )
586
+ Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Variants
595
587
  ],
596
588
  end_date: T.nilable(Time),
597
589
  fixed_fee_quantity_schedule:
@@ -651,13 +643,7 @@ module Orb
651
643
 
652
644
  sig do
653
645
  returns(
654
- T.any(
655
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
656
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
657
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
658
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
659
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
660
- )
646
+ Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Variants
661
647
  )
662
648
  end
663
649
  attr_accessor :adjustment
@@ -707,13 +693,7 @@ module Orb
707
693
  {
708
694
  id: String,
709
695
  adjustment:
710
- T.any(
711
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
712
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
713
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
714
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
715
- Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
716
- ),
696
+ Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Variants,
717
697
  applies_to_price_interval_ids: T::Array[String],
718
698
  end_date: T.nilable(Time),
719
699
  start_date: Time
@@ -1747,40 +1727,7 @@ module Orb
1747
1727
  #
1748
1728
  # For more on the types of prices, see
1749
1729
  # [the core concepts documentation](/core-concepts#plan-and-price)
1750
- sig do
1751
- returns(
1752
- T.any(
1753
- Orb::Price::Unit,
1754
- Orb::Price::Package,
1755
- Orb::Price::Matrix,
1756
- Orb::Price::Tiered,
1757
- Orb::Price::TieredBps,
1758
- Orb::Price::Bps,
1759
- Orb::Price::BulkBps,
1760
- Orb::Price::Bulk,
1761
- Orb::Price::ThresholdTotalAmount,
1762
- Orb::Price::TieredPackage,
1763
- Orb::Price::GroupedTiered,
1764
- Orb::Price::TieredWithMinimum,
1765
- Orb::Price::TieredPackageWithMinimum,
1766
- Orb::Price::PackageWithAllocation,
1767
- Orb::Price::UnitWithPercent,
1768
- Orb::Price::MatrixWithAllocation,
1769
- Orb::Price::TieredWithProration,
1770
- Orb::Price::UnitWithProration,
1771
- Orb::Price::GroupedAllocation,
1772
- Orb::Price::GroupedWithProratedMinimum,
1773
- Orb::Price::GroupedWithMeteredMinimum,
1774
- Orb::Price::MatrixWithDisplayName,
1775
- Orb::Price::BulkWithProration,
1776
- Orb::Price::GroupedTieredPackage,
1777
- Orb::Price::MaxGroupTieredPackage,
1778
- Orb::Price::ScalableMatrixWithUnitPricing,
1779
- Orb::Price::ScalableMatrixWithTieredPricing,
1780
- Orb::Price::CumulativeGroupedBulk
1781
- )
1782
- )
1783
- end
1730
+ sig { returns(Orb::Price::Variants) }
1784
1731
  attr_accessor :price
1785
1732
 
1786
1733
  # The start date of the price interval. This is the date that Orb starts billing
@@ -1900,37 +1847,7 @@ module Orb
1900
1847
  Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
1901
1848
  ]
1902
1849
  ),
1903
- price:
1904
- T.any(
1905
- Orb::Price::Unit,
1906
- Orb::Price::Package,
1907
- Orb::Price::Matrix,
1908
- Orb::Price::Tiered,
1909
- Orb::Price::TieredBps,
1910
- Orb::Price::Bps,
1911
- Orb::Price::BulkBps,
1912
- Orb::Price::Bulk,
1913
- Orb::Price::ThresholdTotalAmount,
1914
- Orb::Price::TieredPackage,
1915
- Orb::Price::GroupedTiered,
1916
- Orb::Price::TieredWithMinimum,
1917
- Orb::Price::TieredPackageWithMinimum,
1918
- Orb::Price::PackageWithAllocation,
1919
- Orb::Price::UnitWithPercent,
1920
- Orb::Price::MatrixWithAllocation,
1921
- Orb::Price::TieredWithProration,
1922
- Orb::Price::UnitWithProration,
1923
- Orb::Price::GroupedAllocation,
1924
- Orb::Price::GroupedWithProratedMinimum,
1925
- Orb::Price::GroupedWithMeteredMinimum,
1926
- Orb::Price::MatrixWithDisplayName,
1927
- Orb::Price::BulkWithProration,
1928
- Orb::Price::GroupedTieredPackage,
1929
- Orb::Price::MaxGroupTieredPackage,
1930
- Orb::Price::ScalableMatrixWithUnitPricing,
1931
- Orb::Price::ScalableMatrixWithTieredPricing,
1932
- Orb::Price::CumulativeGroupedBulk
1933
- ),
1850
+ price: Orb::Price::Variants,
1934
1851
  start_date: Time,
1935
1852
  usage_customer_ids: T.nilable(T::Array[String])
1936
1853
  }
@@ -101,11 +101,7 @@ module Orb
101
101
  sig do
102
102
  returns(
103
103
  T::Array[
104
- T.any(
105
- Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount,
106
- Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage,
107
- Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage
108
- )
104
+ Orb::Models::SubscriptionCreateResponse::DiscountInterval::Variants
109
105
  ]
110
106
  )
111
107
  end
@@ -425,11 +421,7 @@ module Orb
425
421
  default_invoice_memo: T.nilable(String),
426
422
  discount_intervals:
427
423
  T::Array[
428
- T.any(
429
- Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount,
430
- Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage,
431
- Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage
432
- )
424
+ Orb::Models::SubscriptionCreateResponse::DiscountInterval::Variants
433
425
  ],
434
426
  end_date: T.nilable(Time),
435
427
  fixed_fee_quantity_schedule:
@@ -486,13 +478,7 @@ module Orb
486
478
 
487
479
  sig do
488
480
  returns(
489
- T.any(
490
- Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount,
491
- Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount,
492
- Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
493
- Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum,
494
- Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum
495
- )
481
+ Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Variants
496
482
  )
497
483
  end
498
484
  attr_accessor :adjustment
@@ -542,13 +528,7 @@ module Orb
542
528
  {
543
529
  id: String,
544
530
  adjustment:
545
- T.any(
546
- Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount,
547
- Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount,
548
- Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
549
- Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum,
550
- Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum
551
- ),
531
+ Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Variants,
552
532
  applies_to_price_interval_ids: T::Array[String],
553
533
  end_date: T.nilable(Time),
554
534
  start_date: Time
@@ -1582,40 +1562,7 @@ module Orb
1582
1562
  #
1583
1563
  # For more on the types of prices, see
1584
1564
  # [the core concepts documentation](/core-concepts#plan-and-price)
1585
- sig do
1586
- returns(
1587
- T.any(
1588
- Orb::Price::Unit,
1589
- Orb::Price::Package,
1590
- Orb::Price::Matrix,
1591
- Orb::Price::Tiered,
1592
- Orb::Price::TieredBps,
1593
- Orb::Price::Bps,
1594
- Orb::Price::BulkBps,
1595
- Orb::Price::Bulk,
1596
- Orb::Price::ThresholdTotalAmount,
1597
- Orb::Price::TieredPackage,
1598
- Orb::Price::GroupedTiered,
1599
- Orb::Price::TieredWithMinimum,
1600
- Orb::Price::TieredPackageWithMinimum,
1601
- Orb::Price::PackageWithAllocation,
1602
- Orb::Price::UnitWithPercent,
1603
- Orb::Price::MatrixWithAllocation,
1604
- Orb::Price::TieredWithProration,
1605
- Orb::Price::UnitWithProration,
1606
- Orb::Price::GroupedAllocation,
1607
- Orb::Price::GroupedWithProratedMinimum,
1608
- Orb::Price::GroupedWithMeteredMinimum,
1609
- Orb::Price::MatrixWithDisplayName,
1610
- Orb::Price::BulkWithProration,
1611
- Orb::Price::GroupedTieredPackage,
1612
- Orb::Price::MaxGroupTieredPackage,
1613
- Orb::Price::ScalableMatrixWithUnitPricing,
1614
- Orb::Price::ScalableMatrixWithTieredPricing,
1615
- Orb::Price::CumulativeGroupedBulk
1616
- )
1617
- )
1618
- end
1565
+ sig { returns(Orb::Price::Variants) }
1619
1566
  attr_accessor :price
1620
1567
 
1621
1568
  # The start date of the price interval. This is the date that Orb starts billing
@@ -1735,37 +1682,7 @@ module Orb
1735
1682
  Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition
1736
1683
  ]
1737
1684
  ),
1738
- price:
1739
- T.any(
1740
- Orb::Price::Unit,
1741
- Orb::Price::Package,
1742
- Orb::Price::Matrix,
1743
- Orb::Price::Tiered,
1744
- Orb::Price::TieredBps,
1745
- Orb::Price::Bps,
1746
- Orb::Price::BulkBps,
1747
- Orb::Price::Bulk,
1748
- Orb::Price::ThresholdTotalAmount,
1749
- Orb::Price::TieredPackage,
1750
- Orb::Price::GroupedTiered,
1751
- Orb::Price::TieredWithMinimum,
1752
- Orb::Price::TieredPackageWithMinimum,
1753
- Orb::Price::PackageWithAllocation,
1754
- Orb::Price::UnitWithPercent,
1755
- Orb::Price::MatrixWithAllocation,
1756
- Orb::Price::TieredWithProration,
1757
- Orb::Price::UnitWithProration,
1758
- Orb::Price::GroupedAllocation,
1759
- Orb::Price::GroupedWithProratedMinimum,
1760
- Orb::Price::GroupedWithMeteredMinimum,
1761
- Orb::Price::MatrixWithDisplayName,
1762
- Orb::Price::BulkWithProration,
1763
- Orb::Price::GroupedTieredPackage,
1764
- Orb::Price::MaxGroupTieredPackage,
1765
- Orb::Price::ScalableMatrixWithUnitPricing,
1766
- Orb::Price::ScalableMatrixWithTieredPricing,
1767
- Orb::Price::CumulativeGroupedBulk
1768
- ),
1685
+ price: Orb::Price::Variants,
1769
1686
  start_date: Time,
1770
1687
  usage_customer_ids: T.nilable(T::Array[String])
1771
1688
  }
@@ -115,40 +115,7 @@ module Orb
115
115
  end
116
116
 
117
117
  # The price object
118
- sig do
119
- returns(
120
- T.any(
121
- Orb::Price::Unit,
122
- Orb::Price::Package,
123
- Orb::Price::Matrix,
124
- Orb::Price::Tiered,
125
- Orb::Price::TieredBps,
126
- Orb::Price::Bps,
127
- Orb::Price::BulkBps,
128
- Orb::Price::Bulk,
129
- Orb::Price::ThresholdTotalAmount,
130
- Orb::Price::TieredPackage,
131
- Orb::Price::GroupedTiered,
132
- Orb::Price::TieredWithMinimum,
133
- Orb::Price::TieredPackageWithMinimum,
134
- Orb::Price::PackageWithAllocation,
135
- Orb::Price::UnitWithPercent,
136
- Orb::Price::MatrixWithAllocation,
137
- Orb::Price::TieredWithProration,
138
- Orb::Price::UnitWithProration,
139
- Orb::Price::GroupedAllocation,
140
- Orb::Price::GroupedWithProratedMinimum,
141
- Orb::Price::GroupedWithMeteredMinimum,
142
- Orb::Price::MatrixWithDisplayName,
143
- Orb::Price::BulkWithProration,
144
- Orb::Price::GroupedTieredPackage,
145
- Orb::Price::MaxGroupTieredPackage,
146
- Orb::Price::ScalableMatrixWithUnitPricing,
147
- Orb::Price::ScalableMatrixWithTieredPricing,
148
- Orb::Price::CumulativeGroupedBulk
149
- )
150
- )
151
- end
118
+ sig { returns(Orb::Price::Variants) }
152
119
  attr_accessor :price
153
120
 
154
121
  # The price the cost is associated with
@@ -223,37 +190,7 @@ module Orb
223
190
  sig do
224
191
  override.returns(
225
192
  {
226
- price:
227
- T.any(
228
- Orb::Price::Unit,
229
- Orb::Price::Package,
230
- Orb::Price::Matrix,
231
- Orb::Price::Tiered,
232
- Orb::Price::TieredBps,
233
- Orb::Price::Bps,
234
- Orb::Price::BulkBps,
235
- Orb::Price::Bulk,
236
- Orb::Price::ThresholdTotalAmount,
237
- Orb::Price::TieredPackage,
238
- Orb::Price::GroupedTiered,
239
- Orb::Price::TieredWithMinimum,
240
- Orb::Price::TieredPackageWithMinimum,
241
- Orb::Price::PackageWithAllocation,
242
- Orb::Price::UnitWithPercent,
243
- Orb::Price::MatrixWithAllocation,
244
- Orb::Price::TieredWithProration,
245
- Orb::Price::UnitWithProration,
246
- Orb::Price::GroupedAllocation,
247
- Orb::Price::GroupedWithProratedMinimum,
248
- Orb::Price::GroupedWithMeteredMinimum,
249
- Orb::Price::MatrixWithDisplayName,
250
- Orb::Price::BulkWithProration,
251
- Orb::Price::GroupedTieredPackage,
252
- Orb::Price::MaxGroupTieredPackage,
253
- Orb::Price::ScalableMatrixWithUnitPricing,
254
- Orb::Price::ScalableMatrixWithTieredPricing,
255
- Orb::Price::CumulativeGroupedBulk
256
- ),
193
+ price: Orb::Price::Variants,
257
194
  price_id: String,
258
195
  subtotal: String,
259
196
  total: String,
@@ -106,11 +106,7 @@ module Orb
106
106
  sig do
107
107
  returns(
108
108
  T::Array[
109
- T.any(
110
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount,
111
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage,
112
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage
113
- )
109
+ Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Variants
114
110
  ]
115
111
  )
116
112
  end
@@ -446,11 +442,7 @@ module Orb
446
442
  default_invoice_memo: T.nilable(String),
447
443
  discount_intervals:
448
444
  T::Array[
449
- T.any(
450
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount,
451
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage,
452
- Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage
453
- )
445
+ Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Variants
454
446
  ],
455
447
  end_date: T.nilable(Time),
456
448
  fixed_fee_quantity_schedule:
@@ -510,13 +502,7 @@ module Orb
510
502
 
511
503
  sig do
512
504
  returns(
513
- T.any(
514
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount,
515
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount,
516
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
517
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum,
518
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum
519
- )
505
+ Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Variants
520
506
  )
521
507
  end
522
508
  attr_accessor :adjustment
@@ -566,13 +552,7 @@ module Orb
566
552
  {
567
553
  id: String,
568
554
  adjustment:
569
- T.any(
570
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount,
571
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount,
572
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
573
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum,
574
- Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum
575
- ),
555
+ Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Variants,
576
556
  applies_to_price_interval_ids: T::Array[String],
577
557
  end_date: T.nilable(Time),
578
558
  start_date: Time
@@ -1606,40 +1586,7 @@ module Orb
1606
1586
  #
1607
1587
  # For more on the types of prices, see
1608
1588
  # [the core concepts documentation](/core-concepts#plan-and-price)
1609
- sig do
1610
- returns(
1611
- T.any(
1612
- Orb::Price::Unit,
1613
- Orb::Price::Package,
1614
- Orb::Price::Matrix,
1615
- Orb::Price::Tiered,
1616
- Orb::Price::TieredBps,
1617
- Orb::Price::Bps,
1618
- Orb::Price::BulkBps,
1619
- Orb::Price::Bulk,
1620
- Orb::Price::ThresholdTotalAmount,
1621
- Orb::Price::TieredPackage,
1622
- Orb::Price::GroupedTiered,
1623
- Orb::Price::TieredWithMinimum,
1624
- Orb::Price::TieredPackageWithMinimum,
1625
- Orb::Price::PackageWithAllocation,
1626
- Orb::Price::UnitWithPercent,
1627
- Orb::Price::MatrixWithAllocation,
1628
- Orb::Price::TieredWithProration,
1629
- Orb::Price::UnitWithProration,
1630
- Orb::Price::GroupedAllocation,
1631
- Orb::Price::GroupedWithProratedMinimum,
1632
- Orb::Price::GroupedWithMeteredMinimum,
1633
- Orb::Price::MatrixWithDisplayName,
1634
- Orb::Price::BulkWithProration,
1635
- Orb::Price::GroupedTieredPackage,
1636
- Orb::Price::MaxGroupTieredPackage,
1637
- Orb::Price::ScalableMatrixWithUnitPricing,
1638
- Orb::Price::ScalableMatrixWithTieredPricing,
1639
- Orb::Price::CumulativeGroupedBulk
1640
- )
1641
- )
1642
- end
1589
+ sig { returns(Orb::Price::Variants) }
1643
1590
  attr_accessor :price
1644
1591
 
1645
1592
  # The start date of the price interval. This is the date that Orb starts billing
@@ -1759,37 +1706,7 @@ module Orb
1759
1706
  Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition
1760
1707
  ]
1761
1708
  ),
1762
- price:
1763
- T.any(
1764
- Orb::Price::Unit,
1765
- Orb::Price::Package,
1766
- Orb::Price::Matrix,
1767
- Orb::Price::Tiered,
1768
- Orb::Price::TieredBps,
1769
- Orb::Price::Bps,
1770
- Orb::Price::BulkBps,
1771
- Orb::Price::Bulk,
1772
- Orb::Price::ThresholdTotalAmount,
1773
- Orb::Price::TieredPackage,
1774
- Orb::Price::GroupedTiered,
1775
- Orb::Price::TieredWithMinimum,
1776
- Orb::Price::TieredPackageWithMinimum,
1777
- Orb::Price::PackageWithAllocation,
1778
- Orb::Price::UnitWithPercent,
1779
- Orb::Price::MatrixWithAllocation,
1780
- Orb::Price::TieredWithProration,
1781
- Orb::Price::UnitWithProration,
1782
- Orb::Price::GroupedAllocation,
1783
- Orb::Price::GroupedWithProratedMinimum,
1784
- Orb::Price::GroupedWithMeteredMinimum,
1785
- Orb::Price::MatrixWithDisplayName,
1786
- Orb::Price::BulkWithProration,
1787
- Orb::Price::GroupedTieredPackage,
1788
- Orb::Price::MaxGroupTieredPackage,
1789
- Orb::Price::ScalableMatrixWithUnitPricing,
1790
- Orb::Price::ScalableMatrixWithTieredPricing,
1791
- Orb::Price::CumulativeGroupedBulk
1792
- ),
1709
+ price: Orb::Price::Variants,
1793
1710
  start_date: Time,
1794
1711
  usage_customer_ids: T.nilable(T::Array[String])
1795
1712
  }
@@ -106,11 +106,7 @@ module Orb
106
106
  sig do
107
107
  returns(
108
108
  T::Array[
109
- T.any(
110
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount,
111
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage,
112
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage
113
- )
109
+ Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Variants
114
110
  ]
115
111
  )
116
112
  end
@@ -446,11 +442,7 @@ module Orb
446
442
  default_invoice_memo: T.nilable(String),
447
443
  discount_intervals:
448
444
  T::Array[
449
- T.any(
450
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount,
451
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage,
452
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage
453
- )
445
+ Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Variants
454
446
  ],
455
447
  end_date: T.nilable(Time),
456
448
  fixed_fee_quantity_schedule:
@@ -510,13 +502,7 @@ module Orb
510
502
 
511
503
  sig do
512
504
  returns(
513
- T.any(
514
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount,
515
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount,
516
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
517
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum,
518
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum
519
- )
505
+ Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Variants
520
506
  )
521
507
  end
522
508
  attr_accessor :adjustment
@@ -566,13 +552,7 @@ module Orb
566
552
  {
567
553
  id: String,
568
554
  adjustment:
569
- T.any(
570
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount,
571
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount,
572
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
573
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum,
574
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum
575
- ),
555
+ Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Variants,
576
556
  applies_to_price_interval_ids: T::Array[String],
577
557
  end_date: T.nilable(Time),
578
558
  start_date: Time
@@ -1606,40 +1586,7 @@ module Orb
1606
1586
  #
1607
1587
  # For more on the types of prices, see
1608
1588
  # [the core concepts documentation](/core-concepts#plan-and-price)
1609
- sig do
1610
- returns(
1611
- T.any(
1612
- Orb::Price::Unit,
1613
- Orb::Price::Package,
1614
- Orb::Price::Matrix,
1615
- Orb::Price::Tiered,
1616
- Orb::Price::TieredBps,
1617
- Orb::Price::Bps,
1618
- Orb::Price::BulkBps,
1619
- Orb::Price::Bulk,
1620
- Orb::Price::ThresholdTotalAmount,
1621
- Orb::Price::TieredPackage,
1622
- Orb::Price::GroupedTiered,
1623
- Orb::Price::TieredWithMinimum,
1624
- Orb::Price::TieredPackageWithMinimum,
1625
- Orb::Price::PackageWithAllocation,
1626
- Orb::Price::UnitWithPercent,
1627
- Orb::Price::MatrixWithAllocation,
1628
- Orb::Price::TieredWithProration,
1629
- Orb::Price::UnitWithProration,
1630
- Orb::Price::GroupedAllocation,
1631
- Orb::Price::GroupedWithProratedMinimum,
1632
- Orb::Price::GroupedWithMeteredMinimum,
1633
- Orb::Price::MatrixWithDisplayName,
1634
- Orb::Price::BulkWithProration,
1635
- Orb::Price::GroupedTieredPackage,
1636
- Orb::Price::MaxGroupTieredPackage,
1637
- Orb::Price::ScalableMatrixWithUnitPricing,
1638
- Orb::Price::ScalableMatrixWithTieredPricing,
1639
- Orb::Price::CumulativeGroupedBulk
1640
- )
1641
- )
1642
- end
1589
+ sig { returns(Orb::Price::Variants) }
1643
1590
  attr_accessor :price
1644
1591
 
1645
1592
  # The start date of the price interval. This is the date that Orb starts billing
@@ -1759,37 +1706,7 @@ module Orb
1759
1706
  Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition
1760
1707
  ]
1761
1708
  ),
1762
- price:
1763
- T.any(
1764
- Orb::Price::Unit,
1765
- Orb::Price::Package,
1766
- Orb::Price::Matrix,
1767
- Orb::Price::Tiered,
1768
- Orb::Price::TieredBps,
1769
- Orb::Price::Bps,
1770
- Orb::Price::BulkBps,
1771
- Orb::Price::Bulk,
1772
- Orb::Price::ThresholdTotalAmount,
1773
- Orb::Price::TieredPackage,
1774
- Orb::Price::GroupedTiered,
1775
- Orb::Price::TieredWithMinimum,
1776
- Orb::Price::TieredPackageWithMinimum,
1777
- Orb::Price::PackageWithAllocation,
1778
- Orb::Price::UnitWithPercent,
1779
- Orb::Price::MatrixWithAllocation,
1780
- Orb::Price::TieredWithProration,
1781
- Orb::Price::UnitWithProration,
1782
- Orb::Price::GroupedAllocation,
1783
- Orb::Price::GroupedWithProratedMinimum,
1784
- Orb::Price::GroupedWithMeteredMinimum,
1785
- Orb::Price::MatrixWithDisplayName,
1786
- Orb::Price::BulkWithProration,
1787
- Orb::Price::GroupedTieredPackage,
1788
- Orb::Price::MaxGroupTieredPackage,
1789
- Orb::Price::ScalableMatrixWithUnitPricing,
1790
- Orb::Price::ScalableMatrixWithTieredPricing,
1791
- Orb::Price::CumulativeGroupedBulk
1792
- ),
1709
+ price: Orb::Price::Variants,
1793
1710
  start_date: Time,
1794
1711
  usage_customer_ids: T.nilable(T::Array[String])
1795
1712
  }