orb-billing 0.3.1 → 0.3.2

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 (572) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +3 -3
  4. data/lib/orb/file_part.rb +2 -2
  5. data/lib/orb/internal/type/enum.rb +3 -3
  6. data/lib/orb/internal/type/request_parameters.rb +4 -4
  7. data/lib/orb/internal/type/union.rb +4 -4
  8. data/lib/orb/internal/util.rb +1 -1
  9. data/lib/orb/models/alert.rb +29 -32
  10. data/lib/orb/models/alert_create_for_customer_params.rb +7 -8
  11. data/lib/orb/models/alert_create_for_external_customer_params.rb +7 -8
  12. data/lib/orb/models/alert_create_for_subscription_params.rb +7 -8
  13. data/lib/orb/models/alert_list_params.rb +0 -1
  14. data/lib/orb/models/alert_update_params.rb +4 -5
  15. data/lib/orb/models/amount_discount.rb +6 -7
  16. data/lib/orb/models/billable_metric.rb +9 -11
  17. data/lib/orb/models/coupon.rb +9 -12
  18. data/lib/orb/models/coupon_create_params.rb +6 -8
  19. data/lib/orb/models/coupon_list_params.rb +0 -2
  20. data/lib/orb/models/coupons/subscription_list_params.rb +0 -1
  21. data/lib/orb/models/credit_note.rb +48 -46
  22. data/lib/orb/models/credit_note_create_params.rb +6 -6
  23. data/lib/orb/models/credit_note_list_params.rb +0 -1
  24. data/lib/orb/models/customer.rb +54 -61
  25. data/lib/orb/models/customer_create_params.rb +41 -53
  26. data/lib/orb/models/customer_list_params.rb +0 -1
  27. data/lib/orb/models/customer_update_by_external_id_params.rb +41 -53
  28. data/lib/orb/models/customer_update_params.rb +41 -51
  29. data/lib/orb/models/customers/balance_transaction_create_params.rb +3 -3
  30. data/lib/orb/models/customers/balance_transaction_create_response.rb +0 -2
  31. data/lib/orb/models/customers/balance_transaction_list_params.rb +0 -1
  32. data/lib/orb/models/customers/balance_transaction_list_response.rb +0 -2
  33. data/lib/orb/models/customers/cost_list_by_external_id_params.rb +3 -4
  34. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +3 -3
  35. data/lib/orb/models/customers/cost_list_params.rb +3 -4
  36. data/lib/orb/models/customers/cost_list_response.rb +3 -3
  37. data/lib/orb/models/customers/credit_list_by_external_id_params.rb +0 -2
  38. data/lib/orb/models/customers/credit_list_params.rb +0 -2
  39. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +12 -21
  40. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +0 -7
  41. data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +11 -22
  42. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +0 -7
  43. data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +6 -7
  44. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +0 -7
  45. data/lib/orb/models/customers/credits/ledger_list_params.rb +8 -9
  46. data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -7
  47. data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +10 -15
  48. data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +0 -6
  49. data/lib/orb/models/customers/credits/top_up_create_params.rb +7 -15
  50. data/lib/orb/models/customers/credits/top_up_create_response.rb +0 -6
  51. data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +0 -1
  52. data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +0 -6
  53. data/lib/orb/models/customers/credits/top_up_list_params.rb +0 -1
  54. data/lib/orb/models/customers/credits/top_up_list_response.rb +0 -6
  55. data/lib/orb/models/dimensional_price_group.rb +1 -3
  56. data/lib/orb/models/dimensional_price_group_create_params.rb +0 -1
  57. data/lib/orb/models/dimensional_price_group_list_params.rb +0 -1
  58. data/lib/orb/models/dimensional_price_groups.rb +6 -6
  59. data/lib/orb/models/discount.rb +5 -5
  60. data/lib/orb/models/evaluate_price_group.rb +1 -1
  61. data/lib/orb/models/event_ingest_params.rb +4 -9
  62. data/lib/orb/models/event_ingest_response.rb +0 -3
  63. data/lib/orb/models/event_search_params.rb +0 -3
  64. data/lib/orb/models/event_search_response.rb +0 -4
  65. data/lib/orb/models/event_update_params.rb +0 -3
  66. data/lib/orb/models/events/backfill_close_response.rb +0 -4
  67. data/lib/orb/models/events/backfill_create_params.rb +0 -7
  68. data/lib/orb/models/events/backfill_create_response.rb +0 -4
  69. data/lib/orb/models/events/backfill_fetch_response.rb +0 -4
  70. data/lib/orb/models/events/backfill_list_params.rb +0 -1
  71. data/lib/orb/models/events/backfill_list_response.rb +0 -4
  72. data/lib/orb/models/events/backfill_revert_response.rb +0 -4
  73. data/lib/orb/models/events/event_volumes.rb +3 -3
  74. data/lib/orb/models/events/volume_list_params.rb +0 -3
  75. data/lib/orb/models/invoice.rb +157 -202
  76. data/lib/orb/models/invoice_create_params.rb +14 -21
  77. data/lib/orb/models/invoice_fetch_upcoming_response.rb +9 -54
  78. data/lib/orb/models/invoice_issue_params.rb +0 -1
  79. data/lib/orb/models/invoice_level_discount.rb +4 -4
  80. data/lib/orb/models/invoice_line_item_create_params.rb +0 -1
  81. data/lib/orb/models/invoice_line_item_create_response.rb +6 -26
  82. data/lib/orb/models/invoice_list_params.rb +6 -10
  83. data/lib/orb/models/invoice_update_params.rb +0 -1
  84. data/lib/orb/models/item.rb +7 -8
  85. data/lib/orb/models/item_list_params.rb +0 -1
  86. data/lib/orb/models/item_update_params.rb +7 -7
  87. data/lib/orb/models/metric_create_params.rb +0 -1
  88. data/lib/orb/models/metric_list_params.rb +0 -1
  89. data/lib/orb/models/metric_update_params.rb +0 -1
  90. data/lib/orb/models/percentage_discount.rb +6 -8
  91. data/lib/orb/models/plan.rb +78 -103
  92. data/lib/orb/models/plan_create_params.rb +727 -800
  93. data/lib/orb/models/plan_list_params.rb +3 -4
  94. data/lib/orb/models/plan_update_params.rb +0 -2
  95. data/lib/orb/models/plans/external_plan_id_update_params.rb +0 -2
  96. data/lib/orb/models/price.rb +1671 -1724
  97. data/lib/orb/models/price_create_params.rb +75 -84
  98. data/lib/orb/models/price_evaluate_params.rb +0 -2
  99. data/lib/orb/models/price_evaluate_response.rb +3 -3
  100. data/lib/orb/models/price_list_params.rb +0 -1
  101. data/lib/orb/models/price_update_params.rb +0 -1
  102. data/lib/orb/models/prices/external_price_id_update_params.rb +0 -1
  103. data/lib/orb/models/subscription.rb +86 -122
  104. data/lib/orb/models/subscription_cancel_params.rb +3 -5
  105. data/lib/orb/models/subscription_cancel_response.rb +21 -57
  106. data/lib/orb/models/subscription_change_apply_response.rb +21 -58
  107. data/lib/orb/models/subscription_change_cancel_response.rb +21 -58
  108. data/lib/orb/models/subscription_change_retrieve_response.rb +21 -58
  109. data/lib/orb/models/subscription_create_params.rb +1865 -1815
  110. data/lib/orb/models/subscription_create_response.rb +21 -57
  111. data/lib/orb/models/subscription_fetch_costs_params.rb +3 -4
  112. data/lib/orb/models/subscription_fetch_costs_response.rb +3 -3
  113. data/lib/orb/models/subscription_fetch_schedule_params.rb +0 -1
  114. data/lib/orb/models/subscription_fetch_schedule_response.rb +0 -1
  115. data/lib/orb/models/subscription_fetch_usage_params.rb +6 -8
  116. data/lib/orb/models/subscription_list_params.rb +3 -4
  117. data/lib/orb/models/subscription_price_intervals_params.rb +1105 -1017
  118. data/lib/orb/models/subscription_price_intervals_response.rb +21 -57
  119. data/lib/orb/models/subscription_schedule_plan_change_params.rb +1906 -1791
  120. data/lib/orb/models/subscription_schedule_plan_change_response.rb +21 -57
  121. data/lib/orb/models/subscription_trigger_phase_params.rb +0 -2
  122. data/lib/orb/models/subscription_trigger_phase_response.rb +21 -57
  123. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +21 -57
  124. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +21 -57
  125. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +21 -57
  126. data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +3 -6
  127. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +21 -57
  128. data/lib/orb/models/subscription_update_params.rb +0 -5
  129. data/lib/orb/models/subscription_update_trial_params.rb +4 -6
  130. data/lib/orb/models/subscription_update_trial_response.rb +21 -57
  131. data/lib/orb/models/subscription_usage.rb +46 -39
  132. data/lib/orb/models/subscriptions.rb +6 -6
  133. data/lib/orb/models/trial_discount.rb +6 -7
  134. data/lib/orb/models/usage_discount.rb +6 -8
  135. data/lib/orb/resources/alerts.rb +30 -31
  136. data/lib/orb/resources/coupons/subscriptions.rb +3 -4
  137. data/lib/orb/resources/coupons.rb +11 -21
  138. data/lib/orb/resources/credit_notes.rb +10 -11
  139. data/lib/orb/resources/customers/balance_transactions.rb +3 -4
  140. data/lib/orb/resources/customers/costs.rb +4 -6
  141. data/lib/orb/resources/customers/credits/ledger.rb +14 -33
  142. data/lib/orb/resources/customers/credits/top_ups.rb +10 -20
  143. data/lib/orb/resources/customers/credits.rb +2 -6
  144. data/lib/orb/resources/customers.rb +40 -67
  145. data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +2 -2
  146. data/lib/orb/resources/dimensional_price_groups.rb +8 -10
  147. data/lib/orb/resources/events/backfills.rb +2 -10
  148. data/lib/orb/resources/events/volume.rb +3 -6
  149. data/lib/orb/resources/events.rb +4 -12
  150. data/lib/orb/resources/invoice_line_items.rb +1 -2
  151. data/lib/orb/resources/invoices.rb +26 -43
  152. data/lib/orb/resources/items.rb +12 -13
  153. data/lib/orb/resources/metrics.rb +11 -14
  154. data/lib/orb/resources/plans/external_plan_id.rb +5 -7
  155. data/lib/orb/resources/plans.rb +14 -23
  156. data/lib/orb/resources/prices/external_price_id.rb +5 -6
  157. data/lib/orb/resources/prices.rb +25 -35
  158. data/lib/orb/resources/subscription_changes.rb +1 -1
  159. data/lib/orb/resources/subscriptions.rb +49 -107
  160. data/lib/orb/version.rb +1 -1
  161. data/lib/orb.rb +1 -0
  162. data/rbi/orb/client.rbi +5 -4
  163. data/rbi/orb/errors.rbi +59 -28
  164. data/rbi/orb/file_part.rbi +9 -6
  165. data/rbi/orb/internal/page.rbi +19 -6
  166. data/rbi/orb/internal/transport/base_client.rbi +131 -73
  167. data/rbi/orb/internal/transport/pooled_net_requester.rbi +25 -12
  168. data/rbi/orb/internal/type/array_of.rbi +42 -34
  169. data/rbi/orb/internal/type/base_model.rbi +124 -65
  170. data/rbi/orb/internal/type/base_page.rbi +11 -7
  171. data/rbi/orb/internal/type/boolean.rbi +16 -10
  172. data/rbi/orb/internal/type/converter.rbi +66 -31
  173. data/rbi/orb/internal/type/enum.rbi +27 -15
  174. data/rbi/orb/internal/type/file_input.rbi +12 -10
  175. data/rbi/orb/internal/type/hash_of.rbi +34 -24
  176. data/rbi/orb/internal/type/request_parameters.rbi +12 -4
  177. data/rbi/orb/internal/type/union.rbi +60 -25
  178. data/rbi/orb/internal/type/unknown.rbi +20 -12
  179. data/rbi/orb/internal/util.rbi +210 -89
  180. data/rbi/orb/models/alert.rbi +107 -70
  181. data/rbi/orb/models/alert_create_for_customer_params.rbi +60 -27
  182. data/rbi/orb/models/alert_create_for_external_customer_params.rbi +68 -29
  183. data/rbi/orb/models/alert_create_for_subscription_params.rbi +53 -26
  184. data/rbi/orb/models/alert_disable_params.rbi +17 -6
  185. data/rbi/orb/models/alert_enable_params.rbi +17 -6
  186. data/rbi/orb/models/alert_list_params.rbi +23 -20
  187. data/rbi/orb/models/alert_retrieve_params.rbi +10 -4
  188. data/rbi/orb/models/alert_update_params.rbi +25 -14
  189. data/rbi/orb/models/amount_discount.rbi +28 -19
  190. data/rbi/orb/models/billable_metric.rbi +33 -26
  191. data/rbi/orb/models/billing_cycle_relative_date.rbi +11 -5
  192. data/rbi/orb/models/coupon.rbi +28 -20
  193. data/rbi/orb/models/coupon_archive_params.rbi +10 -4
  194. data/rbi/orb/models/coupon_create_params.rbi +72 -38
  195. data/rbi/orb/models/coupon_fetch_params.rbi +10 -4
  196. data/rbi/orb/models/coupon_list_params.rbi +18 -15
  197. data/rbi/orb/models/coupons/subscription_list_params.rbi +16 -6
  198. data/rbi/orb/models/credit_note.rbi +293 -158
  199. data/rbi/orb/models/credit_note_create_params.rbi +58 -29
  200. data/rbi/orb/models/credit_note_fetch_params.rbi +10 -4
  201. data/rbi/orb/models/credit_note_list_params.rbi +20 -17
  202. data/rbi/orb/models/customer.rbi +430 -329
  203. data/rbi/orb/models/customer_create_params.rbi +662 -325
  204. data/rbi/orb/models/customer_delete_params.rbi +10 -4
  205. data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +10 -4
  206. data/rbi/orb/models/customer_fetch_params.rbi +10 -4
  207. data/rbi/orb/models/customer_list_params.rbi +20 -17
  208. data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +10 -4
  209. data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +10 -4
  210. data/rbi/orb/models/customer_update_by_external_id_params.rbi +1136 -336
  211. data/rbi/orb/models/customer_update_params.rbi +661 -324
  212. data/rbi/orb/models/customers/balance_transaction_create_params.rbi +50 -21
  213. data/rbi/orb/models/customers/balance_transaction_create_response.rbi +154 -61
  214. data/rbi/orb/models/customers/balance_transaction_list_params.rbi +20 -17
  215. data/rbi/orb/models/customers/balance_transaction_list_response.rbi +164 -59
  216. data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +56 -22
  217. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +162 -124
  218. data/rbi/orb/models/customers/cost_list_params.rbi +45 -22
  219. data/rbi/orb/models/customers/cost_list_response.rbi +154 -123
  220. data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +18 -15
  221. data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +48 -22
  222. data/rbi/orb/models/customers/credit_list_params.rbi +18 -15
  223. data/rbi/orb/models/customers/credit_list_response.rbi +44 -21
  224. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +106 -68
  225. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +643 -434
  226. data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +117 -59
  227. data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +700 -425
  228. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +102 -44
  229. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +681 -432
  230. data/rbi/orb/models/customers/credits/ledger_list_params.rbi +123 -40
  231. data/rbi/orb/models/customers/credits/ledger_list_response.rbi +735 -389
  232. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +74 -53
  233. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +65 -48
  234. data/rbi/orb/models/customers/credits/top_up_create_params.rbi +84 -45
  235. data/rbi/orb/models/customers/credits/top_up_create_response.rbi +83 -43
  236. data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +16 -6
  237. data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +15 -5
  238. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +9 -5
  239. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +70 -49
  240. data/rbi/orb/models/customers/credits/top_up_list_params.rbi +9 -5
  241. data/rbi/orb/models/customers/credits/top_up_list_response.rbi +84 -43
  242. data/rbi/orb/models/dimensional_price_group.rbi +18 -15
  243. data/rbi/orb/models/dimensional_price_group_create_params.rbi +19 -16
  244. data/rbi/orb/models/dimensional_price_group_list_params.rbi +16 -6
  245. data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +10 -4
  246. data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +10 -9
  247. data/rbi/orb/models/dimensional_price_groups.rbi +18 -13
  248. data/rbi/orb/models/discount.rbi +11 -5
  249. data/rbi/orb/models/evaluate_price_group.rbi +28 -12
  250. data/rbi/orb/models/event_deprecate_params.rbi +10 -4
  251. data/rbi/orb/models/event_deprecate_response.rbi +8 -3
  252. data/rbi/orb/models/event_ingest_params.rbi +37 -31
  253. data/rbi/orb/models/event_ingest_response.rbi +63 -23
  254. data/rbi/orb/models/event_search_params.rbi +17 -14
  255. data/rbi/orb/models/event_search_response.rbi +33 -21
  256. data/rbi/orb/models/event_update_params.rbi +19 -16
  257. data/rbi/orb/models/event_update_response.rbi +8 -3
  258. data/rbi/orb/models/events/backfill_close_params.rbi +10 -9
  259. data/rbi/orb/models/events/backfill_close_response.rbi +64 -29
  260. data/rbi/orb/models/events/backfill_create_params.rbi +21 -18
  261. data/rbi/orb/models/events/backfill_create_response.rbi +63 -29
  262. data/rbi/orb/models/events/backfill_fetch_params.rbi +10 -9
  263. data/rbi/orb/models/events/backfill_fetch_response.rbi +64 -29
  264. data/rbi/orb/models/events/backfill_list_params.rbi +16 -6
  265. data/rbi/orb/models/events/backfill_list_response.rbi +62 -28
  266. data/rbi/orb/models/events/backfill_revert_params.rbi +10 -9
  267. data/rbi/orb/models/events/backfill_revert_response.rbi +63 -29
  268. data/rbi/orb/models/events/event_volumes.rbi +32 -10
  269. data/rbi/orb/models/events/volume_list_params.rbi +18 -15
  270. data/rbi/orb/models/invoice.rbi +1286 -805
  271. data/rbi/orb/models/invoice_create_params.rbi +97 -69
  272. data/rbi/orb/models/invoice_fetch_params.rbi +10 -4
  273. data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +15 -5
  274. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +1991 -861
  275. data/rbi/orb/models/invoice_issue_params.rbi +16 -5
  276. data/rbi/orb/models/invoice_level_discount.rbi +11 -4
  277. data/rbi/orb/models/invoice_line_item_create_params.rbi +20 -17
  278. data/rbi/orb/models/invoice_line_item_create_response.rbi +573 -376
  279. data/rbi/orb/models/invoice_list_params.rbi +67 -47
  280. data/rbi/orb/models/invoice_mark_paid_params.rbi +17 -14
  281. data/rbi/orb/models/invoice_pay_params.rbi +10 -4
  282. data/rbi/orb/models/invoice_update_params.rbi +15 -10
  283. data/rbi/orb/models/invoice_void_params.rbi +10 -4
  284. data/rbi/orb/models/item.rbi +87 -39
  285. data/rbi/orb/models/item_create_params.rbi +14 -5
  286. data/rbi/orb/models/item_fetch_params.rbi +10 -4
  287. data/rbi/orb/models/item_list_params.rbi +16 -6
  288. data/rbi/orb/models/item_update_params.rbi +79 -39
  289. data/rbi/orb/models/metric_create_params.rbi +19 -16
  290. data/rbi/orb/models/metric_fetch_params.rbi +10 -4
  291. data/rbi/orb/models/metric_list_params.rbi +20 -17
  292. data/rbi/orb/models/metric_update_params.rbi +15 -10
  293. data/rbi/orb/models/pagination_metadata.rbi +16 -4
  294. data/rbi/orb/models/percentage_discount.rbi +32 -19
  295. data/rbi/orb/models/plan.rbi +496 -365
  296. data/rbi/orb/models/plan_create_params.rbi +4785 -2875
  297. data/rbi/orb/models/plan_fetch_params.rbi +10 -4
  298. data/rbi/orb/models/plan_list_params.rbi +34 -27
  299. data/rbi/orb/models/plan_update_params.rbi +16 -13
  300. data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +10 -9
  301. data/rbi/orb/models/plans/external_plan_id_update_params.rbi +16 -13
  302. data/rbi/orb/models/price.rbi +9969 -5024
  303. data/rbi/orb/models/price_create_params.rbi +501 -245
  304. data/rbi/orb/models/price_evaluate_params.rbi +20 -17
  305. data/rbi/orb/models/price_evaluate_response.rbi +11 -6
  306. data/rbi/orb/models/price_fetch_params.rbi +10 -4
  307. data/rbi/orb/models/price_list_params.rbi +16 -6
  308. data/rbi/orb/models/price_update_params.rbi +15 -10
  309. data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +10 -9
  310. data/rbi/orb/models/prices/external_price_id_update_params.rbi +15 -10
  311. data/rbi/orb/models/subscription.rbi +578 -420
  312. data/rbi/orb/models/subscription_cancel_params.rbi +44 -22
  313. data/rbi/orb/models/subscription_cancel_response.rbi +700 -438
  314. data/rbi/orb/models/subscription_change_apply_params.rbi +16 -13
  315. data/rbi/orb/models/subscription_change_apply_response.rbi +784 -504
  316. data/rbi/orb/models/subscription_change_cancel_params.rbi +10 -4
  317. data/rbi/orb/models/subscription_change_cancel_response.rbi +783 -514
  318. data/rbi/orb/models/subscription_change_retrieve_params.rbi +10 -4
  319. data/rbi/orb/models/subscription_change_retrieve_response.rbi +782 -524
  320. data/rbi/orb/models/subscription_create_params.rbi +9021 -6730
  321. data/rbi/orb/models/subscription_create_response.rbi +700 -438
  322. data/rbi/orb/models/subscription_fetch_costs_params.rbi +47 -22
  323. data/rbi/orb/models/subscription_fetch_costs_response.rbi +154 -123
  324. data/rbi/orb/models/subscription_fetch_params.rbi +10 -4
  325. data/rbi/orb/models/subscription_fetch_schedule_params.rbi +20 -17
  326. data/rbi/orb/models/subscription_fetch_schedule_response.rbi +33 -19
  327. data/rbi/orb/models/subscription_fetch_usage_params.rbi +81 -34
  328. data/rbi/orb/models/subscription_list_params.rbi +39 -28
  329. data/rbi/orb/models/subscription_price_intervals_params.rbi +5181 -3822
  330. data/rbi/orb/models/subscription_price_intervals_response.rbi +720 -453
  331. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +8602 -6910
  332. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +718 -467
  333. data/rbi/orb/models/subscription_trigger_phase_params.rbi +16 -13
  334. data/rbi/orb/models/subscription_trigger_phase_response.rbi +712 -448
  335. data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +10 -4
  336. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +719 -467
  337. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +16 -5
  338. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +693 -502
  339. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +10 -4
  340. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +708 -497
  341. data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +57 -26
  342. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +719 -467
  343. data/rbi/orb/models/subscription_update_params.rbi +19 -16
  344. data/rbi/orb/models/subscription_update_trial_params.rbi +57 -19
  345. data/rbi/orb/models/subscription_update_trial_response.rbi +712 -447
  346. data/rbi/orb/models/subscription_usage.rbi +271 -121
  347. data/rbi/orb/models/subscriptions.rbi +18 -11
  348. data/rbi/orb/models/top_level_ping_params.rbi +10 -4
  349. data/rbi/orb/models/top_level_ping_response.rbi +7 -3
  350. data/rbi/orb/models/trial_discount.rbi +29 -20
  351. data/rbi/orb/models/usage_discount.rbi +28 -19
  352. data/rbi/orb/models.rbi +22 -11
  353. data/rbi/orb/request_options.rbi +12 -6
  354. data/rbi/orb/resources/alerts.rbi +61 -40
  355. data/rbi/orb/resources/coupons/subscriptions.rbi +7 -5
  356. data/rbi/orb/resources/coupons.rbi +33 -18
  357. data/rbi/orb/resources/credit_notes.rbi +22 -13
  358. data/rbi/orb/resources/customers/balance_transactions.rbi +17 -9
  359. data/rbi/orb/resources/customers/costs.rbi +18 -11
  360. data/rbi/orb/resources/customers/credits/ledger.rbi +98 -74
  361. data/rbi/orb/resources/customers/credits/top_ups.rbi +61 -25
  362. data/rbi/orb/resources/customers/credits.rbi +16 -7
  363. data/rbi/orb/resources/customers.rbi +137 -72
  364. data/rbi/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +8 -4
  365. data/rbi/orb/resources/dimensional_price_groups.rbi +26 -12
  366. data/rbi/orb/resources/events/backfills.rbi +35 -17
  367. data/rbi/orb/resources/events/volume.rbi +7 -5
  368. data/rbi/orb/resources/events.rbi +26 -16
  369. data/rbi/orb/resources/invoice_line_items.rbi +7 -5
  370. data/rbi/orb/resources/invoices.rbi +72 -41
  371. data/rbi/orb/resources/items.rbi +40 -13
  372. data/rbi/orb/resources/metrics.rbi +25 -15
  373. data/rbi/orb/resources/plans/external_plan_id.rbi +15 -7
  374. data/rbi/orb/resources/plans.rbi +57 -47
  375. data/rbi/orb/resources/prices/external_price_id.rbi +73 -68
  376. data/rbi/orb/resources/prices.rbi +176 -156
  377. data/rbi/orb/resources/subscription_changes.rbi +19 -11
  378. data/rbi/orb/resources/subscriptions.rbi +200 -114
  379. data/rbi/orb/resources/top_level.rbi +9 -3
  380. data/sig/orb/internal/page.rbs +0 -2
  381. data/sig/orb/internal/type/request_parameters.rbs +3 -1
  382. data/sig/orb/models/alert.rbs +19 -31
  383. data/sig/orb/models/alert_create_for_customer_params.rbs +3 -7
  384. data/sig/orb/models/alert_create_for_external_customer_params.rbs +3 -7
  385. data/sig/orb/models/alert_create_for_subscription_params.rbs +3 -7
  386. data/sig/orb/models/alert_disable_params.rbs +0 -2
  387. data/sig/orb/models/alert_enable_params.rbs +0 -2
  388. data/sig/orb/models/alert_list_params.rbs +0 -2
  389. data/sig/orb/models/alert_retrieve_params.rbs +0 -2
  390. data/sig/orb/models/alert_update_params.rbs +3 -7
  391. data/sig/orb/models/amount_discount.rbs +4 -6
  392. data/sig/orb/models/billable_metric.rbs +7 -9
  393. data/sig/orb/models/coupon.rbs +5 -8
  394. data/sig/orb/models/coupon_archive_params.rbs +0 -2
  395. data/sig/orb/models/coupon_create_params.rbs +3 -9
  396. data/sig/orb/models/coupon_fetch_params.rbs +0 -2
  397. data/sig/orb/models/coupon_list_params.rbs +0 -2
  398. data/sig/orb/models/coupons/subscription_list_params.rbs +0 -2
  399. data/sig/orb/models/credit_note.rbs +48 -66
  400. data/sig/orb/models/credit_note_create_params.rbs +3 -7
  401. data/sig/orb/models/credit_note_fetch_params.rbs +0 -2
  402. data/sig/orb/models/credit_note_list_params.rbs +0 -2
  403. data/sig/orb/models/customer.rbs +43 -63
  404. data/sig/orb/models/customer_create_params.rbs +32 -52
  405. data/sig/orb/models/customer_delete_params.rbs +0 -2
  406. data/sig/orb/models/customer_fetch_by_external_id_params.rbs +0 -2
  407. data/sig/orb/models/customer_fetch_params.rbs +0 -2
  408. data/sig/orb/models/customer_list_params.rbs +0 -2
  409. data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +0 -2
  410. data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +0 -2
  411. data/sig/orb/models/customer_update_by_external_id_params.rbs +32 -52
  412. data/sig/orb/models/customer_update_params.rbs +32 -52
  413. data/sig/orb/models/customers/balance_transaction_create_params.rbs +0 -2
  414. data/sig/orb/models/customers/balance_transaction_create_response.rbs +0 -6
  415. data/sig/orb/models/customers/balance_transaction_list_params.rbs +0 -2
  416. data/sig/orb/models/customers/balance_transaction_list_response.rbs +0 -6
  417. data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +0 -2
  418. data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +0 -6
  419. data/sig/orb/models/customers/cost_list_params.rbs +0 -2
  420. data/sig/orb/models/customers/cost_list_response.rbs +0 -6
  421. data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +0 -2
  422. data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +0 -2
  423. data/sig/orb/models/customers/credit_list_params.rbs +0 -2
  424. data/sig/orb/models/customers/credit_list_response.rbs +0 -2
  425. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +3 -7
  426. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +1 -43
  427. data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +3 -7
  428. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +1 -43
  429. data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +0 -2
  430. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +1 -43
  431. data/sig/orb/models/customers/credits/ledger_list_params.rbs +0 -2
  432. data/sig/orb/models/customers/credits/ledger_list_response.rbs +1 -43
  433. data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +3 -7
  434. data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +0 -4
  435. data/sig/orb/models/customers/credits/top_up_create_params.rbs +3 -7
  436. data/sig/orb/models/customers/credits/top_up_create_response.rbs +0 -4
  437. data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +0 -2
  438. data/sig/orb/models/customers/credits/top_up_delete_params.rbs +0 -2
  439. data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +0 -2
  440. data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +0 -4
  441. data/sig/orb/models/customers/credits/top_up_list_params.rbs +0 -2
  442. data/sig/orb/models/customers/credits/top_up_list_response.rbs +0 -4
  443. data/sig/orb/models/dimensional_price_group.rbs +0 -2
  444. data/sig/orb/models/dimensional_price_group_create_params.rbs +0 -2
  445. data/sig/orb/models/dimensional_price_group_list_params.rbs +0 -2
  446. data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +0 -2
  447. data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +0 -2
  448. data/sig/orb/models/dimensional_price_groups.rbs +6 -8
  449. data/sig/orb/models/discount.rbs +5 -5
  450. data/sig/orb/models/evaluate_price_group.rbs +4 -6
  451. data/sig/orb/models/event_deprecate_params.rbs +0 -2
  452. data/sig/orb/models/event_deprecate_response.rbs +0 -2
  453. data/sig/orb/models/event_ingest_params.rbs +3 -7
  454. data/sig/orb/models/event_ingest_response.rbs +0 -6
  455. data/sig/orb/models/event_search_params.rbs +0 -2
  456. data/sig/orb/models/event_search_response.rbs +0 -4
  457. data/sig/orb/models/event_update_params.rbs +0 -2
  458. data/sig/orb/models/event_update_response.rbs +0 -2
  459. data/sig/orb/models/events/backfill_close_params.rbs +0 -2
  460. data/sig/orb/models/events/backfill_close_response.rbs +0 -2
  461. data/sig/orb/models/events/backfill_create_params.rbs +0 -2
  462. data/sig/orb/models/events/backfill_create_response.rbs +0 -2
  463. data/sig/orb/models/events/backfill_fetch_params.rbs +0 -2
  464. data/sig/orb/models/events/backfill_fetch_response.rbs +0 -2
  465. data/sig/orb/models/events/backfill_list_params.rbs +0 -2
  466. data/sig/orb/models/events/backfill_list_response.rbs +0 -2
  467. data/sig/orb/models/events/backfill_revert_params.rbs +0 -2
  468. data/sig/orb/models/events/backfill_revert_response.rbs +0 -2
  469. data/sig/orb/models/events/event_volumes.rbs +3 -10
  470. data/sig/orb/models/events/volume_list_params.rbs +0 -2
  471. data/sig/orb/models/invoice.rbs +110 -172
  472. data/sig/orb/models/invoice_create_params.rbs +10 -16
  473. data/sig/orb/models/invoice_fetch_params.rbs +0 -2
  474. data/sig/orb/models/invoice_fetch_upcoming_params.rbs +0 -2
  475. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +2 -64
  476. data/sig/orb/models/invoice_issue_params.rbs +0 -2
  477. data/sig/orb/models/invoice_level_discount.rbs +2 -4
  478. data/sig/orb/models/invoice_line_item_create_params.rbs +0 -2
  479. data/sig/orb/models/invoice_line_item_create_response.rbs +2 -36
  480. data/sig/orb/models/invoice_list_params.rbs +4 -6
  481. data/sig/orb/models/invoice_mark_paid_params.rbs +0 -2
  482. data/sig/orb/models/invoice_pay_params.rbs +0 -2
  483. data/sig/orb/models/invoice_update_params.rbs +0 -2
  484. data/sig/orb/models/invoice_void_params.rbs +0 -2
  485. data/sig/orb/models/item.rbs +7 -11
  486. data/sig/orb/models/item_create_params.rbs +0 -2
  487. data/sig/orb/models/item_fetch_params.rbs +0 -2
  488. data/sig/orb/models/item_list_params.rbs +0 -2
  489. data/sig/orb/models/item_update_params.rbs +7 -11
  490. data/sig/orb/models/metric_create_params.rbs +0 -2
  491. data/sig/orb/models/metric_fetch_params.rbs +0 -2
  492. data/sig/orb/models/metric_list_params.rbs +0 -2
  493. data/sig/orb/models/metric_update_params.rbs +0 -2
  494. data/sig/orb/models/pagination_metadata.rbs +0 -2
  495. data/sig/orb/models/percentage_discount.rbs +4 -6
  496. data/sig/orb/models/plan.rbs +45 -73
  497. data/sig/orb/models/plan_create_params.rbs +518 -696
  498. data/sig/orb/models/plan_fetch_params.rbs +0 -2
  499. data/sig/orb/models/plan_list_params.rbs +0 -2
  500. data/sig/orb/models/plan_update_params.rbs +0 -2
  501. data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +0 -2
  502. data/sig/orb/models/plans/external_plan_id_update_params.rbs +0 -2
  503. data/sig/orb/models/price.rbs +1194 -1730
  504. data/sig/orb/models/price_create_params.rbs +59 -97
  505. data/sig/orb/models/price_evaluate_params.rbs +0 -2
  506. data/sig/orb/models/price_evaluate_response.rbs +3 -6
  507. data/sig/orb/models/price_fetch_params.rbs +0 -2
  508. data/sig/orb/models/price_list_params.rbs +0 -2
  509. data/sig/orb/models/price_update_params.rbs +0 -2
  510. data/sig/orb/models/prices/external_price_id_fetch_params.rbs +0 -2
  511. data/sig/orb/models/prices/external_price_id_update_params.rbs +0 -2
  512. data/sig/orb/models/subscription.rbs +56 -94
  513. data/sig/orb/models/subscription_cancel_params.rbs +0 -2
  514. data/sig/orb/models/subscription_cancel_response.rbs +20 -60
  515. data/sig/orb/models/subscription_change_apply_params.rbs +0 -2
  516. data/sig/orb/models/subscription_change_apply_response.rbs +20 -62
  517. data/sig/orb/models/subscription_change_cancel_params.rbs +0 -2
  518. data/sig/orb/models/subscription_change_cancel_response.rbs +20 -62
  519. data/sig/orb/models/subscription_change_retrieve_params.rbs +0 -2
  520. data/sig/orb/models/subscription_change_retrieve_response.rbs +20 -62
  521. data/sig/orb/models/subscription_create_params.rbs +1103 -1499
  522. data/sig/orb/models/subscription_create_response.rbs +20 -60
  523. data/sig/orb/models/subscription_fetch_costs_params.rbs +0 -2
  524. data/sig/orb/models/subscription_fetch_costs_response.rbs +0 -6
  525. data/sig/orb/models/subscription_fetch_params.rbs +0 -2
  526. data/sig/orb/models/subscription_fetch_schedule_params.rbs +0 -2
  527. data/sig/orb/models/subscription_fetch_schedule_response.rbs +0 -4
  528. data/sig/orb/models/subscription_fetch_usage_params.rbs +0 -2
  529. data/sig/orb/models/subscription_list_params.rbs +0 -2
  530. data/sig/orb/models/subscription_price_intervals_params.rbs +666 -896
  531. data/sig/orb/models/subscription_price_intervals_response.rbs +20 -60
  532. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1103 -1499
  533. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +20 -60
  534. data/sig/orb/models/subscription_trigger_phase_params.rbs +0 -2
  535. data/sig/orb/models/subscription_trigger_phase_response.rbs +20 -60
  536. data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +0 -2
  537. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +20 -60
  538. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +0 -2
  539. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +20 -60
  540. data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +0 -2
  541. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +20 -60
  542. data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +0 -2
  543. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +20 -60
  544. data/sig/orb/models/subscription_update_params.rbs +0 -2
  545. data/sig/orb/models/subscription_update_trial_params.rbs +1 -3
  546. data/sig/orb/models/subscription_update_trial_response.rbs +20 -60
  547. data/sig/orb/models/subscription_usage.rbs +35 -53
  548. data/sig/orb/models/subscriptions.rbs +6 -8
  549. data/sig/orb/models/top_level_ping_params.rbs +0 -2
  550. data/sig/orb/models/top_level_ping_response.rbs +0 -2
  551. data/sig/orb/models/trial_discount.rbs +4 -6
  552. data/sig/orb/models/usage_discount.rbs +4 -6
  553. data/sig/orb/request_options.rbs +1 -1
  554. data/sig/orb/resources/alerts.rbs +12 -12
  555. data/sig/orb/resources/coupons/subscriptions.rbs +1 -1
  556. data/sig/orb/resources/coupons.rbs +4 -4
  557. data/sig/orb/resources/credit_notes.rbs +4 -4
  558. data/sig/orb/resources/customers/credits/ledger.rbs +2 -2
  559. data/sig/orb/resources/customers/credits/top_ups.rbs +2 -2
  560. data/sig/orb/resources/customers.rbs +24 -24
  561. data/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs +1 -1
  562. data/sig/orb/resources/dimensional_price_groups.rbs +3 -3
  563. data/sig/orb/resources/events/volume.rbs +1 -1
  564. data/sig/orb/resources/events.rbs +1 -1
  565. data/sig/orb/resources/invoices.rbs +10 -10
  566. data/sig/orb/resources/items.rbs +5 -5
  567. data/sig/orb/resources/metrics.rbs +4 -4
  568. data/sig/orb/resources/plans/external_plan_id.rbs +2 -2
  569. data/sig/orb/resources/plans.rbs +5 -5
  570. data/sig/orb/resources/prices.rbs +11 -11
  571. data/sig/orb/resources/subscriptions.rbs +21 -21
  572. metadata +2 -2
