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 SubscriptionChangeApplyResponse < 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
 
@@ -10,17 +12,27 @@ module Orb
10
12
  sig { returns(Time) }
11
13
  attr_accessor :expiration_time
12
14
 
13
- sig { returns(Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol) }
15
+ sig do
16
+ returns(
17
+ Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol
18
+ )
19
+ end
14
20
  attr_accessor :status
15
21
 
16
- sig { returns(T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription)) }
22
+ sig do
23
+ returns(
24
+ T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription)
25
+ )
26
+ end
17
27
  attr_reader :subscription
18
28
 
19
29
  sig do
20
30
  params(
21
- subscription: T.nilable(T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription, Orb::Internal::AnyHash))
22
- )
23
- .void
31
+ subscription:
32
+ T.nilable(
33
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::OrHash
34
+ )
35
+ ).void
24
36
  end
25
37
  attr_writer :subscription
26
38
 
@@ -40,12 +52,15 @@ module Orb
40
52
  params(
41
53
  id: String,
42
54
  expiration_time: Time,
43
- status: Orb::Models::SubscriptionChangeApplyResponse::Status::OrSymbol,
44
- subscription: T.nilable(T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription, Orb::Internal::AnyHash)),
55
+ status:
56
+ Orb::Models::SubscriptionChangeApplyResponse::Status::OrSymbol,
57
+ subscription:
58
+ T.nilable(
59
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::OrHash
60
+ ),
45
61
  applied_at: T.nilable(Time),
46
62
  cancelled_at: T.nilable(Time)
47
- )
48
- .returns(T.attached_class)
63
+ ).returns(T.attached_class)
49
64
  end
50
65
  def self.new(
51
66
  id:,
@@ -57,37 +72,67 @@ module Orb
57
72
  applied_at: nil,
58
73
  # When this change was cancelled.
59
74
  cancelled_at: nil
60
- ); end
75
+ )
76
+ end
77
+
61
78
  sig do
62
- override
63
- .returns(
64
- {
65
- id: String,
66
- expiration_time: Time,
67
- status: Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol,
68
- subscription: T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription),
69
- applied_at: T.nilable(Time),
70
- cancelled_at: T.nilable(Time)
71
- }
72
- )
79
+ override.returns(
80
+ {
81
+ id: String,
82
+ expiration_time: Time,
83
+ status:
84
+ Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol,
85
+ subscription:
86
+ T.nilable(
87
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription
88
+ ),
89
+ applied_at: T.nilable(Time),
90
+ cancelled_at: T.nilable(Time)
91
+ }
92
+ )
93
+ end
94
+ def to_hash
73
95
  end
74
- def to_hash; end
75
96
 
76
97
  module Status
77
98
  extend Orb::Internal::Type::Enum
78
99
 
79
- TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionChangeApplyResponse::Status) }
100
+ TaggedSymbol =
101
+ T.type_alias do
102
+ T.all(Symbol, Orb::Models::SubscriptionChangeApplyResponse::Status)
103
+ end
80
104
  OrSymbol = T.type_alias { T.any(Symbol, String) }
81
105
 
82
- PENDING = T.let(:pending, Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol)
83
- APPLIED = T.let(:applied, Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol)
84
- CANCELLED = T.let(:cancelled, Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol)
106
+ PENDING =
107
+ T.let(
108
+ :pending,
109
+ Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol
110
+ )
111
+ APPLIED =
112
+ T.let(
113
+ :applied,
114
+ Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol
115
+ )
116
+ CANCELLED =
117
+ T.let(
118
+ :cancelled,
119
+ Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol
120
+ )
85
121
 
86
- sig { override.returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol]) }
87
- def self.values; end
122
+ sig do
123
+ override.returns(
124
+ T::Array[
125
+ Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol
126
+ ]
127
+ )
128
+ end
129
+ def self.values
130
+ end
88
131
  end
89
132
 
90
133
  class Subscription < Orb::Internal::Type::BaseModel
134
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
135
+
91
136
  sig { returns(String) }
92
137
  attr_accessor :id
93
138
 
@@ -98,7 +143,13 @@ module Orb
98
143
 
99
144
  # The adjustment intervals for this subscription sorted by the start_date of the
100
145
  # adjustment interval.
101
- sig { returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval]) }
146
+ sig do
147
+ returns(
148
+ T::Array[
149
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval
150
+ ]
151
+ )
152
+ end
102
153
  attr_accessor :adjustment_intervals
103
154
 
104
155
  # Determines whether issued invoices for this subscription will automatically be
@@ -107,17 +158,18 @@ module Orb
107
158
  sig { returns(T.nilable(T::Boolean)) }
108
159
  attr_accessor :auto_collection
109
160
 
110
- sig { returns(Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration) }
161
+ sig do
162
+ returns(
163
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration
164
+ )
165
+ end
111
166
  attr_reader :billing_cycle_anchor_configuration
112
167
 
113
168
  sig do
114
169
  params(
115
- billing_cycle_anchor_configuration: T.any(
116
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration,
117
- Orb::Internal::AnyHash
118
- )
119
- )
120
- .void
170
+ billing_cycle_anchor_configuration:
171
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration::OrHash
172
+ ).void
121
173
  end
122
174
  attr_writer :billing_cycle_anchor_configuration
123
175
 
@@ -161,10 +213,10 @@ module Orb
161
213
  # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
162
214
  # your account's timezone. See [Timezone localization](/essentials/timezones) for
163
215
  # information on what this timezone parameter influences within Orb.
164
- sig { returns(Orb::Models::Customer) }
216
+ sig { returns(Orb::Customer) }
165
217
  attr_reader :customer
166
218
 
167
- sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void }
219
+ sig { params(customer: Orb::Customer::OrHash).void }
168
220
  attr_writer :customer
169
221
 
170
222
  # Determines the default memo on this subscriptions' invoices. Note that if this
@@ -190,14 +242,26 @@ module Orb
190
242
  sig { returns(T.nilable(Time)) }
191
243
  attr_accessor :end_date
192
244
 
193
- sig { returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule]) }
245
+ sig do
246
+ returns(
247
+ T::Array[
248
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule
249
+ ]
250
+ )
251
+ end
194
252
  attr_accessor :fixed_fee_quantity_schedule
195
253
 
196
254
  sig { returns(T.nilable(String)) }
197
255
  attr_accessor :invoicing_threshold
198
256
 
199
257
  # The maximum intervals for this subscription sorted by the start_date.
200
- sig { returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval]) }
258
+ sig do
259
+ returns(
260
+ T::Array[
261
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval
262
+ ]
263
+ )
264
+ end
201
265
  attr_accessor :maximum_intervals
202
266
 
203
267
  # User specified key-value pairs for the resource. If not present, this defaults
@@ -208,7 +272,13 @@ module Orb
208
272
  attr_accessor :metadata
209
273
 
210
274
  # The minimum intervals for this subscription sorted by the start_date.
211
- sig { returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval]) }
275
+ sig do
276
+ returns(
277
+ T::Array[
278
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval
279
+ ]
280
+ )
281
+ end
212
282
  attr_accessor :minimum_intervals
213
283
 
214
284
  # Determines the difference between the invoice issue date for subscription
@@ -219,19 +289,22 @@ module Orb
219
289
  attr_accessor :net_terms
220
290
 
221
291
  # A pending subscription change if one exists on this subscription.
222
- sig { returns(T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange)) }
292
+ sig do
293
+ returns(
294
+ T.nilable(
295
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange
296
+ )
297
+ )
298
+ end
223
299
  attr_reader :pending_subscription_change
224
300
 
225
301
  sig do
