orb-billing 0.1.3 → 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 (381) hide show
  1. checksums.yaml +4 -4
  2. data/.ignore +2 -0
  3. data/CHANGELOG.md +65 -0
  4. data/README.md +61 -51
  5. data/lib/orb/client.rb +7 -6
  6. data/lib/orb/file_part.rb +55 -0
  7. data/lib/orb/internal/page.rb +37 -39
  8. data/lib/orb/internal/transport/base_client.rb +21 -11
  9. data/lib/orb/internal/transport/pooled_net_requester.rb +3 -3
  10. data/lib/orb/internal/type/array_of.rb +28 -2
  11. data/lib/orb/internal/type/base_model.rb +83 -21
  12. data/lib/orb/internal/type/base_page.rb +10 -1
  13. data/lib/orb/internal/type/boolean.rb +6 -0
  14. data/lib/orb/internal/type/converter.rb +28 -1
  15. data/lib/orb/internal/type/enum.rb +28 -8
  16. data/lib/orb/internal/type/{io_like.rb → file_input.rb} +35 -15
  17. data/lib/orb/internal/type/hash_of.rb +28 -2
  18. data/lib/orb/internal/type/request_parameters.rb +1 -2
  19. data/lib/orb/internal/type/union.rb +27 -4
  20. data/lib/orb/internal/type/unknown.rb +6 -0
  21. data/lib/orb/internal/util.rb +105 -70
  22. data/lib/orb/internal.rb +5 -2
  23. data/lib/orb/models/alert.rb +68 -71
  24. data/lib/orb/models/alert_create_for_customer_params.rb +20 -25
  25. data/lib/orb/models/alert_create_for_external_customer_params.rb +20 -25
  26. data/lib/orb/models/alert_create_for_subscription_params.rb +20 -25
  27. data/lib/orb/models/alert_disable_params.rb +5 -9
  28. data/lib/orb/models/alert_enable_params.rb +5 -9
  29. data/lib/orb/models/alert_list_params.rb +26 -36
  30. data/lib/orb/models/alert_retrieve_params.rb +3 -8
  31. data/lib/orb/models/alert_update_params.rb +14 -18
  32. data/lib/orb/models/amount_discount.rb +14 -14
  33. data/lib/orb/models/billable_metric.rb +23 -20
  34. data/lib/orb/models/billing_cycle_relative_date.rb +2 -5
  35. data/lib/orb/models/coupon.rb +28 -21
  36. data/lib/orb/models/coupon_archive_params.rb +3 -8
  37. data/lib/orb/models/coupon_create_params.rb +24 -29
  38. data/lib/orb/models/coupon_fetch_params.rb +3 -8
  39. data/lib/orb/models/coupon_list_params.rb +17 -17
  40. data/lib/orb/models/coupons/subscription_list_params.rb +12 -15
  41. data/lib/orb/models/credit_note.rb +100 -166
  42. data/lib/orb/models/credit_note_create_params.rb +15 -23
  43. data/lib/orb/models/credit_note_fetch_params.rb +3 -8
  44. data/lib/orb/models/credit_note_list_params.rb +20 -30
  45. data/lib/orb/models/customer.rb +224 -271
  46. data/lib/orb/models/customer_create_params.rb +211 -252
  47. data/lib/orb/models/customer_delete_params.rb +3 -8
  48. data/lib/orb/models/customer_fetch_by_external_id_params.rb +3 -8
  49. data/lib/orb/models/customer_fetch_params.rb +3 -8
  50. data/lib/orb/models/customer_list_params.rb +20 -30
  51. data/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb +3 -8
  52. data/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb +3 -8
  53. data/lib/orb/models/customer_update_by_external_id_params.rb +207 -250
  54. data/lib/orb/models/customer_update_params.rb +207 -250
  55. data/lib/orb/models/customers/balance_transaction_create_params.rb +11 -16
  56. data/lib/orb/models/customers/balance_transaction_create_response.rb +33 -51
  57. data/lib/orb/models/customers/balance_transaction_list_params.rb +20 -30
  58. data/lib/orb/models/customers/balance_transaction_list_response.rb +33 -51
  59. data/lib/orb/models/customers/cost_list_by_external_id_params.rb +17 -17
  60. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +22 -26
  61. data/lib/orb/models/customers/cost_list_params.rb +17 -17
  62. data/lib/orb/models/customers/cost_list_response.rb +22 -26
  63. data/lib/orb/models/customers/credit_list_by_external_id_params.rb +18 -22
  64. data/lib/orb/models/customers/credit_list_by_external_id_response.rb +10 -17
  65. data/lib/orb/models/customers/credit_list_params.rb +18 -22
  66. data/lib/orb/models/customers/credit_list_response.rb +10 -17
  67. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +64 -66
  68. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +300 -406
  69. data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +63 -66
  70. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +300 -406
  71. data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +33 -48
  72. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +300 -406
  73. data/lib/orb/models/customers/credits/ledger_list_params.rb +32 -48
  74. data/lib/orb/models/customers/credits/ledger_list_response.rb +300 -406
  75. data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +47 -50
  76. data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +43 -46
  77. data/lib/orb/models/customers/credits/top_up_create_params.rb +46 -50
  78. data/lib/orb/models/customers/credits/top_up_create_response.rb +42 -46
  79. data/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb +4 -9
  80. data/lib/orb/models/customers/credits/top_up_delete_params.rb +4 -9
  81. data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +12 -15
  82. data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +43 -46
  83. data/lib/orb/models/customers/credits/top_up_list_params.rb +12 -15
  84. data/lib/orb/models/customers/credits/top_up_list_response.rb +42 -46
  85. data/lib/orb/models/dimensional_price_group.rb +21 -15
  86. data/lib/orb/models/dimensional_price_group_create_params.rb +17 -23
  87. data/lib/orb/models/dimensional_price_group_list_params.rb +12 -15
  88. data/lib/orb/models/dimensional_price_group_retrieve_params.rb +3 -8
  89. data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb +3 -8
  90. data/lib/orb/models/dimensional_price_groups.rb +3 -7
  91. data/lib/orb/models/discount.rb +2 -3
  92. data/lib/orb/models/evaluate_price_group.rb +8 -11
  93. data/lib/orb/models/event_deprecate_params.rb +3 -8
  94. data/lib/orb/models/event_deprecate_response.rb +2 -6
  95. data/lib/orb/models/event_ingest_params.rb +33 -27
  96. data/lib/orb/models/event_ingest_response.rb +23 -24
  97. data/lib/orb/models/event_search_params.rb +15 -11
  98. data/lib/orb/models/event_search_response.rb +27 -22
  99. data/lib/orb/models/event_update_params.rb +19 -13
  100. data/lib/orb/models/event_update_response.rb +2 -6
  101. data/lib/orb/models/events/backfill_close_params.rb +3 -8
  102. data/lib/orb/models/events/backfill_close_response.rb +34 -39
  103. data/lib/orb/models/events/backfill_create_params.rb +28 -32
  104. data/lib/orb/models/events/backfill_create_response.rb +34 -39
  105. data/lib/orb/models/events/backfill_fetch_params.rb +3 -8
  106. data/lib/orb/models/events/backfill_fetch_response.rb +34 -39
  107. data/lib/orb/models/events/backfill_list_params.rb +12 -15
  108. data/lib/orb/models/events/backfill_list_response.rb +34 -39
  109. data/lib/orb/models/events/backfill_revert_params.rb +3 -8
  110. data/lib/orb/models/events/backfill_revert_response.rb +34 -39
  111. data/lib/orb/models/events/event_volumes.rb +11 -17
  112. data/lib/orb/models/events/volume_list_params.rb +19 -22
  113. data/lib/orb/models/invoice.rb +589 -637
  114. data/lib/orb/models/invoice_create_params.rb +52 -61
  115. data/lib/orb/models/invoice_fetch_params.rb +3 -8
  116. data/lib/orb/models/invoice_fetch_upcoming_params.rb +4 -9
  117. data/lib/orb/models/invoice_fetch_upcoming_response.rb +584 -631
  118. data/lib/orb/models/invoice_issue_params.rb +10 -14
  119. data/lib/orb/models/invoice_level_discount.rb +2 -3
  120. data/lib/orb/models/invoice_line_item_create_params.rb +19 -14
  121. data/lib/orb/models/invoice_line_item_create_response.rb +247 -269
  122. data/lib/orb/models/invoice_list_params.rb +51 -66
  123. data/lib/orb/models/invoice_mark_paid_params.rb +9 -11
  124. data/lib/orb/models/invoice_pay_params.rb +3 -8
  125. data/lib/orb/models/invoice_update_params.rb +9 -9
  126. data/lib/orb/models/invoice_void_params.rb +3 -8
  127. data/lib/orb/models/item.rb +14 -25
  128. data/lib/orb/models/item_create_params.rb +5 -9
  129. data/lib/orb/models/item_fetch_params.rb +3 -8
  130. data/lib/orb/models/item_list_params.rb +12 -15
  131. data/lib/orb/models/item_update_params.rb +10 -22
  132. data/lib/orb/models/metric_create_params.rb +17 -13
  133. data/lib/orb/models/metric_fetch_params.rb +3 -8
  134. data/lib/orb/models/metric_list_params.rb +20 -30
  135. data/lib/orb/models/metric_update_params.rb +9 -9
  136. data/lib/orb/models/pagination_metadata.rb +3 -7
  137. data/lib/orb/models/percentage_discount.rb +15 -14
  138. data/lib/orb/models/plan.rb +250 -279
  139. data/lib/orb/models/plan_create_params.rb +1623 -1984
  140. data/lib/orb/models/plan_fetch_params.rb +3 -8
  141. data/lib/orb/models/plan_list_params.rb +25 -42
  142. data/lib/orb/models/plan_update_params.rb +12 -10
  143. data/lib/orb/models/plans/external_plan_id_fetch_params.rb +3 -8
  144. data/lib/orb/models/plans/external_plan_id_update_params.rb +12 -10
  145. data/lib/orb/models/price.rb +2709 -3820
  146. data/lib/orb/models/price_create_params.rb +203 -244
  147. data/lib/orb/models/price_evaluate_params.rb +21 -30
  148. data/lib/orb/models/price_evaluate_response.rb +2 -6
  149. data/lib/orb/models/price_fetch_params.rb +3 -8
  150. data/lib/orb/models/price_list_params.rb +12 -15
  151. data/lib/orb/models/price_update_params.rb +9 -9
  152. data/lib/orb/models/prices/external_price_id_fetch_params.rb +3 -8
  153. data/lib/orb/models/prices/external_price_id_update_params.rb +9 -9
  154. data/lib/orb/models/subscription.rb +343 -382
  155. data/lib/orb/models/subscription_cancel_params.rb +16 -16
  156. data/lib/orb/models/subscription_cancel_response.rb +339 -377
  157. data/lib/orb/models/subscription_change_apply_params.rb +7 -10
  158. data/lib/orb/models/subscription_change_apply_response.rb +365 -398
  159. data/lib/orb/models/subscription_change_cancel_params.rb +3 -8
  160. data/lib/orb/models/subscription_change_cancel_response.rb +365 -398
  161. data/lib/orb/models/subscription_change_retrieve_params.rb +3 -8
  162. data/lib/orb/models/subscription_change_retrieve_response.rb +366 -398
  163. data/lib/orb/models/subscription_create_params.rb +3771 -4402
  164. data/lib/orb/models/subscription_create_response.rb +339 -377
  165. data/lib/orb/models/subscription_fetch_costs_params.rb +17 -17
  166. data/lib/orb/models/subscription_fetch_costs_response.rb +22 -26
  167. data/lib/orb/models/subscription_fetch_params.rb +3 -8
  168. data/lib/orb/models/subscription_fetch_schedule_params.rb +20 -30
  169. data/lib/orb/models/subscription_fetch_schedule_response.rb +15 -17
  170. data/lib/orb/models/subscription_fetch_usage_params.rb +32 -43
  171. data/lib/orb/models/subscription_list_params.rb +28 -41
  172. data/lib/orb/models/subscription_price_intervals_params.rb +2018 -2472
  173. data/lib/orb/models/subscription_price_intervals_response.rb +342 -377
  174. data/lib/orb/models/subscription_schedule_plan_change_params.rb +3764 -4392
  175. data/lib/orb/models/subscription_schedule_plan_change_response.rb +342 -377
  176. data/lib/orb/models/subscription_trigger_phase_params.rb +12 -10
  177. data/lib/orb/models/subscription_trigger_phase_response.rb +341 -377
  178. data/lib/orb/models/subscription_unschedule_cancellation_params.rb +3 -8
  179. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +342 -377
  180. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb +5 -9
  181. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +343 -377
  182. data/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb +3 -8
  183. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +343 -377
  184. data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +22 -33
  185. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +342 -377
  186. data/lib/orb/models/subscription_update_params.rb +21 -23
  187. data/lib/orb/models/subscription_update_trial_params.rb +15 -18
  188. data/lib/orb/models/subscription_update_trial_response.rb +341 -377
  189. data/lib/orb/models/subscription_usage.rb +37 -80
  190. data/lib/orb/models/subscriptions.rb +3 -7
  191. data/lib/orb/models/top_level_ping_params.rb +3 -8
  192. data/lib/orb/models/top_level_ping_response.rb +2 -6
  193. data/lib/orb/models/trial_discount.rb +16 -24
  194. data/lib/orb/models/usage_discount.rb +15 -14
  195. data/lib/orb/request_options.rb +3 -4
  196. data/lib/orb/resources/alerts.rb +48 -17
  197. data/lib/orb/resources/coupons/subscriptions.rb +9 -2
  198. data/lib/orb/resources/coupons.rb +25 -7
  199. data/lib/orb/resources/credit_notes.rb +17 -4
  200. data/lib/orb/resources/customers/balance_transactions.rb +18 -3
  201. data/lib/orb/resources/customers/costs.rb +26 -8
  202. data/lib/orb/resources/customers/credits/ledger.rb +108 -28
  203. data/lib/orb/resources/customers/credits/top_ups.rb +67 -20
  204. data/lib/orb/resources/customers/credits.rb +28 -8
  205. data/lib/orb/resources/customers.rb +135 -36
  206. data/lib/orb/resources/dimensional_price_groups.rb +19 -4
  207. data/lib/orb/resources/events/backfills.rb +32 -9
  208. data/lib/orb/resources/events/volume.rb +14 -4
  209. data/lib/orb/resources/events.rb +40 -11
  210. data/lib/orb/resources/invoice_line_items.rb +16 -6
  211. data/lib/orb/resources/invoices.rb +77 -17
  212. data/lib/orb/resources/items.rb +10 -3
  213. data/lib/orb/resources/metrics.rb +33 -8
  214. data/lib/orb/resources/plans/external_plan_id.rb +10 -2
  215. data/lib/orb/resources/plans.rb +47 -11
  216. data/lib/orb/resources/prices/external_price_id.rb +7 -1
  217. data/lib/orb/resources/prices.rb +97 -22
  218. data/lib/orb/resources/subscription_changes.rb +5 -2
  219. data/lib/orb/resources/subscriptions.rb +292 -78
  220. data/lib/orb/version.rb +1 -1
  221. data/lib/orb.rb +2 -10
  222. data/rbi/lib/orb/client.rbi +7 -6
  223. data/rbi/lib/orb/file_part.rbi +34 -0
  224. data/rbi/lib/orb/internal/page.rbi +1 -0
  225. data/rbi/lib/orb/internal/transport/base_client.rbi +18 -3
  226. data/rbi/lib/orb/internal/type/array_of.rbi +15 -9
  227. data/rbi/lib/orb/internal/type/base_model.rbi +22 -0
  228. data/rbi/lib/orb/internal/type/base_page.rbi +2 -0
  229. data/rbi/lib/orb/internal/type/boolean.rbi +4 -5
  230. data/rbi/lib/orb/internal/type/converter.rbi +8 -0
  231. data/rbi/lib/orb/internal/type/enum.rbi +7 -6
  232. data/rbi/lib/orb/internal/type/{io_like.rbi → file_input.rbi} +9 -7
  233. data/rbi/lib/orb/internal/type/hash_of.rbi +15 -9
  234. data/rbi/lib/orb/internal/type/union.rbi +7 -0
  235. data/rbi/lib/orb/internal/type/unknown.rbi +4 -5
  236. data/rbi/lib/orb/internal/util.rbi +39 -19
  237. data/rbi/lib/orb/internal.rbi +1 -2
  238. data/rbi/lib/orb/models/alert.rbi +28 -8
  239. data/rbi/lib/orb/models/alert_create_for_customer_params.rbi +16 -6
  240. data/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi +16 -6
  241. data/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +16 -6
  242. data/rbi/lib/orb/models/alert_disable_params.rbi +5 -2
  243. data/rbi/lib/orb/models/alert_enable_params.rbi +5 -2
  244. data/rbi/lib/orb/models/alert_list_params.rbi +6 -0
  245. data/rbi/lib/orb/models/alert_update_params.rbi +11 -4
  246. data/rbi/lib/orb/models/amount_discount.rbi +10 -4
  247. data/rbi/lib/orb/models/billable_metric.rbi +16 -3
  248. data/rbi/lib/orb/models/billing_cycle_relative_date.rbi +1 -1
  249. data/rbi/lib/orb/models/coupon.rbi +10 -3
  250. data/rbi/lib/orb/models/coupon_create_params.rbi +6 -3
  251. data/rbi/lib/orb/models/coupon_list_params.rbi +13 -3
  252. data/rbi/lib/orb/models/coupons/subscription_list_params.rbi +8 -2
  253. data/rbi/lib/orb/models/credit_note.rbi +44 -12
  254. data/rbi/lib/orb/models/credit_note_create_params.rbi +15 -6
  255. data/rbi/lib/orb/models/credit_note_list_params.rbi +3 -0
  256. data/rbi/lib/orb/models/customer.rbi +130 -11
  257. data/rbi/lib/orb/models/customer_create_params.rbi +142 -8
  258. data/rbi/lib/orb/models/customer_list_params.rbi +3 -0
  259. data/rbi/lib/orb/models/customer_update_by_external_id_params.rbi +140 -8
  260. data/rbi/lib/orb/models/customer_update_params.rbi +140 -8
  261. data/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +8 -4
  262. data/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +18 -8
  263. data/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +3 -0
  264. data/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +18 -8
  265. data/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi +9 -5
  266. data/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +21 -4
  267. data/rbi/lib/orb/models/customers/cost_list_params.rbi +9 -5
  268. data/rbi/lib/orb/models/customers/cost_list_response.rbi +21 -4
  269. data/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi +13 -3
  270. data/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi +1 -2
  271. data/rbi/lib/orb/models/customers/credit_list_params.rbi +13 -3
  272. data/rbi/lib/orb/models/customers/credit_list_response.rbi +1 -2
  273. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +40 -18
  274. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +35 -56
  275. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi +40 -6
  276. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi +35 -56
  277. data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +6 -16
  278. data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +35 -56
  279. data/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +6 -4
  280. data/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +35 -56
  281. data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +27 -10
  282. data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +25 -10
  283. data/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi +27 -4
  284. data/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi +25 -10
  285. data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +8 -2
  286. data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +25 -10
  287. data/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi +8 -2
  288. data/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi +25 -4
  289. data/rbi/lib/orb/models/dimensional_price_group.rbi +11 -3
  290. data/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +4 -0
  291. data/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +8 -2
  292. data/rbi/lib/orb/models/evaluate_price_group.rbi +8 -2
  293. data/rbi/lib/orb/models/event_deprecate_response.rbi +4 -2
  294. data/rbi/lib/orb/models/event_ingest_params.rbi +22 -5
  295. data/rbi/lib/orb/models/event_ingest_response.rbi +15 -4
  296. data/rbi/lib/orb/models/event_search_params.rbi +14 -2
  297. data/rbi/lib/orb/models/event_search_response.rbi +14 -3
  298. data/rbi/lib/orb/models/event_update_params.rbi +10 -3
  299. data/rbi/lib/orb/models/event_update_response.rbi +4 -2
  300. data/rbi/lib/orb/models/events/backfill_close_response.rbi +14 -2
  301. data/rbi/lib/orb/models/events/backfill_create_params.rbi +18 -0
  302. data/rbi/lib/orb/models/events/backfill_create_response.rbi +14 -2
  303. data/rbi/lib/orb/models/events/backfill_fetch_response.rbi +14 -2
  304. data/rbi/lib/orb/models/events/backfill_list_params.rbi +8 -2
  305. data/rbi/lib/orb/models/events/backfill_list_response.rbi +14 -2
  306. data/rbi/lib/orb/models/events/backfill_revert_response.rbi +14 -2
  307. data/rbi/lib/orb/models/events/event_volumes.rbi +6 -2
  308. data/rbi/lib/orb/models/events/volume_list_params.rbi +18 -2
  309. data/rbi/lib/orb/models/invoice.rbi +375 -46
  310. data/rbi/lib/orb/models/invoice_create_params.rbi +38 -6
  311. data/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +375 -66
  312. data/rbi/lib/orb/models/invoice_issue_params.rbi +9 -2
  313. data/rbi/lib/orb/models/invoice_line_item_create_params.rbi +16 -2
  314. data/rbi/lib/orb/models/invoice_line_item_create_response.rbi +141 -20
  315. data/rbi/lib/orb/models/invoice_list_params.rbi +9 -2
  316. data/rbi/lib/orb/models/invoice_mark_paid_params.rbi +9 -2
  317. data/rbi/lib/orb/models/invoice_update_params.rbi +7 -2
  318. data/rbi/lib/orb/models/item.rbi +1 -2
  319. data/rbi/lib/orb/models/item_create_params.rbi +5 -2
  320. data/rbi/lib/orb/models/item_list_params.rbi +8 -2
  321. data/rbi/lib/orb/models/item_update_params.rbi +1 -8
  322. data/rbi/lib/orb/models/metric_create_params.rbi +15 -2
  323. data/rbi/lib/orb/models/metric_list_params.rbi +3 -0
  324. data/rbi/lib/orb/models/metric_update_params.rbi +7 -2
  325. data/rbi/lib/orb/models/percentage_discount.rbi +11 -4
  326. data/rbi/lib/orb/models/plan.rbi +102 -15
  327. data/rbi/lib/orb/models/plan_create_params.rbi +997 -679
  328. data/rbi/lib/orb/models/plan_list_params.rbi +5 -1
  329. data/rbi/lib/orb/models/plan_update_params.rbi +11 -2
  330. data/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi +11 -2
  331. data/rbi/lib/orb/models/price.rbi +717 -688
  332. data/rbi/lib/orb/models/price_create_params.rbi +137 -53
  333. data/rbi/lib/orb/models/price_evaluate_params.rbi +10 -0
  334. data/rbi/lib/orb/models/price_list_params.rbi +8 -2
  335. data/rbi/lib/orb/models/price_update_params.rbi +7 -2
  336. data/rbi/lib/orb/models/prices/external_price_id_update_params.rbi +7 -2
  337. data/rbi/lib/orb/models/subscription.rbi +174 -11
  338. data/rbi/lib/orb/models/subscription_cancel_params.rbi +8 -5
  339. data/rbi/lib/orb/models/subscription_cancel_response.rbi +187 -14
  340. data/rbi/lib/orb/models/subscription_change_apply_params.rbi +7 -2
  341. data/rbi/lib/orb/models/subscription_change_apply_response.rbi +199 -18
  342. data/rbi/lib/orb/models/subscription_change_cancel_response.rbi +199 -18
  343. data/rbi/lib/orb/models/subscription_change_retrieve_response.rbi +199 -18
  344. data/rbi/lib/orb/models/subscription_create_params.rbi +2282 -1536
  345. data/rbi/lib/orb/models/subscription_create_response.rbi +187 -14
  346. data/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +9 -5
  347. data/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +21 -4
  348. data/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +3 -0
  349. data/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +8 -2
  350. data/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +13 -4
  351. data/rbi/lib/orb/models/subscription_list_params.rbi +4 -2
  352. data/rbi/lib/orb/models/subscription_price_intervals_params.rbi +1228 -861
  353. data/rbi/lib/orb/models/subscription_price_intervals_response.rbi +187 -14
  354. data/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +2288 -1544
  355. data/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +187 -14
  356. data/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +10 -2
  357. data/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +187 -14
  358. data/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +187 -14
  359. data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +5 -2
  360. data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +187 -20
  361. data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +187 -14
  362. data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi +11 -2
  363. data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +187 -14
  364. data/rbi/lib/orb/models/subscription_update_params.rbi +15 -0
  365. data/rbi/lib/orb/models/subscription_update_trial_params.rbi +11 -5
  366. data/rbi/lib/orb/models/subscription_update_trial_response.rbi +187 -14
  367. data/rbi/lib/orb/models/subscription_usage.rbi +2 -16
  368. data/rbi/lib/orb/models/trial_discount.rbi +5 -1
  369. data/rbi/lib/orb/models/usage_discount.rbi +11 -3
  370. data/sig/orb/file_part.rbs +21 -0
  371. data/sig/orb/internal/transport/base_client.rbs +9 -3
  372. data/sig/orb/internal/type/array_of.rbs +4 -0
  373. data/sig/orb/internal/type/base_model.rbs +12 -0
  374. data/sig/orb/internal/type/converter.rbs +4 -0
  375. data/sig/orb/internal/type/enum.rbs +4 -2
  376. data/sig/orb/internal/type/{io_like.rbs → file_input.rbs} +1 -1
  377. data/sig/orb/internal/type/hash_of.rbs +4 -0
  378. data/sig/orb/internal/type/union.rbs +4 -0
  379. data/sig/orb/internal/util.rbs +16 -12
  380. data/sig/orb/internal.rbs +1 -1
  381. metadata +9 -5