@@ -3,6 +3,8 @@
3
3
  module Orb
4
4
  module Models
5
5
  class SubscriptionUpdateFixedFeeQuantityResponse < Orb::Internal::Type::BaseModel
6
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
7
+
6
8
  sig { returns(String) }
7
9
  attr_accessor :id
8
10
 
@@ -13,7 +15,13 @@ module Orb
13
15
 
14
16
  # The adjustment intervals for this subscription sorted by the start_date of the
15
17
  # adjustment interval.
16
- sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]) }
18
+ sig do
19
+ returns(
20
+ T::Array[
21
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval
22
+ ]
23
+ )
24
+ end
17
25
  attr_accessor :adjustment_intervals
18
26
 
19
27
  # Determines whether issued invoices for this subscription will automatically be
@@ -22,17 +30,18 @@ module Orb
22
30
  sig { returns(T.nilable(T::Boolean)) }
23
31
  attr_accessor :auto_collection
24
32
 
25
- sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) }
33
+ sig do
34
+ returns(
35
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration
36
+ )
37
+ end
26
38
  attr_reader :billing_cycle_anchor_configuration
27
39
 
28
40
  sig do
29
41
  params(
30
- billing_cycle_anchor_configuration: T.any(
31
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration,
32
- Orb::Internal::AnyHash
33
- )
34
- )
35
- .void
42
+ billing_cycle_anchor_configuration:
43
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration::OrHash
44
+ ).void
36
45
  end
