orb-billing 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +4 -4
  4. data/SECURITY.md +2 -2
  5. data/lib/orb/internal/type/array_of.rb +8 -0
  6. data/lib/orb/internal/type/base_model.rb +7 -0
  7. data/lib/orb/internal/type/boolean.rb +8 -0
  8. data/lib/orb/internal/type/enum.rb +12 -0
  9. data/lib/orb/internal/type/file_input.rb +7 -0
  10. data/lib/orb/internal/type/hash_of.rb +8 -0
  11. data/lib/orb/internal/type/union.rb +12 -0
  12. data/lib/orb/internal/type/unknown.rb +8 -0
  13. data/lib/orb/internal/util.rb +45 -0
  14. data/lib/orb/internal.rb +3 -0
  15. data/lib/orb/models/alert.rb +23 -23
  16. data/lib/orb/models/alert_create_for_customer_params.rb +5 -5
  17. data/lib/orb/models/alert_create_for_external_customer_params.rb +5 -5
  18. data/lib/orb/models/alert_create_for_subscription_params.rb +5 -5
  19. data/lib/orb/models/alert_update_params.rb +3 -3
  20. data/lib/orb/models/amount_discount.rb +5 -5
  21. data/lib/orb/models/billable_metric.rb +7 -7
  22. data/lib/orb/models/coupon.rb +6 -10
  23. data/lib/orb/models/coupon_create_params.rb +3 -9
  24. data/lib/orb/models/credit_note.rb +33 -33
  25. data/lib/orb/models/credit_note_create_params.rb +4 -4
  26. data/lib/orb/models/customer.rb +39 -39
  27. data/lib/orb/models/customer_create_params.rb +26 -35
  28. data/lib/orb/models/customer_update_by_external_id_params.rb +26 -35
  29. data/lib/orb/models/customer_update_params.rb +26 -35
  30. data/lib/orb/models/customers/balance_transaction_create_params.rb +2 -2
  31. data/lib/orb/models/customers/cost_list_by_external_id_params.rb +2 -2
  32. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +2 -2
  33. data/lib/orb/models/customers/cost_list_params.rb +2 -2
  34. data/lib/orb/models/customers/cost_list_response.rb +2 -2
  35. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +7 -7
  36. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +0 -14
  37. data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +8 -8
  38. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +0 -14
  39. data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +4 -4
  40. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +0 -14
  41. data/lib/orb/models/customers/credits/ledger_list_params.rb +4 -4
  42. data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -14
  43. data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +6 -6
  44. data/lib/orb/models/customers/credits/top_up_create_params.rb +6 -5
  45. data/lib/orb/models/dimensional_price_group.rb +1 -1
  46. data/lib/orb/models/dimensional_price_groups.rb +4 -4
  47. data/lib/orb/models/discount.rb +1 -7
  48. data/lib/orb/models/evaluate_price_group.rb +0 -4
  49. data/lib/orb/models/event_ingest_params.rb +3 -3
  50. data/lib/orb/models/events/event_volumes.rb +2 -2
  51. data/lib/orb/models/invoice.rb +114 -135
  52. data/lib/orb/models/invoice_create_params.rb +10 -10
  53. data/lib/orb/models/invoice_fetch_upcoming_response.rb +6 -28
  54. data/lib/orb/models/invoice_level_discount.rb +1 -5
  55. data/lib/orb/models/invoice_line_item_create_response.rb +4 -26
  56. data/lib/orb/models/invoice_list_params.rb +4 -4
  57. data/lib/orb/models/item.rb +5 -5
  58. data/lib/orb/models/item_update_params.rb +5 -5
  59. data/lib/orb/models/percentage_discount.rb +5 -5
  60. data/lib/orb/models/plan.rb +58 -70
  61. data/lib/orb/models/plan_create_params.rb +448 -476
  62. data/lib/orb/models/plan_list_params.rb +2 -2
  63. data/lib/orb/models/price.rb +1204 -1239
  64. data/lib/orb/models/price_create_params.rb +50 -50
  65. data/lib/orb/models/price_evaluate_response.rb +2 -2
  66. data/lib/orb/models/subscription.rb +58 -78
  67. data/lib/orb/models/subscription_cancel_params.rb +2 -2
  68. data/lib/orb/models/subscription_cancel_response.rb +14 -36
  69. data/lib/orb/models/subscription_change_apply_response.rb +14 -36
  70. data/lib/orb/models/subscription_change_cancel_response.rb +14 -36
  71. data/lib/orb/models/subscription_change_retrieve_response.rb +14 -36
  72. data/lib/orb/models/subscription_create_params.rb +1002 -1075
  73. data/lib/orb/models/subscription_create_response.rb +14 -36
  74. data/lib/orb/models/subscription_fetch_costs_params.rb +2 -2
  75. data/lib/orb/models/subscription_fetch_costs_response.rb +2 -2
  76. data/lib/orb/models/subscription_fetch_usage_params.rb +4 -4
  77. data/lib/orb/models/subscription_list_params.rb +2 -2
  78. data/lib/orb/models/subscription_price_intervals_params.rb +596 -674
  79. data/lib/orb/models/subscription_price_intervals_response.rb +14 -36
  80. data/lib/orb/models/subscription_schedule_plan_change_params.rb +973 -1059
  81. data/lib/orb/models/subscription_schedule_plan_change_response.rb +14 -36
  82. data/lib/orb/models/subscription_trigger_phase_response.rb +14 -36
  83. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +14 -36
  84. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +14 -36
  85. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +14 -36
  86. data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +2 -2
  87. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +14 -36
  88. data/lib/orb/models/subscription_update_trial_params.rb +3 -3
  89. data/lib/orb/models/subscription_update_trial_response.rb +14 -36
  90. data/lib/orb/models/subscription_usage.rb +26 -35
  91. data/lib/orb/models/subscriptions.rb +4 -4
  92. data/lib/orb/models/trial_discount.rb +5 -5
  93. data/lib/orb/models/usage_discount.rb +5 -5
  94. data/lib/orb/models.rb +30 -16
  95. data/lib/orb/resources/alerts.rb +15 -15
  96. data/lib/orb/resources/coupons/subscriptions.rb +1 -1
  97. data/lib/orb/resources/coupons.rb +5 -5
  98. data/lib/orb/resources/credit_notes.rb +5 -5
  99. data/lib/orb/resources/customers/balance_transactions.rb +1 -1
  100. data/lib/orb/resources/customers/costs.rb +2 -2
  101. data/lib/orb/resources/customers/credits/ledger.rb +10 -10
  102. data/lib/orb/resources/customers/credits/top_ups.rb +4 -4
  103. data/lib/orb/resources/customers.rb +30 -30
  104. data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +1 -1
  105. data/lib/orb/resources/dimensional_price_groups.rb +3 -3
  106. data/lib/orb/resources/events/volume.rb +1 -1
  107. data/lib/orb/resources/events.rb +1 -1
  108. data/lib/orb/resources/invoices.rb +12 -12
  109. data/lib/orb/resources/items.rb +5 -5
  110. data/lib/orb/resources/metrics.rb +4 -4
  111. data/lib/orb/resources/plans/external_plan_id.rb +2 -2
  112. data/lib/orb/resources/plans.rb +7 -7
  113. data/lib/orb/resources/prices/external_price_id.rb +2 -2
  114. data/lib/orb/resources/prices.rb +17 -17
  115. data/lib/orb/resources/subscriptions.rb +32 -32
  116. data/lib/orb/version.rb +1 -1
  117. data/rbi/orb/internal/type/array_of.rbi +6 -0
  118. data/rbi/orb/internal/type/base_model.rbi +5 -0
  119. data/rbi/orb/internal/type/boolean.rbi +6 -0
  120. data/rbi/orb/internal/type/enum.rbi +5 -0
  121. data/rbi/orb/internal/type/file_input.rbi +5 -0
  122. data/rbi/orb/internal/type/hash_of.rbi +6 -0
  123. data/rbi/orb/internal/type/union.rbi +5 -0
  124. data/rbi/orb/internal/type/unknown.rbi +6 -0
  125. data/rbi/orb/internal/util.rbi +30 -0
  126. data/rbi/orb/internal.rbi +3 -0
  127. data/rbi/orb/models/coupon.rbi +2 -2
  128. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +2 -65
  129. data/rbi/orb/models/customers/cost_list_response.rbi +2 -65
  130. data/rbi/orb/models/evaluate_price_group.rbi +7 -3
  131. data/rbi/orb/models/invoice.rbi +10 -149
  132. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +10 -133
  133. data/rbi/orb/models/invoice_line_item_create_response.rbi +8 -114
  134. data/rbi/orb/models/plan.rbi +8 -134
  135. data/rbi/orb/models/price.rbi +56 -588
  136. data/rbi/orb/models/subscription.rbi +6 -99
  137. data/rbi/orb/models/subscription_cancel_response.rbi +6 -89
  138. data/rbi/orb/models/subscription_change_apply_response.rbi +6 -89
  139. data/rbi/orb/models/subscription_change_cancel_response.rbi +6 -89
  140. data/rbi/orb/models/subscription_change_retrieve_response.rbi +6 -89
  141. data/rbi/orb/models/subscription_create_response.rbi +6 -89
  142. data/rbi/orb/models/subscription_fetch_costs_response.rbi +2 -65
  143. data/rbi/orb/models/subscription_price_intervals_response.rbi +6 -89
  144. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +6 -89
  145. data/rbi/orb/models/subscription_trigger_phase_response.rbi +6 -89
  146. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +6 -89
  147. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +6 -89
  148. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +6 -89
  149. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +6 -89
  150. data/rbi/orb/models/subscription_update_trial_response.rbi +6 -89
  151. data/rbi/orb/resources/customers/credits/ledger.rbi +4 -36
  152. data/rbi/orb/resources/prices/external_price_id.rbi +2 -64
  153. data/rbi/orb/resources/prices.rbi +4 -130
  154. data/rbi/orb/resources/subscriptions.rbi +1 -6
  155. data/sig/orb/internal/page.rbs +2 -0
  156. data/sig/orb/internal/type/array_of.rbs +3 -0
  157. data/sig/orb/internal/type/base_model.rbs +2 -0
  158. data/sig/orb/internal/type/boolean.rbs +3 -0
  159. data/sig/orb/internal/type/enum.rbs +2 -0
  160. data/sig/orb/internal/type/file_input.rbs +2 -0
  161. data/sig/orb/internal/type/hash_of.rbs +3 -0
  162. data/sig/orb/internal/type/union.rbs +2 -0
  163. data/sig/orb/internal/type/unknown.rbs +3 -0
  164. data/sig/orb/internal/util.rbs +12 -0
  165. data/sig/orb/internal.rbs +2 -0
  166. data/sig/orb/models/alert.rbs +32 -4
  167. data/sig/orb/models/alert_create_for_customer_params.rbs +9 -0
  168. data/sig/orb/models/alert_create_for_external_customer_params.rbs +9 -0
  169. data/sig/orb/models/alert_create_for_subscription_params.rbs +9 -0
  170. data/sig/orb/models/alert_disable_params.rbs +5 -0
  171. data/sig/orb/models/alert_enable_params.rbs +5 -0
  172. data/sig/orb/models/alert_list_params.rbs +13 -0
  173. data/sig/orb/models/alert_retrieve_params.rbs +2 -0
  174. data/sig/orb/models/alert_update_params.rbs +7 -0
  175. data/sig/orb/models/amount_discount.rbs +11 -4
  176. data/sig/orb/models/billable_metric.rbs +13 -4
  177. data/sig/orb/models/coupon.rbs +14 -4
  178. data/sig/orb/models/coupon_archive_params.rbs +2 -0
  179. data/sig/orb/models/coupon_create_params.rbs +15 -0
  180. data/sig/orb/models/coupon_fetch_params.rbs +2 -0
  181. data/sig/orb/models/coupon_list_params.rbs +8 -0
  182. data/sig/orb/models/coupons/subscription_list_params.rbs +6 -0
  183. data/sig/orb/models/credit_note.rbs +88 -20
  184. data/sig/orb/models/credit_note_create_params.rbs +9 -0
  185. data/sig/orb/models/credit_note_fetch_params.rbs +2 -0
  186. data/sig/orb/models/credit_note_list_params.rbs +10 -0
  187. data/sig/orb/models/customer.rbs +86 -16
  188. data/sig/orb/models/customer_create_params.rbs +79 -8
  189. data/sig/orb/models/customer_delete_params.rbs +2 -0
  190. data/sig/orb/models/customer_fetch_by_external_id_params.rbs +2 -0
  191. data/sig/orb/models/customer_fetch_params.rbs +2 -0
  192. data/sig/orb/models/customer_list_params.rbs +10 -0
  193. data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +2 -0
  194. data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +2 -0
  195. data/sig/orb/models/customer_update_by_external_id_params.rbs +78 -8
  196. data/sig/orb/models/customer_update_params.rbs +78 -8
  197. data/sig/orb/models/customers/balance_transaction_create_params.rbs +7 -0
  198. data/sig/orb/models/customers/balance_transaction_create_response.rbs +17 -0
  199. data/sig/orb/models/customers/balance_transaction_list_params.rbs +10 -0
  200. data/sig/orb/models/customers/balance_transaction_list_response.rbs +17 -0
  201. data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +8 -0
  202. data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +20 -0
  203. data/sig/orb/models/customers/cost_list_params.rbs +8 -0
  204. data/sig/orb/models/customers/cost_list_response.rbs +20 -0
  205. data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +8 -0
  206. data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +10 -0
  207. data/sig/orb/models/customers/credit_list_params.rbs +8 -0
  208. data/sig/orb/models/customers/credit_list_response.rbs +10 -0
  209. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +23 -0
  210. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +177 -0
  211. data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +23 -0
  212. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +177 -0
  213. data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +14 -0
  214. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +177 -0
  215. data/sig/orb/models/customers/credits/ledger_list_params.rbs +14 -0
  216. data/sig/orb/models/customers/credits/ledger_list_response.rbs +177 -0
  217. data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +19 -0
  218. data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +18 -0
  219. data/sig/orb/models/customers/credits/top_up_create_params.rbs +19 -0
  220. data/sig/orb/models/customers/credits/top_up_create_response.rbs +18 -0
  221. data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +5 -0
  222. data/sig/orb/models/customers/credits/top_up_delete_params.rbs +5 -0
  223. data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +6 -0
  224. data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +18 -0
  225. data/sig/orb/models/customers/credits/top_up_list_params.rbs +6 -0
  226. data/sig/orb/models/customers/credits/top_up_list_response.rbs +18 -0
  227. data/sig/orb/models/dimensional_price_group.rbs +9 -0
  228. data/sig/orb/models/dimensional_price_group_create_params.rbs +9 -0
  229. data/sig/orb/models/dimensional_price_group_list_params.rbs +6 -0
  230. data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +2 -0
  231. data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +2 -0
  232. data/sig/orb/models/dimensional_price_groups.rbs +5 -0
  233. data/sig/orb/models/evaluate_price_group.rbs +10 -4
  234. data/sig/orb/models/event_deprecate_params.rbs +2 -0
  235. data/sig/orb/models/event_deprecate_response.rbs +2 -0
  236. data/sig/orb/models/event_ingest_params.rbs +16 -0
  237. data/sig/orb/models/event_ingest_response.rbs +15 -0
  238. data/sig/orb/models/event_search_params.rbs +7 -0
  239. data/sig/orb/models/event_search_response.rbs +12 -0
  240. data/sig/orb/models/event_update_params.rbs +9 -0
  241. data/sig/orb/models/event_update_response.rbs +2 -0
  242. data/sig/orb/models/events/backfill_close_params.rbs +2 -0
  243. data/sig/orb/models/events/backfill_close_response.rbs +14 -0
  244. data/sig/orb/models/events/backfill_create_params.rbs +11 -0
  245. data/sig/orb/models/events/backfill_create_response.rbs +14 -0
  246. data/sig/orb/models/events/backfill_fetch_params.rbs +2 -0
  247. data/sig/orb/models/events/backfill_fetch_response.rbs +14 -0
  248. data/sig/orb/models/events/backfill_list_params.rbs +6 -0
  249. data/sig/orb/models/events/backfill_list_response.rbs +14 -0
  250. data/sig/orb/models/events/backfill_revert_params.rbs +2 -0
  251. data/sig/orb/models/events/backfill_revert_response.rbs +14 -0
  252. data/sig/orb/models/events/event_volumes.rbs +8 -0
  253. data/sig/orb/models/events/volume_list_params.rbs +8 -0
  254. data/sig/orb/models/invoice.rbs +293 -36
  255. data/sig/orb/models/invoice_create_params.rbs +30 -4
  256. data/sig/orb/models/invoice_fetch_params.rbs +2 -0
  257. data/sig/orb/models/invoice_fetch_upcoming_params.rbs +5 -0
  258. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +257 -0
  259. data/sig/orb/models/invoice_issue_params.rbs +5 -0
  260. data/sig/orb/models/invoice_line_item_create_params.rbs +10 -0
  261. data/sig/orb/models/invoice_line_item_create_response.rbs +132 -0
  262. data/sig/orb/models/invoice_list_params.rbs +27 -4
  263. data/sig/orb/models/invoice_mark_paid_params.rbs +7 -0
  264. data/sig/orb/models/invoice_pay_params.rbs +2 -0
  265. data/sig/orb/models/invoice_update_params.rbs +5 -0
  266. data/sig/orb/models/invoice_void_params.rbs +2 -0
  267. data/sig/orb/models/item.rbs +16 -4
  268. data/sig/orb/models/item_create_params.rbs +2 -0
  269. data/sig/orb/models/item_fetch_params.rbs +2 -0
  270. data/sig/orb/models/item_list_params.rbs +6 -0
  271. data/sig/orb/models/item_update_params.rbs +15 -4
  272. data/sig/orb/models/metric_create_params.rbs +9 -0
  273. data/sig/orb/models/metric_fetch_params.rbs +2 -0
  274. data/sig/orb/models/metric_list_params.rbs +10 -0
  275. data/sig/orb/models/metric_update_params.rbs +5 -0
  276. data/sig/orb/models/pagination_metadata.rbs +2 -0
  277. data/sig/orb/models/percentage_discount.rbs +11 -4
  278. data/sig/orb/models/plan.rbs +141 -16
  279. data/sig/orb/models/plan_create_params.rbs +1070 -304
  280. data/sig/orb/models/plan_fetch_params.rbs +2 -0
  281. data/sig/orb/models/plan_list_params.rbs +11 -0
  282. data/sig/orb/models/plan_update_params.rbs +6 -0
  283. data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +2 -0
  284. data/sig/orb/models/plans/external_plan_id_update_params.rbs +6 -0
  285. data/sig/orb/models/price.rbs +2148 -460
  286. data/sig/orb/models/price_create_params.rbs +130 -8
  287. data/sig/orb/models/price_evaluate_params.rbs +10 -0
  288. data/sig/orb/models/price_evaluate_response.rbs +2 -0
  289. data/sig/orb/models/price_fetch_params.rbs +2 -0
  290. data/sig/orb/models/price_list_params.rbs +6 -0
  291. data/sig/orb/models/price_update_params.rbs +5 -0
  292. data/sig/orb/models/prices/external_price_id_fetch_params.rbs +2 -0
  293. data/sig/orb/models/prices/external_price_id_update_params.rbs +5 -0
  294. data/sig/orb/models/subscription.rbs +177 -12
  295. data/sig/orb/models/subscription_cancel_params.rbs +7 -0
  296. data/sig/orb/models/subscription_cancel_response.rbs +173 -0
  297. data/sig/orb/models/subscription_change_apply_params.rbs +6 -0
  298. data/sig/orb/models/subscription_change_apply_response.rbs +186 -0
  299. data/sig/orb/models/subscription_change_cancel_params.rbs +2 -0
  300. data/sig/orb/models/subscription_change_cancel_response.rbs +186 -0
  301. data/sig/orb/models/subscription_change_retrieve_params.rbs +2 -0
  302. data/sig/orb/models/subscription_change_retrieve_response.rbs +186 -0
  303. data/sig/orb/models/subscription_create_params.rbs +2368 -632
  304. data/sig/orb/models/subscription_create_response.rbs +173 -0
  305. data/sig/orb/models/subscription_fetch_costs_params.rbs +8 -0
  306. data/sig/orb/models/subscription_fetch_costs_response.rbs +20 -0
  307. data/sig/orb/models/subscription_fetch_params.rbs +2 -0
  308. data/sig/orb/models/subscription_fetch_schedule_params.rbs +10 -0
  309. data/sig/orb/models/subscription_fetch_schedule_response.rbs +13 -0
  310. data/sig/orb/models/subscription_fetch_usage_params.rbs +14 -0
  311. data/sig/orb/models/subscription_list_params.rbs +13 -0
  312. data/sig/orb/models/subscription_price_intervals_params.rbs +1348 -396
  313. data/sig/orb/models/subscription_price_intervals_response.rbs +173 -0
  314. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +2363 -632
  315. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +173 -0
  316. data/sig/orb/models/subscription_trigger_phase_params.rbs +6 -0
  317. data/sig/orb/models/subscription_trigger_phase_response.rbs +173 -0
  318. data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +2 -0
  319. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +173 -0
  320. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +2 -0
  321. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +173 -0
  322. data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +2 -0
  323. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +173 -0
  324. data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +9 -0
  325. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +173 -0
  326. data/sig/orb/models/subscription_update_params.rbs +9 -0
  327. data/sig/orb/models/subscription_update_trial_params.rbs +6 -0
  328. data/sig/orb/models/subscription_update_trial_response.rbs +173 -0
  329. data/sig/orb/models/subscription_usage.rbs +48 -8
  330. data/sig/orb/models/subscriptions.rbs +5 -0
  331. data/sig/orb/models/top_level_ping_params.rbs +2 -0
  332. data/sig/orb/models/top_level_ping_response.rbs +2 -0
  333. data/sig/orb/models/trial_discount.rbs +12 -4
  334. data/sig/orb/models/usage_discount.rbs +11 -4
  335. data/sig/orb/resources/invoices.rbs +1 -1
  336. data/sig/orb/resources/plans.rbs +1 -1
  337. metadata +2 -2
