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
@@ -198,87 +198,92 @@ module Orb
198
198
  # @return [Orb::Models::Subscription::TrialInfo]
199
199
  required :trial_info, -> { Orb::Models::Subscription::TrialInfo }
200
200
 
201
- # @!parse
202
- # # A [subscription](/core-concepts#subscription) represents the purchase of a plan
203
- # # by a customer.
204
- # #
205
- # # By default, subscriptions begin on the day that they're created and renew
206
- # # automatically for each billing cycle at the cadence that's configured in the
207
- # # plan definition.
208
- # #
209
- # # Subscriptions also default to **beginning of month alignment**, which means the
210
- # # first invoice issued for the subscription will have pro-rated charges between
211
- # # the `start_date` and the first of the following month. Subsequent billing
212
- # # periods will always start and end on a month boundary (e.g. subsequent month
213
- # # starts for monthly billing).
214
- # #
215
- # # Depending on the plan configuration, any _flat_ recurring fees will be billed
216
- # # either at the beginning (in-advance) or end (in-arrears) of each billing cycle.
217
- # # Plans default to **in-advance billing**. Usage-based fees are billed in arrears
218
- # # as usage is accumulated. In the normal course of events, you can expect an
219
- # # invoice to contain usage-based charges for the previous period, and a recurring
220
- # # fee for the following period.
221
- # #
222
- # # @param id [String]
223
- # # @param active_plan_phase_order [Integer, nil]
224
- # # @param adjustment_intervals [Array<Orb::Models::Subscription::AdjustmentInterval>]
225
- # # @param auto_collection [Boolean, nil]
226
- # # @param billing_cycle_anchor_configuration [Orb::Models::Subscription::BillingCycleAnchorConfiguration]
227
- # # @param billing_cycle_day [Integer]
228
- # # @param created_at [Time]
229
- # # @param current_billing_period_end_date [Time, nil]
230
- # # @param current_billing_period_start_date [Time, nil]
231
- # # @param customer [Orb::Models::Customer]
232
- # # @param default_invoice_memo [String, nil]
233
- # # @param discount_intervals [Array<Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval>]
234
- # # @param end_date [Time, nil]
235
- # # @param fixed_fee_quantity_schedule [Array<Orb::Models::Subscription::FixedFeeQuantitySchedule>]
236
- # # @param invoicing_threshold [String, nil]
237
- # # @param maximum_intervals [Array<Orb::Models::Subscription::MaximumInterval>]
238
- # # @param metadata [Hash{Symbol=>String}]
239
- # # @param minimum_intervals [Array<Orb::Models::Subscription::MinimumInterval>]
240
- # # @param net_terms [Integer]
241
- # # @param pending_subscription_change [Orb::Models::Subscription::PendingSubscriptionChange, nil]
242
- # # @param plan [Orb::Models::Plan]
243
- # # @param price_intervals [Array<Orb::Models::Subscription::PriceInterval>]
244
- # # @param redeemed_coupon [Orb::Models::Subscription::RedeemedCoupon, nil]
245
- # # @param start_date [Time]
246
- # # @param status [Symbol, Orb::Models::Subscription::Status]
247
- # # @param trial_info [Orb::Models::Subscription::TrialInfo]
248
- # #
249
- # def initialize(
250
- # id:,
251
- # active_plan_phase_order:,
252
- # adjustment_intervals:,
253
- # auto_collection:,
254
- # billing_cycle_anchor_configuration:,
255
- # billing_cycle_day:,
256
- # created_at:,
257
- # current_billing_period_end_date:,
258
- # current_billing_period_start_date:,
259
- # customer:,
260
- # default_invoice_memo:,
261
- # discount_intervals:,
262
- # end_date:,
263
- # fixed_fee_quantity_schedule:,
264
- # invoicing_threshold:,
265
- # maximum_intervals:,
266
- # metadata:,
267
- # minimum_intervals:,
268
- # net_terms:,
269
- # pending_subscription_change:,
270
- # plan:,
271
- # price_intervals:,
272
- # redeemed_coupon:,
273
- # start_date:,
274
- # status:,
275
- # trial_info:,
276
- # **
277
- # )
278
- # super
279
- # end
280
-
281
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
201
+ # @!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:)
202
+ # Some parameter documentations has been truncated, see
203
+ # {Orb::Models::Subscription} for more details.
204
+ #
205
+ # A [subscription](/core-concepts#subscription) represents the purchase of a plan
206
+ # by a customer.
207
+ #
208
+ # By default, subscriptions begin on the day that they're created and renew
209
+ # automatically for each billing cycle at the cadence that's configured in the
210
+ # plan definition.
211
+ #
212
+ # Subscriptions also default to **beginning of month alignment**, which means the
213
+ # first invoice issued for the subscription will have pro-rated charges between
214
+ # the `start_date` and the first of the following month. Subsequent billing
215
+ # periods will always start and end on a month boundary (e.g. subsequent month
216
+ # starts for monthly billing).
217
+ #
218
+ # Depending on the plan configuration, any _flat_ recurring fees will be billed
219
+ # either at the beginning (in-advance) or end (in-arrears) of each billing cycle.
220
+ # Plans default to **in-advance billing**. Usage-based fees are billed in arrears
221
+ # as usage is accumulated. In the normal course of events, you can expect an
222
+ # invoice to contain usage-based charges for the previous period, and a recurring
223
+ # fee for the following period.
224
+ #
225
+ # @param id [String]
226
+ #
227
+ # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase
228
+ # ...
229
+ #
230
+ # @param adjustment_intervals [Array<Orb::Models::Subscription::AdjustmentInterval>] The adjustment intervals for this subscription sorted by the start_date of the a
231
+ # ...
232
+ #
233
+ # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c
234
+ # ...
235
+ #
236
+ # @param billing_cycle_anchor_configuration [Orb::Models::Subscription::BillingCycleAnchorConfiguration]
237
+ #
238
+ # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb
239
+ # ...
240
+ #
241
+ # @param created_at [Time]
242
+ #
243
+ # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that
244
+ # ...
245
+ #
246
+ # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th
247
+ # ...
248
+ #
249
+ # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat
250
+ # ...
251
+ #
252
+ # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i
253
+ # ...
254
+ #
255
+ # @param discount_intervals [Array<Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval>] The discount intervals for this subscription sorted by the start_date.
256
+ #
257
+ # @param end_date [Time, nil] The date Orb stops billing for this subscription.
258
+ #
259
+ # @param fixed_fee_quantity_schedule [Array<Orb::Models::Subscription::FixedFeeQuantitySchedule>]
260
+ #
261
+ # @param invoicing_threshold [String, nil]
262
+ #
263
+ # @param maximum_intervals [Array<Orb::Models::Subscription::MaximumInterval>] The maximum intervals for this subscription sorted by the start_date.
264
+ #
265
+ # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
266
+ # ...
267
+ #
268
+ # @param minimum_intervals [Array<Orb::Models::Subscription::MinimumInterval>] The minimum intervals for this subscription sorted by the start_date.
269
+ #
270
+ # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic
271
+ # ...
272
+ #
273
+ # @param pending_subscription_change [Orb::Models::Subscription::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription.
274
+ #
275
+ # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
276
+ # ...
277
+ #
278
+ # @param price_intervals [Array<Orb::Models::Subscription::PriceInterval>] The price intervals for this subscription.
279
+ #
280
+ # @param redeemed_coupon [Orb::Models::Subscription::RedeemedCoupon, nil]
281
+ #
282
+ # @param start_date [Time] The date Orb starts billing for this subscription.
283
+ #
284
+ # @param status [Symbol, Orb::Models::Subscription::Status]
285
+ #
286
+ # @param trial_info [Orb::Models::Subscription::TrialInfo]
282
287
 