37
46
  attr_writer :billing_cycle_anchor_configuration
38
47
 
@@ -76,10 +85,10 @@ module Orb
76
85
  # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
77
86
  # your account's timezone. See [Timezone localization](/essentials/timezones) for
78
87
  # information on what this timezone parameter influences within Orb.
79
- sig { returns(Orb::Models::Customer) }
88
+ sig { returns(Orb::Customer) }
80
89
  attr_reader :customer
81
90
 
82
- sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void }
91
+ sig { params(customer: Orb::Customer::OrHash).void }
83
92
  attr_writer :customer
84
93
 
85
94
  # Determines the default memo on this subscriptions' invoices. Note that if this
@@ -105,14 +114,26 @@ module Orb
105
114
  sig { returns(T.nilable(Time)) }
106
115
  attr_accessor :end_date
107
116
 
108
- sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule]) }
117
+ sig do
118
+ returns(
119
+ T::Array[
120
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule
121
+ ]
122
+ )
123
+ end
109
124
  attr_accessor :fixed_fee_quantity_schedule
110
125
 
111
126
  sig { returns(T.nilable(String)) }
112
127
  attr_accessor :invoicing_threshold
113
128
 
114
129
  # The maximum intervals for this subscription sorted by the start_date.
115
- sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]) }
130
+ sig do
131
+ returns(
132
+ T::Array[
133
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval
134
+ ]
135
+ )
136
+ end
116
137
  attr_accessor :maximum_intervals