@@ -12,6 +12,9 @@ module Orb
12
12
  # @return [Orb::Resources::Customers::BalanceTransactions]
13
13
  attr_reader :balance_transactions
14
14
 
15
+ # Some parameter documentations has been truncated, see
16
+ # {Orb::Models::CustomerCreateParams} for more details.
17
+ #
15
18
  # This operation is used to create an Orb customer, who is party to the core
16
19
  # billing relationship. See [Customer](/core-concepts##customer) for an overview
17
20
  # of the customer resource.
@@ -27,24 +30,52 @@ module Orb
27
30
  #
28
31
  # @overload create(email:, name:, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, timezone: nil, request_options: {})
29
32
  #
30
- # @param email [String]
31
- # @param name [String]
33
+ # @param email [String] A valid customer email, to be used for notifications. When Orb triggers payment
34
+ # ...
35
+ #
36
+ # @param name [String] The full name of the customer
37
+ #
32
38
  # @param accounting_sync_configuration [Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, nil]
33
- # @param additional_emails [Array<String>, nil]
34
- # @param auto_collection [Boolean, nil]
39
+ #
40
+ # @param additional_emails [Array<String>, nil] Additional email addresses for this customer. If populated, these email addresse
41
+ # ...
42
+ #
43
+ # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch
44
+ # ...
45
+ #
35
46
  # @param billing_address [Orb::Models::CustomerCreateParams::BillingAddress, nil]