283
288
  class AdjustmentInterval < Orb::Internal::Type::BaseModel
284
289
  # @!attribute id
@@ -309,16 +314,16 @@ module Orb
309
314
  # @return [Time]
310
315
  required :start_date, Time
311
316
 
312
- # @!parse
313
- # # @param id [String]
314
- # # @param adjustment [Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]
315
- # # @param applies_to_price_interval_ids [Array<String>]
316
- # # @param end_date [Time, nil]
317
- # # @param start_date [Time]
318
- # #
319
- # def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:, **) = super
320
-
321
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
317
+ # @!method initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:)
318
+ # @param id [String]
319
+ #
320
+ # @param adjustment [Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]
321
+ #
322
+ # @param applies_to_price_interval_ids [Array<String>] The price interval IDs that this adjustment applies to.
323
+ #
324
+ # @param end_date [Time, nil] The end date of the adjustment interval.
325
+ #
326
+ # @param start_date [Time] The start date of the adjustment interval.
322
327
 
323
328
  # @see Orb::Models::Subscription::AdjustmentInterval#adjustment
324
329
  module Adjustment
@@ -384,29 +389,26 @@ module Orb
384
389
  # @return [Float]
385
390
  required :usage_discount, Float
386
391
 
387
- # @!parse
388
- # # @param id [String]
389
- # # @param applies_to_price_ids [Array<String>]
390
- # # @param is_invoice_level [Boolean]
391
- # # @param plan_phase_order [Integer, nil]
392
- # # @param reason [String, nil]
393
- # # @param usage_discount [Float]
394
- # # @param adjustment_type [Symbol, :usage_discount]
395
- # #
396
- # def initialize(
397
- # id:,
398
- # applies_to_price_ids:,
399
- # is_invoice_level:,
400
- # plan_phase_order:,
401
- # reason:,
402
- # usage_discount:,
403
- # adjustment_type: :usage_discount,
404
- # **
405
- # )
406
- # super
407
- # end
408
-
409
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
392
+ # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, usage_discount:, adjustment_type: :usage_discount)
393
+ # Some parameter documentations has been truncated, see
394
+ # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment}
395
+ # for more details.
396
+ #
397
+ # @param id [String]
398
+ #
399
+ # @param applies_to_price_ids [Array<String>] The price IDs that this adjustment applies to.
400
+ #
401
+ # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha
402
+ # ...
403
+ #
404
+ # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
405
+ #
406
+ # @param reason [String, nil] The reason for the adjustment.
407
+ #
408
+ # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies
409
+ # ...
410
+ #
411
+ # @param adjustment_type [Symbol, :usage_discount]
410
412
  end
