orb-billing 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/README.md +59 -49
  4. data/lib/orb/client.rb +4 -4
  5. data/lib/orb/file_part.rb +55 -0
  6. data/lib/orb/internal/page.rb +4 -8
  7. data/lib/orb/internal/transport/base_client.rb +7 -7
  8. data/lib/orb/internal/transport/pooled_net_requester.rb +2 -2
  9. data/lib/orb/internal/type/array_of.rb +11 -0
  10. data/lib/orb/internal/type/base_model.rb +32 -14
  11. data/lib/orb/internal/type/base_page.rb +9 -1
  12. data/lib/orb/internal/type/boolean.rb +4 -0
  13. data/lib/orb/internal/type/converter.rb +4 -1
  14. data/lib/orb/internal/type/enum.rb +9 -5
  15. data/lib/orb/internal/type/{io_like.rb → file_input.rb} +33 -15
  16. data/lib/orb/internal/type/hash_of.rb +11 -0
  17. data/lib/orb/internal/type/request_parameters.rb +1 -2
  18. data/lib/orb/internal/type/union.rb +10 -1
  19. data/lib/orb/internal/type/unknown.rb +4 -0
  20. data/lib/orb/internal/util.rb +69 -61
  21. data/lib/orb/internal.rb +0 -1
  22. data/lib/orb/models/alert.rb +68 -71
  23. data/lib/orb/models/alert_create_for_customer_params.rb +20 -25
  24. data/lib/orb/models/alert_create_for_external_customer_params.rb +20 -25
  25. data/lib/orb/models/alert_create_for_subscription_params.rb +20 -25
  26. data/lib/orb/models/alert_disable_params.rb +5 -9
  27. data/lib/orb/models/alert_enable_params.rb +5 -9
  28. data/lib/orb/models/alert_list_params.rb +26 -36
  29. data/lib/orb/models/alert_retrieve_params.rb +3 -8
  30. data/lib/orb/models/alert_update_params.rb +14 -18
  31. data/lib/orb/models/amount_discount.rb +14 -14
  32. data/lib/orb/models/billable_metric.rb +23 -20
  33. data/lib/orb/models/billing_cycle_relative_date.rb +2 -5
  34. data/lib/orb/models/coupon.rb +28 -21
  35. data/lib/orb/models/coupon_archive_params.rb +3 -8
  36. data/lib/orb/models/coupon_create_params.rb +24 -29
  37. data/lib/orb/models/coupon_fetch_params.rb +3 -8
  38. data/lib/orb/models/coupon_list_params.rb +17 -17
  39. data/lib/orb/models/coupons/subscription_list_params.rb +12 -15
  40. data/lib/orb/models/credit_note.rb +100 -166
  41. data/lib/orb/models/credit_note_create_params.rb +15 -23
  42. data/lib/orb/models/credit_note_fetch_params.rb +3 -8
  43. data/lib/orb/models/credit_note_list_params.rb +20 -30
  44. data/lib/orb/models/customer.rb +224 -271
  45. data/lib/orb/models/customer_create_params.rb +211 -252
  46. data/lib/orb/models/customer_delete_params.rb +3 -8
  47. data/lib/orb/models/customer_fetch_by_external_id_params.rb +3 -8
  48. data/lib/orb/models/customer_fetch_params.rb +3 -8
  49. data/lib/orb/models/customer_list_params.rb +20 -30
  50. data/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb +3 -8
  51. data/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb +3 -8
  52. data/lib/orb/models/customer_update_by_external_id_params.rb +207 -250
  53. data/lib/orb/models/customer_update_params.rb +207 -250
  54. data/lib/orb/models/customers/balance_transaction_create_params.rb +11 -16
  55. data/lib/orb/models/customers/balance_transaction_create_response.rb +33 -51
  56. data/lib/orb/models/customers/balance_transaction_list_params.rb +20 -30
  57. data/lib/orb/models/customers/balance_transaction_list_response.rb +33 -51
  58. data/lib/orb/models/customers/cost_list_by_external_id_params.rb +17 -17
  59. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +22 -26
  60. data/lib/orb/models/customers/cost_list_params.rb +17 -17
  61. data/lib/orb/models/customers/cost_list_response.rb +22 -26
  62. data/lib/orb/models/customers/credit_list_by_external_id_params.rb +18 -22
  63. data/lib/orb/models/customers/credit_list_by_external_id_response.rb +10 -17
  64. data/lib/orb/models/customers/credit_list_params.rb +18 -22
  65. data/lib/orb/models/customers/credit_list_response.rb +10 -17
  66. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +64 -66
  67. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +300 -406
  68. data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +63 -66
  69. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +300 -406
  70. data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +33 -48
  71. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +300 -406
  72. data/lib/orb/models/customers/credits/ledger_list_params.rb +32 -48
  73. data/lib/orb/models/customers/credits/ledger_list_response.rb +300 -406
  74. data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +47 -50
  75. data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +43 -46
  76. data/lib/orb/models/customers/credits/top_up_create_params.rb +46 -50
  77. data/lib/orb/models/customers/credits/top_up_create_response.rb +42 -46
  78. data/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb +4 -9
  79. data/lib/orb/models/customers/credits/top_up_delete_params.rb +4 -9
  80. data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +12 -15
  81. data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +43 -46
  82. data/lib/orb/models/customers/credits/top_up_list_params.rb +12 -15
  83. data/lib/orb/models/customers/credits/top_up_list_response.rb +42 -46
  84. data/lib/orb/models/dimensional_price_group.rb +21 -15
  85. data/lib/orb/models/dimensional_price_group_create_params.rb +17 -23
  86. data/lib/orb/models/dimensional_price_group_list_params.rb +12 -15
  87. data/lib/orb/models/dimensional_price_group_retrieve_params.rb +3 -8
  88. data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb +3 -8
  89. data/lib/orb/models/dimensional_price_groups.rb +3 -7
  90. data/lib/orb/models/discount.rb +2 -3
  91. data/lib/orb/models/evaluate_price_group.rb +8 -11
  92. data/lib/orb/models/event_deprecate_params.rb +3 -8
  93. data/lib/orb/models/event_deprecate_response.rb +2 -6
  94. data/lib/orb/models/event_ingest_params.rb +33 -27
  95. data/lib/orb/models/event_ingest_response.rb +23 -24
  96. data/lib/orb/models/event_search_params.rb +15 -11
  97. data/lib/orb/models/event_search_response.rb +27 -22
  98. data/lib/orb/models/event_update_params.rb +19 -13
  99. data/lib/orb/models/event_update_response.rb +2 -6
  100. data/lib/orb/models/events/backfill_close_params.rb +3 -8
  101. data/lib/orb/models/events/backfill_close_response.rb +34 -39
  102. data/lib/orb/models/events/backfill_create_params.rb +28 -32
  103. data/lib/orb/models/events/backfill_create_response.rb +34 -39
  104. data/lib/orb/models/events/backfill_fetch_params.rb +3 -8
  105. data/lib/orb/models/events/backfill_fetch_response.rb +34 -39
  106. data/lib/orb/models/events/backfill_list_params.rb +12 -15
  107. data/lib/orb/models/events/backfill_list_response.rb +34 -39
  108. data/lib/orb/models/events/backfill_revert_params.rb +3 -8
  109. data/lib/orb/models/events/backfill_revert_response.rb +34 -39
  110. data/lib/orb/models/events/event_volumes.rb +11 -17
  111. data/lib/orb/models/events/volume_list_params.rb +19 -22
  112. data/lib/orb/models/invoice.rb +589 -637
  113. data/lib/orb/models/invoice_create_params.rb +52 -61
  114. data/lib/orb/models/invoice_fetch_params.rb +3 -8
  115. data/lib/orb/models/invoice_fetch_upcoming_params.rb +4 -9
  116. data/lib/orb/models/invoice_fetch_upcoming_response.rb +584 -631
  117. data/lib/orb/models/invoice_issue_params.rb +10 -14
  118. data/lib/orb/models/invoice_level_discount.rb +2 -3
  119. data/lib/orb/models/invoice_line_item_create_params.rb +19 -14
  120. data/lib/orb/models/invoice_line_item_create_response.rb +247 -269
  121. data/lib/orb/models/invoice_list_params.rb +51 -66
  122. data/lib/orb/models/invoice_mark_paid_params.rb +9 -11
  123. data/lib/orb/models/invoice_pay_params.rb +3 -8
  124. data/lib/orb/models/invoice_update_params.rb +9 -9
  125. data/lib/orb/models/invoice_void_params.rb +3 -8
  126. data/lib/orb/models/item.rb +14 -25
  127. data/lib/orb/models/item_create_params.rb +5 -9
  128. data/lib/orb/models/item_fetch_params.rb +3 -8
  129. data/lib/orb/models/item_list_params.rb +12 -15
  130. data/lib/orb/models/item_update_params.rb +10 -22
  131. data/lib/orb/models/metric_create_params.rb +17 -13
  132. data/lib/orb/models/metric_fetch_params.rb +3 -8
  133. data/lib/orb/models/metric_list_params.rb +20 -30
  134. data/lib/orb/models/metric_update_params.rb +9 -9
  135. data/lib/orb/models/pagination_metadata.rb +3 -7
  136. data/lib/orb/models/percentage_discount.rb +15 -14
  137. data/lib/orb/models/plan.rb +250 -279
  138. data/lib/orb/models/plan_create_params.rb +1623 -1984
  139. data/lib/orb/models/plan_fetch_params.rb +3 -8
  140. data/lib/orb/models/plan_list_params.rb +25 -42
  141. data/lib/orb/models/plan_update_params.rb +12 -10
  142. data/lib/orb/models/plans/external_plan_id_fetch_params.rb +3 -8
  143. data/lib/orb/models/plans/external_plan_id_update_params.rb +12 -10
  144. data/lib/orb/models/price.rb +2709 -3820
  145. data/lib/orb/models/price_create_params.rb +203 -244
  146. data/lib/orb/models/price_evaluate_params.rb +21 -30
  147. data/lib/orb/models/price_evaluate_response.rb +2 -6
  148. data/lib/orb/models/price_fetch_params.rb +3 -8
  149. data/lib/orb/models/price_list_params.rb +12 -15
  150. data/lib/orb/models/price_update_params.rb +9 -9
  151. data/lib/orb/models/prices/external_price_id_fetch_params.rb +3 -8
  152. data/lib/orb/models/prices/external_price_id_update_params.rb +9 -9
  153. data/lib/orb/models/subscription.rb +343 -382
  154. data/lib/orb/models/subscription_cancel_params.rb +16 -16
  155. data/lib/orb/models/subscription_cancel_response.rb +339 -377
  156. data/lib/orb/models/subscription_change_apply_params.rb +7 -10
  157. data/lib/orb/models/subscription_change_apply_response.rb +365 -398
  158. data/lib/orb/models/subscription_change_cancel_params.rb +3 -8
  159. data/lib/orb/models/subscription_change_cancel_response.rb +365 -398
  160. data/lib/orb/models/subscription_change_retrieve_params.rb +3 -8
  161. data/lib/orb/models/subscription_change_retrieve_response.rb +366 -398
  162. data/lib/orb/models/subscription_create_params.rb +3771 -4402
  163. data/lib/orb/models/subscription_create_response.rb +339 -377
  164. data/lib/orb/models/subscription_fetch_costs_params.rb +17 -17
  165. data/lib/orb/models/subscription_fetch_costs_response.rb +22 -26
  166. data/lib/orb/models/subscription_fetch_params.rb +3 -8
  167. data/lib/orb/models/subscription_fetch_schedule_params.rb +20 -30
  168. data/lib/orb/models/subscription_fetch_schedule_response.rb +15 -17
  169. data/lib/orb/models/subscription_fetch_usage_params.rb +32 -43
  170. data/lib/orb/models/subscription_list_params.rb +28 -41
  171. data/lib/orb/models/subscription_price_intervals_params.rb +2018 -2472
  172. data/lib/orb/models/subscription_price_intervals_response.rb +342 -377
  173. data/lib/orb/models/subscription_schedule_plan_change_params.rb +3764 -4392
  174. data/lib/orb/models/subscription_schedule_plan_change_response.rb +342 -377
  175. data/lib/orb/models/subscription_trigger_phase_params.rb +12 -10
  176. data/lib/orb/models/subscription_trigger_phase_response.rb +341 -377
  177. data/lib/orb/models/subscription_unschedule_cancellation_params.rb +3 -8
  178. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +342 -377
  179. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb +5 -9
  180. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +343 -377
  181. data/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb +3 -8
  182. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +343 -377
  183. data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +22 -33
  184. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +342 -377
  185. data/lib/orb/models/subscription_update_params.rb +21 -23
  186. data/lib/orb/models/subscription_update_trial_params.rb +15 -18
  187. data/lib/orb/models/subscription_update_trial_response.rb +341 -377
  188. data/lib/orb/models/subscription_usage.rb +37 -80
  189. data/lib/orb/models/subscriptions.rb +3 -7
  190. data/lib/orb/models/top_level_ping_params.rb +3 -8
  191. data/lib/orb/models/top_level_ping_response.rb +2 -6
  192. data/lib/orb/models/trial_discount.rb +16 -24
  193. data/lib/orb/models/usage_discount.rb +15 -14
  194. data/lib/orb/request_options.rb +3 -4
  195. data/lib/orb/resources/alerts.rb +48 -17
  196. data/lib/orb/resources/coupons/subscriptions.rb +9 -2
  197. data/lib/orb/resources/coupons.rb +25 -7
  198. data/lib/orb/resources/credit_notes.rb +17 -4
  199. data/lib/orb/resources/customers/balance_transactions.rb +18 -3
  200. data/lib/orb/resources/customers/costs.rb +26 -8
  201. data/lib/orb/resources/customers/credits/ledger.rb +108 -28
  202. data/lib/orb/resources/customers/credits/top_ups.rb +67 -20
  203. data/lib/orb/resources/customers/credits.rb +28 -8
  204. data/lib/orb/resources/customers.rb +135 -36
  205. data/lib/orb/resources/dimensional_price_groups.rb +19 -4
  206. data/lib/orb/resources/events/backfills.rb +32 -9
  207. data/lib/orb/resources/events/volume.rb +14 -4
  208. data/lib/orb/resources/events.rb +40 -11
  209. data/lib/orb/resources/invoice_line_items.rb +16 -6
  210. data/lib/orb/resources/invoices.rb +77 -17
  211. data/lib/orb/resources/items.rb +10 -3
  212. data/lib/orb/resources/metrics.rb +33 -8
  213. data/lib/orb/resources/plans/external_plan_id.rb +10 -2
  214. data/lib/orb/resources/plans.rb +47 -11
  215. data/lib/orb/resources/prices/external_price_id.rb +7 -1
  216. data/lib/orb/resources/prices.rb +97 -22
  217. data/lib/orb/resources/subscription_changes.rb +5 -2
  218. data/lib/orb/resources/subscriptions.rb +292 -78
  219. data/lib/orb/version.rb +1 -1
  220. data/lib/orb.rb +2 -10
  221. data/rbi/lib/orb/client.rbi +4 -4
  222. data/rbi/lib/orb/file_part.rbi +34 -0
  223. data/rbi/lib/orb/internal/transport/base_client.rbi +17 -3
  224. data/rbi/lib/orb/internal/type/array_of.rbi +3 -0
  225. data/rbi/lib/orb/internal/type/base_model.rbi +7 -1
  226. data/rbi/lib/orb/internal/type/base_page.rbi +2 -0
  227. data/rbi/lib/orb/internal/type/enum.rbi +3 -6
  228. data/rbi/lib/orb/internal/type/{io_like.rbi → file_input.rbi} +5 -2
  229. data/rbi/lib/orb/internal/type/hash_of.rbi +3 -0
  230. data/rbi/lib/orb/internal/type/union.rbi +3 -0
  231. data/rbi/lib/orb/internal/util.rbi +24 -19
  232. data/rbi/lib/orb/internal.rbi +0 -1
  233. data/rbi/lib/orb/models/alert.rbi +28 -8
  234. data/rbi/lib/orb/models/alert_create_for_customer_params.rbi +16 -6
  235. data/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi +16 -6
  236. data/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +16 -6
  237. data/rbi/lib/orb/models/alert_disable_params.rbi +5 -2
  238. data/rbi/lib/orb/models/alert_enable_params.rbi +5 -2
  239. data/rbi/lib/orb/models/alert_list_params.rbi +6 -0
  240. data/rbi/lib/orb/models/alert_update_params.rbi +11 -4
  241. data/rbi/lib/orb/models/amount_discount.rbi +10 -4
  242. data/rbi/lib/orb/models/billable_metric.rbi +16 -3
  243. data/rbi/lib/orb/models/billing_cycle_relative_date.rbi +1 -1
  244. data/rbi/lib/orb/models/coupon.rbi +10 -3
  245. data/rbi/lib/orb/models/coupon_create_params.rbi +6 -3
  246. data/rbi/lib/orb/models/coupon_list_params.rbi +13 -3
  247. data/rbi/lib/orb/models/coupons/subscription_list_params.rbi +8 -2
  248. data/rbi/lib/orb/models/credit_note.rbi +44 -12
  249. data/rbi/lib/orb/models/credit_note_create_params.rbi +15 -6
  250. data/rbi/lib/orb/models/credit_note_list_params.rbi +3 -0
  251. data/rbi/lib/orb/models/customer.rbi +130 -11
  252. data/rbi/lib/orb/models/customer_create_params.rbi +142 -8
  253. data/rbi/lib/orb/models/customer_list_params.rbi +3 -0
  254. data/rbi/lib/orb/models/customer_update_by_external_id_params.rbi +140 -8
  255. data/rbi/lib/orb/models/customer_update_params.rbi +140 -8
  256. data/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +8 -4
  257. data/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +18 -8
  258. data/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +3 -0
  259. data/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +18 -8
  260. data/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi +9 -5
  261. data/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +21 -4
  262. data/rbi/lib/orb/models/customers/cost_list_params.rbi +9 -5
  263. data/rbi/lib/orb/models/customers/cost_list_response.rbi +21 -4
  264. data/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi +13 -3
  265. data/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi +1 -2
  266. data/rbi/lib/orb/models/customers/credit_list_params.rbi +13 -3
  267. data/rbi/lib/orb/models/customers/credit_list_response.rbi +1 -2
  268. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +40 -18
  269. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +35 -56
  270. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi +40 -6
  271. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi +35 -56
  272. data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +6 -16
  273. data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +35 -56
  274. data/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +6 -4
  275. data/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +35 -56
  276. data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +27 -10
  277. data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +25 -10
  278. data/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi +27 -4
  279. data/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi +25 -10
  280. data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +8 -2
  281. data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +25 -10
  282. data/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi +8 -2
  283. data/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi +25 -4
  284. data/rbi/lib/orb/models/dimensional_price_group.rbi +11 -3
  285. data/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +4 -0
  286. data/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +8 -2
  287. data/rbi/lib/orb/models/evaluate_price_group.rbi +8 -2
  288. data/rbi/lib/orb/models/event_deprecate_response.rbi +4 -2
  289. data/rbi/lib/orb/models/event_ingest_params.rbi +22 -5
  290. data/rbi/lib/orb/models/event_ingest_response.rbi +15 -4
  291. data/rbi/lib/orb/models/event_search_params.rbi +14 -2
  292. data/rbi/lib/orb/models/event_search_response.rbi +14 -3
  293. data/rbi/lib/orb/models/event_update_params.rbi +10 -3
  294. data/rbi/lib/orb/models/event_update_response.rbi +4 -2
  295. data/rbi/lib/orb/models/events/backfill_close_response.rbi +14 -2
  296. data/rbi/lib/orb/models/events/backfill_create_params.rbi +18 -0
  297. data/rbi/lib/orb/models/events/backfill_create_response.rbi +14 -2
  298. data/rbi/lib/orb/models/events/backfill_fetch_response.rbi +14 -2
  299. data/rbi/lib/orb/models/events/backfill_list_params.rbi +8 -2
  300. data/rbi/lib/orb/models/events/backfill_list_response.rbi +14 -2
  301. data/rbi/lib/orb/models/events/backfill_revert_response.rbi +14 -2
  302. data/rbi/lib/orb/models/events/event_volumes.rbi +6 -2
  303. data/rbi/lib/orb/models/events/volume_list_params.rbi +18 -2
  304. data/rbi/lib/orb/models/invoice.rbi +375 -46
  305. data/rbi/lib/orb/models/invoice_create_params.rbi +38 -6
  306. data/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +375 -66
  307. data/rbi/lib/orb/models/invoice_issue_params.rbi +9 -2
  308. data/rbi/lib/orb/models/invoice_line_item_create_params.rbi +16 -2
  309. data/rbi/lib/orb/models/invoice_line_item_create_response.rbi +141 -20
  310. data/rbi/lib/orb/models/invoice_list_params.rbi +9 -2
  311. data/rbi/lib/orb/models/invoice_mark_paid_params.rbi +9 -2
  312. data/rbi/lib/orb/models/invoice_update_params.rbi +7 -2
  313. data/rbi/lib/orb/models/item.rbi +1 -2
  314. data/rbi/lib/orb/models/item_create_params.rbi +5 -2
  315. data/rbi/lib/orb/models/item_list_params.rbi +8 -2
  316. data/rbi/lib/orb/models/item_update_params.rbi +1 -8
  317. data/rbi/lib/orb/models/metric_create_params.rbi +15 -2
  318. data/rbi/lib/orb/models/metric_list_params.rbi +3 -0
  319. data/rbi/lib/orb/models/metric_update_params.rbi +7 -2
  320. data/rbi/lib/orb/models/percentage_discount.rbi +11 -4
  321. data/rbi/lib/orb/models/plan.rbi +102 -15
  322. data/rbi/lib/orb/models/plan_create_params.rbi +997 -679
  323. data/rbi/lib/orb/models/plan_list_params.rbi +5 -1
  324. data/rbi/lib/orb/models/plan_update_params.rbi +11 -2
  325. data/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi +11 -2
  326. data/rbi/lib/orb/models/price.rbi +717 -688
  327. data/rbi/lib/orb/models/price_create_params.rbi +137 -53
  328. data/rbi/lib/orb/models/price_evaluate_params.rbi +10 -0
  329. data/rbi/lib/orb/models/price_list_params.rbi +8 -2
  330. data/rbi/lib/orb/models/price_update_params.rbi +7 -2
  331. data/rbi/lib/orb/models/prices/external_price_id_update_params.rbi +7 -2
  332. data/rbi/lib/orb/models/subscription.rbi +174 -11
  333. data/rbi/lib/orb/models/subscription_cancel_params.rbi +8 -5
  334. data/rbi/lib/orb/models/subscription_cancel_response.rbi +187 -14
  335. data/rbi/lib/orb/models/subscription_change_apply_params.rbi +7 -2
  336. data/rbi/lib/orb/models/subscription_change_apply_response.rbi +199 -18
  337. data/rbi/lib/orb/models/subscription_change_cancel_response.rbi +199 -18
  338. data/rbi/lib/orb/models/subscription_change_retrieve_response.rbi +199 -18
  339. data/rbi/lib/orb/models/subscription_create_params.rbi +2282 -1536
  340. data/rbi/lib/orb/models/subscription_create_response.rbi +187 -14
  341. data/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +9 -5
  342. data/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +21 -4
  343. data/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +3 -0
  344. data/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +8 -2
  345. data/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +13 -4
  346. data/rbi/lib/orb/models/subscription_list_params.rbi +4 -2
  347. data/rbi/lib/orb/models/subscription_price_intervals_params.rbi +1228 -861
  348. data/rbi/lib/orb/models/subscription_price_intervals_response.rbi +187 -14
  349. data/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +2288 -1544
  350. data/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +187 -14
  351. data/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +10 -2
  352. data/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +187 -14
  353. data/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +187 -14
  354. data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +5 -2
  355. data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +187 -20
  356. data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +187 -14
  357. data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi +11 -2
  358. data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +187 -14
  359. data/rbi/lib/orb/models/subscription_update_params.rbi +15 -0
  360. data/rbi/lib/orb/models/subscription_update_trial_params.rbi +11 -5
  361. data/rbi/lib/orb/models/subscription_update_trial_response.rbi +187 -14
  362. data/rbi/lib/orb/models/subscription_usage.rbi +2 -16
  363. data/rbi/lib/orb/models/trial_discount.rbi +5 -1
  364. data/rbi/lib/orb/models/usage_discount.rbi +11 -3
  365. data/sig/orb/file_part.rbs +21 -0
  366. data/sig/orb/internal/transport/base_client.rbs +9 -3
  367. data/sig/orb/internal/type/array_of.rbs +2 -0
  368. data/sig/orb/internal/type/base_model.rbs +4 -0
  369. data/sig/orb/internal/type/enum.rbs +2 -2
  370. data/sig/orb/internal/type/{io_like.rbs → file_input.rbs} +1 -1
  371. data/sig/orb/internal/type/hash_of.rbs +2 -0
  372. data/sig/orb/internal/type/union.rbs +2 -0
  373. data/sig/orb/internal/util.rbs +14 -12
  374. metadata +8 -5