36
- # @param currency [String, nil]
47
+ #
48
+ # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not
49
+ # ...
50
+ #
37
51
  # @param email_delivery [Boolean, nil]
38
- # @param external_customer_id [String, nil]
39
- # @param hierarchy [Orb::Models::CustomerCreateParams::Hierarchy, nil]
40
- # @param metadata [Hash{Symbol=>String, nil}, nil]
41
- # @param payment_provider [Symbol, Orb::Models::CustomerCreateParams::PaymentProvider, nil]
42
- # @param payment_provider_id [String, nil]
52
+ #
53
+ # @param external_customer_id [String, nil] An optional user-defined ID for this customer resource, used throughout the syst
54
+ # ...
55
+ #
56
+ # @param hierarchy [Orb::Models::CustomerCreateParams::Hierarchy, nil] The hierarchical relationships for this customer.
57
+ #
58
+ # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
59
+ # ...
60
+ #
61
+ # @param payment_provider [Symbol, Orb::Models::CustomerCreateParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe
62
+ # ...
63
+ #
64
+ # @param payment_provider_id [String, nil] The ID of this customer in an external payments solution, such as Stripe. This i
65
+ # ...
66
+ #
43
67
  # @param reporting_configuration [Orb::Models::CustomerCreateParams::ReportingConfiguration, nil]