117
138
 
118
139
  # User specified key-value pairs for the resource. If not present, this defaults
@@ -123,7 +144,13 @@ module Orb
123
144
  attr_accessor :metadata
124
145
 
125
146
  # The minimum intervals for this subscription sorted by the start_date.
126
- sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]) }
147
+ sig do
148
+ returns(
149
+ T::Array[
150
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval
151
+ ]
152
+ )
153
+ end
127
154
  attr_accessor :minimum_intervals
128
155
 
129
156
  # Determines the difference between the invoice issue date for subscription
@@ -134,19 +161,22 @@ module Orb
134
161
  attr_accessor :net_terms
135
162
 
136
163
  # A pending subscription change if one exists on this subscription.
137
- sig { returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange)) }
164
+ sig do
165
+ returns(
166
+ T.nilable(
167
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange
168
+ )
169
+ )
170
+ end
138
171
  attr_reader :pending_subscription_change
139
172
 
140
173
  sig do
141
174
  params(
142
- pending_subscription_change: T.nilable(
143
- T.any(
144
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange,
145
- Orb::Internal::AnyHash
175
+ pending_subscription_change:
176
+ T.nilable(
177
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange::OrHash
146
178
  )
147
- )
148
- )
149
- .void
179
+ ).void
150
180
  end
151
181
  attr_writer :pending_subscription_change
152
182
 
@@ -154,26 +184,38 @@ module Orb
154
184
  # subscribed to by a customer. Plans define the billing behavior of the
155
185
  # subscription. You can see more about how to configure prices in the
156
186
  # [Price resource](/reference/price).
157
- sig { returns(Orb::Models::Plan) }
187
+ sig { returns(Orb::Plan) }
158
188
  attr_reader :plan
159
189
 
160
- sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void }
190
+ sig { params(plan: Orb::Plan::OrHash).void }
161
191
  attr_writer :plan
162
192
 
163
193
  # The price intervals for this subscription.
164
- sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]) }
194
+ sig do
195
+ returns(
196
+ T::Array[
197
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval
198
+ ]
199
+ )
200
+ end
165
201
  attr_accessor :price_intervals
166
202
 
167
- sig { returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)) }
203
+ sig do
204
+ returns(
205
+ T.nilable(
206
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon
207
+ )
208
+ )
209
+ end
168
210
  attr_reader :redeemed_coupon
169
211
 
170
212
  sig do
171
213
  params(
172
- redeemed_coupon: T.nilable(
173
- T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon, Orb::Internal::AnyHash)
174
- )
175
- )
176
- .void
214
+ redeemed_coupon:
215
+ T.nilable(
216
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon::OrHash
217
+ )
218
+ ).void
177
219
  end
178
220
  attr_writer :redeemed_coupon
179
221
 
@@ -181,33 +223,47 @@ module Orb
181
223
  sig { returns(Time) }
182
224
  attr_accessor :start_date
183
225
 
184
- sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) }
226
+ sig do
227
+ returns(
228
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol
229
+ )
230
+ end
185
231
  attr_accessor :status
186
232
 
187
- sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo) }
233
+ sig do
234
+ returns(
235
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo
236
+ )
237
+ end
188
238
  attr_reader :trial_info
189
239
 
190
240
  sig do
191
241
  params(
192
- trial_info: T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo, Orb::Internal::AnyHash)
193
- )
194
- .void
242
+ trial_info:
243
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo::OrHash
244
+ ).void
195
245
  end
196
246
  attr_writer :trial_info
197
247
 
198
248
  # The resources that were changed as part of this operation. Only present when
199
249
  # fetched through the subscription changes API or if the
200
250
  # `include_changed_resources` parameter was passed in the request.
201
- sig { returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources)) }
251
+ sig do
252
+ returns(
253
+ T.nilable(
254
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources
255
+ )
256
+ )
257
+ end
202
258
  attr_reader :changed_resources
203
259
 
204
260
  sig do
205
261
  params(
206
- changed_resources: T.nilable(
207
- T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources, Orb::Internal::AnyHash)
208
- )
209
- )
210
- .void
262
+ changed_resources:
263
+ T.nilable(
264
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources::OrHash
265
+ )
266
+ ).void
211
267
  end
212
268
  attr_writer :changed_resources
213
269
 
@@ -215,57 +271,66 @@ module Orb
215
271
  params(
216
272
  id: String,
217
273
  active_plan_phase_order: T.nilable(Integer),
218
- adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval, Orb::Internal::AnyHash)],
274
+ adjustment_intervals:
275
+ T::Array[
276
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::OrHash
277
+ ],
219
278
  auto_collection: T.nilable(T::Boolean),
220
- billing_cycle_anchor_configuration: T.any(
221
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration,
222
- Orb::Internal::AnyHash
223
- ),
279
+ billing_cycle_anchor_configuration:
280
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration::OrHash,
224
281
  billing_cycle_day: Integer,
225
282
  created_at: Time,
226
283
  current_billing_period_end_date: T.nilable(Time),
227
284
  current_billing_period_start_date: T.nilable(Time),
228
- customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash),
285
+ customer: Orb::Customer::OrHash,
229
286
  default_invoice_memo: T.nilable(String),
230
- discount_intervals: T::Array[
231
- T.any(
232
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount,
233
- Orb::Internal::AnyHash,
234
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage,
235
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage
236
- )
237
- ],
287
+ discount_intervals:
288
+ T::Array[
289
+ T.any(
290
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount::OrHash,
291
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage::OrHash,
292
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage::OrHash
293
+ )
294
+ ],
238
295
  end_date: T.nilable(Time),
239
- fixed_fee_quantity_schedule: T::Array[
240
- T.any(
241
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule,
242
- Orb::Internal::AnyHash
243
- )
244
- ],
296
+ fixed_fee_quantity_schedule:
297
+ T::Array[
298
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule::OrHash
299
+ ],
245
300
  invoicing_threshold: T.nilable(String),
246
- maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval, Orb::Internal::AnyHash)],
301
+ maximum_intervals:
302
+ T::Array[
303
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval::OrHash
304
+ ],
247
305
  metadata: T::Hash[Symbol, String],