@@ -211,69 +211,75 @@ module Orb
211
211
  -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources },
212
212
  nil?: true
213
213
 
214
- # @!parse
215
- # # @param id [String]
216
- # # @param active_plan_phase_order [Integer, nil]
217
- # # @param adjustment_intervals [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval>]
218
- # # @param auto_collection [Boolean, nil]
219
- # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration]
220
- # # @param billing_cycle_day [Integer]
221
- # # @param created_at [Time]
222
- # # @param current_billing_period_end_date [Time, nil]
223
- # # @param current_billing_period_start_date [Time, nil]
224
- # # @param customer [Orb::Models::Customer]
225
- # # @param default_invoice_memo [String, nil]
226
- # # @param discount_intervals [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval>]
227
- # # @param end_date [Time, nil]
228
- # # @param fixed_fee_quantity_schedule [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule>]
229
- # # @param invoicing_threshold [String, nil]
230
- # # @param maximum_intervals [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval>]
231
- # # @param metadata [Hash{Symbol=>String}]
232
- # # @param minimum_intervals [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval>]
233
- # # @param net_terms [Integer]
234
- # # @param pending_subscription_change [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange, nil]
235
- # # @param plan [Orb::Models::Plan]
236
- # # @param price_intervals [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval>]
237
- # # @param redeemed_coupon [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon, nil]
238
- # # @param start_date [Time]
239
- # # @param status [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status]
240
- # # @param trial_info [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo]
241
- # # @param changed_resources [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources, nil]
242
- # #
243
- # def initialize(
244
- # id:,
245
- # active_plan_phase_order:,
246
- # adjustment_intervals:,
247
- # auto_collection:,
248
- # billing_cycle_anchor_configuration:,
249
- # billing_cycle_day:,
250
- # created_at:,
251
- # current_billing_period_end_date:,
252
- # current_billing_period_start_date:,
253
- # customer:,
254
- # default_invoice_memo:,
255
- # discount_intervals:,
256
- # end_date:,
257
- # fixed_fee_quantity_schedule:,
258
- # invoicing_threshold:,
259
- # maximum_intervals:,
260
- # metadata:,
261
- # minimum_intervals:,
262
- # net_terms:,
263
- # pending_subscription_change:,
264
- # plan:,
265
- # price_intervals:,
266
- # redeemed_coupon:,
267
- # start_date:,
268
- # status:,
269
- # trial_info:,
270
- # changed_resources: nil,
271
- # **
272
- # )
273
- # super
274
- # end
275
-
276
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
214
+ # @!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:, changed_resources: nil)
215
+ # Some parameter documentations has been truncated, see
216
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse} for more details.
217
+ #
218
+ # @param id [String]
219
+ #
220
+ # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase
221
+ # ...
222
+ #
223
+ # @param adjustment_intervals [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval>] The adjustment intervals for this subscription sorted by the start_date of the a
224
+ # ...
225
+ #
226
+ # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c
227
+ # ...
228
+ #
229
+ # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration]
230
+ #
231
+ # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb
232
+ # ...
233
+ #
234
+ # @param created_at [Time]
235
+ #
236
+ # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that
237
+ # ...
238
+ #
239
+ # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th
240
+ # ...
241
+ #
242
+ # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat
243
+ # ...
244
+ #
245
+ # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i
246
+ # ...
247
+ #
248
+ # @param discount_intervals [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval>] The discount intervals for this subscription sorted by the start_date.
249
+ #
250
+ # @param end_date [Time, nil] The date Orb stops billing for this subscription.
251
+ #
252
+ # @param fixed_fee_quantity_schedule [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule>]
253
+ #
254
+ # @param invoicing_threshold [String, nil]
255
+ #
256
+ # @param maximum_intervals [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval>] The maximum intervals for this subscription sorted by the start_date.
257
+ #
258
+ # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
259
+ # ...
260
+ #
261
+ # @param minimum_intervals [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval>] The minimum intervals for this subscription sorted by the start_date.
262
+ #
263
+ # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic
264
+ # ...
265
+ #
266
+ # @param pending_subscription_change [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription.
267
+ #
268
+ # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
269
+ # ...
270
+ #
271
+ # @param price_intervals [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval>] The price intervals for this subscription.
272
+ #
273
+ # @param redeemed_coupon [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon, nil]
274
+ #
275
+ # @param start_date [Time] The date Orb starts billing for this subscription.
276
+ #
277
+ # @param status [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status]
278
+ #
279
+ # @param trial_info [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo]
280
+ #
281
+ # @param changed_resources [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet
282
+ # ...
277
283
 