68
+ #
44
69
  # @param shipping_address [Orb::Models::CustomerCreateParams::ShippingAddress, nil]
70
+ #
45
71
  # @param tax_configuration [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration, nil]
46
- # @param tax_id [Orb::Models::CustomerCreateParams::TaxID, nil]
47
- # @param timezone [String, nil]
72
+ #
73
+ # @param tax_id [Orb::Models::CustomerCreateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
74
+ # ...
75
+ #
76
+ # @param timezone [String, nil] A timezone identifier from the IANA timezone database, such as `"America/Los_Ang
77
+ # ...
78
+ #
48
79
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
49
80
  #
50
81
  # @return [Orb::Models::Customer]
@@ -61,6 +92,9 @@ module Orb
61
92
  )
62
93
  end
63
94
 
95
+ # Some parameter documentations has been truncated, see
96
+ # {Orb::Models::CustomerUpdateParams} for more details.
97
+ #
64
98
  # This endpoint can be used to update the `payment_provider`,
65
99
  # `payment_provider_id`, `name`, `email`, `email_delivery`, `tax_id`,
66
100
  # `auto_collection`, `metadata`, `shipping_address`, `billing_address`, and
@@ -70,23 +104,49 @@ module Orb
70
104
  # @overload update(customer_id, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {})