248
- minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval, Orb::Internal::AnyHash)],
306
+ minimum_intervals:
307
+ T::Array[
308
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval::OrHash
309
+ ],
249
310
  net_terms: Integer,
250
- pending_subscription_change: T.nilable(
251
- T.any(
252
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange,
253
- Orb::Internal::AnyHash
254
- )
255
- ),
256
- plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash),
257
- price_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval, Orb::Internal::AnyHash)],
258
- redeemed_coupon: T.nilable(
259
- T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon, Orb::Internal::AnyHash)
260
- ),
311
+ pending_subscription_change:
312
+ T.nilable(
313
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange::OrHash
314
+ ),
315
+ plan: Orb::Plan::OrHash,
316
+ price_intervals:
317
+ T::Array[
318
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::OrHash
319
+ ],
320
+ redeemed_coupon:
321
+ T.nilable(
322
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon::OrHash
323
+ ),
261
324
  start_date: Time,
262
- status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::OrSymbol,
263
- trial_info: T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo, Orb::Internal::AnyHash),
264
- changed_resources: T.nilable(
265
- T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources, Orb::Internal::AnyHash)
266
- )
267
- )
268
- .returns(T.attached_class)
325
+ status:
326
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::OrSymbol,
327
+ trial_info:
328
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo::OrHash,
329
+ changed_resources:
330
+ T.nilable(
331
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources::OrHash
332
+ )
333
+ ).returns(T.attached_class)
269
334
  end
270
335
  def self.new(
271
336
  id:,
@@ -354,50 +419,82 @@ module Orb
354
419
  # fetched through the subscription changes API or if the
355
420
  # `include_changed_resources` parameter was passed in the request.
356
421
  changed_resources: nil
357
- ); end
422
+ )
423
+ end
424
+
358
425
  sig do
359
- override
360
- .returns(
361
- {
362
- id: String,
363
- active_plan_phase_order: T.nilable(Integer),
364
- adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval],
365
- auto_collection: T.nilable(T::Boolean),
366
- billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration,
367
- billing_cycle_day: Integer,
368
- created_at: Time,
369
- current_billing_period_end_date: T.nilable(Time),
370
- current_billing_period_start_date: T.nilable(Time),
371
- customer: Orb::Models::Customer,
372
- default_invoice_memo: T.nilable(String),
373
- discount_intervals: T::Array[
426
+ override.returns(
427
+ {
428
+ id: String,
429
+ active_plan_phase_order: T.nilable(Integer),
430
+ adjustment_intervals:
431
+ T::Array[
432
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval
433
+ ],
434
+ auto_collection: T.nilable(T::Boolean),
435
+ billing_cycle_anchor_configuration:
436
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration,
437
+ billing_cycle_day: Integer,
438
+ created_at: Time,
439
+ current_billing_period_end_date: T.nilable(Time),
440
+ current_billing_period_start_date: T.nilable(Time),
441
+ customer: Orb::Customer,
442
+ default_invoice_memo: T.nilable(String),
443
+ discount_intervals:
444
+ T::Array[
374
445
  T.any(
375
446
  Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount,
376
447
  Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage,
377
448
  Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage
378
449
  )
379
450
  ],
380
- end_date: T.nilable(Time),
381
- fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule],
382
- invoicing_threshold: T.nilable(String),
383
- maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval],
384
- metadata: T::Hash[Symbol, String],
385
- minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval],
386
- net_terms: Integer,
387
- pending_subscription_change: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange),
388
- plan: Orb::Models::Plan,
389
- price_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval],
390
- redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon),
391
- start_date: Time,
392
- status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol,
393
- trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo,
394
- changed_resources: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources)
395
- }
396
- )
451
+ end_date: T.nilable(Time),
452
+ fixed_fee_quantity_schedule:
453
+ T::Array[
454
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule
455
+ ],
456
+ invoicing_threshold: T.nilable(String),
457
+ maximum_intervals:
458
+ T::Array[
459
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval
460
+ ],
461
+ metadata: T::Hash[Symbol, String],
462
+ minimum_intervals:
463
+ T::Array[
464
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval
465
+ ],
466
+ net_terms: Integer,
467
+ pending_subscription_change:
468
+ T.nilable(
469
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange
470
+ ),
471
+ plan: Orb::Plan,
472
+ price_intervals:
473
+ T::Array[
474
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval
475
+ ],
476
+ redeemed_coupon:
477
+ T.nilable(
478
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon
479
+ ),
480
+ start_date: Time,
481
+ status:
482
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol,
483
+ trial_info:
484
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo,
485
+ changed_resources:
486
+ T.nilable(
487
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources
488
+ )
489
+ }
490
+ )
491
+ end
492
+ def to_hash
397
493
  end
398
- def to_hash; end
399
494
 
400
495
  class AdjustmentInterval < Orb::Internal::Type::BaseModel
496
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
497
+
401
498
  sig { returns(String) }
402
499
  attr_accessor :id
403
500
 
@@ -429,19 +526,18 @@ module Orb
429
526
  sig do
430
527
  params(
431
528
  id: String,
432
- adjustment: T.any(
433
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount,
434
- Orb::Internal::AnyHash,
435
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount,
436
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
437
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum,
438
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum
439
- ),
529
+ adjustment:
530
+ T.any(
531
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash,
532
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash,
533
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash,
534
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum::OrHash,
535
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum::OrHash
536
+ ),
440
537
  applies_to_price_interval_ids: T::Array[String],
441
538
  end_date: T.nilable(Time),
442
539
  start_date: Time
443
- )
444
- .returns(T.attached_class)
540
+ ).returns(T.attached_class)
445
541
  end
446
542
  def self.new(
447
543
  id:,
@@ -452,31 +548,47 @@ module Orb
452
548
  end_date:,
453
549
  # The start date of the adjustment interval.
454
550
  start_date:
455
- ); end
551
+ )
552
+ end
553
+
456
554
  sig do
457
- override
458
- .returns(
459
- {
460
- id: String,
461
- adjustment: T.any(
555
+ override.returns(
556
+ {
557
+ id: String,
558
+ adjustment:
559
+ T.any(
462
560
  Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount,
463
561
  Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount,
464
562
  Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
465
563
  Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum,
466
564
  Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum
467
565
  ),
468
- applies_to_price_interval_ids: T::Array[String],
469
- end_date: T.nilable(Time),
470
- start_date: Time
471
- }
472
- )
566
+ applies_to_price_interval_ids: T::Array[String],
567
+ end_date: T.nilable(Time),
568
+ start_date: Time
569
+ }
570
+ )
571
+ end
572
+ def to_hash
473
573
  end
474
- def to_hash; end
475
574
 
476
575
  module Adjustment
477
576
  extend Orb::Internal::Type::Union
478
577
 
578
+ Variants =
579
+ T.type_alias do
580
+ T.any(
581
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount,
582
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount,
583
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
584
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum,
585
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum
586
+ )
587
+ end
588
+
479
589
  class UsageDiscount < Orb::Internal::Type::BaseModel
590
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
591
+
480
592
  sig { returns(String) }
481
593
  attr_accessor :id
482
594
 
@@ -514,8 +626,7 @@ module Orb
514
626
  reason: T.nilable(String),
515
627
  usage_discount: Float,
516
628
  adjustment_type: Symbol
517
- )
518
- .returns(T.attached_class)
629
+ ).returns(T.attached_class)
519
630
  end
520
631
  def self.new(
521
632
  id:,
@@ -532,25 +643,29 @@ module Orb
532
643
  # to in a given billing period.
533
644
  usage_discount:,
534
645
  adjustment_type: :usage_discount
535
- ); end
646
+ )
647
+ end
648
+
536
649
  sig do
537
- override
538
- .returns(
539
- {
540
- id: String,
541
- adjustment_type: Symbol,
542
- applies_to_price_ids: T::Array[String],
543
- is_invoice_level: T::Boolean,
544
- plan_phase_order: T.nilable(Integer),
545
- reason: T.nilable(String),
546
- usage_discount: Float
547
- }
548
- )
650
+ override.returns(
651
+ {
652
+ id: String,
653
+ adjustment_type: Symbol,
654
+ applies_to_price_ids: T::Array[String],
655
+ is_invoice_level: T::Boolean,
656
+ plan_phase_order: T.nilable(Integer),
657
+ reason: T.nilable(String),
658
+ usage_discount: Float
659
+ }
660
+ )
661
+ end
662
+ def to_hash
549
663
  end
550
- def to_hash; end
551
664
  end
552
665
 
553
666
  class AmountDiscount < Orb::Internal::Type::BaseModel
667
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
668
+
554
669
  sig { returns(String) }
555
670
  attr_accessor :id
556
671
 
@@ -588,8 +703,7 @@ module Orb
588
703
  plan_phase_order: T.nilable(Integer),
589
704
  reason: T.nilable(String),
590
705
  adjustment_type: Symbol
591
- )
592
- .returns(T.attached_class)
706
+ ).returns(T.attached_class)
593
707
  end
594
708
  def self.new(
595
709
  id:,
@@ -606,25 +720,29 @@ module Orb
606
720
  # The reason for the adjustment.
607
721
  reason:,
608
722
  adjustment_type: :amount_discount
609
- ); end
723
+ )
724
+ end
725
+
610
726
  sig do
611
- override
612
- .returns(
613
- {
614
- id: String,
615
- adjustment_type: Symbol,
616
- amount_discount: String,
617
- applies_to_price_ids: T::Array[String],
618
- is_invoice_level: T::Boolean,
619
- plan_phase_order: T.nilable(Integer),
620
- reason: T.nilable(String)
621
- }
622
- )
727
+ override.returns(
728
+ {
729
+ id: String,
730
+ adjustment_type: Symbol,
731
+ amount_discount: String,
732
+ applies_to_price_ids: T::Array[String],
733
+ is_invoice_level: T::Boolean,
734
+ plan_phase_order: T.nilable(Integer),
735
+ reason: T.nilable(String)
736
+ }
737
+ )
738
+ end
739
+ def to_hash
623
740
  end
624
- def to_hash; end
625
741
  end
626
742
 
627
743
  class PercentageDiscount < Orb::Internal::Type::BaseModel
744
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
745
+
628
746
  sig { returns(String) }
629
747
  attr_accessor :id
630
748
 
@@ -662,8 +780,7 @@ module Orb
662
780
  plan_phase_order: T.nilable(Integer),
663
781
  reason: T.nilable(String),
664
782
  adjustment_type: Symbol
665
- )
666
- .returns(T.attached_class)
783
+ ).returns(T.attached_class)
667
784
  end
668
785
  def self.new(
669
786
  id:,
@@ -680,25 +797,29 @@ module Orb
680
797
  # The reason for the adjustment.
681
798
  reason:,
682
799
  adjustment_type: :percentage_discount
683
- ); end
800
+ )
801
+ end
802
+
684
803
  sig do
685
- override
686
- .returns(
687
- {
688
- id: String,
689
- adjustment_type: Symbol,
690
- applies_to_price_ids: T::Array[String],
691
- is_invoice_level: T::Boolean,
692
- percentage_discount: Float,
693
- plan_phase_order: T.nilable(Integer),
694
- reason: T.nilable(String)
695
- }
696
- )
804
+ override.returns(
805
+ {
806
+ id: String,
807
+ adjustment_type: Symbol,
808
+ applies_to_price_ids: T::Array[String],
809
+ is_invoice_level: T::Boolean,
810
+ percentage_discount: Float,
811
+ plan_phase_order: T.nilable(Integer),
812
+ reason: T.nilable(String)
813
+ }
814
+ )
815
+ end
816
+ def to_hash
697
817
  end
698
- def to_hash; end
699
818
  end
700
819
 
701
820
  class Minimum < Orb::Internal::Type::BaseModel
821
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
822
+
702
823
  sig { returns(String) }
703
824
  attr_accessor :id
704
825
 
@@ -741,8 +862,7 @@ module Orb
741
862
  plan_phase_order: T.nilable(Integer),
742
863
  reason: T.nilable(String),
743
864
  adjustment_type: Symbol