278
284
  class AdjustmentInterval < Orb::Internal::Type::BaseModel
279
285
  # @!attribute id
@@ -305,16 +311,16 @@ module Orb
305
311
  # @return [Time]
306
312
  required :start_date, Time
307
313
 
308
- # @!parse
309
- # # @param id [String]
310
- # # @param adjustment [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]
311
- # # @param applies_to_price_interval_ids [Array<String>]
312
- # # @param end_date [Time, nil]
313
- # # @param start_date [Time]
314
- # #
315
- # def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:, **) = super
316
-
317
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
314
+ # @!method initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:)
315
+ # @param id [String]
316
+ #
317
+ # @param adjustment [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]
318
+ #
319
+ # @param applies_to_price_interval_ids [Array<String>] The price interval IDs that this adjustment applies to.
320
+ #
321
+ # @param end_date [Time, nil] The end date of the adjustment interval.
322
+ #
323
+ # @param start_date [Time] The start date of the adjustment interval.
318
324
 
319
325
  # @see Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval#adjustment
320
326
  module Adjustment
@@ -380,29 +386,26 @@ module Orb
380
386
  # @return [Float]
381
387
  required :usage_discount, Float
382
388
 
383
- # @!parse
384
- # # @param id [String]
385
- # # @param applies_to_price_ids [Array<String>]
386
- # # @param is_invoice_level [Boolean]
387
- # # @param plan_phase_order [Integer, nil]
388
- # # @param reason [String, nil]
389
- # # @param usage_discount [Float]
390
- # # @param adjustment_type [Symbol, :usage_discount]
391
- # #
392
- # def initialize(
393
- # id:,
394
- # applies_to_price_ids:,
395
- # is_invoice_level:,
396
- # plan_phase_order:,
397
- # reason:,
398
- # usage_discount:,
399
- # adjustment_type: :usage_discount,
400
- # **
401
- # )
402
- # super
403
- # end
404
-
405
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
389
+ # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, usage_discount:, adjustment_type: :usage_discount)
390
+ # Some parameter documentations has been truncated, see
391
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment}
392
+ # for more details.
393
+ #
394
+ # @param id [String]
395
+ #
396
+ # @param applies_to_price_ids [Array<String>] The price IDs that this adjustment applies to.
397
+ #
398
+ # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha
399
+ # ...
400
+ #
401
+ # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
402
+ #
403
+ # @param reason [String, nil] The reason for the adjustment.
404
+ #
405
+ # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies
406
+ # ...
407
+ #
408
+ # @param adjustment_type [Symbol, :usage_discount]
406
409
  end