226
302
  params(
227
- pending_subscription_change: T.nilable(
228
- T.any(
229
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange,
230
- Orb::Internal::AnyHash
303
+ pending_subscription_change:
304
+ T.nilable(
305
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange::OrHash
231
306
  )
232
- )
233
- )
234
- .void
307
+ ).void
235
308
  end
236
309
  attr_writer :pending_subscription_change
237
310
 
@@ -239,26 +312,38 @@ module Orb
239
312
  # subscribed to by a customer. Plans define the billing behavior of the
240
313
  # subscription. You can see more about how to configure prices in the
241
314
  # [Price resource](/reference/price).
242
- sig { returns(Orb::Models::Plan) }
315
+ sig { returns(Orb::Plan) }
243
316
  attr_reader :plan
244
317
 
245
- sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void }
318
+ sig { params(plan: Orb::Plan::OrHash).void }
246
319
  attr_writer :plan
247
320
 
248
321
  # The price intervals for this subscription.
249
- sig { returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval]) }
322
+ sig do
323
+ returns(
324
+ T::Array[
325
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval
326
+ ]
327
+ )
328
+ end
250
329
  attr_accessor :price_intervals
251
330
 
252
- sig { returns(T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon)) }
331
+ sig do
332
+ returns(
333
+ T.nilable(
334
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon
335
+ )
336
+ )
337
+ end
253
338
  attr_reader :redeemed_coupon
254
339
 
255
340
  sig do
256
341
  params(
257
- redeemed_coupon: T.nilable(
258
- T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon, Orb::Internal::AnyHash)
259
- )
260
- )
261
- .void
342
+ redeemed_coupon:
343
+ T.nilable(
344
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon::OrHash
345
+ )
346
+ ).void
262
347
  end
263
348
  attr_writer :redeemed_coupon
264
349
 
@@ -266,36 +351,47 @@ module Orb
266
351
  sig { returns(Time) }
267
352
  attr_accessor :start_date
268
353
 
269
- sig { returns(Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol) }
354
+ sig do
355
+ returns(
356
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol
357
+ )
358
+ end
270
359
  attr_accessor :status
271
360
 
272
- sig { returns(Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo) }
361
+ sig do
362
+ returns(
363
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo
364
+ )
365
+ end
273
366
  attr_reader :trial_info
274
367
 
275
368
  sig do
276
369
  params(
277
- trial_info: T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo, Orb::Internal::AnyHash)
278
- )
279
- .void
370
+ trial_info:
371
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo::OrHash
372
+ ).void
280
373
  end
281
374
  attr_writer :trial_info
282
375
 
283
376
  # The resources that were changed as part of this operation. Only present when
284
377
  # fetched through the subscription changes API or if the
285
378
  # `include_changed_resources` parameter was passed in the request.
286
- sig { returns(T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources)) }
379
+ sig do
380
+ returns(
381
+ T.nilable(
382
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources
383
+ )
384
+ )
385
+ end
287
386
  attr_reader :changed_resources
288
387
 
289
388
  sig do
290
389
  params(
291
- changed_resources: T.nilable(
292
- T.any(
293
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources,
294
- Orb::Internal::AnyHash
390
+ changed_resources:
391
+ T.nilable(
392
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources::OrHash
295
393
  )
296
- )
297
- )
298
- .void
394
+ ).void
299
395
  end
300
396
  attr_writer :changed_resources
301
397
 
@@ -303,65 +399,66 @@ module Orb
303
399
  params(
304
400
  id: String,
305
401
  active_plan_phase_order: T.nilable(Integer),
306
- adjustment_intervals: T::Array[
307
- T.any(
308
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval,
309
- Orb::Internal::AnyHash
310
- )
311
- ],
402
+ adjustment_intervals:
403
+ T::Array[
404
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::OrHash
405
+ ],
312
406
  auto_collection: T.nilable(T::Boolean),
313
- billing_cycle_anchor_configuration: T.any(
314
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration,
315
- Orb::Internal::AnyHash
316
- ),
407
+ billing_cycle_anchor_configuration:
408
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration::OrHash,
317
409
  billing_cycle_day: Integer,
318
410
  created_at: Time,
319
411
  current_billing_period_end_date: T.nilable(Time),
320
412
  current_billing_period_start_date: T.nilable(Time),
321
- customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash),
413
+ customer: Orb::Customer::OrHash,
322
414
  default_invoice_memo: T.nilable(String),
323
- discount_intervals: T::Array[
324
- T.any(
325
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount,
326
- Orb::Internal::AnyHash,
327
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage,
328
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage
329
- )
330
- ],
415
+ discount_intervals:
416
+ T::Array[
417
+ T.any(
418
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::OrHash,
419
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::OrHash,
420
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::OrHash
421
+ )
422
+ ],
331
423
  end_date: T.nilable(Time),
332
- fixed_fee_quantity_schedule: T::Array[
333
- T.any(
334
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule,
335
- Orb::Internal::AnyHash
336
- )
337
- ],
424
+ fixed_fee_quantity_schedule:
425
+ T::Array[
426
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule::OrHash
427
+ ],
338
428
  invoicing_threshold: T.nilable(String),
339
- maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval, Orb::Internal::AnyHash)],
429
+ maximum_intervals:
430
+ T::Array[
431
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::OrHash
432
+ ],
340
433
  metadata: T::Hash[Symbol, String],
341
- minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval, Orb::Internal::AnyHash)],
434
+ minimum_intervals:
435
+ T::Array[
436
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::OrHash
437
+ ],
342
438
  net_terms: Integer,
343
- pending_subscription_change: T.nilable(
344
- T.any(
345
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange,
346
- Orb::Internal::AnyHash
347
- )
348
- ),
349
- plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash),
350
- price_intervals: T::Array[T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval, Orb::Internal::AnyHash)],
351
- redeemed_coupon: T.nilable(
352
- T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon, Orb::Internal::AnyHash)
353
- ),
439
+ pending_subscription_change:
440
+ T.nilable(
441
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange::OrHash
442
+ ),
443
+ plan: Orb::Plan::OrHash,
444
+ price_intervals:
445
+ T::Array[
446
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::OrHash
447
+ ],
448
+ redeemed_coupon:
449
+ T.nilable(
450
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon::OrHash
451
+ ),
354
452
  start_date: Time,
355
- status: Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::OrSymbol,
356
- trial_info: T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo, Orb::Internal::AnyHash),
357
- changed_resources: T.nilable(
358
- T.any(
359
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources,
360
- Orb::Internal::AnyHash
453
+ status:
454
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::OrSymbol,
455
+ trial_info:
456
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo::OrHash,
457
+ changed_resources:
458
+ T.nilable(
459
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources::OrHash
361
460
  )
362
- )
363
- )
364
- .returns(T.attached_class)
461
+ ).returns(T.attached_class)
365
462
  end
366
463
  def self.new(
367
464
  id:,
@@ -450,50 +547,82 @@ module Orb
450
547
  # fetched through the subscription changes API or if the
451
548
  # `include_changed_resources` parameter was passed in the request.
452
549
  changed_resources: nil
453
- ); end
550
+ )
551
+ end
552
+
454
553
  sig do