411
413
 
412
414
  class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel
@@ -452,29 +454,26 @@ module Orb
452
454
  # @return [String, nil]
453
455
  required :reason, String, nil?: true
454
456
 
455
- # @!parse
456
- # # @param id [String]
457
- # # @param amount_discount [String]
458
- # # @param applies_to_price_ids [Array<String>]
459
- # # @param is_invoice_level [Boolean]
460
- # # @param plan_phase_order [Integer, nil]
461
- # # @param reason [String, nil]
462
- # # @param adjustment_type [Symbol, :amount_discount]
463
- # #
464
- # def initialize(
465
- # id:,
466
- # amount_discount:,
467
- # applies_to_price_ids:,
468
- # is_invoice_level:,
469
- # plan_phase_order:,
470
- # reason:,
471
- # adjustment_type: :amount_discount,
472
- # **
473
- # )
474
- # super
475
- # end
476
-
477
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
457
+ # @!method initialize(id:, amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, adjustment_type: :amount_discount)
458
+ # Some parameter documentations has been truncated, see
459
+ # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment}
460
+ # for more details.
461
+ #
462
+ # @param id [String]
463
+ #
464
+ # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given
465
+ # ...
466
+ #
467
+ # @param applies_to_price_ids [Array<String>] The price IDs that this adjustment applies to.
468
+ #
469
+ # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha
470
+ # ...
471
+ #
472
+ # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
473
+ #
474
+ # @param reason [String, nil] The reason for the adjustment.
475
+ #
476
+ # @param adjustment_type [Symbol, :amount_discount]
478
477
  end