407
410
 
408
411
  class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel
@@ -448,29 +451,26 @@ module Orb
448
451
  # @return [String, nil]
449
452
  required :reason, String, nil?: true
450
453
 
451
- # @!parse
452
- # # @param id [String]
453
- # # @param amount_discount [String]
454
- # # @param applies_to_price_ids [Array<String>]
455
- # # @param is_invoice_level [Boolean]
456
- # # @param plan_phase_order [Integer, nil]
457
- # # @param reason [String, nil]
458
- # # @param adjustment_type [Symbol, :amount_discount]
459
- # #
460
- # def initialize(
461
- # id:,
462
- # amount_discount:,
463
- # applies_to_price_ids:,
464
- # is_invoice_level:,
465
- # plan_phase_order:,
466
- # reason:,
467
- # adjustment_type: :amount_discount,
468
- # **
469
- # )
470
- # super
471
- # end
472
-
473
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
454
+ # @!method initialize(id:, amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, adjustment_type: :amount_discount)
455
+ # Some parameter documentations has been truncated, see
456
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment}
457
+ # for more details.
458
+ #
459
+ # @param id [String]
460
+ #
461
+ # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given
462
+ # ...
463
+ #
464
+ # @param applies_to_price_ids [Array<String>] The price IDs that this adjustment applies to.
465
+ #
466
+ # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha
467
+ # ...
468
+ #
469
+ # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
470
+ #
471
+ # @param reason [String, nil] The reason for the adjustment.
472
+ #
473
+ # @param adjustment_type [Symbol, :amount_discount]
474
474
  end