455
- override
456
- .returns(
457
- {
458
- id: String,
459
- active_plan_phase_order: T.nilable(Integer),
460
- adjustment_intervals: T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval],
461
- auto_collection: T.nilable(T::Boolean),
462
- billing_cycle_anchor_configuration: Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration,
463
- billing_cycle_day: Integer,
464
- created_at: Time,
465
- current_billing_period_end_date: T.nilable(Time),
466
- current_billing_period_start_date: T.nilable(Time),
467
- customer: Orb::Models::Customer,
468
- default_invoice_memo: T.nilable(String),
469
- discount_intervals: T::Array[
554
+ override.returns(
555
+ {
556
+ id: String,
557
+ active_plan_phase_order: T.nilable(Integer),
558
+ adjustment_intervals:
559
+ T::Array[
560
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval
561
+ ],
562
+ auto_collection: T.nilable(T::Boolean),
563
+ billing_cycle_anchor_configuration:
564
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration,
565
+ billing_cycle_day: Integer,
566
+ created_at: Time,
567
+ current_billing_period_end_date: T.nilable(Time),
568
+ current_billing_period_start_date: T.nilable(Time),
569
+ customer: Orb::Customer,
570
+ default_invoice_memo: T.nilable(String),
571
+ discount_intervals:
572
+ T::Array[
470
573
  T.any(
471
574
  Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount,
472
575
  Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage,
473
576
  Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage
474
577
  )
475
578
  ],
476
- end_date: T.nilable(Time),
477
- fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule],
478
- invoicing_threshold: T.nilable(String),
479
- maximum_intervals: T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval],
480
- metadata: T::Hash[Symbol, String],
481
- minimum_intervals: T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval],
482
- net_terms: Integer,
483
- pending_subscription_change: T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange),
484
- plan: Orb::Models::Plan,
485
- price_intervals: T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval],
486
- redeemed_coupon: T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon),
487
- start_date: Time,
488
- status: Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol,
489
- trial_info: Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo,
490
- changed_resources: T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources)
491
- }
492
- )
579
+ end_date: T.nilable(Time),
580
+ fixed_fee_quantity_schedule:
581
+ T::Array[
582
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule
583
+ ],
584
+ invoicing_threshold: T.nilable(String),
585
+ maximum_intervals:
586
+ T::Array[
587
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval
588
+ ],
589
+ metadata: T::Hash[Symbol, String],
590
+ minimum_intervals:
591
+ T::Array[
592
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval
593
+ ],
594
+ net_terms: Integer,
595
+ pending_subscription_change:
596
+ T.nilable(
597
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange
598
+ ),
599
+ plan: Orb::Plan,
600
+ price_intervals:
601
+ T::Array[
602
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval
603
+ ],
604
+ redeemed_coupon:
605
+ T.nilable(
606
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon
607
+ ),
608
+ start_date: Time,
609
+ status:
610
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol,
611
+ trial_info:
612
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo,
613
+ changed_resources:
614
+ T.nilable(
615
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources
616
+ )
617
+ }
618
+ )
619
+ end
620
+ def to_hash
493
621
  end
494
- def to_hash; end
495
622
 
496
623
  class AdjustmentInterval < Orb::Internal::Type::BaseModel
624
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
625
+
497
626
  sig { returns(String) }
498
627
  attr_accessor :id
499
628
 
@@ -525,19 +654,18 @@ module Orb
525
654
  sig do
526
655
  params(
527
656
  id: String,
528
- adjustment: T.any(
529
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
530
- Orb::Internal::AnyHash,
531
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
532
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
533
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
534
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
535
- ),
657
+ adjustment:
658
+ T.any(
659
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::OrHash,
660
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::OrHash,
661
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash,
662
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::OrHash,
663
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::OrHash
664
+ ),
536
665
  applies_to_price_interval_ids: T::Array[String],
537
666
  end_date: T.nilable(Time),
538
667
  start_date: Time
539
- )
540
- .returns(T.attached_class)
668
+ ).returns(T.attached_class)
541
669
  end
542
670
  def self.new(
543
671
  id:,
@@ -548,31 +676,48 @@ module Orb
548
676
  end_date:,
549
677
  # The start date of the adjustment interval.
550
678
  start_date:
551
- ); end
679
+ )
680
+ end
681
+
552
682
  sig do
553
- override
554
- .returns(
555
- {
556
- id: String,
557
- adjustment: T.any(
683
+ override.returns(
684
+ {
685
+ id: String,
686
+ adjustment:
687
+ T.any(
558
688
  Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
559
689
  Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
560
690
  Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
561
691
  Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
562
692
  Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
563
693
  ),
564
- applies_to_price_interval_ids: T::Array[String],
565
- end_date: T.nilable(Time),
566
- start_date: Time
567
- }
568
- )
694
+ applies_to_price_interval_ids: T::Array[String],
695
+ end_date: T.nilable(Time),
696
+ start_date: Time
697
+ }
698
+ )
699
+ end
700
+ def to_hash
569
701
  end
570
- def to_hash; end
571
702
 
572
703
  module Adjustment
573
704
  extend Orb::Internal::Type::Union
574
705
 
706
+ Variants =
707
+ T.type_alias do
708
+ T.any(
709
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
710
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
711
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
712
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum,
713
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
714
+ )
715
+ end
716
+
575
717
  class UsageDiscount < Orb::Internal::Type::BaseModel
718
+ OrHash =
719
+ T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
720
+
576
721
  sig { returns(String) }
577
722
  attr_accessor :id
578
723
 
@@ -610,8 +755,7 @@ module Orb
610
755
  reason: T.nilable(String),
611
756
  usage_discount: Float,
612
757
  adjustment_type: Symbol
613
- )
614
- .returns(T.attached_class)
758
+ ).returns(T.attached_class)
615
759
  end
616
760
  def self.new(
617
761
  id:,
@@ -628,25 +772,30 @@ module Orb
628
772
  # to in a given billing period.
629
773
  usage_discount:,
630
774
  adjustment_type: :usage_discount
631
- ); end
775
+ )
776
+ end
777
+
632
778
  sig do
633
- override
634
- .returns(
635
- {
636
- id: String,
637
- adjustment_type: Symbol,
638
- applies_to_price_ids: T::Array[String],
639
- is_invoice_level: T::Boolean,
640
- plan_phase_order: T.nilable(Integer),
641
- reason: T.nilable(String),
642
- usage_discount: Float
643
- }
644
- )
779
+ override.returns(
780
+ {
781
+ id: String,
782
+ adjustment_type: Symbol,
783
+ applies_to_price_ids: T::Array[String],
784
+ is_invoice_level: T::Boolean,
785
+ plan_phase_order: T.nilable(Integer),
786
+ reason: T.nilable(String),
787
+ usage_discount: Float
788
+ }
789
+ )
790
+ end
791
+ def to_hash
645
792
  end
646
- def to_hash; end
647
793
  end
648
794
 
649
795
  class AmountDiscount < Orb::Internal::Type::BaseModel
796
+ OrHash =
797
+ T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
798
+
650
799
  sig { returns(String) }
651
800
  attr_accessor :id
652
801
 
@@ -684,8 +833,7 @@ module Orb
684
833
  plan_phase_order: T.nilable(Integer),
685
834
  reason: T.nilable(String),
686
835
  adjustment_type: Symbol
687
- )
688
- .returns(T.attached_class)
836
+ ).returns(T.attached_class)
689
837
  end
690
838
  def self.new(
691
839
  id:,
@@ -702,25 +850,30 @@ module Orb
702
850
  # The reason for the adjustment.
703
851
  reason:,
704
852
  adjustment_type: :amount_discount
705
- ); end
853
+ )
854
+ end
855
+
706
856
  sig do
707
- override
708
- .returns(
709
- {
710
- id: String,
711
- adjustment_type: Symbol,
712
- amount_discount: String,
713
- applies_to_price_ids: T::Array[String],
714
- is_invoice_level: T::Boolean,
715
- plan_phase_order: T.nilable(Integer),
716
- reason: T.nilable(String)
717
- }
718
- )
857
+ override.returns(
858
+ {
859
+ id: String,
860
+ adjustment_type: Symbol,
861
+ amount_discount: String,
862
+ applies_to_price_ids: T::Array[String],
863
+ is_invoice_level: T::Boolean,
864
+ plan_phase_order: T.nilable(Integer),
865
+ reason: T.nilable(String)
866
+ }
867
+ )
868
+ end
869
+ def to_hash
719
870
  end