479
478
 
480
479
  class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel
@@ -520,29 +519,26 @@ module Orb
520
519
  # @return [String, nil]
521
520
  required :reason, String, nil?: true
522
521
 
523
- # @!parse
524
- # # @param id [String]
525
- # # @param applies_to_price_ids [Array<String>]
526
- # # @param is_invoice_level [Boolean]
527
- # # @param percentage_discount [Float]
528
- # # @param plan_phase_order [Integer, nil]
529
- # # @param reason [String, nil]
530
- # # @param adjustment_type [Symbol, :percentage_discount]
531
- # #
532
- # def initialize(
533
- # id:,
534
- # applies_to_price_ids:,
535
- # is_invoice_level:,
536
- # percentage_discount:,
537
- # plan_phase_order:,
538
- # reason:,
539
- # adjustment_type: :percentage_discount,
540
- # **
541
- # )
542
- # super
543
- # end
544
-
545
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
522
+ # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, percentage_discount:, plan_phase_order:, reason:, adjustment_type: :percentage_discount)
523
+ # Some parameter documentations has been truncated, see
524
+ # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment}
525
+ # for more details.
526
+ #
527
+ # @param id [String]
528
+ #
529
+ # @param applies_to_price_ids [Array<String>] The price IDs that this adjustment applies to.
530
+ #
531
+ # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha
532
+ # ...
533
+ #
534
+ # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter
535
+ # ...
536
+ #
537
+ # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
538
+ #
539
+ # @param reason [String, nil] The reason for the adjustment.
540
+ #
541
+ # @param adjustment_type [Symbol, :percentage_discount]
546
542
  end
547
543
 
548
544
  class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel
@@ -594,31 +590,28 @@ module Orb
594
590
  # @return [String, nil]
595
591
  required :reason, String, nil?: true
596
592
 
597
- # @!parse
598
- # # @param id [String]
599
- # # @param applies_to_price_ids [Array<String>]
600
- # # @param is_invoice_level [Boolean]
601
- # # @param item_id [String]
602
- # # @param minimum_amount [String]
603
- # # @param plan_phase_order [Integer, nil]
604
- # # @param reason [String, nil]
605
- # # @param adjustment_type [Symbol, :minimum]
606
- # #
607
- # def initialize(
608
- # id:,
609
- # applies_to_price_ids:,
610
- # is_invoice_level:,
611
- # item_id:,
612
- # minimum_amount:,
613
- # plan_phase_order:,
614
- # reason:,
615
- # adjustment_type: :minimum,
616
- # **
617
- # )
618
- # super
619
- # end
620
-
621
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
593
+ # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, item_id:, minimum_amount:, plan_phase_order:, reason:, adjustment_type: :minimum)
594
+ # Some parameter documentations has been truncated, see
595
+ # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment}
596
+ # for more details.
597
+ #
598
+ # @param id [String]
599
+ #
600
+ # @param applies_to_price_ids [Array<String>] The price IDs that this adjustment applies to.
601
+ #
602
+ # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha
603
+ # ...
604
+ #
605
+ # @param item_id [String] The item ID that revenue from this minimum will be attributed to.
606
+ #
607
+ # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus
608
+ # ...
609
+ #
610
+ # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
611
+ #
612
+ # @param reason [String, nil] The reason for the adjustment.
613
+ #
614
+ # @param adjustment_type [Symbol, :minimum]
622
615
  end
623
616
 
624
617
  class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel
@@ -664,34 +657,30 @@ module Orb
664
657
  # @return [String, nil]
665
658
  required :reason, String, nil?: true
666
659
 