71
105
  #
72
106
  # @param customer_id [String]
107
+ #
73
108
  # @param accounting_sync_configuration [Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, nil]
74
- # @param additional_emails [Array<String>, nil]
75
- # @param auto_collection [Boolean, nil]
109
+ #
110
+ # @param additional_emails [Array<String>, nil] Additional email addresses for this customer. If populated, these email addresse
111
+ # ...
112
+ #
113
+ # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch
114
+ # ...
115
+ #
76
116
  # @param billing_address [Orb::Models::CustomerUpdateParams::BillingAddress, nil]
77
- # @param currency [String, nil]
78
- # @param email [String, nil]
117
+ #
118
+ # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not
119
+ # ...
120
+ #
121
+ # @param email [String, nil] A valid customer email, to be used for invoicing and notifications.
122
+ #
79
123
  # @param email_delivery [Boolean, nil]
80
- # @param external_customer_id [String, nil]
81
- # @param hierarchy [Orb::Models::CustomerUpdateParams::Hierarchy, nil]
82
- # @param metadata [Hash{Symbol=>String, nil}, nil]
83
- # @param name [String, nil]
84
- # @param payment_provider [Symbol, Orb::Models::CustomerUpdateParams::PaymentProvider, nil]
85
- # @param payment_provider_id [String, nil]
124
+ #
125
+ # @param external_customer_id [String, nil] The external customer ID. This can only be set if empty and the customer has no
126
+ # ...
127
+ #
128
+ # @param hierarchy [Orb::Models::CustomerUpdateParams::Hierarchy, nil] The hierarchical relationships for this customer.
129
+ #
130
+ # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
131
+ # ...
132
+ #
133
+ # @param name [String, nil] The full name of the customer
134
+ #
135
+ # @param payment_provider [Symbol, Orb::Models::CustomerUpdateParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe
136
+ # ...
137
+ #
138
+ # @param payment_provider_id [String, nil] The ID of this customer in an external payments solution, such as Stripe. This i
139
+ # ...
140
+ #
86
141
  # @param reporting_configuration [Orb::Models::CustomerUpdateParams::ReportingConfiguration, nil]