720
- def to_hash; end
721
871
  end
722
872
 
723
873
  class PercentageDiscount < Orb::Internal::Type::BaseModel
874
+ OrHash =
875
+ T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
876
+
724
877
  sig { returns(String) }
725
878
  attr_accessor :id
726
879
 
@@ -758,8 +911,7 @@ module Orb
758
911
  plan_phase_order: T.nilable(Integer),
759
912
  reason: T.nilable(String),
760
913
  adjustment_type: Symbol
761
- )
762
- .returns(T.attached_class)
914
+ ).returns(T.attached_class)
763
915
  end
764
916
  def self.new(
765
917
  id:,
@@ -776,25 +928,30 @@ module Orb
776
928
  # The reason for the adjustment.
777
929
  reason:,
778
930
  adjustment_type: :percentage_discount
779
- ); end
931
+ )
932
+ end
933
+
780
934
  sig do
781
- override
782
- .returns(
783
- {
784
- id: String,
785
- adjustment_type: Symbol,
786
- applies_to_price_ids: T::Array[String],
787
- is_invoice_level: T::Boolean,
788
- percentage_discount: Float,
789
- plan_phase_order: T.nilable(Integer),
790
- reason: T.nilable(String)
791
- }
792
- )
935
+ override.returns(
936
+ {
937
+ id: String,
938
+ adjustment_type: Symbol,
939
+ applies_to_price_ids: T::Array[String],
940
+ is_invoice_level: T::Boolean,
941
+ percentage_discount: Float,
942
+ plan_phase_order: T.nilable(Integer),
943
+ reason: T.nilable(String)
944
+ }
945
+ )
946
+ end
947
+ def to_hash
793
948
  end
794
- def to_hash; end
795
949
  end
796
950
 
797
951
  class Minimum < Orb::Internal::Type::BaseModel
952
+ OrHash =
953
+ T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
954
+
798
955
  sig { returns(String) }
799
956
  attr_accessor :id
800
957
 
@@ -837,8 +994,7 @@ module Orb
837
994
  plan_phase_order: T.nilable(Integer),
838
995
  reason: T.nilable(String),
839
996
  adjustment_type: Symbol
840
- )
841
- .returns(T.attached_class)
997
+ ).returns(T.attached_class)
842
998
  end
843
999
  def self.new(
844
1000
  id:,
@@ -857,26 +1013,31 @@ module Orb
857
1013
  # The reason for the adjustment.
858
1014
  reason:,
859
1015
  adjustment_type: :minimum
860
- ); end
1016
+ )
1017
+ end
1018
+
861
1019
  sig do
862
- override
863
- .returns(
864
- {
865
- id: String,
866
- adjustment_type: Symbol,
867
- applies_to_price_ids: T::Array[String],
868
- is_invoice_level: T::Boolean,
869
- item_id: String,
870
- minimum_amount: String,
871
- plan_phase_order: T.nilable(Integer),
872
- reason: T.nilable(String)
873
- }
874
- )
1020
+ override.returns(
1021
+ {
1022
+ id: String,
1023
+ adjustment_type: Symbol,
1024
+ applies_to_price_ids: T::Array[String],
1025
+ is_invoice_level: T::Boolean,
1026
+ item_id: String,
1027
+ minimum_amount: String,
1028
+ plan_phase_order: T.nilable(Integer),
1029
+ reason: T.nilable(String)
1030
+ }
1031
+ )
1032
+ end
1033
+ def to_hash
875
1034
  end
876
- def to_hash; end
877
1035
  end
878
1036
 
879
1037
  class Maximum < Orb::Internal::Type::BaseModel
1038
+ OrHash =
1039
+ T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1040
+
880
1041
  sig { returns(String) }
881
1042
  attr_accessor :id
882
1043
 
@@ -914,8 +1075,7 @@ module Orb
914
1075
  plan_phase_order: T.nilable(Integer),
915
1076
  reason: T.nilable(String),
916
1077
  adjustment_type: Symbol
917
- )
918
- .returns(T.attached_class)
1078
+ ).returns(T.attached_class)
919
1079
  end
920
1080
  def self.new(
921
1081
  id:,
@@ -932,35 +1092,41 @@ module Orb
932
1092
  # The reason for the adjustment.
933
1093
  reason:,
934
1094
  adjustment_type: :maximum
935
- ); end
1095
+ )
1096
+ end
1097
+
936
1098
  sig do
937
- override
938
- .returns(
939
- {
940
- id: String,
941
- adjustment_type: Symbol,
942
- applies_to_price_ids: T::Array[String],
943
- is_invoice_level: T::Boolean,
944
- maximum_amount: String,
945
- plan_phase_order: T.nilable(Integer),
946
- reason: T.nilable(String)
947
- }
948
- )
1099
+ override.returns(
1100
+ {
1101
+ id: String,
1102
+ adjustment_type: Symbol,
1103
+ applies_to_price_ids: T::Array[String],
1104
+ is_invoice_level: T::Boolean,
1105
+ maximum_amount: String,
1106
+ plan_phase_order: T.nilable(Integer),
1107
+ reason: T.nilable(String)
1108
+ }
1109
+ )
1110
+ end
1111
+ def to_hash
949
1112
  end
950
- def to_hash; end
951
1113
  end
952
1114
 
953
1115
  sig do
954
- override
955
- .returns(
956
- [Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum]
957
- )
1116
+ override.returns(
1117
+ T::Array[
1118
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Variants
1119
+ ]
1120
+ )
1121
+ end
1122
+ def self.variants
958
1123
  end
959
- def self.variants; end
960
1124
  end
961
1125
  end
962
1126
 
963
1127
  class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel
1128
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1129
+
964
1130
  # The day of the month on which the billing cycle is anchored. If the maximum
965
1131
  # number of days in a month is greater than this value, the last day of the month
966
1132
  # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
@@ -999,15 +1165,37 @@ module Orb
999
1165
  # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
1000
1166
  # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
1001
1167
  year: nil
1002
- ); end
1003
- sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) }
1004
- def to_hash; end
1168
+ )
1169
+ end
1170
+
1171
+ sig do
1172
+ override.returns(
1173
+ {
1174
+ day: Integer,
1175
+ month: T.nilable(Integer),
1176
+ year: T.nilable(Integer)
1177
+ }
1178
+ )
1179
+ end
1180
+ def to_hash
1181
+ end
1005
1182
  end
1006
1183
 
1007
1184
  module DiscountInterval
1008
1185
  extend Orb::Internal::Type::Union
1009
1186
 
1187
+ Variants =
1188
+ T.type_alias do
1189
+ T.any(
1190
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount,
1191
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage,
1192
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage
1193
+ )
1194
+ end
1195
+
1010
1196
  class Amount < Orb::Internal::Type::BaseModel
1197
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1198
+
1011
1199
  # Only available if discount_type is `amount`.
1012
1200
  sig { returns(String) }
1013
1201
  attr_accessor :amount_discount
@@ -1039,8 +1227,7 @@ module Orb
1039
1227
  end_date: T.nilable(Time),
1040
1228
  start_date: Time,
1041
1229
  discount_type: Symbol
1042
- )
1043
- .returns(T.attached_class)
1230
+ ).returns(T.attached_class)
1044
1231
  end
1045
1232
  def self.new(
1046
1233
  # Only available if discount_type is `amount`.
@@ -1054,24 +1241,28 @@ module Orb
1054
1241
  # The start date of the discount interval.
1055
1242
  start_date:,
1056
1243
  discount_type: :amount
1057
- ); end
1244
+ )
1245
+ end
1246
+
1058
1247
  sig do