@@ -20,7 +20,7 @@ module Orb
20
20
  # The adjustment intervals for this subscription sorted by the start_date of the
21
21
  # adjustment interval.
22
22
  #
23
- # @return [Array<Orb::Subscription::AdjustmentInterval>]
23
+ # @return [Array<Orb::Models::Subscription::AdjustmentInterval>]
24
24
  required :adjustment_intervals,
25
25
  -> {
26
26
  Orb::Internal::Type::ArrayOf[Orb::Subscription::AdjustmentInterval]
@@ -36,7 +36,7 @@ module Orb
36
36
 
37
37
  # @!attribute billing_cycle_anchor_configuration
38
38
  #
39
- # @return [Orb::Subscription::BillingCycleAnchorConfiguration]
39
+ # @return [Orb::Models::Subscription::BillingCycleAnchorConfiguration]
40
40
  required :billing_cycle_anchor_configuration, -> { Orb::Subscription::BillingCycleAnchorConfiguration }
41
41
 
42
42
  # @!attribute billing_cycle_day
@@ -89,7 +89,7 @@ module Orb
89
89
  # your account's timezone. See [Timezone localization](/essentials/timezones) for
90
90
  # information on what this timezone parameter influences within Orb.
91
91
  #
92
- # @return [Orb::Customer]
92
+ # @return [Orb::Models::Customer]
93
93
  required :customer, -> { Orb::Customer }
94
94
 
95
95
  # @!attribute default_invoice_memo
@@ -102,7 +102,7 @@ module Orb
102
102
  # @!attribute discount_intervals
103
103
  # The discount intervals for this subscription sorted by the start_date.
104
104
  #
105
- # @return [Array<Orb::Subscription::DiscountInterval::Amount, Orb::Subscription::DiscountInterval::Percentage, Orb::Subscription::DiscountInterval::Usage>]
105
+ # @return [Array<Orb::Models::Subscription::DiscountInterval::Amount, Orb::Models::Subscription::DiscountInterval::Percentage, Orb::Models::Subscription::DiscountInterval::Usage>]
106
106
  required :discount_intervals,
107
107
  -> { Orb::Internal::Type::ArrayOf[union: Orb::Subscription::DiscountInterval] }
108
108
 
@@ -114,7 +114,7 @@ module Orb
114
114
 
115
115
  # @!attribute fixed_fee_quantity_schedule
116
116
  #
117
- # @return [Array<Orb::Subscription::FixedFeeQuantitySchedule>]
117
+ # @return [Array<Orb::Models::Subscription::FixedFeeQuantitySchedule>]
118
118
  required :fixed_fee_quantity_schedule,
119
119
  -> { Orb::Internal::Type::ArrayOf[Orb::Subscription::FixedFeeQuantitySchedule] }
120
120
 
@@ -126,7 +126,7 @@ module Orb
126
126
  # @!attribute maximum_intervals
127
127
  # The maximum intervals for this subscription sorted by the start_date.
128
128
  #
129
- # @return [Array<Orb::Subscription::MaximumInterval>]
129
+ # @return [Array<Orb::Models::Subscription::MaximumInterval>]
130
130
  required :maximum_intervals, -> { Orb::Internal::Type::ArrayOf[Orb::Subscription::MaximumInterval] }
131
131
 
132
132
  # @!attribute metadata
@@ -141,7 +141,7 @@ module Orb
141
141
  # @!attribute minimum_intervals
142
142
  # The minimum intervals for this subscription sorted by the start_date.
143
143
  #
144
- # @return [Array<Orb::Subscription::MinimumInterval>]
144
+ # @return [Array<Orb::Models::Subscription::MinimumInterval>]
145
145
  required :minimum_intervals, -> { Orb::Internal::Type::ArrayOf[Orb::Subscription::MinimumInterval] }
146
146
 
147
147
  # @!attribute net_terms
@@ -156,7 +156,7 @@ module Orb
156
156
  # @!attribute pending_subscription_change
157
157
  # A pending subscription change if one exists on this subscription.
158
158
  #
159
- # @return [Orb::Subscription::PendingSubscriptionChange, nil]
159
+ # @return [Orb::Models::Subscription::PendingSubscriptionChange, nil]
160
160
  required :pending_subscription_change, -> { Orb::Subscription::PendingSubscriptionChange }, nil?: true
161
161
 
162
162
  # @!attribute plan
@@ -165,18 +165,18 @@ module Orb
165
165
  # subscription. You can see more about how to configure prices in the
166
166
  # [Price resource](/reference/price).
167
167
  #
168
- # @return [Orb::Plan]
168
+ # @return [Orb::Models::Plan]
169
169
  required :plan, -> { Orb::Plan }
170
170
 
171
171
  # @!attribute price_intervals
172
172
  # The price intervals for this subscription.
173
173
  #
174
- # @return [Array<Orb::Subscription::PriceInterval>]
174
+ # @return [Array<Orb::Models::Subscription::PriceInterval>]
175
175
  required :price_intervals, -> { Orb::Internal::Type::ArrayOf[Orb::Subscription::PriceInterval] }
176
176
 
177
177
  # @!attribute redeemed_coupon
178
178
  #
179
- # @return [Orb::Subscription::RedeemedCoupon, nil]
179
+ # @return [Orb::Models::Subscription::RedeemedCoupon, nil]
180
180
  required :redeemed_coupon, -> { Orb::Subscription::RedeemedCoupon }, nil?: true
181
181
 
182
182
  # @!attribute start_date
@@ -187,17 +187,17 @@ module Orb
187
187
 
188
188
  # @!attribute status
189
189
  #
190
- # @return [Symbol, Orb::Subscription::Status]
190
+ # @return [Symbol, Orb::Models::Subscription::Status]
191
191
  required :status, enum: -> { Orb::Subscription::Status }
192
192
 
193
193
  # @!attribute trial_info
194
194
  #
195
- # @return [Orb::Subscription::TrialInfo]
195
+ # @return [Orb::Models::Subscription::TrialInfo]
196
196
  required :trial_info, -> { Orb::Subscription::TrialInfo }
197
197
 
198
198
  # @!method initialize(id:, active_plan_phase_order:, adjustment_intervals:, auto_collection:, billing_cycle_anchor_configuration:, billing_cycle_day:, created_at:, current_billing_period_end_date:, current_billing_period_start_date:, customer:, default_invoice_memo:, discount_intervals:, end_date:, fixed_fee_quantity_schedule:, invoicing_threshold:, maximum_intervals:, metadata:, minimum_intervals:, net_terms:, pending_subscription_change:, plan:, price_intervals:, redeemed_coupon:, start_date:, status:, trial_info:)
199
- # Some parameter documentations has been truncated, see {Orb::Subscription} for
200
- # more details.
199
+ # Some parameter documentations has been truncated, see
200
+ # {Orb::Models::Subscription} for more details.
201
201
  #
202
202
  # A [subscription](/core-concepts#subscription) represents the purchase of a plan
203
203
  # by a customer.
@@ -223,11 +223,11 @@ module Orb
223
223
  #
224
224
  # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase
225
225
  #
226
- # @param adjustment_intervals [Array<Orb::Subscription::AdjustmentInterval>] The adjustment intervals for this subscription sorted by the start_date of the a
226
+ # @param adjustment_intervals [Array<Orb::Models::Subscription::AdjustmentInterval>] The adjustment intervals for this subscription sorted by the start_date of the a
227
227
  #
228
228
  # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c
229
229
  #
230
- # @param billing_cycle_anchor_configuration [Orb::Subscription::BillingCycleAnchorConfiguration]
230
+ # @param billing_cycle_anchor_configuration [Orb::Models::Subscription::BillingCycleAnchorConfiguration]
231
231
  #
232
232
  # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb
233
233
  #
@@ -237,39 +237,39 @@ module Orb
237
237
  #
238
238
  # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th
239
239
  #
240
- # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat
240
+ # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat
241
241
  #
242
242
  # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i
243
243
  #
244
- # @param discount_intervals [Array<Orb::Subscription::DiscountInterval::Amount, Orb::Subscription::DiscountInterval::Percentage, Orb::Subscription::DiscountInterval::Usage>] The discount intervals for this subscription sorted by the start_date.
244
+ # @param discount_intervals [Array<Orb::Models::Subscription::DiscountInterval::Amount, Orb::Models::Subscription::DiscountInterval::Percentage, Orb::Models::Subscription::DiscountInterval::Usage>] The discount intervals for this subscription sorted by the start_date.
245
245
  #
246
246
  # @param end_date [Time, nil] The date Orb stops billing for this subscription.
247
247
  #
248
- # @param fixed_fee_quantity_schedule [Array<Orb::Subscription::FixedFeeQuantitySchedule>]
248
+ # @param fixed_fee_quantity_schedule [Array<Orb::Models::Subscription::FixedFeeQuantitySchedule>]
249
249
  #
250
250
  # @param invoicing_threshold [String, nil]
251
251
  #
252
- # @param maximum_intervals [Array<Orb::Subscription::MaximumInterval>] The maximum intervals for this subscription sorted by the start_date.
252
+ # @param maximum_intervals [Array<Orb::Models::Subscription::MaximumInterval>] The maximum intervals for this subscription sorted by the start_date.
253
253
  #
254
254
  # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
255
255
  #
256
- # @param minimum_intervals [Array<Orb::Subscription::MinimumInterval>] The minimum intervals for this subscription sorted by the start_date.
256
+ # @param minimum_intervals [Array<Orb::Models::Subscription::MinimumInterval>] The minimum intervals for this subscription sorted by the start_date.
257
257
  #
258
258
  # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic
259
259
  #
260
- # @param pending_subscription_change [Orb::Subscription::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription.
260
+ # @param pending_subscription_change [Orb::Models::Subscription::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription.
261
261
  #
262
- # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
262
+ # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
263
263
  #
264
- # @param price_intervals [Array<Orb::Subscription::PriceInterval>] The price intervals for this subscription.
264
+ # @param price_intervals [Array<Orb::Models::Subscription::PriceInterval>] The price intervals for this subscription.
265
265
  #
266
- # @param redeemed_coupon [Orb::Subscription::RedeemedCoupon, nil]
266
+ # @param redeemed_coupon [Orb::Models::Subscription::RedeemedCoupon, nil]
267
267
  #
268
268
  # @param start_date [Time] The date Orb starts billing for this subscription.
269
269
  #
270
- # @param status [Symbol, Orb::Subscription::Status]
270
+ # @param status [Symbol, Orb::Models::Subscription::Status]
271
271
  #
272
- # @param trial_info [Orb::Subscription::TrialInfo]
272
+ # @param trial_info [Orb::Models::Subscription::TrialInfo]
273
273
 
274
274
  class AdjustmentInterval < Orb::Internal::Type::BaseModel
275
275
  # @!attribute id
@@ -279,7 +279,7 @@ module Orb
279
279
 
280
280
  # @!attribute adjustment
281
281
  #
282
- # @return [Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Subscription::AdjustmentInterval::Adjustment::Maximum]
282
+ # @return [Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum]
283
283
  required :adjustment, union: -> { Orb::Subscription::AdjustmentInterval::Adjustment }
284
284
 
285
285
  # @!attribute applies_to_price_interval_ids
@@ -303,7 +303,7 @@ module Orb
303
303
  # @!method initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:)
304
304
  # @param id [String]
305
305
  #
306
- # @param adjustment [Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Subscription::AdjustmentInterval::Adjustment::Maximum]
306
+ # @param adjustment [Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum]
307
307
  #
308
308
  # @param applies_to_price_interval_ids [Array<String>] The price interval IDs that this adjustment applies to.
309
309
  #
@@ -311,7 +311,7 @@ module Orb
311
311
  #
312
312
  # @param start_date [Time] The start date of the adjustment interval.
313
313
 
314
- # @see Orb::Subscription::AdjustmentInterval#adjustment
314
+ # @see Orb::Models::Subscription::AdjustmentInterval#adjustment
315
315
  module Adjustment
316
316
  extend Orb::Internal::Type::Union
317
317
 
@@ -375,8 +375,8 @@ module Orb
375
375
 
376
376
  # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, usage_discount:, adjustment_type: :usage_discount)
377
377
  # Some parameter documentations has been truncated, see
378
- # {Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount} for more
379
- # details.
378
+ # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount} for
379
+ # more details.
380
380
  #
381
381
  # @param id [String]
382
382
  #
@@ -438,8 +438,8 @@ module Orb
438
438
 
439
439
  # @!method initialize(id:, amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, adjustment_type: :amount_discount)
440
440
  # Some parameter documentations has been truncated, see
441
- # {Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount} for more
442
- # details.
441
+ # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount} for
442
+ # more details.
443
443
  #
444
444
  # @param id [String]
445
445
  #
@@ -501,8 +501,8 @@ module Orb
501
501
 
502
502
  # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, percentage_discount:, plan_phase_order:, reason:, adjustment_type: :percentage_discount)
503
503
  # Some parameter documentations has been truncated, see
504
- # {Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount} for more
505
- # details.
504
+ # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount}
505
+ # for more details.
506
506
  #
507
507
  # @param id [String]
508
508
  #
@@ -570,7 +570,8 @@ module Orb
570
570
 
571
571
  # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, item_id:, minimum_amount:, plan_phase_order:, reason:, adjustment_type: :minimum)
572
572
  # Some parameter documentations has been truncated, see
573
- # {Orb::Subscription::AdjustmentInterval::Adjustment::Minimum} for more details.
573
+ # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum} for more
574
+ # details.
574
575
  #
575
576
  # @param id [String]
576
577
  #
@@ -634,7 +635,8 @@ module Orb
634
635
 
635
636
  # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, maximum_amount:, plan_phase_order:, reason:, adjustment_type: :maximum)
636
637
  # Some parameter documentations has been truncated, see
637
- # {Orb::Subscription::AdjustmentInterval::Adjustment::Maximum} for more details.
638
+ # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum} for more
639
+ # details.
638
640
  #
639
641
  # @param id [String]
640
642
  #
@@ -652,23 +654,11 @@ module Orb
652
654
  end
653
655
 
654
656
  # @!method self.variants
655
- # @return [Array(Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Subscription::AdjustmentInterval::Adjustment::Maximum)]
656
-
657
- define_sorbet_constant!(:Variants) do
658
- T.type_alias do
659
- T.any(
660
- Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount,
661
- Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount,
662
- Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount,
663
- Orb::Subscription::AdjustmentInterval::Adjustment::Minimum,
664
- Orb::Subscription::AdjustmentInterval::Adjustment::Maximum
665
- )
666
- end
667
- end
657
+ # @return [Array(Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum)]
668
658
  end
669
659
  end
670
660
 
671
- # @see Orb::Subscription#billing_cycle_anchor_configuration
661
+ # @see Orb::Models::Subscription#billing_cycle_anchor_configuration
672
662
  class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel
673
663
  # @!attribute day
674
664
  # The day of the month on which the billing cycle is anchored. If the maximum
@@ -696,7 +686,7 @@ module Orb
696
686
 
697
687
  # @!method initialize(day:, month: nil, year: nil)
698
688
  # Some parameter documentations has been truncated, see
699
- # {Orb::Subscription::BillingCycleAnchorConfiguration} for more details.
689
+ # {Orb::Models::Subscription::BillingCycleAnchorConfiguration} for more details.
700
690
  #
701
691
  # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb
702
692
  #
@@ -805,7 +795,7 @@ module Orb
805
795
 
806
796
  # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, percentage_discount:, start_date:, discount_type: :percentage)
807
797
  # Some parameter documentations has been truncated, see
808
- # {Orb::Subscription::DiscountInterval::Percentage} for more details.
798
+ # {Orb::Models::Subscription::DiscountInterval::Percentage} for more details.
809
799
  #
810
800
  # @param applies_to_price_ids [Array<String>] The price ids that this discount interval applies to.
811
801
  #
@@ -859,7 +849,7 @@ module Orb
859
849
 
860
850
  # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, start_date:, usage_discount:, discount_type: :usage)
861
851
  # Some parameter documentations has been truncated, see
862
- # {Orb::Subscription::DiscountInterval::Usage} for more details.
852
+ # {Orb::Models::Subscription::DiscountInterval::Usage} for more details.
863
853
  #
864
854
  # @param applies_to_price_ids [Array<String>] The price ids that this discount interval applies to.
865
855
  #
@@ -875,17 +865,7 @@ module Orb
875
865
  end
876
866
 
877
867
  # @!method self.variants
878
- # @return [Array(Orb::Subscription::DiscountInterval::Amount, Orb::Subscription::DiscountInterval::Percentage, Orb::Subscription::DiscountInterval::Usage)]
879
-
880
- define_sorbet_constant!(:Variants) do
881
- T.type_alias do
882
- T.any(
883
- Orb::Subscription::DiscountInterval::Amount,
884
- Orb::Subscription::DiscountInterval::Percentage,
885
- Orb::Subscription::DiscountInterval::Usage
886
- )
887
- end
888
- end
868
+ # @return [Array(Orb::Models::Subscription::DiscountInterval::Amount, Orb::Models::Subscription::DiscountInterval::Percentage, Orb::Models::Subscription::DiscountInterval::Usage)]
889
869
  end
890
870
 
891
871
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
@@ -950,7 +930,7 @@ module Orb
950
930
 
951
931
  # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:)
952
932
  # Some parameter documentations has been truncated, see
953
- # {Orb::Subscription::MaximumInterval} for more details.
933
+ # {Orb::Models::Subscription::MaximumInterval} for more details.
954
934
  #
955
935
  # @param applies_to_price_ids [Array<String>] The price ids that this maximum interval applies to.
956
936
  #
@@ -997,7 +977,7 @@ module Orb
997
977
 
998
978
  # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:)
999
979
  # Some parameter documentations has been truncated, see
1000
- # {Orb::Subscription::MinimumInterval} for more details.
980
+ # {Orb::Models::Subscription::MinimumInterval} for more details.
1001
981
  #
1002
982
  # @param applies_to_price_ids [Array<String>] The price ids that this minimum interval applies to.
1003
983
  #
@@ -1010,7 +990,7 @@ module Orb
1010
990
  # @param start_date [Time] The start date of the minimum interval.
1011
991
  end
1012
992
 
1013
- # @see Orb::Subscription#pending_subscription_change
993
+ # @see Orb::Models::Subscription#pending_subscription_change
1014
994
  class PendingSubscriptionChange < Orb::Internal::Type::BaseModel
1015
995
  # @!attribute id
1016
996
  #
@@ -1068,7 +1048,7 @@ module Orb
1068
1048
  # The fixed fee quantity transitions for this price interval. This is only
1069
1049
  # relevant for fixed fees.
1070
1050
  #
1071
- # @return [Array<Orb::Subscription::PriceInterval::FixedFeeQuantityTransition>, nil]
1051
+ # @return [Array<Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition>, nil]
1072
1052
  required :fixed_fee_quantity_transitions,
1073
1053
  -> {
1074
1054
  Orb::Internal::Type::ArrayOf[Orb::Subscription::PriceInterval::FixedFeeQuantityTransition]
@@ -1087,7 +1067,7 @@ module Orb
1087
1067
  # For more on the types of prices, see
1088
1068
  # [the core concepts documentation](/core-concepts#plan-and-price)
1089
1069
  #
1090
- # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk]
1070
+ # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk]
1091
1071
  required :price, union: -> { Orb::Price }
1092
1072
 
1093
1073
  # @!attribute start_date
@@ -1106,7 +1086,7 @@ module Orb
1106
1086
 
1107
1087
  # @!method initialize(id:, billing_cycle_day:, current_billing_period_end_date:, current_billing_period_start_date:, end_date:, filter:, fixed_fee_quantity_transitions:, price:, start_date:, usage_customer_ids:)
1108
1088
  # Some parameter documentations has been truncated, see
1109
- # {Orb::Subscription::PriceInterval} for more details.
1089
+ # {Orb::Models::Subscription::PriceInterval} for more details.
1110
1090
  #
1111
1091
  # The Price Interval resource represents a period of time for which a price will
1112
1092
  # bill on a subscription. A subscription’s price intervals define its billing
@@ -1124,9 +1104,9 @@ module Orb
1124
1104
  #
1125
1105
  # @param filter [String, nil] An additional filter to apply to usage queries.
1126
1106
  #
1127
- # @param fixed_fee_quantity_transitions [Array<Orb::Subscription::PriceInterval::FixedFeeQuantityTransition>, nil] The fixed fee quantity transitions for this price interval. This is only relevan
1107
+ # @param fixed_fee_quantity_transitions [Array<Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition>, nil] The fixed fee quantity transitions for this price interval. This is only relevan
1128
1108
  #
1129
- # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu
1109
+ # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu
1130
1110
  #
1131
1111
  # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f
1132
1112
  #
@@ -1155,7 +1135,7 @@ module Orb
1155
1135
  end
1156
1136
  end
1157
1137
 
1158
- # @see Orb::Subscription#redeemed_coupon
1138
+ # @see Orb::Models::Subscription#redeemed_coupon
1159
1139
  class RedeemedCoupon < Orb::Internal::Type::BaseModel
1160
1140
  # @!attribute coupon_id
1161
1141
  #
@@ -1178,7 +1158,7 @@ module Orb
1178
1158
  # @param start_date [Time]
1179
1159
  end
1180
1160
 
1181
- # @see Orb::Subscription#status
1161
+ # @see Orb::Models::Subscription#status
1182
1162
  module Status
1183
1163
  extend Orb::Internal::Type::Enum
1184
1164
 
@@ -1190,7 +1170,7 @@ module Orb
1190
1170
  # @return [Array<Symbol>]
1191
1171
  end
1192
1172
 
1193
- # @see Orb::Subscription#trial_info
1173
+ # @see Orb::Models::Subscription#trial_info
1194
1174
  class TrialInfo < Orb::Internal::Type::BaseModel
1195
1175
  # @!attribute end_date
1196
1176
  #
@@ -10,7 +10,7 @@ module Orb
10
10
  # @!attribute cancel_option
11
11
  # Determines the timing of subscription cancellation
12
12
  #
13
- # @return [Symbol, Orb::SubscriptionCancelParams::CancelOption]
13
+ # @return [Symbol, Orb::Models::SubscriptionCancelParams::CancelOption]
14
14
  required :cancel_option, enum: -> { Orb::SubscriptionCancelParams::CancelOption }
15
15
 
16
16
  # @!attribute allow_invoice_credit_or_void
@@ -32,7 +32,7 @@ module Orb
32
32
  # Some parameter documentations has been truncated, see
33
33
  # {Orb::Models::SubscriptionCancelParams} for more details.
34
34
  #
35
- # @param cancel_option [Symbol, Orb::SubscriptionCancelParams::CancelOption] Determines the timing of subscription cancellation
35
+ # @param cancel_option [Symbol, Orb::Models::SubscriptionCancelParams::CancelOption] Determines the timing of subscription cancellation
36
36
  #
37
37
  # @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a
38
38
  #
@@ -88,7 +88,7 @@ module Orb
88
88
  # your account's timezone. See [Timezone localization](/essentials/timezones) for
89
89
  # information on what this timezone parameter influences within Orb.
90
90
  #
91
- # @return [Orb::Customer]
91
+ # @return [Orb::Models::Customer]
92
92
  required :customer, -> { Orb::Customer }
93
93
 
94
94
  # @!attribute default_invoice_memo
@@ -168,7 +168,7 @@ module Orb
168
168
  # subscription. You can see more about how to configure prices in the
169
169
  # [Price resource](/reference/price).
170
170
  #
171
- # @return [Orb::Plan]
171
+ # @return [Orb::Models::Plan]
172
172
  required :plan, -> { Orb::Plan }
173
173
 
174
174
  # @!attribute price_intervals
@@ -229,7 +229,7 @@ module Orb
229
229
  #
230
230
  # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th
231
231
  #
232
- # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat
232
+ # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat
233
233
  #
234
234
  # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i
235
235
  #
@@ -251,7 +251,7 @@ module Orb
251
251
  #
252
252
  # @param pending_subscription_change [Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription.
253
253
  #
254
- # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
254
+ # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
255
255
  #
256
256
  # @param price_intervals [Array<Orb::Models::SubscriptionCancelResponse::PriceInterval>] The price intervals for this subscription.
257
257
  #
@@ -650,18 +650,6 @@ module Orb
650
650
 
651
651
  # @!method self.variants
652
652
  # @return [Array(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum)]
653
-
654
- define_sorbet_constant!(:Variants) do
655
- T.type_alias do
656
- T.any(
657
- Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount,
658
- Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount,
659
- Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
660
- Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum,
661
- Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum
662
- )
663
- end
664
- end
665
653
  end
666
654
  end
667
655
 
@@ -876,16 +864,6 @@ module Orb
876
864
 
877
865
  # @!method self.variants
878
866
  # @return [Array(Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage)]
879
-
880
- define_sorbet_constant!(:Variants) do
881
- T.type_alias do
882
- T.any(
883
- Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount,
884
- Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage,
885
- Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage
886
- )
887
- end
888
- end
889
867
  end
890
868
 
891
869
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
@@ -1085,7 +1063,7 @@ module Orb
1085
1063
  # For more on the types of prices, see
1086
1064
  # [the core concepts documentation](/core-concepts#plan-and-price)
1087
1065
  #
1088
- # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk]
1066
+ # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk]
1089
1067
  required :price, union: -> { Orb::Price }
1090
1068
 
1091
1069
  # @!attribute start_date
@@ -1124,7 +1102,7 @@ module Orb
1124
1102
  #
1125
1103
  # @param fixed_fee_quantity_transitions [Array<Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition>, nil] The fixed fee quantity transitions for this price interval. This is only relevan
1126
1104
  #
1127
- # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu
1105
+ # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu
1128
1106
  #
1129
1107
  # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f
1130
1108
  #
@@ -1204,25 +1182,25 @@ module Orb
1204
1182
  # @!attribute created_credit_notes
1205
1183
  # The credit notes that were created as part of this operation.
1206
1184
  #
1207
- # @return [Array<Orb::CreditNote>]
1185
+ # @return [Array<Orb::Models::CreditNote>]
1208
1186
  required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] }