142
+ #
87
143
  # @param shipping_address [Orb::Models::CustomerUpdateParams::ShippingAddress, nil]
144
+ #
88
145
  # @param tax_configuration [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration, nil]
89
- # @param tax_id [Orb::Models::CustomerUpdateParams::TaxID, nil]
146
+ #
147
+ # @param tax_id [Orb::Models::CustomerUpdateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
148
+ # ...
149
+ #
90
150
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
91
151
  #
92
152
  # @return [Orb::Models::Customer]
@@ -103,6 +163,9 @@ module Orb
103
163
  )
104
164
  end
105
165
 
166
+ # Some parameter documentations has been truncated, see
167
+ # {Orb::Models::CustomerListParams} for more details.
168
+ #
106
169
  # This endpoint returns a list of all customers for an account. The list of
107
170
  # customers is ordered starting from the most recently created customer. This
108
171
  # endpoint follows Orb's
@@ -113,11 +176,18 @@ module Orb
113
176
  # @overload list(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, limit: nil, request_options: {})
114
177
  #
115
178
  # @param created_at_gt [Time, nil]
179
+ #
116
180
  # @param created_at_gte [Time, nil]
181
+ #
117
182
  # @param created_at_lt [Time, nil]
183
+ #
118
184
  # @param created_at_lte [Time, nil]
119
- # @param cursor [String, nil]
120
- # @param limit [Integer]
185
+ #
186
+ # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
187
+ # ...
188
+ #
189
+ # @param limit [Integer] The number of items to fetch. Defaults to 20.
190
+ #
121
191
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
122
192
  #
123
193
  # @return [Orb::Internal::Page<Orb::Models::Customer>]
@@ -271,6 +341,9 @@ module Orb
271
341
  )
272
342
  end
273
343
 
344
+ # Some parameter documentations has been truncated, see
345
+ # {Orb::Models::CustomerUpdateByExternalIDParams} for more details.
346
+ #
274
347
  # This endpoint is used to update customer details given an `external_customer_id`
275
348
  # (see [Customer ID Aliases](/events-and-metrics/customer-aliases)). Note that the
276
349
  # resource and semantics of this endpoint exactly mirror
@@ -279,23 +352,49 @@ module Orb
279
352
  # @overload update_by_external_id(id, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {})
280
353
  #
281
354
  # @param id [String]
355
+ #
282
356
  # @param accounting_sync_configuration [Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, nil]
283
- # @param additional_emails [Array<String>, nil]
284
- # @param auto_collection [Boolean, nil]
357
+ #
358
+ # @param additional_emails [Array<String>, nil] Additional email addresses for this customer. If populated, these email addresse
359
+ # ...
360
+ #
361
+ # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch
362
+ # ...
363
+ #
285
364
  # @param billing_address [Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, nil]
286
- # @param currency [String, nil]
287
- # @param email [String, nil]
365
+ #
366
+ # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not
367
+ # ...
368
+ #
369
+ # @param email [String, nil] A valid customer email, to be used for invoicing and notifications.
370
+ #
288
371
  # @param email_delivery [Boolean, nil]
289
- # @param external_customer_id [String, nil]
290
- # @param hierarchy [Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, nil]
291
- # @param metadata [Hash{Symbol=>String, nil}, nil]
292
- # @param name [String, nil]
293
- # @param payment_provider [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider, nil]
294
- # @param payment_provider_id [String, nil]
372
+ #
373
+ # @param external_customer_id [String, nil] The external customer ID. This can only be set if empty and the customer has no
374
+ # ...
375
+ #
376
+ # @param hierarchy [Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, nil] The hierarchical relationships for this customer.
377
+ #
378
+ # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
379
+ # ...
380
+ #
381
+ # @param name [String, nil] The full name of the customer
382
+ #
383
+ # @param payment_provider [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe
384
+ # ...
385
+ #
386
+ # @param payment_provider_id [String, nil] The ID of this customer in an external payments solution, such as Stripe. This i
387
+ # ...
388
+ #
295
389
  # @param reporting_configuration [Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, nil]
390
+ #
296
391
  # @param shipping_address [Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, nil]
392
+ #
297
393
  # @param tax_configuration [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration, nil]