1059
- override
1060
- .returns(
1061
- {
1062
- amount_discount: String,
1063
- applies_to_price_ids: T::Array[String],
1064
- applies_to_price_interval_ids: T::Array[String],
1065
- discount_type: Symbol,
1066
- end_date: T.nilable(Time),
1067
- start_date: Time
1068
- }
1069
- )
1248
+ override.returns(
1249
+ {
1250
+ amount_discount: String,
1251
+ applies_to_price_ids: T::Array[String],
1252
+ applies_to_price_interval_ids: T::Array[String],
1253
+ discount_type: Symbol,
1254
+ end_date: T.nilable(Time),
1255
+ start_date: Time
1256
+ }
1257
+ )
1258
+ end
1259
+ def to_hash
1070
1260
  end
1071
- def to_hash; end
1072
1261
  end
1073
1262
 
1074
1263
  class Percentage < Orb::Internal::Type::BaseModel
1264
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1265
+
1075
1266
  # The price ids that this discount interval applies to.
1076
1267
  sig { returns(T::Array[String]) }
1077
1268
  attr_accessor :applies_to_price_ids
@@ -1104,8 +1295,7 @@ module Orb
1104
1295
  percentage_discount: Float,
1105
1296
  start_date: Time,
1106
1297
  discount_type: Symbol
1107
- )
1108
- .returns(T.attached_class)
1298
+ ).returns(T.attached_class)
1109
1299
  end
1110
1300
  def self.new(
1111
1301
  # The price ids that this discount interval applies to.
@@ -1120,24 +1310,28 @@ module Orb
1120
1310
  # The start date of the discount interval.
1121
1311
  start_date:,
1122
1312
  discount_type: :percentage
1123
- ); end
1313
+ )
1314
+ end
1315
+
1124
1316
  sig do
1125
- override
1126
- .returns(
1127
- {
1128
- applies_to_price_ids: T::Array[String],
1129
- applies_to_price_interval_ids: T::Array[String],
1130
- discount_type: Symbol,
1131
- end_date: T.nilable(Time),
1132
- percentage_discount: Float,
1133
- start_date: Time
1134
- }
1135
- )
1317
+ override.returns(
1318
+ {
1319
+ applies_to_price_ids: T::Array[String],
1320
+ applies_to_price_interval_ids: T::Array[String],
1321
+ discount_type: Symbol,
1322
+ end_date: T.nilable(Time),
1323
+ percentage_discount: Float,
1324
+ start_date: Time
1325
+ }
1326
+ )
1327
+ end
1328
+ def to_hash
1136
1329
  end
1137
- def to_hash; end
1138
1330
  end
1139
1331
 
1140
1332
  class Usage < Orb::Internal::Type::BaseModel
1333
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1334
+
1141
1335
  # The price ids that this discount interval applies to.
1142
1336
  sig { returns(T::Array[String]) }
1143
1337
  attr_accessor :applies_to_price_ids
@@ -1170,8 +1364,7 @@ module Orb
1170
1364
  start_date: Time,
1171
1365
  usage_discount: Float,
1172
1366
  discount_type: Symbol
1173
- )
1174
- .returns(T.attached_class)
1367
+ ).returns(T.attached_class)
1175
1368
  end
1176
1369
  def self.new(
1177
1370
  # The price ids that this discount interval applies to.
@@ -1186,33 +1379,39 @@ module Orb
1186
1379
  # discount is for
1187
1380
  usage_discount:,
1188
1381
  discount_type: :usage
1189
- ); end
1382
+ )
1383
+ end
1384
+
1190
1385
  sig do
1191
- override
1192
- .returns(
1193
- {
1194
- applies_to_price_ids: T::Array[String],
1195
- applies_to_price_interval_ids: T::Array[String],
1196
- discount_type: Symbol,
1197
- end_date: T.nilable(Time),
1198
- start_date: Time,
1199
- usage_discount: Float
1200
- }
1201
- )
1386
+ override.returns(
1387
+ {
1388
+ applies_to_price_ids: T::Array[String],
1389
+ applies_to_price_interval_ids: T::Array[String],
1390
+ discount_type: Symbol,
1391
+ end_date: T.nilable(Time),
1392
+ start_date: Time,
1393
+ usage_discount: Float
1394
+ }
1395
+ )
1396
+ end
1397
+ def to_hash
1202
1398
  end
1203
- def to_hash; end
1204
1399
  end
1205
1400
 
1206
1401
  sig do
1207
- override
1208
- .returns(
1209
- [Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage]
1210
- )
1402
+ override.returns(
1403
+ T::Array[
1404
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Variants
1405
+ ]
1406
+ )
1407
+ end
1408
+ def self.variants
1211
1409
  end
1212
- def self.variants; end
1213
1410
  end
1214
1411
 
1215
1412
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
1413
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1414
+
1216
1415
  sig { returns(T.nilable(Time)) }
1217
1416
  attr_accessor :end_date
1218
1417
 
@@ -1226,18 +1425,33 @@ module Orb
1226
1425
  attr_accessor :start_date
1227
1426
 
1228
1427
  sig do
1229
- params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time)
1230
- .returns(T.attached_class)
1428
+ params(
1429
+ end_date: T.nilable(Time),
1430
+ price_id: String,
1431
+ quantity: Float,
1432
+ start_date: Time
1433
+ ).returns(T.attached_class)
1434
+ end
1435
+ def self.new(end_date:, price_id:, quantity:, start_date:)
1231
1436
  end
1232
- def self.new(end_date:, price_id:, quantity:, start_date:); end
1233
1437
 
1234
1438
  sig do
1235
- override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time})
1439
+ override.returns(
1440
+ {
1441
+ end_date: T.nilable(Time),
1442
+ price_id: String,
1443
+ quantity: Float,
1444
+ start_date: Time
1445
+ }
1446
+ )
1447
+ end
1448
+ def to_hash
1236
1449
  end
1237
- def to_hash; end
1238
1450
  end
1239
1451
 
1240
1452
  class MaximumInterval < Orb::Internal::Type::BaseModel
1453
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1454
+
1241
1455
  # The price ids that this maximum interval applies to.
1242
1456
  sig { returns(T::Array[String]) }
1243
1457
  attr_accessor :applies_to_price_ids
@@ -1266,8 +1480,7 @@ module Orb
1266
1480
  end_date: T.nilable(Time),
1267
1481
  maximum_amount: String,
1268
1482
  start_date: Time
1269
- )
1270
- .returns(T.attached_class)
1483
+ ).returns(T.attached_class)
1271
1484
  end
1272
1485
  def self.new(
1273
1486
  # The price ids that this maximum interval applies to.
@@ -1281,23 +1494,27 @@ module Orb
1281
1494
  maximum_amount:,
1282
1495
  # The start date of the maximum interval.
1283
1496
  start_date:
1284
- ); end
1497
+ )
1498
+ end
1499
+
1285
1500
  sig do
1286
- override
1287
- .returns(
1288
- {
1289
- applies_to_price_ids: T::Array[String],
1290
- applies_to_price_interval_ids: T::Array[String],
1291
- end_date: T.nilable(Time),
1292
- maximum_amount: String,
1293
- start_date: Time
1294
- }
1295
- )
1501
+ override.returns(
1502
+ {
1503
+ applies_to_price_ids: T::Array[String],
1504
+ applies_to_price_interval_ids: T::Array[String],
1505
+ end_date: T.nilable(Time),
1506
+ maximum_amount: String,
1507
+ start_date: Time
1508
+ }
1509
+ )
1510
+ end
1511
+ def to_hash
1296
1512
  end
1297
- def to_hash; end
1298
1513
  end
1299
1514
 
1300
1515
  class MinimumInterval < Orb::Internal::Type::BaseModel