744
- )
745
- .returns(T.attached_class)
865
+ ).returns(T.attached_class)
746
866
  end
747
867
  def self.new(
748
868
  id:,
@@ -761,26 +881,30 @@ module Orb
761
881
  # The reason for the adjustment.
762
882
  reason:,
763
883
  adjustment_type: :minimum
764
- ); end
884
+ )
885
+ end
886
+
765
887
  sig do
766
- override
767
- .returns(
768
- {
769
- id: String,
770
- adjustment_type: Symbol,
771
- applies_to_price_ids: T::Array[String],
772
- is_invoice_level: T::Boolean,
773
- item_id: String,
774
- minimum_amount: String,
775
- plan_phase_order: T.nilable(Integer),
776
- reason: T.nilable(String)
777
- }
778
- )
888
+ override.returns(
889
+ {
890
+ id: String,
891
+ adjustment_type: Symbol,
892
+ applies_to_price_ids: T::Array[String],
893
+ is_invoice_level: T::Boolean,
894
+ item_id: String,
895
+ minimum_amount: String,
896
+ plan_phase_order: T.nilable(Integer),
897
+ reason: T.nilable(String)
898
+ }
899
+ )
900
+ end
901
+ def to_hash
779
902
  end
780
- def to_hash; end
781
903
  end
782
904
 
783
905
  class Maximum < Orb::Internal::Type::BaseModel
906
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
907
+
784
908
  sig { returns(String) }
785
909
  attr_accessor :id
786
910
 
@@ -818,8 +942,7 @@ module Orb
818
942
  plan_phase_order: T.nilable(Integer),
819
943
  reason: T.nilable(String),
820
944
  adjustment_type: Symbol
821
- )
822
- .returns(T.attached_class)
945
+ ).returns(T.attached_class)
823
946
  end
824
947
  def self.new(
825
948
  id:,
@@ -836,35 +959,41 @@ module Orb
836
959
  # The reason for the adjustment.
837
960
  reason:,
838
961
  adjustment_type: :maximum
839
- ); end
962
+ )
963
+ end
964
+
840
965
  sig do
841
- override
842
- .returns(
843
- {
844
- id: String,
845
- adjustment_type: Symbol,
846
- applies_to_price_ids: T::Array[String],
847
- is_invoice_level: T::Boolean,
848
- maximum_amount: String,
849
- plan_phase_order: T.nilable(Integer),
850
- reason: T.nilable(String)
851
- }
852
- )
966
+ override.returns(
967
+ {
968
+ id: String,
969
+ adjustment_type: Symbol,
970
+ applies_to_price_ids: T::Array[String],
971
+ is_invoice_level: T::Boolean,
972
+ maximum_amount: String,
973
+ plan_phase_order: T.nilable(Integer),
974
+ reason: T.nilable(String)
975
+ }
976
+ )
977
+ end
978
+ def to_hash
853
979
  end
854
- def to_hash; end
855
980
  end
856
981
 
857
982
  sig do
858
- override
859
- .returns(
860
- [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum]
861
- )
983
+ override.returns(
984
+ T::Array[
985
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Variants
986
+ ]
987
+ )
988
+ end
989
+ def self.variants
862
990
  end
863
- def self.variants; end
864
991
  end
865
992
  end
866
993
 
867
994
  class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel
995
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
996
+
868
997
  # The day of the month on which the billing cycle is anchored. If the maximum
869
998
  # number of days in a month is greater than this value, the last day of the month
870
999
  # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
@@ -884,7 +1013,11 @@ module Orb
884
1013
  attr_accessor :year
885
1014
 
886
1015
  sig do
887
- params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class)
1016
+ params(
1017
+ day: Integer,
1018
+ month: T.nilable(Integer),
1019
+ year: T.nilable(Integer)
1020
+ ).returns(T.attached_class)
888
1021
  end
889
1022
  def self.new(
890
1023
  # The day of the month on which the billing cycle is anchored. If the maximum
@@ -899,15 +1032,37 @@ module Orb
899
1032
  # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
900
1033
  # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
901
1034
  year: nil
902
- ); end
903
- sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) }
904
- def to_hash; end
1035
+ )
1036
+ end
1037
+
1038
+ sig do
1039
+ override.returns(
1040
+ {
1041
+ day: Integer,
1042
+ month: T.nilable(Integer),
1043
+ year: T.nilable(Integer)
1044
+ }
1045
+ )
1046
+ end
1047
+ def to_hash
1048
+ end
905
1049
  end
906
1050
 
907
1051
  module DiscountInterval
908
1052
  extend Orb::Internal::Type::Union
909
1053
 
1054
+ Variants =
1055
+ T.type_alias do
1056
+ T.any(
1057
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount,
1058
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage,
1059
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage
1060
+ )
1061
+ end
1062
+
910
1063
  class Amount < Orb::Internal::Type::BaseModel
1064
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1065
+
911
1066
  # Only available if discount_type is `amount`.
912
1067
  sig { returns(String) }
913
1068
  attr_accessor :amount_discount
@@ -939,8 +1094,7 @@ module Orb
939
1094
  end_date: T.nilable(Time),
940
1095
  start_date: Time,
941
1096
  discount_type: Symbol
942
- )
943
- .returns(T.attached_class)
1097
+ ).returns(T.attached_class)
944
1098
  end
945
1099
  def self.new(
946
1100
  # Only available if discount_type is `amount`.
@@ -954,24 +1108,28 @@ module Orb
954
1108
  # The start date of the discount interval.
955
1109
  start_date:,
956
1110
  discount_type: :amount
957
- ); end
1111
+ )
1112
+ end
1113
+
958
1114
  sig do
959
- override
960
- .returns(
961
- {
962
- amount_discount: String,
963
- applies_to_price_ids: T::Array[String],
964
- applies_to_price_interval_ids: T::Array[String],
965
- discount_type: Symbol,
966
- end_date: T.nilable(Time),
967
- start_date: Time
968
- }
969
- )
1115
+ override.returns(
1116
+ {
1117
+ amount_discount: String,
1118
+ applies_to_price_ids: T::Array[String],
1119
+ applies_to_price_interval_ids: T::Array[String],
1120
+ discount_type: Symbol,
1121
+ end_date: T.nilable(Time),
1122
+ start_date: Time
1123
+ }
1124
+ )
1125
+ end
1126
+ def to_hash
970
1127
  end
971
- def to_hash; end
972
1128
  end
973
1129
 
974
1130
  class Percentage < Orb::Internal::Type::BaseModel
1131
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1132
+
975
1133
  # The price ids that this discount interval applies to.
976
1134
  sig { returns(T::Array[String]) }
977
1135
  attr_accessor :applies_to_price_ids
@@ -1004,8 +1162,7 @@ module Orb
1004
1162
  percentage_discount: Float,
1005
1163
  start_date: Time,
1006
1164
  discount_type: Symbol
1007
- )
1008
- .returns(T.attached_class)
1165
+ ).returns(T.attached_class)
1009
1166
  end
1010
1167
  def self.new(
1011
1168
  # The price ids that this discount interval applies to.
@@ -1020,24 +1177,28 @@ module Orb
1020
1177
  # The start date of the discount interval.
1021
1178
  start_date:,
1022
1179
  discount_type: :percentage
1023
- ); end
1180
+ )
1181
+ end
1182
+
1024
1183
  sig do
1025
- override
1026
- .returns(
1027
- {
1028
- applies_to_price_ids: T::Array[String],
1029
- applies_to_price_interval_ids: T::Array[String],
1030
- discount_type: Symbol,
1031
- end_date: T.nilable(Time),
1032
- percentage_discount: Float,
1033
- start_date: Time
1034
- }
1035
- )
1184
+ override.returns(
1185
+ {
1186
+ applies_to_price_ids: T::Array[String],
1187
+ applies_to_price_interval_ids: T::Array[String],
1188
+ discount_type: Symbol,
1189
+ end_date: T.nilable(Time),
1190
+ percentage_discount: Float,
1191
+ start_date: Time
1192
+ }
1193
+ )
1194
+ end
1195
+ def to_hash
1036
1196
  end
1037
- def to_hash; end
1038
1197
  end
1039
1198
 
1040
1199
  class Usage < Orb::Internal::Type::BaseModel
1200
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1201
+
1041
1202
  # The price ids that this discount interval applies to.
1042
1203
  sig { returns(T::Array[String]) }
1043
1204
  attr_accessor :applies_to_price_ids
@@ -1070,8 +1231,7 @@ module Orb
1070
1231
  start_date: Time,
1071
1232
  usage_discount: Float,
1072
1233
  discount_type: Symbol
1073
- )
1074
- .returns(T.attached_class)
1234
+ ).returns(T.attached_class)
1075
1235
  end
1076
1236
  def self.new(
1077
1237
  # The price ids that this discount interval applies to.
@@ -1086,33 +1246,39 @@ module Orb
1086
1246
  # discount is for
1087
1247
  usage_discount:,
1088
1248
  discount_type: :usage
1089
- ); end
1249
+ )
1250
+ end
1251
+
1090
1252
  sig do
1091
- override
1092
- .returns(
1093
- {
1094
- applies_to_price_ids: T::Array[String],
1095
- applies_to_price_interval_ids: T::Array[String],
1096
- discount_type: Symbol,
1097
- end_date: T.nilable(Time),
1098
- start_date: Time,
1099
- usage_discount: Float
1100
- }
1101
- )
1253
+ override.returns(
1254
+ {
1255
+ applies_to_price_ids: T::Array[String],
1256
+ applies_to_price_interval_ids: T::Array[String],
1257
+ discount_type: Symbol,
1258
+ end_date: T.nilable(Time),
1259
+ start_date: Time,
1260
+ usage_discount: Float
1261
+ }
1262
+ )
1263
+ end
1264
+ def to_hash
1102
1265
  end
1103
- def to_hash; end
1104
1266
  end
1105
1267
 
1106
1268
  sig do
1107
- override
1108
- .returns(
1109
- [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage]
1110
- )
1269
+ override.returns(
1270
+ T::Array[
1271
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Variants
1272
+ ]
1273
+ )
1274
+ end
1275
+ def self.variants
1111
1276
  end
1112
- def self.variants; end
1113
1277
  end
1114
1278
 
1115
1279
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
1280
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1281
+
1116
1282
  sig { returns(T.nilable(Time)) }
1117
1283
  attr_accessor :end_date
1118
1284
 
@@ -1126,18 +1292,33 @@ module Orb
1126
1292
  attr_accessor :start_date
1127
1293
 
1128
1294
  sig do
1129
- params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time)
1130
- .returns(T.attached_class)
1295
+ params(
1296
+ end_date: T.nilable(Time),
1297
+ price_id: String,
1298
+ quantity: Float,
1299
+ start_date: Time
1300
+ ).returns(T.attached_class)
1301
+ end
1302
+ def self.new(end_date:, price_id:, quantity:, start_date:)
1131
1303
  end
1132
- def self.new(end_date:, price_id:, quantity:, start_date:); end
1133
1304
 
1134
1305
  sig do
1135
- override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time})
1306
+ override.returns(
1307
+ {
1308
+ end_date: T.nilable(Time),
1309
+ price_id: String,
1310
+ quantity: Float,
1311
+ start_date: Time
1312
+ }
1313
+ )
1314
+ end
1315
+ def to_hash
1136
1316
  end
1137
- def to_hash; end
1138
1317
  end
1139
1318
 
1140
1319
  class MaximumInterval < Orb::Internal::Type::BaseModel
1320
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1321
+
1141
1322
  # The price ids that this maximum interval applies to.
1142
1323
  sig { returns(T::Array[String]) }
1143
1324
  attr_accessor :applies_to_price_ids
@@ -1166,8 +1347,7 @@ module Orb
1166
1347
  end_date: T.nilable(Time),
1167
1348
  maximum_amount: String,
1168
1349
  start_date: Time
1169
- )
1170
- .returns(T.attached_class)
1350
+ ).returns(T.attached_class)
1171
1351
  end