475
475
 
476
476
  class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel
@@ -516,29 +516,26 @@ module Orb
516
516
  # @return [String, nil]
517
517
  required :reason, String, nil?: true
518
518
 
519
- # @!parse
520
- # # @param id [String]
521
- # # @param applies_to_price_ids [Array<String>]
522
- # # @param is_invoice_level [Boolean]
523
- # # @param percentage_discount [Float]
524
- # # @param plan_phase_order [Integer, nil]
525
- # # @param reason [String, nil]
526
- # # @param adjustment_type [Symbol, :percentage_discount]
527
- # #
528
- # def initialize(
529
- # id:,
530
- # applies_to_price_ids:,
531
- # is_invoice_level:,
532
- # percentage_discount:,
533
- # plan_phase_order:,
534
- # reason:,
535
- # adjustment_type: :percentage_discount,
536
- # **
537
- # )
538
- # super
539
- # end
540
-
541
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
519
+ # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, percentage_discount:, plan_phase_order:, reason:, adjustment_type: :percentage_discount)
520
+ # Some parameter documentations has been truncated, see
521
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment}
522
+ # for more details.
523
+ #
524
+ # @param id [String]
525
+ #
526
+ # @param applies_to_price_ids [Array<String>] The price IDs that this adjustment applies to.
527
+ #
528
+ # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha
529
+ # ...
530
+ #
531
+ # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter
532
+ # ...
533
+ #
534
+ # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
535
+ #
536
+ # @param reason [String, nil] The reason for the adjustment.
537
+ #
538
+ # @param adjustment_type [Symbol, :percentage_discount]
542
539
  end
543
540
 
544
541
  class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel
@@ -590,31 +587,28 @@ module Orb
590
587
  # @return [String, nil]
591
588
  required :reason, String, nil?: true
592
589
 