1516
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1517
+
1301
1518
  # The price ids that this minimum interval applies to.
1302
1519
  sig { returns(T::Array[String]) }
1303
1520
  attr_accessor :applies_to_price_ids
@@ -1326,8 +1543,7 @@ module Orb
1326
1543
  end_date: T.nilable(Time),
1327
1544
  minimum_amount: String,
1328
1545
  start_date: Time
1329
- )
1330
- .returns(T.attached_class)
1546
+ ).returns(T.attached_class)
1331
1547
  end
1332
1548
  def self.new(
1333
1549
  # The price ids that this minimum interval applies to.
@@ -1341,35 +1557,43 @@ module Orb
1341
1557
  minimum_amount:,
1342
1558
  # The start date of the minimum interval.
1343
1559
  start_date:
1344
- ); end
1560
+ )
1561
+ end
1562
+
1345
1563
  sig do
1346
- override
1347
- .returns(
1348
- {
1349
- applies_to_price_ids: T::Array[String],
1350
- applies_to_price_interval_ids: T::Array[String],
1351
- end_date: T.nilable(Time),
1352
- minimum_amount: String,
1353
- start_date: Time
1354
- }
1355
- )
1564
+ override.returns(
1565
+ {
1566
+ applies_to_price_ids: T::Array[String],
1567
+ applies_to_price_interval_ids: T::Array[String],
1568
+ end_date: T.nilable(Time),
1569
+ minimum_amount: String,
1570
+ start_date: Time
1571
+ }
1572
+ )
1573
+ end
1574
+ def to_hash
1356
1575
  end
1357
- def to_hash; end
1358
1576
  end
1359
1577
 
1360
1578
  class PendingSubscriptionChange < Orb::Internal::Type::BaseModel
1579
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1580
+
1361
1581
  sig { returns(String) }
1362
1582
  attr_accessor :id
1363
1583
 
1364
1584
  # A pending subscription change if one exists on this subscription.
1365
1585
  sig { params(id: String).returns(T.attached_class) }
1366
- def self.new(id:); end
1586
+ def self.new(id:)
1587
+ end
1367
1588
 
1368
- sig { override.returns({id: String}) }
1369
- def to_hash; end
1589
+ sig { override.returns({ id: String }) }
1590
+ def to_hash
1591
+ end
1370
1592
  end
1371
1593
 
1372
1594
  class PriceInterval < Orb::Internal::Type::BaseModel
1595
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1596
+
1373
1597
  sig { returns(String) }
1374
1598
  attr_accessor :id
1375
1599
 
@@ -1403,7 +1627,9 @@ module Orb
1403
1627
  sig do
1404
1628
  returns(
1405
1629
  T.nilable(
1406
- T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition]
1630
+ T::Array[
1631
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
1632
+ ]
1407
1633
  )
1408
1634
  )
1409
1635
  end
@@ -1422,34 +1648,34 @@ module Orb
1422
1648
  sig do
1423
1649
  returns(
1424
1650
  T.any(
1425
- Orb::Models::Price::Unit,
1426
- Orb::Models::Price::Package,
1427
- Orb::Models::Price::Matrix,
1428
- Orb::Models::Price::Tiered,
1429
- Orb::Models::Price::TieredBps,
1430
- Orb::Models::Price::Bps,
1431
- Orb::Models::Price::BulkBps,
1432
- Orb::Models::Price::Bulk,
1433
- Orb::Models::Price::ThresholdTotalAmount,
1434
- Orb::Models::Price::TieredPackage,
1435
- Orb::Models::Price::GroupedTiered,
1436
- Orb::Models::Price::TieredWithMinimum,
1437
- Orb::Models::Price::TieredPackageWithMinimum,
1438
- Orb::Models::Price::PackageWithAllocation,
1439
- Orb::Models::Price::UnitWithPercent,
1440
- Orb::Models::Price::MatrixWithAllocation,
1441
- Orb::Models::Price::TieredWithProration,
1442
- Orb::Models::Price::UnitWithProration,
1443
- Orb::Models::Price::GroupedAllocation,
1444
- Orb::Models::Price::GroupedWithProratedMinimum,
1445
- Orb::Models::Price::GroupedWithMeteredMinimum,
1446
- Orb::Models::Price::MatrixWithDisplayName,
1447
- Orb::Models::Price::BulkWithProration,
1448
- Orb::Models::Price::GroupedTieredPackage,
1449
- Orb::Models::Price::MaxGroupTieredPackage,
1450
- Orb::Models::Price::ScalableMatrixWithUnitPricing,
1451
- Orb::Models::Price::ScalableMatrixWithTieredPricing,
1452
- Orb::Models::Price::CumulativeGroupedBulk
1651
+ Orb::Price::Unit,
1652
+ Orb::Price::Package,
1653
+ Orb::Price::Matrix,
1654
+ Orb::Price::Tiered,
1655
+ Orb::Price::TieredBps,
1656
+ Orb::Price::Bps,
1657
+ Orb::Price::BulkBps,
1658
+ Orb::Price::Bulk,
1659
+ Orb::Price::ThresholdTotalAmount,
1660
+ Orb::Price::TieredPackage,
1661
+ Orb::Price::GroupedTiered,
1662
+ Orb::Price::TieredWithMinimum,
1663
+ Orb::Price::TieredPackageWithMinimum,
1664
+ Orb::Price::PackageWithAllocation,
1665
+ Orb::Price::UnitWithPercent,
1666
+ Orb::Price::MatrixWithAllocation,
1667
+ Orb::Price::TieredWithProration,
1668
+ Orb::Price::UnitWithProration,
1669
+ Orb::Price::GroupedAllocation,
1670
+ Orb::Price::GroupedWithProratedMinimum,
1671
+ Orb::Price::GroupedWithMeteredMinimum,
1672
+ Orb::Price::MatrixWithDisplayName,
1673
+ Orb::Price::BulkWithProration,
1674
+ Orb::Price::GroupedTieredPackage,
1675
+ Orb::Price::MaxGroupTieredPackage,
1676
+ Orb::Price::ScalableMatrixWithUnitPricing,
1677
+ Orb::Price::ScalableMatrixWithTieredPricing,
1678
+ Orb::Price::CumulativeGroupedBulk
1453
1679
  )
1454
1680
  )
1455
1681
  end
@@ -1476,49 +1702,46 @@ module Orb
1476
1702
  current_billing_period_start_date: T.nilable(Time),
1477
1703
  end_date: T.nilable(Time),
1478
1704
  filter: T.nilable(String),