298
- # @param tax_id [Orb::Models::CustomerUpdateByExternalIDParams::TaxID, nil]
394
+ #
395
+ # @param tax_id [Orb::Models::CustomerUpdateByExternalIDParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
396
+ # ...
397
+ #
299
398
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
300
399
  #
301
400
  # @return [Orb::Models::Customer]
@@ -6,6 +6,9 @@ module Orb
6
6
  # @return [Orb::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupID]
7
7
  attr_reader :external_dimensional_price_group_id
8
8
 
9
+ # Some parameter documentations has been truncated, see
10
+ # {Orb::Models::DimensionalPriceGroupCreateParams} for more details.
11
+ #
9
12
  # A dimensional price group is used to partition the result of a billable metric
10
13
  # by a set of dimensions. Prices in a price group must specify the parition used
11
14
  # to derive their usage.
@@ -18,10 +21,16 @@ module Orb
18
21
  # @overload create(billable_metric_id:, dimensions:, name:, external_dimensional_price_group_id: nil, metadata: nil, request_options: {})
19
22
  #
20
23
  # @param billable_metric_id [String]
21
- # @param dimensions [Array<String>]
24
+ #
25
+ # @param dimensions [Array<String>] The set of keys (in order) used to disambiguate prices in the group.
26
+ #
22
27
  # @param name [String]
28
+ #
23
29
  # @param external_dimensional_price_group_id [String, nil]
24
- # @param metadata [Hash{Symbol=>String, nil}, nil]
30
+ #
31
+ # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
32
+ # ...
33
+ #
25
34
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
26
35
  #
27
36
  # @return [Orb::Models::DimensionalPriceGroup]
@@ -57,12 +66,18 @@ module Orb
57
66
  )
58
67
  end
59
68
 
69
+ # Some parameter documentations has been truncated, see
70
+ # {Orb::Models::DimensionalPriceGroupListParams} for more details.
71
+ #
60
72
  # List dimensional price groups
61
73
  #
62
74
  # @overload list(cursor: nil, limit: nil, request_options: {})
63
75
  #
64
- # @param cursor [String, nil]
65
- # @param limit [Integer]
76
+ # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
77
+ # ...
78
+ #
79
+ # @param limit [Integer] The number of items to fetch. Defaults to 20.
80
+ #
66
81
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
67
82
  #
68
83
  # @return [Orb::Internal::Page<Orb::Models::DimensionalPriceGroup>]
@@ -4,6 +4,9 @@ module Orb
4
4
  module Resources
5
5
  class Events
6
6
  class Backfills
7
+ # Some parameter documentations has been truncated, see
8
+ # {Orb::Models::Events::BackfillCreateParams} for more details.
9
+ #
7
10
  # Creating the backfill enables adding or replacing past events, even those that
8
11
  # are older than the ingestion grace period. Performing a backfill in Orb involves
9
12
  # 3 steps:
@@ -44,13 +47,27 @@ module Orb
44
47
  #
45
48
  # @overload create(timeframe_end:, timeframe_start:, close_time: nil, customer_id: nil, deprecation_filter: nil, external_customer_id: nil, replace_existing_events: nil, request_options: {})
46
49
  #
47
- # @param timeframe_end [Time]
48
- # @param timeframe_start [Time]
49
- # @param close_time [Time, nil]
50
- # @param customer_id [String, nil]
51
- # @param deprecation_filter [String, nil]
52
- # @param external_customer_id [String, nil]
53
- # @param replace_existing_events [Boolean]
50
+ # @param timeframe_end [Time] The (exclusive) end of the usage timeframe affected by this backfill. By default
51
+ # ...
52
+ #
53
+ # @param timeframe_start [Time] The (inclusive) start of the usage timeframe affected by this backfill. By defau
54
+ # ...
55
+ #
56
+ # @param close_time [Time, nil] The time at which no more events will be accepted for this backfill. The backfil
57
+ # ...
58
+ #
59
+ # @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. Omitting
60
+ # ...
61
+ #
62
+ # @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie
63
+ # ...
64
+ #
65
+ # @param external_customer_id [String, nil] The external customer ID of the customer to which this backfill is scoped. Omitt
66
+ # ...
67
+ #
68
+ # @param replace_existing_events [Boolean] If true, replaces all existing events in the timeframe with the newly ingested e
69
+ # ...
70
+ #
54
71
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
55
72
  #
56
73
  # @return [Orb::Models::Events::BackfillCreateResponse]
@@ -67,6 +84,9 @@ module Orb
67
84
  )
68
85
  end
69
86
 
87
+ # Some parameter documentations has been truncated, see
88
+ # {Orb::Models::Events::BackfillListParams} for more details.
89
+ #
70
90
  # This endpoint returns a list of all backfills in a list format.
71
91
  #
72
92
  # The list of backfills is ordered starting from the most recently created
@@ -77,8 +97,11 @@ module Orb
77
97
  #
78
98
  # @overload list(cursor: nil, limit: nil, request_options: {})
79
99
  #
80
- # @param cursor [String, nil]
81
- # @param limit [Integer]
100
+ # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
101
+ # ...
102
+ #
103
+ # @param limit [Integer] The number of items to fetch. Defaults to 20.
104
+ #
82
105
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
83
106
  #
84
107
  # @return [Orb::Internal::Page<Orb::Models::Events::BackfillListResponse>]
@@ -4,6 +4,9 @@ module Orb
4
4
  module Resources
5
5
  class Events
6
6
  class Volume
7
+ # Some parameter documentations has been truncated, see
8
+ # {Orb::Models::Events::VolumeListParams} for more details.
9
+ #
7
10
  # This endpoint returns the event volume for an account in a
8
11
  # [paginated list format](/api-reference/pagination).
9
12
  #
@@ -20,10 +23,17 @@ module Orb
20
23
  #
21
24
  # @overload list(timeframe_start:, cursor: nil, limit: nil, timeframe_end: nil, request_options: {})
22
25
  #