667
- # @!parse
668
- # # @param id [String]
669
- # # @param applies_to_price_ids [Array<String>]
670
- # # @param is_invoice_level [Boolean]
671
- # # @param maximum_amount [String]
672
- # # @param plan_phase_order [Integer, nil]
673
- # # @param reason [String, nil]
674
- # # @param adjustment_type [Symbol, :maximum]
675
- # #
676
- # def initialize(
677
- # id:,
678
- # applies_to_price_ids:,
679
- # is_invoice_level:,
680
- # maximum_amount:,
681
- # plan_phase_order:,
682
- # reason:,
683
- # adjustment_type: :maximum,
684
- # **
685
- # )
686
- # super
687
- # end
688
-
689
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
660
+ # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, maximum_amount:, plan_phase_order:, reason:, adjustment_type: :maximum)
661
+ # Some parameter documentations has been truncated, see
662
+ # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment}
663
+ # for more details.
664
+ #
665
+ # @param id [String]
666
+ #
667
+ # @param applies_to_price_ids [Array<String>] The price IDs that this adjustment applies to.
668
+ #
669
+ # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha
670
+ # ...
671
+ #
672
+ # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus
673
+ # ...
674
+ #
675
+ # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active.
676
+ #
677
+ # @param reason [String, nil] The reason for the adjustment.
678
+ #
679
+ # @param adjustment_type [Symbol, :maximum]
690
680
  end
691
681
 
692
- # @!parse
693
- # # @return [Array(Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment)]
694
- # def self.variants; end
682
+ # @!method self.variants
683
+ # @return [Array(Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment)]
695
684
  end
696
685
  end
697
686
 
@@ -721,14 +710,18 @@ module Orb
721
710
  # @return [Integer, nil]
722
711
  optional :year, Integer, nil?: true
723
712
 
724
- # @!parse
725
- # # @param day [Integer]
726
- # # @param month [Integer, nil]
727
- # # @param year [Integer, nil]
728
- # #
729
- # def initialize(day:, month: nil, year: nil, **) = super
730
-
731
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
713
+ # @!method initialize(day:, month: nil, year: nil)
714
+ # Some parameter documentations has been truncated, see
715
+ # {Orb::Models::Subscription::BillingCycleAnchorConfiguration} for more details.
716
+ #
717
+ # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb
718
+ # ...
719
+ #
720
+ # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore
721
+ # ...
722
+ #
723
+ # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc
724
+ # ...
732
725
  end
733
726
 
734
727
  module DiscountInterval
@@ -778,27 +771,18 @@ module Orb
778
771
  # @return [Time]
779
772
  required :start_date, Time
780
773
 
781
- # @!parse
782
- # # @param amount_discount [String]
783
- # # @param applies_to_price_ids [Array<String>]
784
- # # @param applies_to_price_interval_ids [Array<String>]
785
- # # @param end_date [Time, nil]
786
- # # @param start_date [Time]
787
- # # @param discount_type [Symbol, :amount]
788
- # #
789
- # def initialize(
790
- # amount_discount:,
791
- # applies_to_price_ids:,
792
- # applies_to_price_interval_ids:,
793
- # end_date:,
794
- # start_date:,
795
- # discount_type: :amount,
796
- # **
797
- # )
798
- # super
799
- # end
800
-
801
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
774
+ # @!method initialize(amount_discount:, applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, start_date:, discount_type: :amount)
775
+ # @param amount_discount [String] Only available if discount_type is `amount`.
776
+ #
777
+ # @param applies_to_price_ids [Array<String>] The price ids that this discount interval applies to.
778
+ #
779
+ # @param applies_to_price_interval_ids [Array<String>] The price interval ids that this discount interval applies to.
780
+ #
781
+ # @param end_date [Time, nil] The end date of the discount interval.
782
+ #
783
+ # @param start_date [Time] The start date of the discount interval.
784
+ #
785
+ # @param discount_type [Symbol, :amount]
802
786
  end
803
787
 
804
788
  class PercentageDiscountInterval < Orb::Internal::Type::BaseModel
@@ -838,27 +822,23 @@ module Orb
838
822
  # @return [Time]
839
823
  required :start_date, Time
840
824
 