1479
- fixed_fee_quantity_transitions: T.nilable(
1480
- T::Array[
1481
- T.any(
1482
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition,
1483
- Orb::Internal::AnyHash
1484
- )
1485
- ]
1486
- ),
1487
- price: T.any(
1488
- Orb::Models::Price::Unit,
1489
- Orb::Internal::AnyHash,
1490
- Orb::Models::Price::Package,
1491
- Orb::Models::Price::Matrix,
1492
- Orb::Models::Price::Tiered,
1493
- Orb::Models::Price::TieredBps,
1494
- Orb::Models::Price::Bps,
1495
- Orb::Models::Price::BulkBps,
1496
- Orb::Models::Price::Bulk,
1497
- Orb::Models::Price::ThresholdTotalAmount,
1498
- Orb::Models::Price::TieredPackage,
1499
- Orb::Models::Price::GroupedTiered,
1500
- Orb::Models::Price::TieredWithMinimum,
1501
- Orb::Models::Price::TieredPackageWithMinimum,
1502
- Orb::Models::Price::PackageWithAllocation,
1503
- Orb::Models::Price::UnitWithPercent,
1504
- Orb::Models::Price::MatrixWithAllocation,
1505
- Orb::Models::Price::TieredWithProration,
1506
- Orb::Models::Price::UnitWithProration,
1507
- Orb::Models::Price::GroupedAllocation,
1508
- Orb::Models::Price::GroupedWithProratedMinimum,
1509
- Orb::Models::Price::GroupedWithMeteredMinimum,
1510
- Orb::Models::Price::MatrixWithDisplayName,
1511
- Orb::Models::Price::BulkWithProration,
1512
- Orb::Models::Price::GroupedTieredPackage,
1513
- Orb::Models::Price::MaxGroupTieredPackage,
1514
- Orb::Models::Price::ScalableMatrixWithUnitPricing,
1515
- Orb::Models::Price::ScalableMatrixWithTieredPricing,
1516
- Orb::Models::Price::CumulativeGroupedBulk
1517
- ),
1705
+ fixed_fee_quantity_transitions:
1706
+ T.nilable(
1707
+ T::Array[
1708
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition::OrHash
1709
+ ]
1710
+ ),
1711
+ price:
1712
+ T.any(
1713
+ Orb::Price::Unit::OrHash,
1714
+ Orb::Price::Package::OrHash,
1715
+ Orb::Price::Matrix::OrHash,
1716
+ Orb::Price::Tiered::OrHash,
1717
+ Orb::Price::TieredBps::OrHash,
1718
+ Orb::Price::Bps::OrHash,
1719
+ Orb::Price::BulkBps::OrHash,
1720
+ Orb::Price::Bulk::OrHash,
1721
+ Orb::Price::ThresholdTotalAmount::OrHash,
1722
+ Orb::Price::TieredPackage::OrHash,
1723
+ Orb::Price::GroupedTiered::OrHash,
1724
+ Orb::Price::TieredWithMinimum::OrHash,
1725
+ Orb::Price::TieredPackageWithMinimum::OrHash,
1726
+ Orb::Price::PackageWithAllocation::OrHash,
1727
+ Orb::Price::UnitWithPercent::OrHash,
1728
+ Orb::Price::MatrixWithAllocation::OrHash,
1729
+ Orb::Price::TieredWithProration::OrHash,
1730
+ Orb::Price::UnitWithProration::OrHash,
1731
+ Orb::Price::GroupedAllocation::OrHash,
1732
+ Orb::Price::GroupedWithProratedMinimum::OrHash,
1733
+ Orb::Price::GroupedWithMeteredMinimum::OrHash,
1734
+ Orb::Price::MatrixWithDisplayName::OrHash,
1735
+ Orb::Price::BulkWithProration::OrHash,
1736
+ Orb::Price::GroupedTieredPackage::OrHash,
1737
+ Orb::Price::MaxGroupTieredPackage::OrHash,
1738
+ Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
1739
+ Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
1740
+ Orb::Price::CumulativeGroupedBulk::OrHash
1741
+ ),
1518
1742
  start_date: Time,
1519
1743
  usage_customer_ids: T.nilable(T::Array[String])
1520
- )
1521
- .returns(T.attached_class)
1744
+ ).returns(T.attached_class)
1522
1745
  end
1523
1746
  def self.new(
1524
1747
  id:,
@@ -1557,58 +1780,66 @@ module Orb
1557
1780
  # A list of customer IDs whose usage events will be aggregated and billed under
1558
1781
  # this price interval.
1559
1782
  usage_customer_ids:
1560
- ); end
1783
+ )
1784
+ end
1785
+
1561
1786
  sig do
1562
- override
1563
- .returns(
1564
- {
1565
- id: String,
1566
- billing_cycle_day: Integer,
1567
- current_billing_period_end_date: T.nilable(Time),
1568
- current_billing_period_start_date: T.nilable(Time),
1569
- end_date: T.nilable(Time),
1570
- filter: T.nilable(String),
1571
- fixed_fee_quantity_transitions: T.nilable(
1572
- T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition]
1787
+ override.returns(
1788
+ {
1789
+ id: String,
1790
+ billing_cycle_day: Integer,
1791
+ current_billing_period_end_date: T.nilable(Time),
1792
+ current_billing_period_start_date: T.nilable(Time),
1793
+ end_date: T.nilable(Time),
1794
+ filter: T.nilable(String),
1795
+ fixed_fee_quantity_transitions:
1796
+ T.nilable(
1797
+ T::Array[
1798
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition
1799
+ ]
1573
1800
  ),
1574
- price: T.any(
1575
- Orb::Models::Price::Unit,
1576
- Orb::Models::Price::Package,
1577
- Orb::Models::Price::Matrix,
1578
- Orb::Models::Price::Tiered,
1579
- Orb::Models::Price::TieredBps,
1580
- Orb::Models::Price::Bps,
1581
- Orb::Models::Price::BulkBps,
1582
- Orb::Models::Price::Bulk,
1583
- Orb::Models::Price::ThresholdTotalAmount,
1584
- Orb::Models::Price::TieredPackage,
1585
- Orb::Models::Price::GroupedTiered,
1586
- Orb::Models::Price::TieredWithMinimum,
1587
- Orb::Models::Price::TieredPackageWithMinimum,
1588
- Orb::Models::Price::PackageWithAllocation,
1589
- Orb::Models::Price::UnitWithPercent,
1590
- Orb::Models::Price::MatrixWithAllocation,
1591
- Orb::Models::Price::TieredWithProration,
1592
- Orb::Models::Price::UnitWithProration,
1593
- Orb::Models::Price::GroupedAllocation,
1594
- Orb::Models::Price::GroupedWithProratedMinimum,
1595
- Orb::Models::Price::GroupedWithMeteredMinimum,
1596
- Orb::Models::Price::MatrixWithDisplayName,
1597
- Orb::Models::Price::BulkWithProration,
1598
- Orb::Models::Price::GroupedTieredPackage,
1599
- Orb::Models::Price::MaxGroupTieredPackage,
1600
- Orb::Models::Price::ScalableMatrixWithUnitPricing,
1601
- Orb::Models::Price::ScalableMatrixWithTieredPricing,
1602
- Orb::Models::Price::CumulativeGroupedBulk
1801
+ price:
1802
+ T.any(
1803
+ Orb::Price::Unit,
1804
+ Orb::Price::Package,
1805
+ Orb::Price::Matrix,
1806
+ Orb::Price::Tiered,
1807
+ Orb::Price::TieredBps,
1808
+ Orb::Price::Bps,
1809
+ Orb::Price::BulkBps,
1810
+ Orb::Price::Bulk,
1811
+ Orb::Price::ThresholdTotalAmount,
1812
+ Orb::Price::TieredPackage,
1813
+ Orb::Price::GroupedTiered,
1814
+ Orb::Price::TieredWithMinimum,
1815
+ Orb::Price::TieredPackageWithMinimum,
1816
+ Orb::Price::PackageWithAllocation,
1817
+ Orb::Price::UnitWithPercent,
1818
+ Orb::Price::MatrixWithAllocation,
1819
+ Orb::Price::TieredWithProration,
1820
+ Orb::Price::UnitWithProration,
1821
+ Orb::Price::GroupedAllocation,
1822
+ Orb::Price::GroupedWithProratedMinimum,
1823
+ Orb::Price::GroupedWithMeteredMinimum,
1824
+ Orb::Price::MatrixWithDisplayName,
1825
+ Orb::Price::BulkWithProration,
1826
+ Orb::Price::GroupedTieredPackage,
1827
+ Orb::Price::MaxGroupTieredPackage,
1828
+ Orb::Price::ScalableMatrixWithUnitPricing,
1829
+ Orb::Price::ScalableMatrixWithTieredPricing,
1830
+ Orb::Price::CumulativeGroupedBulk
1603
1831
  ),
1604
- start_date: Time,
1605
- usage_customer_ids: T.nilable(T::Array[String])
1606
- }
1607
- )
1832
+ start_date: Time,
1833
+ usage_customer_ids: T.nilable(T::Array[String])
1834
+ }
1835
+ )
1836
+ end
1837
+ def to_hash
1608
1838
  end
1609
- def to_hash; end
1610
1839
 
1611
1840
  class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
1841
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1842
+
1612
1843
  sig { returns(Time) }
1613
1844
  attr_accessor :effective_date
1614
1845
 
@@ -1619,16 +1850,28 @@ module Orb
1619
1850
  attr_accessor :quantity
1620
1851
 
1621
1852
  sig do
1622
- params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class)
1853
+ params(
1854
+ effective_date: Time,
1855
+ price_id: String,
1856
+ quantity: Integer
1857
+ ).returns(T.attached_class)
1858
+ end
1859
+ def self.new(effective_date:, price_id:, quantity:)
1623
1860
  end