593
- # @!parse
594
- # # @param id [String]
595
- # # @param applies_to_price_ids [Array<String>]
596
- # # @param is_invoice_level [Boolean]
597
- # # @param item_id [String]
598
- # # @param minimum_amount [String]
599
- # # @param plan_phase_order [Integer, nil]
600
- # # @param reason [String, nil]
601
- # # @param adjustment_type [Symbol, :minimum]
602
- # #
603
- # def initialize(
604
- # id:,
605
- # applies_to_price_ids:,
606
- # is_invoice_level:,
607
- # item_id:,
608
- # minimum_amount:,
609
- # plan_phase_order:,
610
- # reason:,
611
- # adjustment_type: :minimum,
612
- # **
613
- # )
614
- # super
615
- # end
616
-
617
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
590
+ # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, item_id:, minimum_amount:, plan_phase_order:, reason:, adjustment_type: :minimum)
591
+ # Some parameter documentations has been truncated, see
592
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment}
593
+ # for more details.
594
+ #
595
+ # @param id [String]
596
+ #
597
+ # @param applies_to_price_ids [Array<String>] The price IDs that this adjustment applies to.
598
+ #
599
+ # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha
600
+ # ...
601
+ #
602
+ # @param item_id [String] The item ID that revenue from this minimum will be attributed to.
603
+ #
604
+ # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus
605
+ # ...
606
+ #
607
+ # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
608
+ #
609
+ # @param reason [String, nil] The reason for the adjustment.
610
+ #
611
+ # @param adjustment_type [Symbol, :minimum]
618
612
  end
619
613
 
620
614
  class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel
@@ -660,34 +654,30 @@ module Orb
660
654
  # @return [String, nil]
661
655
  required :reason, String, nil?: true
662
656
 
663
- # @!parse
664
- # # @param id [String]
665
- # # @param applies_to_price_ids [Array<String>]
666
- # # @param is_invoice_level [Boolean]
667
- # # @param maximum_amount [String]
668
- # # @param plan_phase_order [Integer, nil]
669
- # # @param reason [String, nil]
670
- # # @param adjustment_type [Symbol, :maximum]
671
- # #
672
- # def initialize(
673
- # id:,
674
- # applies_to_price_ids:,
675
- # is_invoice_level:,
676
- # maximum_amount:,
677
- # plan_phase_order:,
678
- # reason:,
679
- # adjustment_type: :maximum,
680
- # **
681
- # )
682
- # super
683
- # end
684
-
685
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
657
+ # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, maximum_amount:, plan_phase_order:, reason:, adjustment_type: :maximum)
658
+ # Some parameter documentations has been truncated, see
659
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment}
660
+ # for more details.
661
+ #
662
+ # @param id [String]
663
+ #
664
+ # @param applies_to_price_ids [Array<String>] The price IDs that this adjustment applies to.
665
+ #
666
+ # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha
667
+ # ...
668
+ #
669
+ # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus
670
+ # ...
671
+ #
672
+ # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
673
+ #
674
+ # @param reason [String, nil] The reason for the adjustment.
675
+ #
676
+ # @param adjustment_type [Symbol, :maximum]
686
677
  end
687
678
 
688
- # @!parse
689
- # # @return [Array(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment)]
690
- # def self.variants; end
679
+ # @!method self.variants
680
+ # @return [Array(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment)]
691
681
  end
692
682
  end
693
683
 
@@ -717,14 +707,19 @@ module Orb
717
707
  # @return [Integer, nil]
718
708
  optional :year, Integer, nil?: true
719
709
 
720
- # @!parse
721
- # # @param day [Integer]
722
- # # @param month [Integer, nil]
723
- # # @param year [Integer, nil]
724
- # #
725
- # def initialize(day:, month: nil, year: nil, **) = super
726
-
727
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
710
+ # @!method initialize(day:, month: nil, year: nil)
711
+ # Some parameter documentations has been truncated, see
712
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration}
713
+ # for more details.
714
+ #
715
+ # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb
716
+ # ...
717
+ #
718
+ # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore
719
+ # ...
720
+ #
721
+ # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc
722
+ # ...
728
723
  end
729
724
 
730
725
  module DiscountInterval
@@ -777,27 +772,18 @@ module Orb
777
772
  # @return [Time]
778
773
  required :start_date, Time
779
774
 
780
- # @!parse
781
- # # @param amount_discount [String]
782
- # # @param applies_to_price_ids [Array<String>]
783
- # # @param applies_to_price_interval_ids [Array<String>]
784
- # # @param end_date [Time, nil]
785
- # # @param start_date [Time]
786
- # # @param discount_type [Symbol, :amount]
787
- # #
788
- # def initialize(
789
- # amount_discount:,
790
- # applies_to_price_ids:,
791
- # applies_to_price_interval_ids:,
792
- # end_date:,
793
- # start_date:,
794
- # discount_type: :amount,
795
- # **
796
- # )
797
- # super
798
- # end
799
-
800
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
775
+ # @!method initialize(amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, start_date:, discount_type: :amount)
776
+ # @param amount_discount [String] Only available if discount_type is `amount`.
777
+ #
778
+ # @param applies_to_price_ids [Array<String>] The price ids that this discount interval applies to.
779
+ #
780
+ # @param applies_to_price_interval_ids [Array<String>] The price interval ids that this discount interval applies to.
781
+ #
782
+ # @param end_date [Time, nil] The end date of the discount interval.
783
+ #
784
+ # @param start_date [Time] The start date of the discount interval.
785
+ #
786
+ # @param discount_type [Symbol, :amount]
801
787
  end
802
788
 
803
789
  class PercentageDiscountInterval < Orb::Internal::Type::BaseModel
@@ -837,27 +823,23 @@ module Orb
837
823
  # @return [Time]
838
824
  required :start_date, Time
839
825
 
840
- # @!parse
841
- # # @param applies_to_price_ids [Array<String>]
842
- # # @param applies_to_price_interval_ids [Array<String>]
843
- # # @param end_date [Time, nil]
844
- # # @param percentage_discount [Float]
845
- # # @param start_date [Time]
846
- # # @param discount_type [Symbol, :percentage]
847
- # #
848
- # def initialize(
849
- # applies_to_price_ids:,
850
- # applies_to_price_interval_ids:,
851
- # end_date:,
852
- # percentage_discount:,
853
- # start_date:,
854
- # discount_type: :percentage,
855
- # **
856
- # )
857
- # super
858
- # end
859
-
860
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
826
+ # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, percentage_discount:, start_date:, discount_type: :percentage)
827
+ # Some parameter documentations has been truncated, see
828
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval}
829
+ # for more details.
830
+ #
831
+ # @param applies_to_price_ids [Array<String>] The price ids that this discount interval applies to.
832
+ #
833
+ # @param applies_to_price_interval_ids [Array<String>] The price interval ids that this discount interval applies to.
834
+ #
835
+ # @param end_date [Time, nil] The end date of the discount interval.
836
+ #
837
+ # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1
838
+ # ...
839
+ #
840
+ # @param start_date [Time] The start date of the discount interval.
841
+ #
842
+ # @param discount_type [Symbol, :percentage]
861
843
  end
862
844
 
863
845
  class UsageDiscountInterval < Orb::Internal::Type::BaseModel
@@ -897,32 +879,27 @@ module Orb
897
879
  # @return [Float]
898
880
  required :usage_discount, Float
899
881
 