841
- # @!parse
842
- # # @param applies_to_price_ids [Array<String>]
843
- # # @param applies_to_price_interval_ids [Array<String>]
844
- # # @param end_date [Time, nil]
845
- # # @param percentage_discount [Float]
846
- # # @param start_date [Time]
847
- # # @param discount_type [Symbol, :percentage]
848
- # #
849
- # def initialize(
850
- # applies_to_price_ids:,
851
- # applies_to_price_interval_ids:,
852
- # end_date:,
853
- # percentage_discount:,
854
- # start_date:,
855
- # discount_type: :percentage,
856
- # **
857
- # )
858
- # super
859
- # end
860
-
861
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
825
+ # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, percentage_discount:, start_date:, discount_type: :percentage)
826
+ # Some parameter documentations has been truncated, see
827
+ # {Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval} for
828
+ # more details.
829
+ #
830
+ # @param applies_to_price_ids [Array<String>] The price ids that this discount interval applies to.
831
+ #
832
+ # @param applies_to_price_interval_ids [Array<String>] The price interval ids that this discount interval applies to.
833
+ #
834
+ # @param end_date [Time, nil] The end date of the discount interval.
835
+ #
836
+ # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1
837
+ # ...
838
+ #
839
+ # @param start_date [Time] The start date of the discount interval.
840
+ #
841
+ # @param discount_type [Symbol, :percentage]
862
842
  end
863
843
 
864
844
  class UsageDiscountInterval < Orb::Internal::Type::BaseModel
@@ -898,32 +878,27 @@ module Orb
898
878
  # @return [Float]
899
879
  required :usage_discount, Float
900
880
 
901
- # @!parse
902
- # # @param applies_to_price_ids [Array<String>]
903
- # # @param applies_to_price_interval_ids [Array<String>]
904
- # # @param end_date [Time, nil]
905
- # # @param start_date [Time]
906
- # # @param usage_discount [Float]
907
- # # @param discount_type [Symbol, :usage]
908
- # #
909
- # def initialize(
910
- # applies_to_price_ids:,
911
- # applies_to_price_interval_ids:,
912
- # end_date:,
913
- # start_date:,
914
- # usage_discount:,
915
- # discount_type: :usage,
916
- # **
917
- # )
918
- # super
919
- # end
920
-
921
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
881
+ # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, start_date:, usage_discount:, discount_type: :usage)
882
+ # Some parameter documentations has been truncated, see
883
+ # {Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval} for more
884
+ # details.
885
+ #
886
+ # @param applies_to_price_ids [Array<String>] The price ids that this discount interval applies to.
887
+ #
888
+ # @param applies_to_price_interval_ids [Array<String>] The price interval ids that this discount interval applies to.
889
+ #
890
+ # @param end_date [Time, nil] The end date of the discount interval.
891
+ #
892
+ # @param start_date [Time] The start date of the discount interval.
893
+ #
894
+ # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc
895
+ # ...
896
+ #
897
+ # @param discount_type [Symbol, :usage]
922
898
  end
923
899
 
924
- # @!parse
925
- # # @return [Array(Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval)]
926
- # def self.variants; end
900
+ # @!method self.variants
901
+ # @return [Array(Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval)]
927
902
  end
928
903
 
929
904
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
@@ -947,15 +922,11 @@ module Orb
947
922
  # @return [Time]
948
923
  required :start_date, Time
949
924
 
950
- # @!parse
951
- # # @param end_date [Time, nil]
952
- # # @param price_id [String]
953
- # # @param quantity [Float]
954
- # # @param start_date [Time]
955
- # #
956
- # def initialize(end_date:, price_id:, quantity:, start_date:, **) = super
957
-
958
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
925
+ # @!method initialize(end_date:, price_id:, quantity:, start_date:)
926
+ # @param end_date [Time, nil]
927
+ # @param price_id [String]
928
+ # @param quantity [Float]
929
+ # @param start_date [Time]
959
930
  end
960
931
 
961
932
  class MaximumInterval < Orb::Internal::Type::BaseModel
@@ -990,16 +961,20 @@ module Orb
990
961
  # @return [Time]
991
962
  required :start_date, Time
992
963
 