1624
- def self.new(effective_date:, price_id:, quantity:); end
1625
1861
 
1626
- sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) }
1627
- def to_hash; end
1862
+ sig do
1863
+ override.returns(
1864
+ { effective_date: Time, price_id: String, quantity: Integer }
1865
+ )
1866
+ end
1867
+ def to_hash
1868
+ end
1628
1869
  end
1629
1870
  end
1630
1871
 
1631
1872
  class RedeemedCoupon < Orb::Internal::Type::BaseModel
1873
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1874
+
1632
1875
  sig { returns(String) }
1633
1876
  attr_accessor :coupon_id
1634
1877
 
@@ -1639,59 +1882,95 @@ module Orb
1639
1882
  attr_accessor :start_date
1640
1883
 
1641
1884
  sig do
1642
- params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class)
1885
+ params(
1886
+ coupon_id: String,
1887
+ end_date: T.nilable(Time),
1888
+ start_date: Time
1889
+ ).returns(T.attached_class)
1890
+ end
1891
+ def self.new(coupon_id:, end_date:, start_date:)
1643
1892
  end
1644
- def self.new(coupon_id:, end_date:, start_date:); end
1645
1893
 
1646
- sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) }
1647
- def to_hash; end
1894
+ sig do
1895
+ override.returns(
1896
+ { coupon_id: String, end_date: T.nilable(Time), start_date: Time }
1897
+ )
1898
+ end
1899
+ def to_hash
1900
+ end
1648
1901
  end
1649
1902
 
1650
1903
  module Status
1651
1904
  extend Orb::Internal::Type::Enum
1652
1905
 
1653
1906
  TaggedSymbol =
1654
- T.type_alias { T.all(Symbol, Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status) }
1907
+ T.type_alias do
1908
+ T.all(
1909
+ Symbol,
1910
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status
1911
+ )
1912
+ end
1655
1913
  OrSymbol = T.type_alias { T.any(Symbol, String) }
1656
1914
 
1657
- ACTIVE = T.let(:active, Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol)
1658
- ENDED = T.let(:ended, Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol)
1915
+ ACTIVE =
1916
+ T.let(
1917
+ :active,
1918
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol
1919
+ )
1920
+ ENDED =
1921
+ T.let(
1922
+ :ended,
1923
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol
1924
+ )
1659
1925
  UPCOMING =
1660
- T.let(:upcoming, Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol)
1926
+ T.let(
1927
+ :upcoming,
1928
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol
1929
+ )
1661
1930
 
1662
1931
  sig do
1663
- override
1664
- .returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol])
1932
+ override.returns(
1933
+ T::Array[
1934
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol
1935
+ ]
1936
+ )
1937
+ end
1938
+ def self.values
1665
1939
  end
1666
- def self.values; end
1667
1940
  end
1668
1941
 
1669
1942
  class TrialInfo < Orb::Internal::Type::BaseModel
1943
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1944
+
1670
1945
  sig { returns(T.nilable(Time)) }
1671
1946
  attr_accessor :end_date
1672
1947
 
1673
1948
  sig { params(end_date: T.nilable(Time)).returns(T.attached_class) }
1674
- def self.new(end_date:); end
1949
+ def self.new(end_date:)
1950
+ end
1675
1951
 
1676
- sig { override.returns({end_date: T.nilable(Time)}) }
1677
- def to_hash; end
1952
+ sig { override.returns({ end_date: T.nilable(Time) }) }
1953
+ def to_hash
1954
+ end
1678
1955
  end
1679
1956
 
1680
1957
  class ChangedResources < Orb::Internal::Type::BaseModel
1958
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1959
+
1681
1960
  # The credit notes that were created as part of this operation.
1682
- sig { returns(T::Array[Orb::Models::CreditNote]) }
1961
+ sig { returns(T::Array[Orb::CreditNote]) }
1683
1962
  attr_accessor :created_credit_notes
1684
1963
 
1685
1964
  # The invoices that were created as part of this operation.
1686
- sig { returns(T::Array[Orb::Models::Invoice]) }
1965
+ sig { returns(T::Array[Orb::Invoice]) }
1687
1966
  attr_accessor :created_invoices
1688
1967
 
1689
1968
  # The credit notes that were voided as part of this operation.
1690
- sig { returns(T::Array[Orb::Models::CreditNote]) }
1969
+ sig { returns(T::Array[Orb::CreditNote]) }
1691
1970
  attr_accessor :voided_credit_notes
1692
1971
 
1693
1972
  # The invoices that were voided as part of this operation.
1694
- sig { returns(T::Array[Orb::Models::Invoice]) }
1973
+ sig { returns(T::Array[Orb::Invoice]) }
1695
1974
  attr_accessor :voided_invoices
1696
1975
 
1697
1976
  # The resources that were changed as part of this operation. Only present when
@@ -1699,12 +1978,11 @@ module Orb
1699
1978
  # `include_changed_resources` parameter was passed in the request.
1700
1979
  sig do
1701
1980
  params(
1702
- created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)],
1703
- created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)],
1704
- voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)],
1705
- voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)]
1706
- )
1707
- .returns(T.attached_class)
1981
+ created_credit_notes: T::Array[Orb::CreditNote::OrHash],
1982
+ created_invoices: T::Array[Orb::Invoice::OrHash],
1983
+ voided_credit_notes: T::Array[Orb::CreditNote::OrHash],
1984
+ voided_invoices: T::Array[Orb::Invoice::OrHash]
1985
+ ).returns(T.attached_class)
1708
1986
  end
1709
1987
  def self.new(
1710
1988
  # The credit notes that were created as part of this operation.
@@ -1715,19 +1993,21 @@ module Orb
1715
1993
  voided_credit_notes:,
1716
1994
  # The invoices that were voided as part of this operation.
1717
1995
  voided_invoices:
1718
- ); end
1996
+ )
1997
+ end
1998
+
1719
1999
  sig do
1720
- override
1721
- .returns(
1722
- {
1723
- created_credit_notes: T::Array[Orb::Models::CreditNote],
1724
- created_invoices: T::Array[Orb::Models::Invoice],
1725
- voided_credit_notes: T::Array[Orb::Models::CreditNote],
1726
- voided_invoices: T::Array[Orb::Models::Invoice]
1727
- }
1728
- )
2000
+ override.returns(
2001
+ {
2002
+ created_credit_notes: T::Array[Orb::CreditNote],
2003
+ created_invoices: T::Array[Orb::Invoice],
2004
+ voided_credit_notes: T::Array[Orb::CreditNote],
2005
+ voided_invoices: T::Array[Orb::Invoice]
2006
+ }
2007
+ )
2008
+ end
2009
+ def to_hash
1729
2010
  end
1730
- def to_hash; end
1731
2011
  end
1732
2012
  end
1733
2013
  end