23
- # @param timeframe_start [Time]
24
- # @param cursor [String, nil]
25
- # @param limit [Integer]
26
- # @param timeframe_end [Time]
26
+ # @param timeframe_start [Time] The start of the timeframe, inclusive, in which to return event volume. All date
27
+ # ...
28
+ #
29
+ # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
30
+ # ...
31
+ #
32
+ # @param limit [Integer] The number of items to fetch. Defaults to 20.
33
+ #
34
+ # @param timeframe_end [Time] The end of the timeframe, exclusive, in which to return event volume. If not spe
35
+ # ...
36
+ #
27
37
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
28
38
  #
29
39
  # @return [Orb::Models::Events::EventVolumes]
@@ -9,6 +9,9 @@ module Orb
9
9
  # @return [Orb::Resources::Events::Volume]
10
10
  attr_reader :volume
11
11
 
12
+ # Some parameter documentations has been truncated, see
13
+ # {Orb::Models::EventUpdateParams} for more details.
14
+ #
12
15
  # This endpoint is used to amend a single usage event with a given `event_id`.
13
16
  # `event_id` refers to the `idempotency_key` passed in during ingestion. The event
14
17
  # will maintain its existing `event_id` after the amendment.
@@ -58,11 +61,20 @@ module Orb
58
61
  # @overload update(event_id, event_name:, properties:, timestamp:, customer_id: nil, external_customer_id: nil, request_options: {})
59
62
  #
60
63
  # @param event_id [String]
61
- # @param event_name [String]
62
- # @param properties [Object]
63
- # @param timestamp [Time]
64
- # @param customer_id [String, nil]
65
- # @param external_customer_id [String, nil]
64
+ #
65
+ # @param event_name [String] A name to meaningfully identify the action or event type.
66
+ #
67
+ # @param properties [Object] A dictionary of custom properties. Values in this dictionary must be numeric, bo
68
+ # ...
69
+ #
70
+ # @param timestamp [Time] An ISO 8601 format date with no timezone offset (i.e. UTC). This should represen
71
+ # ...
72
+ #
73
+ # @param customer_id [String, nil] The Orb Customer identifier
74
+ #
75
+ # @param external_customer_id [String, nil] An alias for the Orb customer, whose mapping is specified when creating the cust
76
+ # ...
77
+ #
66
78
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
67
79
  #
68
80
  # @return [Orb::Models::EventUpdateResponse]
@@ -137,6 +149,9 @@ module Orb
137
149
  )
138
150
  end
139
151
 
152
+ # Some parameter documentations has been truncated, see
153
+ # {Orb::Models::EventIngestParams} for more details.
154
+ #
140
155
  # Orb's event ingestion model and API is designed around two core principles:
141
156
  #
142
157
  # 1. **Data fidelity**: The accuracy of your billing model depends on a robust
@@ -344,9 +359,14 @@ module Orb
344
359
  #
345
360
  # @overload ingest(events:, backfill_id: nil, debug: nil, request_options: {})
346
361
  #
347
- # @param events [Array<Orb::Models::EventIngestParams::Event>]
348
- # @param backfill_id [String, nil]
349
- # @param debug [Boolean]
362
+ # @param events [Array<Orb::Models::EventIngestParams::Event>] Body param:
363
+ #
364
+ # @param backfill_id [String, nil] Query param: If this ingestion request is part of a backfill, this parameter tie
365
+ # ...
366
+ #
367
+ # @param debug [Boolean] Query param: Flag to enable additional debug information in the endpoint respons
368
+ # ...
369
+ #
350
370
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
351
371
  #
352
372
  # @return [Orb::Models::EventIngestResponse]
@@ -365,6 +385,9 @@ module Orb
365
385
  )
366
386
  end
367
387
 
388
+ # Some parameter documentations has been truncated, see
389
+ # {Orb::Models::EventSearchParams} for more details.
390
+ #
368
391
  # This endpoint returns a filtered set of events for an account in a
369
392
  # [paginated list format](/api-reference/pagination).
370
393
  #
@@ -383,9 +406,15 @@ module Orb
383
406
  #
384
407
  # @overload search(event_ids:, timeframe_end: nil, timeframe_start: nil, request_options: {})
385
408
  #
386
- # @param event_ids [Array<String>]
387
- # @param timeframe_end [Time, nil]
388
- # @param timeframe_start [Time, nil]
409
+ # @param event_ids [Array<String>] This is an explicit array of IDs to filter by. Note that an event's ID is the id
410
+ # ...
411
+ #
412
+ # @param timeframe_end [Time, nil] The end of the timeframe, exclusive, in which to search events. If not specified
413
+ # ...
414
+ #
415
+ # @param timeframe_start [Time, nil] The start of the timeframe, inclusive, in which to search events. If not specifi
416
+ # ...
417
+ #
389
418
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
390
419
  #
391
420
  # @return [Orb::Models::EventSearchResponse]
@@ -3,17 +3,27 @@
3
3
  module Orb
4
4
  module Resources
5
5
  class InvoiceLineItems
6
+ # Some parameter documentations has been truncated, see
7
+ # {Orb::Models::InvoiceLineItemCreateParams} for more details.
8
+ #
6
9
  # This creates a one-off fixed fee invoice line item on an Invoice. This can only
7
10
  # be done for invoices that are in a `draft` status.
8
11
  #
9
12
  # @overload create(amount:, end_date:, invoice_id:, name:, quantity:, start_date:, request_options: {})
10
13
  #
11
- # @param amount [String]
12
- # @param end_date [Date]
13
- # @param invoice_id [String]
14
- # @param name [String]
15
- # @param quantity [Float]
16
- # @param start_date [Date]
14
+ # @param amount [String] The total amount in the invoice's currency to add to the line item.
15
+ #
16
+ # @param end_date [Date] A date string to specify the line item's end date in the customer's timezone.
17
+ #
18
+ # @param invoice_id [String] The id of the Invoice to add this line item.
19
+ #
20
+ # @param name [String] The item name associated with this line item. If an item with the same name exis
21
+ # ...
22
+ #
23
+ # @param quantity [Float] The number of units on the line item
24
+ #
25
+ # @param start_date [Date] A date string to specify the line item's start date in the customer's timezone.
26
+ #
17
27
  # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
18
28
  #
19
29
  # @return [Orb::Models::InvoiceLineItemCreateResponse]