993
- # @!parse
994
- # # @param applies_to_price_ids [Array<String>]
995
- # # @param applies_to_price_interval_ids [Array<String>]
996
- # # @param end_date [Time, nil]
997
- # # @param maximum_amount [String]
998
- # # @param start_date [Time]
999
- # #
1000
- # def initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:, **) = super
1001
-
1002
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
964
+ # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:)
965
+ # Some parameter documentations has been truncated, see
966
+ # {Orb::Models::Subscription::MaximumInterval} for more details.
967
+ #
968
+ # @param applies_to_price_ids [Array<String>] The price ids that this maximum interval applies to.
969
+ #
970
+ # @param applies_to_price_interval_ids [Array<String>] The price interval ids that this maximum interval applies to.
971
+ #
972
+ # @param end_date [Time, nil] The end date of the maximum interval.
973
+ #
974
+ # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t
975
+ # ...
976
+ #
977
+ # @param start_date [Time] The start date of the maximum interval.
1003
978
  end
1004
979
 
1005
980
  class MinimumInterval < Orb::Internal::Type::BaseModel
@@ -1034,16 +1009,20 @@ module Orb
1034
1009
  # @return [Time]
1035
1010
  required :start_date, Time
1036
1011
 
1037
- # @!parse
1038
- # # @param applies_to_price_ids [Array<String>]
1039
- # # @param applies_to_price_interval_ids [Array<String>]
1040
- # # @param end_date [Time, nil]
1041
- # # @param minimum_amount [String]
1042
- # # @param start_date [Time]
1043
- # #
1044
- # def initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:, **) = super
1045
-
1046
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1012
+ # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:)
1013
+ # Some parameter documentations has been truncated, see
1014
+ # {Orb::Models::Subscription::MinimumInterval} for more details.
1015
+ #
1016
+ # @param applies_to_price_ids [Array<String>] The price ids that this minimum interval applies to.
1017
+ #
1018
+ # @param applies_to_price_interval_ids [Array<String>] The price interval ids that this minimum interval applies to.
1019
+ #
1020
+ # @param end_date [Time, nil] The end date of the minimum interval.
1021
+ #
1022
+ # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t
1023
+ # ...
1024
+ #
1025
+ # @param start_date [Time] The start date of the minimum interval.
1047
1026
  end
1048
1027
 
1049
1028
  # @see Orb::Models::Subscription#pending_subscription_change
@@ -1053,14 +1032,10 @@ module Orb
1053
1032
  # @return [String]
1054
1033
  required :id, String
1055
1034
 
1056
- # @!parse
1057
- # # A pending subscription change if one exists on this subscription.
1058
- # #
1059
- # # @param id [String]
1060
- # #
1061
- # def initialize(id:, **) = super
1062
-
1063
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1035
+ # @!method initialize(id:)
1036
+ # A pending subscription change if one exists on this subscription.
1037
+ #
1038
+ # @param id [String]
1064
1039
  end
1065
1040
 
1066
1041
  class PriceInterval < Orb::Internal::Type::BaseModel
@@ -1142,39 +1117,40 @@ module Orb
1142
1117
  # @return [Array<String>, nil]
1143
1118
  required :usage_customer_ids, Orb::Internal::Type::ArrayOf[String], nil?: true
1144
1119
 