1209
1187
 
1210
1188
  # @!attribute created_invoices
1211
1189
  # The invoices that were created as part of this operation.
1212
1190
  #
1213
- # @return [Array<Orb::Invoice>]
1191
+ # @return [Array<Orb::Models::Invoice>]
1214
1192
  required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] }
1215
1193
 
1216
1194
  # @!attribute voided_credit_notes
1217
1195
  # The credit notes that were voided as part of this operation.
1218
1196
  #
1219
- # @return [Array<Orb::CreditNote>]
1197
+ # @return [Array<Orb::Models::CreditNote>]
1220
1198
  required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] }
1221
1199
 
1222
1200
  # @!attribute voided_invoices
1223
1201
  # The invoices that were voided as part of this operation.
1224
1202
  #
1225
- # @return [Array<Orb::Invoice>]
1203
+ # @return [Array<Orb::Models::Invoice>]
1226
1204
  required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] }
1227
1205
 
1228
1206
  # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:)
@@ -1230,13 +1208,13 @@ module Orb
1230
1208
  # fetched through the subscription changes API or if the
1231
1209
  # `include_changed_resources` parameter was passed in the request.
1232
1210
  #
1233
- # @param created_credit_notes [Array<Orb::CreditNote>] The credit notes that were created as part of this operation.
1211
+ # @param created_credit_notes [Array<Orb::Models::CreditNote>] The credit notes that were created as part of this operation.
1234
1212
  #
1235
- # @param created_invoices [Array<Orb::Invoice>] The invoices that were created as part of this operation.
1213
+ # @param created_invoices [Array<Orb::Models::Invoice>] The invoices that were created as part of this operation.
1236
1214
  #
1237
- # @param voided_credit_notes [Array<Orb::CreditNote>] The credit notes that were voided as part of this operation.
1215
+ # @param voided_credit_notes [Array<Orb::Models::CreditNote>] The credit notes that were voided as part of this operation.
1238
1216
  #
1239
- # @param voided_invoices [Array<Orb::Invoice>] The invoices that were voided as part of this operation.
1217
+ # @param voided_invoices [Array<Orb::Models::Invoice>] The invoices that were voided as part of this operation.
1240
1218
  end
1241
1219
  end
1242
1220
  end