900
- # @!parse
901
- # # @param applies_to_price_ids [Array<String>]
902
- # # @param applies_to_price_interval_ids [Array<String>]
903
- # # @param end_date [Time, nil]
904
- # # @param start_date [Time]
905
- # # @param usage_discount [Float]
906
- # # @param discount_type [Symbol, :usage]
907
- # #
908
- # def initialize(
909
- # applies_to_price_ids:,
910
- # applies_to_price_interval_ids:,
911
- # end_date:,
912
- # start_date:,
913
- # usage_discount:,
914
- # discount_type: :usage,
915
- # **
916
- # )
917
- # super
918
- # end
919
-
920
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
882
+ # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, start_date:, usage_discount:, discount_type: :usage)
883
+ # Some parameter documentations has been truncated, see
884
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval}
885
+ # for more details.
886
+ #
887
+ # @param applies_to_price_ids [Array<String>] The price ids that this discount interval applies to.
888
+ #
889
+ # @param applies_to_price_interval_ids [Array<String>] The price interval ids that this discount interval applies to.
890
+ #
891
+ # @param end_date [Time, nil] The end date of the discount interval.
892
+ #
893
+ # @param start_date [Time] The start date of the discount interval.
894
+ #
895
+ # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc
896
+ # ...
897
+ #
898
+ # @param discount_type [Symbol, :usage]
921
899
  end
922
900
 
923
- # @!parse
924
- # # @return [Array(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval)]
925
- # def self.variants; end
901
+ # @!method self.variants
902
+ # @return [Array(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval)]
926
903
  end
927
904
 
928
905
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
@@ -946,15 +923,11 @@ module Orb
946
923
  # @return [Time]
947
924
  required :start_date, Time
948
925
 
949
- # @!parse
950
- # # @param end_date [Time, nil]
951
- # # @param price_id [String]
952
- # # @param quantity [Float]
953
- # # @param start_date [Time]
954
- # #
955
- # def initialize(end_date:, price_id:, quantity:, start_date:, **) = super
956
-
957
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
926
+ # @!method initialize(end_date:, price_id:, quantity:, start_date:)
927
+ # @param end_date [Time, nil]
928
+ # @param price_id [String]
929
+ # @param quantity [Float]
930
+ # @param start_date [Time]
958
931
  end
959
932
 
960
933
  class MaximumInterval < Orb::Internal::Type::BaseModel
@@ -989,16 +962,21 @@ module Orb
989
962
  # @return [Time]
990
963
  required :start_date, Time
991
964
 
992
- # @!parse
993
- # # @param applies_to_price_ids [Array<String>]
994
- # # @param applies_to_price_interval_ids [Array<String>]
995
- # # @param end_date [Time, nil]
996
- # # @param maximum_amount [String]
997
- # # @param start_date [Time]
998
- # #
999
- # def initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:, **) = super
1000
-
1001
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
965
+ # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:)
966
+ # Some parameter documentations has been truncated, see
967
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval} for
968
+ # more details.
969
+ #
970
+ # @param applies_to_price_ids [Array<String>] The price ids that this maximum interval applies to.
971
+ #
972
+ # @param applies_to_price_interval_ids [Array<String>] The price interval ids that this maximum interval applies to.
973
+ #
974
+ # @param end_date [Time, nil] The end date of the maximum interval.
975
+ #
976
+ # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t
977
+ # ...
978
+ #
979
+ # @param start_date [Time] The start date of the maximum interval.
1002
980
  end
1003
981
 
1004
982
  class MinimumInterval < Orb::Internal::Type::BaseModel
@@ -1033,16 +1011,21 @@ module Orb
1033
1011
  # @return [Time]
1034
1012
  required :start_date, Time
1035
1013
 
1036
- # @!parse
1037
- # # @param applies_to_price_ids [Array<String>]
1038
- # # @param applies_to_price_interval_ids [Array<String>]
1039
- # # @param end_date [Time, nil]
1040
- # # @param minimum_amount [String]
1041
- # # @param start_date [Time]
1042
- # #
1043
- # def initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:, **) = super
1044
-
1045
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1014
+ # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:)
1015
+ # Some parameter documentations has been truncated, see
1016
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval} for
1017
+ # more details.
1018
+ #
1019
+ # @param applies_to_price_ids [Array<String>] The price ids that this minimum interval applies to.
1020
+ #
1021
+ # @param applies_to_price_interval_ids [Array<String>] The price interval ids that this minimum interval applies to.
1022
+ #
1023
+ # @param end_date [Time, nil] The end date of the minimum interval.
1024
+ #
1025
+ # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t
1026
+ # ...
1027
+ #
1028
+ # @param start_date [Time] The start date of the minimum interval.
1046
1029
  end
1047
1030
 
1048
1031
  # @see Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse#pending_subscription_change
@@ -1052,14 +1035,10 @@ module Orb
1052
1035
  # @return [String]
1053
1036
  required :id, String
1054
1037
 
1055
- # @!parse
1056
- # # A pending subscription change if one exists on this subscription.
1057
- # #
1058
- # # @param id [String]
1059
- # #
1060
- # def initialize(id:, **) = super
1061
-
1062
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1038
+ # @!method initialize(id:)
1039
+ # A pending subscription change if one exists on this subscription.
1040
+ #
1041
+ # @param id [String]
1063
1042
  end
1064
1043
 
1065
1044
  class PriceInterval < Orb::Internal::Type::BaseModel
@@ -1141,39 +1120,41 @@ module Orb
1141
1120
  # @return [Array<String>, nil]
1142
1121
  required :usage_customer_ids, Orb::Internal::Type::ArrayOf[String], nil?: true
1143
1122
 