1145
- # @!parse
1146
- # # The Price Interval resource represents a period of time for which a price will
1147
- # # bill on a subscription. A subscription’s price intervals define its billing
1148
- # # behavior.
1149
- # #
1150
- # # @param id [String]
1151
- # # @param billing_cycle_day [Integer]
1152
- # # @param current_billing_period_end_date [Time, nil]
1153
- # # @param current_billing_period_start_date [Time, nil]
1154
- # # @param end_date [Time, nil]
1155
- # # @param filter [String, nil]
1156
- # # @param fixed_fee_quantity_transitions [Array<Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition>, nil]
1157
- # # @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]
1158
- # # @param start_date [Time]
1159
- # # @param usage_customer_ids [Array<String>, nil]
1160
- # #
1161
- # def initialize(
1162
- # id:,
1163
- # billing_cycle_day:,
1164
- # current_billing_period_end_date:,
1165
- # current_billing_period_start_date:,
1166
- # end_date:,
1167
- # filter:,
1168
- # fixed_fee_quantity_transitions:,
1169
- # price:,
1170
- # start_date:,
1171
- # usage_customer_ids:,
1172
- # **
1173
- # )
1174
- # super
1175
- # end
1176
-
1177
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1120
+ # @!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:)
1121
+ # Some parameter documentations has been truncated, see
1122
+ # {Orb::Models::Subscription::PriceInterval} for more details.
1123
+ #
1124
+ # The Price Interval resource represents a period of time for which a price will
1125
+ # bill on a subscription. A subscription’s price intervals define its billing
1126
+ # behavior.
1127
+ #
1128
+ # @param id [String]
1129
+ #
1130
+ # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price
1131
+ #
1132
+ # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that
1133
+ # ...
1134
+ #
1135
+ # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th
1136
+ # ...
1137
+ #
1138
+ # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for
1139
+ # ...
1140
+ #
1141
+ # @param filter [String, nil] An additional filter to apply to usage queries.
1142
+ #
1143
+ # @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
1144
+ # ...
1145
+ #
1146
+ # @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
1147
+ # ...
1148
+ #
1149
+ # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f
1150
+ # ...
1151
+ #
1152
+ # @param usage_customer_ids [Array<String>, nil] A list of customer IDs whose usage events will be aggregated and billed under th
1153
+ # ...
1178
1154
 
1179
1155
  class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
1180
1156
  # @!attribute effective_date
@@ -1192,14 +1168,10 @@ module Orb
1192
1168
  # @return [Integer]
1193
1169
  required :quantity, Integer
1194
1170
 
1195
- # @!parse
1196
- # # @param effective_date [Time]
1197
- # # @param price_id [String]
1198
- # # @param quantity [Integer]
1199
- # #
1200
- # def initialize(effective_date:, price_id:, quantity:, **) = super
1201
-
1202
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1171
+ # @!method initialize(effective_date:, price_id:, quantity:)
1172
+ # @param effective_date [Time]
1173
+ # @param price_id [String]
1174
+ # @param quantity [Integer]
1203
1175
  end
1204
1176
  end
1205
1177
 
@@ -1220,14 +1192,10 @@ module Orb
1220
1192
  # @return [Time]
1221
1193
  required :start_date, Time
1222
1194
 
1223
- # @!parse
1224
- # # @param coupon_id [String]
1225
- # # @param end_date [Time, nil]
1226
- # # @param start_date [Time]
1227
- # #
1228
- # def initialize(coupon_id:, end_date:, start_date:, **) = super
1229
-
1230
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1195
+ # @!method initialize(coupon_id:, end_date:, start_date:)
1196
+ # @param coupon_id [String]
1197
+ # @param end_date [Time, nil]
1198
+ # @param start_date [Time]
1231
1199
  end
1232
1200
 
1233
1201
  # @see Orb::Models::Subscription#status
@@ -1238,11 +1206,8 @@ module Orb
1238
1206
  ENDED = :ended
1239
1207
  UPCOMING = :upcoming
1240
1208
 
1241
- finalize!
1242
-
1243
- # @!parse
1244
- # # @return [Array<Symbol>]
1245
- # def self.values; end
1209
+ # @!method self.values
1210
+ # @return [Array<Symbol>]
1246
1211
  end
1247
1212
 
1248
1213
  # @see Orb::Models::Subscription#trial_info
@@ -1252,12 +1217,8 @@ module Orb
1252
1217
  # @return [Time, nil]
1253
1218
  required :end_date, Time, nil?: true
1254
1219
 
1255
- # @!parse
1256
- # # @param end_date [Time, nil]
1257
- # #
1258
- # def initialize(end_date:, **) = super
1259
-
1260
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1220
+ # @!method initialize(end_date:)
1221
+ # @param end_date [Time, nil]
1261
1222
  end
1262
1223
  end
1263
1224
  end