1172
1352
  def self.new(
1173
1353
  # The price ids that this maximum interval applies to.
@@ -1181,23 +1361,27 @@ module Orb
1181
1361
  maximum_amount:,
1182
1362
  # The start date of the maximum interval.
1183
1363
  start_date:
1184
- ); end
1364
+ )
1365
+ end
1366
+
1185
1367
  sig do
1186
- override
1187
- .returns(
1188
- {
1189
- applies_to_price_ids: T::Array[String],
1190
- applies_to_price_interval_ids: T::Array[String],
1191
- end_date: T.nilable(Time),
1192
- maximum_amount: String,
1193
- start_date: Time
1194
- }
1195
- )
1368
+ override.returns(
1369
+ {
1370
+ applies_to_price_ids: T::Array[String],
1371
+ applies_to_price_interval_ids: T::Array[String],
1372
+ end_date: T.nilable(Time),
1373
+ maximum_amount: String,
1374
+ start_date: Time
1375
+ }
1376
+ )
1377
+ end
1378
+ def to_hash
1196
1379
  end
1197
- def to_hash; end
1198
1380
  end
1199
1381
 
1200
1382
  class MinimumInterval < Orb::Internal::Type::BaseModel
1383
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1384
+
1201
1385
  # The price ids that this minimum interval applies to.
1202
1386
  sig { returns(T::Array[String]) }
1203
1387
  attr_accessor :applies_to_price_ids
@@ -1226,8 +1410,7 @@ module Orb
1226
1410
  end_date: T.nilable(Time),
1227
1411
  minimum_amount: String,
1228
1412
  start_date: Time
1229
- )
1230
- .returns(T.attached_class)
1413
+ ).returns(T.attached_class)
1231
1414
  end
1232
1415
  def self.new(
1233
1416
  # The price ids that this minimum interval applies to.
@@ -1241,35 +1424,43 @@ module Orb
1241
1424
  minimum_amount:,
1242
1425
  # The start date of the minimum interval.
1243
1426
  start_date:
1244
- ); end
1427
+ )
1428
+ end
1429
+
1245
1430
  sig do
1246
- override
1247
- .returns(
1248
- {
1249
- applies_to_price_ids: T::Array[String],
1250
- applies_to_price_interval_ids: T::Array[String],
1251
- end_date: T.nilable(Time),
1252
- minimum_amount: String,
1253
- start_date: Time
1254
- }
1255
- )
1431
+ override.returns(
1432
+ {
1433
+ applies_to_price_ids: T::Array[String],
1434
+ applies_to_price_interval_ids: T::Array[String],
1435
+ end_date: T.nilable(Time),
1436
+ minimum_amount: String,
1437
+ start_date: Time
1438
+ }
1439
+ )
1440
+ end
1441
+ def to_hash
1256
1442
  end
1257
- def to_hash; end
1258
1443
  end
1259
1444
 
1260
1445
  class PendingSubscriptionChange < Orb::Internal::Type::BaseModel
1446
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1447
+
1261
1448
  sig { returns(String) }
1262
1449
  attr_accessor :id
1263
1450
 
1264
1451
  # A pending subscription change if one exists on this subscription.
1265
1452
  sig { params(id: String).returns(T.attached_class) }
1266
- def self.new(id:); end
1453
+ def self.new(id:)
1454
+ end
1267
1455
 
1268
- sig { override.returns({id: String}) }
1269
- def to_hash; end
1456
+ sig { override.returns({ id: String }) }
1457
+ def to_hash
1458
+ end
1270
1459
  end
1271
1460
 
1272
1461
  class PriceInterval < Orb::Internal::Type::BaseModel
1462
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1463
+
1273
1464
  sig { returns(String) }
1274
1465
  attr_accessor :id
1275
1466
 
@@ -1303,7 +1494,9 @@ module Orb
1303
1494
  sig do
1304
1495
  returns(
1305
1496
  T.nilable(
1306
- T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]
1497
+ T::Array[
1498
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition
1499
+ ]
1307
1500
  )
1308
1501
  )
1309
1502
  end
@@ -1322,34 +1515,34 @@ module Orb
1322
1515
  sig do
1323
1516
  returns(
1324
1517
  T.any(
1325
- Orb::Models::Price::Unit,
1326
- Orb::Models::Price::Package,
1327
- Orb::Models::Price::Matrix,
1328
- Orb::Models::Price::Tiered,
1329
- Orb::Models::Price::TieredBps,
1330
- Orb::Models::Price::Bps,
1331
- Orb::Models::Price::BulkBps,
1332
- Orb::Models::Price::Bulk,
1333
- Orb::Models::Price::ThresholdTotalAmount,
1334
- Orb::Models::Price::TieredPackage,
1335
- Orb::Models::Price::GroupedTiered,
1336
- Orb::Models::Price::TieredWithMinimum,
1337
- Orb::Models::Price::TieredPackageWithMinimum,
1338
- Orb::Models::Price::PackageWithAllocation,
1339
- Orb::Models::Price::UnitWithPercent,
1340
- Orb::Models::Price::MatrixWithAllocation,
1341
- Orb::Models::Price::TieredWithProration,
1342
- Orb::Models::Price::UnitWithProration,
1343
- Orb::Models::Price::GroupedAllocation,
1344
- Orb::Models::Price::GroupedWithProratedMinimum,
1345
- Orb::Models::Price::GroupedWithMeteredMinimum,
1346
- Orb::Models::Price::MatrixWithDisplayName,
1347
- Orb::Models::Price::BulkWithProration,
1348
- Orb::Models::Price::GroupedTieredPackage,
1349
- Orb::Models::Price::MaxGroupTieredPackage,
1350
- Orb::Models::Price::ScalableMatrixWithUnitPricing,
1351
- Orb::Models::Price::ScalableMatrixWithTieredPricing,
1352
- Orb::Models::Price::CumulativeGroupedBulk
1518
+ Orb::Price::Unit,
1519
+ Orb::Price::Package,
1520
+ Orb::Price::Matrix,
1521
+ Orb::Price::Tiered,
1522
+ Orb::Price::TieredBps,
1523
+ Orb::Price::Bps,
1524
+ Orb::Price::BulkBps,
1525
+ Orb::Price::Bulk,
1526
+ Orb::Price::ThresholdTotalAmount,
1527
+ Orb::Price::TieredPackage,
1528
+ Orb::Price::GroupedTiered,
1529
+ Orb::Price::TieredWithMinimum,
1530
+ Orb::Price::TieredPackageWithMinimum,
1531
+ Orb::Price::PackageWithAllocation,
1532
+ Orb::Price::UnitWithPercent,
1533
+ Orb::Price::MatrixWithAllocation,
1534
+ Orb::Price::TieredWithProration,
1535
+ Orb::Price::UnitWithProration,
1536
+ Orb::Price::GroupedAllocation,
1537
+ Orb::Price::GroupedWithProratedMinimum,
1538
+ Orb::Price::GroupedWithMeteredMinimum,
1539
+ Orb::Price::MatrixWithDisplayName,
1540
+ Orb::Price::BulkWithProration,
1541
+ Orb::Price::GroupedTieredPackage,
1542
+ Orb::Price::MaxGroupTieredPackage,
1543
+ Orb::Price::ScalableMatrixWithUnitPricing,
1544
+ Orb::Price::ScalableMatrixWithTieredPricing,
1545
+ Orb::Price::CumulativeGroupedBulk
1353
1546
  )
1354
1547
  )
1355
1548
  end
@@ -1376,49 +1569,46 @@ module Orb
1376
1569
  current_billing_period_start_date: T.nilable(Time),
1377
1570
  end_date: T.nilable(Time),
1378
1571
  filter: T.nilable(String),
1379
- fixed_fee_quantity_transitions: T.nilable(
1380
- T::Array[
1381
- T.any(
1382
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition,
1383
- Orb::Internal::AnyHash
1384
- )
1385
- ]
1386
- ),
1387
- price: T.any(
1388
- Orb::Models::Price::Unit,
1389
- Orb::Internal::AnyHash,
1390
- Orb::Models::Price::Package,
1391
- Orb::Models::Price::Matrix,
1392
- Orb::Models::Price::Tiered,
1393
- Orb::Models::Price::TieredBps,
1394
- Orb::Models::Price::Bps,
1395
- Orb::Models::Price::BulkBps,
1396
- Orb::Models::Price::Bulk,
1397
- Orb::Models::Price::ThresholdTotalAmount,
1398
- Orb::Models::Price::TieredPackage,
1399
- Orb::Models::Price::GroupedTiered,
1400
- Orb::Models::Price::TieredWithMinimum,
1401
- Orb::Models::Price::TieredPackageWithMinimum,
1402
- Orb::Models::Price::PackageWithAllocation,
1403
- Orb::Models::Price::UnitWithPercent,
1404
- Orb::Models::Price::MatrixWithAllocation,
1405
- Orb::Models::Price::TieredWithProration,
1406
- Orb::Models::Price::UnitWithProration,
1407
- Orb::Models::Price::GroupedAllocation,
1408
- Orb::Models::Price::GroupedWithProratedMinimum,
1409
- Orb::Models::Price::GroupedWithMeteredMinimum,
1410
- Orb::Models::Price::MatrixWithDisplayName,
1411
- Orb::Models::Price::BulkWithProration,
1412
- Orb::Models::Price::GroupedTieredPackage,
1413
- Orb::Models::Price::MaxGroupTieredPackage,
1414
- Orb::Models::Price::ScalableMatrixWithUnitPricing,
1415
- Orb::Models::Price::ScalableMatrixWithTieredPricing,
1416
- Orb::Models::Price::CumulativeGroupedBulk
1417
- ),
1572
+ fixed_fee_quantity_transitions:
1573
+ T.nilable(
1574
+ T::Array[
1575
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition::OrHash
1576
+ ]
1577
+ ),
1578
+ price:
1579
+ T.any(
1580
+ Orb::Price::Unit::OrHash,
1581
+ Orb::Price::Package::OrHash,
1582
+ Orb::Price::Matrix::OrHash,
1583
+ Orb::Price::Tiered::OrHash,
1584
+ Orb::Price::TieredBps::OrHash,
1585
+ Orb::Price::Bps::OrHash,
1586
+ Orb::Price::BulkBps::OrHash,
1587
+ Orb::Price::Bulk::OrHash,
1588
+ Orb::Price::ThresholdTotalAmount::OrHash,
1589
+ Orb::Price::TieredPackage::OrHash,
1590
+ Orb::Price::GroupedTiered::OrHash,
1591
+ Orb::Price::TieredWithMinimum::OrHash,
1592
+ Orb::Price::TieredPackageWithMinimum::OrHash,
1593
+ Orb::Price::PackageWithAllocation::OrHash,
1594
+ Orb::Price::UnitWithPercent::OrHash,
1595
+ Orb::Price::MatrixWithAllocation::OrHash,
1596
+ Orb::Price::TieredWithProration::OrHash,
1597
+ Orb::Price::UnitWithProration::OrHash,
1598
+ Orb::Price::GroupedAllocation::OrHash,
1599
+ Orb::Price::GroupedWithProratedMinimum::OrHash,
1600
+ Orb::Price::GroupedWithMeteredMinimum::OrHash,
1601
+ Orb::Price::MatrixWithDisplayName::OrHash,
1602
+ Orb::Price::BulkWithProration::OrHash,
1603
+ Orb::Price::GroupedTieredPackage::OrHash,
1604
+ Orb::Price::MaxGroupTieredPackage::OrHash,
1605
+ Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
1606
+ Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
1607
+ Orb::Price::CumulativeGroupedBulk::OrHash
1608
+ ),
1418
1609
  start_date: Time,
1419
1610
  usage_customer_ids: T.nilable(T::Array[String])
1420
- )
1421
- .returns(T.attached_class)
1611
+ ).returns(T.attached_class)
1422
1612
  end
1423
1613
  def self.new(
1424
1614
  id:,
@@ -1457,58 +1647,66 @@ module Orb
1457
1647
  # A list of customer IDs whose usage events will be aggregated and billed under
1458
1648
  # this price interval.
1459
1649
  usage_customer_ids:
1460
- ); end
1650
+ )
1651
+ end
1652
+
1461
1653
  sig do