1144
- # @!parse
1145
- # # The Price Interval resource represents a period of time for which a price will
1146
- # # bill on a subscription. A subscription’s price intervals define its billing
1147
- # # behavior.
1148
- # #
1149
- # # @param id [String]
1150
- # # @param billing_cycle_day [Integer]
1151
- # # @param current_billing_period_end_date [Time, nil]
1152
- # # @param current_billing_period_start_date [Time, nil]
1153
- # # @param end_date [Time, nil]
1154
- # # @param filter [String, nil]
1155
- # # @param fixed_fee_quantity_transitions [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition>, nil]
1156
- # # @param price [Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, Orb::Models::Price::TieredBpsPrice, Orb::Models::Price::BpsPrice, Orb::Models::Price::BulkBpsPrice, Orb::Models::Price::BulkPrice, Orb::Models::Price::ThresholdTotalAmountPrice, Orb::Models::Price::TieredPackagePrice, Orb::Models::Price::GroupedTieredPrice, Orb::Models::Price::TieredWithMinimumPrice, Orb::Models::Price::TieredPackageWithMinimumPrice, Orb::Models::Price::PackageWithAllocationPrice, Orb::Models::Price::UnitWithPercentPrice, Orb::Models::Price::MatrixWithAllocationPrice, Orb::Models::Price::TieredWithProrationPrice, Orb::Models::Price::UnitWithProrationPrice, Orb::Models::Price::GroupedAllocationPrice, Orb::Models::Price::GroupedWithProratedMinimumPrice, Orb::Models::Price::GroupedWithMeteredMinimumPrice, Orb::Models::Price::MatrixWithDisplayNamePrice, Orb::Models::Price::BulkWithProrationPrice, Orb::Models::Price::GroupedTieredPackagePrice, Orb::Models::Price::MaxGroupTieredPackagePrice, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice]
1157
- # # @param start_date [Time]
1158
- # # @param usage_customer_ids [Array<String>, nil]
1159
- # #
1160
- # def initialize(
1161
- # id:,
1162
- # billing_cycle_day:,
1163
- # current_billing_period_end_date:,
1164
- # current_billing_period_start_date:,
1165
- # end_date:,
1166
- # filter:,
1167
- # fixed_fee_quantity_transitions:,
1168
- # price:,
1169
- # start_date:,
1170
- # usage_customer_ids:,
1171
- # **
1172
- # )
1173
- # super
1174
- # end
1175
-
1176
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1123
+ # @!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:)
1124
+ # Some parameter documentations has been truncated, see
1125
+ # {Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval} for
1126
+ # more details.
1127
+ #
1128
+ # The Price Interval resource represents a period of time for which a price will
1129
+ # bill on a subscription. A subscription’s price intervals define its billing
1130
+ # behavior.
1131
+ #
1132
+ # @param id [String]
1133
+ #
1134
+ # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price
1135
+ #
1136
+ # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that
1137
+ # ...
1138
+ #
1139
+ # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th
1140
+ # ...
1141
+ #
1142
+ # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for
1143
+ # ...
1144
+ #
1145
+ # @param filter [String, nil] An additional filter to apply to usage queries.
1146
+ #
1147
+ # @param fixed_fee_quantity_transitions [Array<Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition>, nil] The fixed fee quantity transitions for this price interval. This is only relevan
1148
+ # ...
1149
+ #
1150
+ # @param price [Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, Orb::Models::Price::TieredBpsPrice, Orb::Models::Price::BpsPrice, Orb::Models::Price::BulkBpsPrice, Orb::Models::Price::BulkPrice, Orb::Models::Price::ThresholdTotalAmountPrice, Orb::Models::Price::TieredPackagePrice, Orb::Models::Price::GroupedTieredPrice, Orb::Models::Price::TieredWithMinimumPrice, Orb::Models::Price::TieredPackageWithMinimumPrice, Orb::Models::Price::PackageWithAllocationPrice, Orb::Models::Price::UnitWithPercentPrice, Orb::Models::Price::MatrixWithAllocationPrice, Orb::Models::Price::TieredWithProrationPrice, Orb::Models::Price::UnitWithProrationPrice, Orb::Models::Price::GroupedAllocationPrice, Orb::Models::Price::GroupedWithProratedMinimumPrice, Orb::Models::Price::GroupedWithMeteredMinimumPrice, Orb::Models::Price::MatrixWithDisplayNamePrice, Orb::Models::Price::BulkWithProrationPrice, Orb::Models::Price::GroupedTieredPackagePrice, Orb::Models::Price::MaxGroupTieredPackagePrice, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice] The Price resource represents a price that can be billed on a subscription, resu
1151
+ # ...
1152
+ #
1153
+ # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f
1154
+ # ...
1155
+ #
1156
+ # @param usage_customer_ids [Array<String>, nil] A list of customer IDs whose usage events will be aggregated and billed under th
1157
+ # ...
1177
1158
 
1178
1159
  class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
1179
1160
  # @!attribute effective_date
@@ -1191,14 +1172,10 @@ module Orb
1191
1172
  # @return [Integer]
1192
1173
  required :quantity, Integer
1193
1174
 
1194
- # @!parse
1195
- # # @param effective_date [Time]
1196
- # # @param price_id [String]
1197
- # # @param quantity [Integer]
1198
- # #
1199
- # def initialize(effective_date:, price_id:, quantity:, **) = super
1200
-
1201
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1175
+ # @!method initialize(effective_date:, price_id:, quantity:)
1176
+ # @param effective_date [Time]
1177
+ # @param price_id [String]
1178
+ # @param quantity [Integer]
1202
1179
  end
1203
1180
  end
1204
1181
 
@@ -1219,14 +1196,10 @@ module Orb
1219
1196
  # @return [Time]
1220
1197
  required :start_date, Time
1221
1198
 
1222
- # @!parse
1223
- # # @param coupon_id [String]
1224
- # # @param end_date [Time, nil]
1225
- # # @param start_date [Time]
1226
- # #
1227
- # def initialize(coupon_id:, end_date:, start_date:, **) = super
1228
-
1229
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1199
+ # @!method initialize(coupon_id:, end_date:, start_date:)
1200
+ # @param coupon_id [String]
1201
+ # @param end_date [Time, nil]
1202
+ # @param start_date [Time]
1230
1203
  end
1231
1204
 
1232
1205
  # @see Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse#status
@@ -1237,11 +1210,8 @@ module Orb
1237
1210
  ENDED = :ended
1238
1211
  UPCOMING = :upcoming
1239
1212
 
1240
- finalize!
1241
-
1242
- # @!parse
1243
- # # @return [Array<Symbol>]
1244
- # def self.values; end
1213
+ # @!method self.values
1214
+ # @return [Array<Symbol>]
1245
1215
  end
1246
1216
 
1247
1217
  # @see Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse#trial_info
@@ -1251,12 +1221,8 @@ module Orb
1251
1221
  # @return [Time, nil]
1252
1222
  required :end_date, Time, nil?: true
1253
1223
 
1254
- # @!parse
1255
- # # @param end_date [Time, nil]
1256
- # #
1257
- # def initialize(end_date:, **) = super
1258
-
1259
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1224
+ # @!method initialize(end_date:)
1225
+ # @param end_date [Time, nil]
1260
1226
  end
1261
1227
 
1262
1228
  # @see Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse#changed_resources
@@ -1285,19 +1251,18 @@ module Orb
1285
1251
  # @return [Array<Orb::Models::Invoice>]
1286
1252
  required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] }
1287
1253
 
1288
- # @!parse
1289
- # # The resources that were changed as part of this operation. Only present when
1290
- # # fetched through the subscription changes API or if the
1291
- # # `include_changed_resources` parameter was passed in the request.
1292
- # #
1293
- # # @param created_credit_notes [Array<Orb::Models::CreditNote>]
1294
- # # @param created_invoices [Array<Orb::Models::Invoice>]
1295
- # # @param voided_credit_notes [Array<Orb::Models::CreditNote>]
1296
- # # @param voided_invoices [Array<Orb::Models::Invoice>]
1297
- # #
1298
- # def initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:, **) = super
1299
-
1300
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1254
+ # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:)
1255
+ # The resources that were changed as part of this operation. Only present when
1256
+ # fetched through the subscription changes API or if the
1257
+ # `include_changed_resources` parameter was passed in the request.
1258
+ #
1259
+ # @param created_credit_notes [Array<Orb::Models::CreditNote>] The credit notes that were created as part of this operation.
1260
+ #
1261
+ # @param created_invoices [Array<Orb::Models::Invoice>] The invoices that were created as part of this operation.
1262
+ #
1263
+ # @param voided_credit_notes [Array<Orb::Models::CreditNote>] The credit notes that were voided as part of this operation.
1264
+ #
1265
+ # @param voided_invoices [Array<Orb::Models::Invoice>] The invoices that were voided as part of this operation.
1301
1266
  end
1302
1267
  end
1303
1268
  end