1462
- override
1463
- .returns(
1464
- {
1465
- id: String,
1466
- billing_cycle_day: Integer,
1467
- current_billing_period_end_date: T.nilable(Time),
1468
- current_billing_period_start_date: T.nilable(Time),
1469
- end_date: T.nilable(Time),
1470
- filter: T.nilable(String),
1471
- fixed_fee_quantity_transitions: T.nilable(
1472
- T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]
1654
+ override.returns(
1655
+ {
1656
+ id: String,
1657
+ billing_cycle_day: Integer,
1658
+ current_billing_period_end_date: T.nilable(Time),
1659
+ current_billing_period_start_date: T.nilable(Time),
1660
+ end_date: T.nilable(Time),
1661
+ filter: T.nilable(String),
1662
+ fixed_fee_quantity_transitions:
1663
+ T.nilable(
1664
+ T::Array[
1665
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition
1666
+ ]
1473
1667
  ),
1474
- price: T.any(
1475
- Orb::Models::Price::Unit,
1476
- Orb::Models::Price::Package,
1477
- Orb::Models::Price::Matrix,
1478
- Orb::Models::Price::Tiered,
1479
- Orb::Models::Price::TieredBps,
1480
- Orb::Models::Price::Bps,
1481
- Orb::Models::Price::BulkBps,
1482
- Orb::Models::Price::Bulk,
1483
- Orb::Models::Price::ThresholdTotalAmount,
1484
- Orb::Models::Price::TieredPackage,
1485
- Orb::Models::Price::GroupedTiered,
1486
- Orb::Models::Price::TieredWithMinimum,
1487
- Orb::Models::Price::TieredPackageWithMinimum,
1488
- Orb::Models::Price::PackageWithAllocation,
1489
- Orb::Models::Price::UnitWithPercent,
1490
- Orb::Models::Price::MatrixWithAllocation,
1491
- Orb::Models::Price::TieredWithProration,
1492
- Orb::Models::Price::UnitWithProration,
1493
- Orb::Models::Price::GroupedAllocation,
1494
- Orb::Models::Price::GroupedWithProratedMinimum,
1495
- Orb::Models::Price::GroupedWithMeteredMinimum,
1496
- Orb::Models::Price::MatrixWithDisplayName,
1497
- Orb::Models::Price::BulkWithProration,
1498
- Orb::Models::Price::GroupedTieredPackage,
1499
- Orb::Models::Price::MaxGroupTieredPackage,
1500
- Orb::Models::Price::ScalableMatrixWithUnitPricing,
1501
- Orb::Models::Price::ScalableMatrixWithTieredPricing,
1502
- Orb::Models::Price::CumulativeGroupedBulk
1668
+ price:
1669
+ T.any(
1670
+ Orb::Price::Unit,
1671
+ Orb::Price::Package,
1672
+ Orb::Price::Matrix,
1673
+ Orb::Price::Tiered,
1674
+ Orb::Price::TieredBps,
1675
+ Orb::Price::Bps,
1676
+ Orb::Price::BulkBps,
1677
+ Orb::Price::Bulk,
1678
+ Orb::Price::ThresholdTotalAmount,
1679
+ Orb::Price::TieredPackage,
1680
+ Orb::Price::GroupedTiered,
1681
+ Orb::Price::TieredWithMinimum,
1682
+ Orb::Price::TieredPackageWithMinimum,
1683
+ Orb::Price::PackageWithAllocation,
1684
+ Orb::Price::UnitWithPercent,
1685
+ Orb::Price::MatrixWithAllocation,
1686
+ Orb::Price::TieredWithProration,
1687
+ Orb::Price::UnitWithProration,
1688
+ Orb::Price::GroupedAllocation,
1689
+ Orb::Price::GroupedWithProratedMinimum,
1690
+ Orb::Price::GroupedWithMeteredMinimum,
1691
+ Orb::Price::MatrixWithDisplayName,
1692
+ Orb::Price::BulkWithProration,
1693
+ Orb::Price::GroupedTieredPackage,
1694
+ Orb::Price::MaxGroupTieredPackage,
1695
+ Orb::Price::ScalableMatrixWithUnitPricing,
1696
+ Orb::Price::ScalableMatrixWithTieredPricing,
1697
+ Orb::Price::CumulativeGroupedBulk
1503
1698
  ),
1504
- start_date: Time,
1505
- usage_customer_ids: T.nilable(T::Array[String])
1506
- }
1507
- )
1699
+ start_date: Time,
1700
+ usage_customer_ids: T.nilable(T::Array[String])
1701
+ }
1702
+ )
1703
+ end
1704
+ def to_hash
1508
1705
  end
1509
- def to_hash; end
1510
1706
 
1511
1707
  class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
1708
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1709
+
1512
1710
  sig { returns(Time) }
1513
1711
  attr_accessor :effective_date
1514
1712
 
@@ -1518,15 +1716,29 @@ module Orb
1518
1716
  sig { returns(Integer) }
1519
1717
  attr_accessor :quantity
1520
1718
 
1521
- sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) }
1522
- def self.new(effective_date:, price_id:, quantity:); end
1719
+ sig do
1720
+ params(
1721
+ effective_date: Time,
1722
+ price_id: String,
1723
+ quantity: Integer
1724
+ ).returns(T.attached_class)
1725
+ end
1726
+ def self.new(effective_date:, price_id:, quantity:)
1727
+ end
1523
1728
 
1524
- sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) }
1525
- def to_hash; end
1729
+ sig do
1730
+ override.returns(
1731
+ { effective_date: Time, price_id: String, quantity: Integer }
1732
+ )
1733
+ end
1734
+ def to_hash
1735
+ end
1526
1736
  end
1527
1737
  end
1528
1738
 
1529
1739
  class RedeemedCoupon < Orb::Internal::Type::BaseModel
1740
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1741
+
1530
1742
  sig { returns(String) }
1531
1743
  attr_accessor :coupon_id
1532
1744
 
@@ -1537,56 +1749,95 @@ module Orb
1537
1749
  attr_accessor :start_date
1538
1750
 
1539
1751
  sig do
1540
- params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class)
1752
+ params(
1753
+ coupon_id: String,
1754
+ end_date: T.nilable(Time),
1755
+ start_date: Time
1756
+ ).returns(T.attached_class)
1757
+ end
1758
+ def self.new(coupon_id:, end_date:, start_date:)
1541
1759
  end
1542
- def self.new(coupon_id:, end_date:, start_date:); end
1543
1760
 
1544
- sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) }
1545
- def to_hash; end
1761
+ sig do
1762
+ override.returns(
1763
+ { coupon_id: String, end_date: T.nilable(Time), start_date: Time }
1764
+ )
1765
+ end
1766
+ def to_hash
1767
+ end
1546
1768
  end
1547
1769
 
1548
1770
  module Status
1549
1771
  extend Orb::Internal::Type::Enum
1550
1772
 
1551
1773
  TaggedSymbol =
1552
- T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status) }
1774
+ T.type_alias do
1775
+ T.all(
1776
+ Symbol,
1777
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status
1778
+ )
1779
+ end
1553
1780
  OrSymbol = T.type_alias { T.any(Symbol, String) }
1554
1781
 
1555
- ACTIVE = T.let(:active, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol)
1556
- ENDED = T.let(:ended, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol)
1782
+ ACTIVE =
1783
+ T.let(
1784
+ :active,
1785
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol
1786
+ )
1787
+ ENDED =
1788
+ T.let(
1789
+ :ended,
1790
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol
1791
+ )
1557
1792
  UPCOMING =
1558
- T.let(:upcoming, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol)
1793
+ T.let(
1794
+ :upcoming,
1795
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol
1796
+ )
1559
1797
 
1560
- sig { override.returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol]) }
1561
- def self.values; end
1798
+ sig do
1799
+ override.returns(
1800
+ T::Array[
1801
+ Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol
1802
+ ]
1803
+ )
1804
+ end
1805
+ def self.values
1806
+ end
1562
1807
  end
1563
1808
 
1564
1809
  class TrialInfo < Orb::Internal::Type::BaseModel
1810
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1811
+
1565
1812
  sig { returns(T.nilable(Time)) }
1566
1813
  attr_accessor :end_date
1567
1814
 
1568
1815
  sig { params(end_date: T.nilable(Time)).returns(T.attached_class) }
1569
- def self.new(end_date:); end
1816
+ def self.new(end_date:)
1817
+ end
1570
1818
 
1571
- sig { override.returns({end_date: T.nilable(Time)}) }
1572
- def to_hash; end
1819
+ sig { override.returns({ end_date: T.nilable(Time) }) }
1820
+ def to_hash
1821
+ end
1573
1822
  end
1574
1823
 
1575
1824
  class ChangedResources < Orb::Internal::Type::BaseModel
1825
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1826
+
1576
1827
  # The credit notes that were created as part of this operation.
1577
- sig { returns(T::Array[Orb::Models::CreditNote]) }
1828
+ sig { returns(T::Array[Orb::CreditNote]) }
1578
1829
  attr_accessor :created_credit_notes
1579
1830
 
1580
1831
  # The invoices that were created as part of this operation.
1581
- sig { returns(T::Array[Orb::Models::Invoice]) }
1832
+ sig { returns(T::Array[Orb::Invoice]) }
1582
1833
  attr_accessor :created_invoices
1583
1834
 
1584
1835
  # The credit notes that were voided as part of this operation.
1585
- sig { returns(T::Array[Orb::Models::CreditNote]) }
1836
+ sig { returns(T::Array[Orb::CreditNote]) }
1586
1837
  attr_accessor :voided_credit_notes
1587
1838
 
1588
1839
  # The invoices that were voided as part of this operation.
1589
- sig { returns(T::Array[Orb::Models::Invoice]) }
1840
+ sig { returns(T::Array[Orb::Invoice]) }
1590
1841
  attr_accessor :voided_invoices
1591
1842
 
1592
1843
  # The resources that were changed as part of this operation. Only present when
@@ -1594,12 +1845,11 @@ module Orb
1594
1845
  # `include_changed_resources` parameter was passed in the request.
1595
1846
  sig do
1596
1847
  params(
1597
- created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)],
1598
- created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)],
1599
- voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)],
1600
- voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)]
1601
- )
1602
- .returns(T.attached_class)
1848
+ created_credit_notes: T::Array[Orb::CreditNote::OrHash],
1849
+ created_invoices: T::Array[Orb::Invoice::OrHash],
1850
+ voided_credit_notes: T::Array[Orb::CreditNote::OrHash],
1851
+ voided_invoices: T::Array[Orb::Invoice::OrHash]
1852
+ ).returns(T.attached_class)
1603
1853
  end
1604
1854
  def self.new(
1605
1855
  # The credit notes that were created as part of this operation.
@@ -1610,19 +1860,21 @@ module Orb
1610
1860
  voided_credit_notes:,
1611
1861
  # The invoices that were voided as part of this operation.
1612
1862
  voided_invoices:
1613
- ); end
1863
+ )
1864
+ end
1865
+
1614
1866
  sig do
1615
- override
1616
- .returns(
1617
- {
1618
- created_credit_notes: T::Array[Orb::Models::CreditNote],
1619
- created_invoices: T::Array[Orb::Models::Invoice],
1620
- voided_credit_notes: T::Array[Orb::Models::CreditNote],
1621
- voided_invoices: T::Array[Orb::Models::Invoice]
1622
- }
1623
- )
1867
+ override.returns(
1868
+ {
1869
+ created_credit_notes: T::Array[Orb::CreditNote],
1870
+ created_invoices: T::Array[Orb::Invoice],
1871
+ voided_credit_notes: T::Array[Orb::CreditNote],
1872
+ voided_invoices: T::Array[Orb::Invoice]
1873
+ }
1874
+ )
1875
+ end
1876
+ def to_hash
1624
1877
  end
1625
- def to_hash; end
1626
1878
  end
1627
1879
  end
1628
1880
  end