orb-billing 0.3.1 → 0.4.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 (592) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +3 -3
  4. data/lib/orb/errors.rb +1 -1
  5. data/lib/orb/file_part.rb +2 -2
  6. data/lib/orb/internal/transport/base_client.rb +74 -5
  7. data/lib/orb/internal/transport/pooled_net_requester.rb +14 -0
  8. data/lib/orb/internal/type/array_of.rb +1 -1
  9. data/lib/orb/internal/type/base_model.rb +62 -30
  10. data/lib/orb/internal/type/converter.rb +18 -0
  11. data/lib/orb/internal/type/enum.rb +4 -3
  12. data/lib/orb/internal/type/hash_of.rb +1 -1
  13. data/lib/orb/internal/type/request_parameters.rb +4 -4
  14. data/lib/orb/internal/type/union.rb +5 -4
  15. data/lib/orb/internal/util.rb +57 -1
  16. data/lib/orb/internal.rb +6 -0
  17. data/lib/orb/models/alert.rb +29 -32
  18. data/lib/orb/models/alert_create_for_customer_params.rb +7 -8
  19. data/lib/orb/models/alert_create_for_external_customer_params.rb +7 -8
  20. data/lib/orb/models/alert_create_for_subscription_params.rb +7 -8
  21. data/lib/orb/models/alert_list_params.rb +0 -1
  22. data/lib/orb/models/alert_update_params.rb +4 -5
  23. data/lib/orb/models/amount_discount.rb +6 -7
  24. data/lib/orb/models/billable_metric.rb +9 -11
  25. data/lib/orb/models/coupon.rb +13 -12
  26. data/lib/orb/models/coupon_create_params.rb +12 -8
  27. data/lib/orb/models/coupon_list_params.rb +0 -2
  28. data/lib/orb/models/coupons/subscription_list_params.rb +0 -1
  29. data/lib/orb/models/credit_note.rb +48 -46
  30. data/lib/orb/models/credit_note_create_params.rb +6 -6
  31. data/lib/orb/models/credit_note_list_params.rb +0 -1
  32. data/lib/orb/models/customer.rb +54 -61
  33. data/lib/orb/models/customer_create_params.rb +50 -53
  34. data/lib/orb/models/customer_list_params.rb +0 -1
  35. data/lib/orb/models/customer_update_by_external_id_params.rb +50 -53
  36. data/lib/orb/models/customer_update_params.rb +50 -51
  37. data/lib/orb/models/customers/balance_transaction_create_params.rb +3 -3
  38. data/lib/orb/models/customers/balance_transaction_create_response.rb +0 -2
  39. data/lib/orb/models/customers/balance_transaction_list_params.rb +0 -1
  40. data/lib/orb/models/customers/balance_transaction_list_response.rb +0 -2
  41. data/lib/orb/models/customers/cost_list_by_external_id_params.rb +3 -4
  42. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +3 -3
  43. data/lib/orb/models/customers/cost_list_params.rb +3 -4
  44. data/lib/orb/models/customers/cost_list_response.rb +3 -3
  45. data/lib/orb/models/customers/credit_list_by_external_id_params.rb +0 -2
  46. data/lib/orb/models/customers/credit_list_params.rb +0 -2
  47. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +12 -21
  48. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +14 -7
  49. data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +11 -22
  50. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +14 -7
  51. data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +6 -7
  52. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +14 -7
  53. data/lib/orb/models/customers/credits/ledger_list_params.rb +8 -9
  54. data/lib/orb/models/customers/credits/ledger_list_response.rb +14 -7
  55. data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +10 -15
  56. data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +0 -6
  57. data/lib/orb/models/customers/credits/top_up_create_params.rb +7 -15
  58. data/lib/orb/models/customers/credits/top_up_create_response.rb +0 -6
  59. data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +0 -1
  60. data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +0 -6
  61. data/lib/orb/models/customers/credits/top_up_list_params.rb +0 -1
  62. data/lib/orb/models/customers/credits/top_up_list_response.rb +0 -6
  63. data/lib/orb/models/dimensional_price_group.rb +1 -3
  64. data/lib/orb/models/dimensional_price_group_create_params.rb +0 -1
  65. data/lib/orb/models/dimensional_price_group_list_params.rb +0 -1
  66. data/lib/orb/models/dimensional_price_groups.rb +6 -6
  67. data/lib/orb/models/discount.rb +11 -5
  68. data/lib/orb/models/evaluate_price_group.rb +5 -1
  69. data/lib/orb/models/event_ingest_params.rb +4 -9
  70. data/lib/orb/models/event_ingest_response.rb +0 -3
  71. data/lib/orb/models/event_search_params.rb +0 -3
  72. data/lib/orb/models/event_search_response.rb +0 -4
  73. data/lib/orb/models/event_update_params.rb +0 -3
  74. data/lib/orb/models/events/backfill_close_response.rb +0 -4
  75. data/lib/orb/models/events/backfill_create_params.rb +0 -7
  76. data/lib/orb/models/events/backfill_create_response.rb +0 -4
  77. data/lib/orb/models/events/backfill_fetch_response.rb +0 -4
  78. data/lib/orb/models/events/backfill_list_params.rb +0 -1
  79. data/lib/orb/models/events/backfill_list_response.rb +0 -4
  80. data/lib/orb/models/events/backfill_revert_response.rb +0 -4
  81. data/lib/orb/models/events/event_volumes.rb +3 -3
  82. data/lib/orb/models/events/volume_list_params.rb +0 -3
  83. data/lib/orb/models/invoice.rb +179 -202
  84. data/lib/orb/models/invoice_create_params.rb +14 -21
  85. data/lib/orb/models/invoice_fetch_upcoming_response.rb +31 -54
  86. data/lib/orb/models/invoice_issue_params.rb +0 -1
  87. data/lib/orb/models/invoice_level_discount.rb +8 -4
  88. data/lib/orb/models/invoice_line_item_create_params.rb +0 -1
  89. data/lib/orb/models/invoice_line_item_create_response.rb +28 -26
  90. data/lib/orb/models/invoice_list_params.rb +6 -10
  91. data/lib/orb/models/invoice_update_params.rb +0 -1
  92. data/lib/orb/models/item.rb +7 -8
  93. data/lib/orb/models/item_list_params.rb +0 -1
  94. data/lib/orb/models/item_update_params.rb +7 -7
  95. data/lib/orb/models/metric_create_params.rb +0 -1
  96. data/lib/orb/models/metric_list_params.rb +0 -1
  97. data/lib/orb/models/metric_update_params.rb +0 -1
  98. data/lib/orb/models/percentage_discount.rb +6 -8
  99. data/lib/orb/models/plan.rb +90 -103
  100. data/lib/orb/models/plan_create_params.rb +759 -800
  101. data/lib/orb/models/plan_list_params.rb +3 -4
  102. data/lib/orb/models/plan_update_params.rb +0 -2
  103. data/lib/orb/models/plans/external_plan_id_update_params.rb +0 -2
  104. data/lib/orb/models/price.rb +1706 -1724
  105. data/lib/orb/models/price_create_params.rb +75 -84
  106. data/lib/orb/models/price_evaluate_params.rb +0 -2
  107. data/lib/orb/models/price_evaluate_response.rb +3 -3
  108. data/lib/orb/models/price_list_params.rb +0 -1
  109. data/lib/orb/models/price_update_params.rb +0 -1
  110. data/lib/orb/models/prices/external_price_id_update_params.rb +0 -1
  111. data/lib/orb/models/subscription.rb +108 -122
  112. data/lib/orb/models/subscription_cancel_params.rb +3 -5
  113. data/lib/orb/models/subscription_cancel_response.rb +43 -57
  114. data/lib/orb/models/subscription_change_apply_response.rb +43 -58
  115. data/lib/orb/models/subscription_change_cancel_response.rb +43 -58
  116. data/lib/orb/models/subscription_change_retrieve_response.rb +43 -58
  117. data/lib/orb/models/subscription_create_params.rb +1953 -1815
  118. data/lib/orb/models/subscription_create_response.rb +43 -57
  119. data/lib/orb/models/subscription_fetch_costs_params.rb +3 -4
  120. data/lib/orb/models/subscription_fetch_costs_response.rb +3 -3
  121. data/lib/orb/models/subscription_fetch_schedule_params.rb +0 -1
  122. data/lib/orb/models/subscription_fetch_schedule_response.rb +0 -1
  123. data/lib/orb/models/subscription_fetch_usage_params.rb +6 -8
  124. data/lib/orb/models/subscription_list_params.rb +3 -4
  125. data/lib/orb/models/subscription_price_intervals_params.rb +1194 -1017
  126. data/lib/orb/models/subscription_price_intervals_response.rb +43 -57
  127. data/lib/orb/models/subscription_schedule_plan_change_params.rb +1994 -1791
  128. data/lib/orb/models/subscription_schedule_plan_change_response.rb +43 -57
  129. data/lib/orb/models/subscription_trigger_phase_params.rb +0 -2
  130. data/lib/orb/models/subscription_trigger_phase_response.rb +43 -57
  131. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +43 -57
  132. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +43 -57
  133. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +43 -57
  134. data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +3 -6
  135. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +43 -57
  136. data/lib/orb/models/subscription_update_params.rb +0 -5
  137. data/lib/orb/models/subscription_update_trial_params.rb +8 -6
  138. data/lib/orb/models/subscription_update_trial_response.rb +43 -57
  139. data/lib/orb/models/subscription_usage.rb +55 -39
  140. data/lib/orb/models/subscriptions.rb +6 -6
  141. data/lib/orb/models/trial_discount.rb +6 -7
  142. data/lib/orb/models/usage_discount.rb +6 -8
  143. data/lib/orb/models.rb +24 -0
  144. data/lib/orb/request_options.rb +4 -0
  145. data/lib/orb/resources/alerts.rb +30 -31
  146. data/lib/orb/resources/coupons/subscriptions.rb +3 -4
  147. data/lib/orb/resources/coupons.rb +11 -21
  148. data/lib/orb/resources/credit_notes.rb +10 -11
  149. data/lib/orb/resources/customers/balance_transactions.rb +3 -4
  150. data/lib/orb/resources/customers/costs.rb +4 -6
  151. data/lib/orb/resources/customers/credits/ledger.rb +14 -33
  152. data/lib/orb/resources/customers/credits/top_ups.rb +10 -20
  153. data/lib/orb/resources/customers/credits.rb +2 -6
  154. data/lib/orb/resources/customers.rb +40 -67
  155. data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +2 -2
  156. data/lib/orb/resources/dimensional_price_groups.rb +8 -10
  157. data/lib/orb/resources/events/backfills.rb +2 -10
  158. data/lib/orb/resources/events/volume.rb +3 -6
  159. data/lib/orb/resources/events.rb +4 -12
  160. data/lib/orb/resources/invoice_line_items.rb +1 -2
  161. data/lib/orb/resources/invoices.rb +26 -43
  162. data/lib/orb/resources/items.rb +12 -13
  163. data/lib/orb/resources/metrics.rb +11 -14
  164. data/lib/orb/resources/plans/external_plan_id.rb +5 -7
  165. data/lib/orb/resources/plans.rb +14 -23
  166. data/lib/orb/resources/prices/external_price_id.rb +5 -6
  167. data/lib/orb/resources/prices.rb +25 -35
  168. data/lib/orb/resources/subscription_changes.rb +1 -1
  169. data/lib/orb/resources/subscriptions.rb +49 -107
  170. data/lib/orb/version.rb +1 -1
  171. data/lib/orb.rb +3 -0
  172. data/rbi/orb/client.rbi +5 -4
  173. data/rbi/orb/errors.rbi +59 -28
  174. data/rbi/orb/file_part.rbi +9 -6
  175. data/rbi/orb/internal/page.rbi +20 -6
  176. data/rbi/orb/internal/transport/base_client.rbi +159 -78
  177. data/rbi/orb/internal/transport/pooled_net_requester.rbi +27 -13
  178. data/rbi/orb/internal/type/array_of.rbi +42 -34
  179. data/rbi/orb/internal/type/base_model.rbi +144 -69
  180. data/rbi/orb/internal/type/base_page.rbi +12 -8
  181. data/rbi/orb/internal/type/boolean.rbi +16 -10
  182. data/rbi/orb/internal/type/converter.rbi +68 -31
  183. data/rbi/orb/internal/type/enum.rbi +28 -15
  184. data/rbi/orb/internal/type/file_input.rbi +12 -10
  185. data/rbi/orb/internal/type/hash_of.rbi +34 -24
  186. data/rbi/orb/internal/type/request_parameters.rbi +12 -4
  187. data/rbi/orb/internal/type/union.rbi +61 -25
  188. data/rbi/orb/internal/type/unknown.rbi +20 -12
  189. data/rbi/orb/internal/util.rbi +232 -90
  190. data/rbi/orb/internal.rbi +2 -0
  191. data/rbi/orb/models/alert.rbi +114 -70
  192. data/rbi/orb/models/alert_create_for_customer_params.rbi +69 -27
  193. data/rbi/orb/models/alert_create_for_external_customer_params.rbi +80 -29
  194. data/rbi/orb/models/alert_create_for_subscription_params.rbi +62 -26
  195. data/rbi/orb/models/alert_disable_params.rbi +18 -6
  196. data/rbi/orb/models/alert_enable_params.rbi +18 -6
  197. data/rbi/orb/models/alert_list_params.rbi +24 -20
  198. data/rbi/orb/models/alert_retrieve_params.rbi +11 -4
  199. data/rbi/orb/models/alert_update_params.rbi +29 -14
  200. data/rbi/orb/models/amount_discount.rbi +29 -19
  201. data/rbi/orb/models/billable_metric.rbi +34 -26
  202. data/rbi/orb/models/billing_cycle_relative_date.rbi +11 -5
  203. data/rbi/orb/models/coupon.rbi +28 -20
  204. data/rbi/orb/models/coupon_archive_params.rbi +11 -4
  205. data/rbi/orb/models/coupon_create_params.rbi +85 -38
  206. data/rbi/orb/models/coupon_fetch_params.rbi +11 -4
  207. data/rbi/orb/models/coupon_list_params.rbi +19 -15
  208. data/rbi/orb/models/coupons/subscription_list_params.rbi +19 -6
  209. data/rbi/orb/models/credit_note.rbi +329 -158
  210. data/rbi/orb/models/credit_note_create_params.rbi +64 -29
  211. data/rbi/orb/models/credit_note_fetch_params.rbi +13 -4
  212. data/rbi/orb/models/credit_note_list_params.rbi +23 -17
  213. data/rbi/orb/models/customer.rbi +461 -329
  214. data/rbi/orb/models/customer_create_params.rbi +713 -325
  215. data/rbi/orb/models/customer_delete_params.rbi +13 -4
  216. data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +13 -4
  217. data/rbi/orb/models/customer_fetch_params.rbi +11 -4
  218. data/rbi/orb/models/customer_list_params.rbi +21 -17
  219. data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +16 -4
  220. data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +16 -4
  221. data/rbi/orb/models/customer_update_by_external_id_params.rbi +1193 -336
  222. data/rbi/orb/models/customer_update_params.rbi +712 -324
  223. data/rbi/orb/models/customers/balance_transaction_create_params.rbi +56 -21
  224. data/rbi/orb/models/customers/balance_transaction_create_response.rbi +172 -61
  225. data/rbi/orb/models/customers/balance_transaction_list_params.rbi +26 -17
  226. data/rbi/orb/models/customers/balance_transaction_list_response.rbi +182 -59
  227. data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +62 -22
  228. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +180 -124
  229. data/rbi/orb/models/customers/cost_list_params.rbi +48 -22
  230. data/rbi/orb/models/customers/cost_list_response.rbi +172 -123
  231. data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +24 -15
  232. data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +54 -22
  233. data/rbi/orb/models/customers/credit_list_params.rbi +21 -15
  234. data/rbi/orb/models/customers/credit_list_response.rbi +50 -21
  235. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +118 -68
  236. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +755 -434
  237. data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +129 -59
  238. data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +812 -425
  239. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +108 -44
  240. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +793 -432
  241. data/rbi/orb/models/customers/credits/ledger_list_params.rbi +129 -40
  242. data/rbi/orb/models/customers/credits/ledger_list_response.rbi +847 -389
  243. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +86 -53
  244. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +77 -48
  245. data/rbi/orb/models/customers/credits/top_up_create_params.rbi +96 -45
  246. data/rbi/orb/models/customers/credits/top_up_create_response.rbi +95 -43
  247. data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +22 -6
  248. data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +21 -5
  249. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +15 -5
  250. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +82 -49
  251. data/rbi/orb/models/customers/credits/top_up_list_params.rbi +15 -5
  252. data/rbi/orb/models/customers/credits/top_up_list_response.rbi +96 -43
  253. data/rbi/orb/models/dimensional_price_group.rbi +21 -15
  254. data/rbi/orb/models/dimensional_price_group_create_params.rbi +22 -16
  255. data/rbi/orb/models/dimensional_price_group_list_params.rbi +19 -6
  256. data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +16 -4
  257. data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +15 -8
  258. data/rbi/orb/models/dimensional_price_groups.rbi +21 -13
  259. data/rbi/orb/models/discount.rbi +11 -5
  260. data/rbi/orb/models/evaluate_price_group.rbi +29 -12
  261. data/rbi/orb/models/event_deprecate_params.rbi +13 -4
  262. data/rbi/orb/models/event_deprecate_response.rbi +11 -3
  263. data/rbi/orb/models/event_ingest_params.rbi +41 -31
  264. data/rbi/orb/models/event_ingest_response.rbi +78 -23
  265. data/rbi/orb/models/event_search_params.rbi +18 -14
  266. data/rbi/orb/models/event_search_response.rbi +42 -21
  267. data/rbi/orb/models/event_update_params.rbi +20 -16
  268. data/rbi/orb/models/event_update_response.rbi +11 -3
  269. data/rbi/orb/models/events/backfill_close_params.rbi +13 -9
  270. data/rbi/orb/models/events/backfill_close_response.rbi +70 -29
  271. data/rbi/orb/models/events/backfill_create_params.rbi +24 -18
  272. data/rbi/orb/models/events/backfill_create_response.rbi +69 -29
  273. data/rbi/orb/models/events/backfill_fetch_params.rbi +13 -9
  274. data/rbi/orb/models/events/backfill_fetch_response.rbi +70 -29
  275. data/rbi/orb/models/events/backfill_list_params.rbi +19 -6
  276. data/rbi/orb/models/events/backfill_list_response.rbi +68 -28
  277. data/rbi/orb/models/events/backfill_revert_params.rbi +13 -9
  278. data/rbi/orb/models/events/backfill_revert_response.rbi +69 -29
  279. data/rbi/orb/models/events/event_volumes.rbi +38 -10
  280. data/rbi/orb/models/events/volume_list_params.rbi +21 -15
  281. data/rbi/orb/models/invoice.rbi +1411 -805
  282. data/rbi/orb/models/invoice_create_params.rbi +107 -69
  283. data/rbi/orb/models/invoice_fetch_params.rbi +11 -4
  284. data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +18 -5
  285. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +2187 -876
  286. data/rbi/orb/models/invoice_issue_params.rbi +17 -5
  287. data/rbi/orb/models/invoice_level_discount.rbi +11 -4
  288. data/rbi/orb/models/invoice_line_item_create_params.rbi +23 -17
  289. data/rbi/orb/models/invoice_line_item_create_response.rbi +675 -376
  290. data/rbi/orb/models/invoice_list_params.rbi +68 -47
  291. data/rbi/orb/models/invoice_mark_paid_params.rbi +20 -14
  292. data/rbi/orb/models/invoice_pay_params.rbi +11 -4
  293. data/rbi/orb/models/invoice_update_params.rbi +16 -10
  294. data/rbi/orb/models/invoice_void_params.rbi +11 -4
  295. data/rbi/orb/models/item.rbi +90 -39
  296. data/rbi/orb/models/item_create_params.rbi +15 -5
  297. data/rbi/orb/models/item_fetch_params.rbi +11 -4
  298. data/rbi/orb/models/item_list_params.rbi +17 -6
  299. data/rbi/orb/models/item_update_params.rbi +86 -39
  300. data/rbi/orb/models/metric_create_params.rbi +20 -16
  301. data/rbi/orb/models/metric_fetch_params.rbi +11 -4
  302. data/rbi/orb/models/metric_list_params.rbi +21 -17
  303. data/rbi/orb/models/metric_update_params.rbi +16 -10
  304. data/rbi/orb/models/pagination_metadata.rbi +17 -4
  305. data/rbi/orb/models/percentage_discount.rbi +33 -19
  306. data/rbi/orb/models/plan.rbi +532 -365
  307. data/rbi/orb/models/plan_create_params.rbi +5295 -2870
  308. data/rbi/orb/models/plan_fetch_params.rbi +11 -4
  309. data/rbi/orb/models/plan_list_params.rbi +35 -27
  310. data/rbi/orb/models/plan_update_params.rbi +17 -13
  311. data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +13 -9
  312. data/rbi/orb/models/plans/external_plan_id_update_params.rbi +22 -13
  313. data/rbi/orb/models/price.rbi +11332 -5033
  314. data/rbi/orb/models/price_create_params.rbi +583 -245
  315. data/rbi/orb/models/price_evaluate_params.rbi +21 -17
  316. data/rbi/orb/models/price_evaluate_response.rbi +14 -6
  317. data/rbi/orb/models/price_fetch_params.rbi +11 -4
  318. data/rbi/orb/models/price_list_params.rbi +17 -6
  319. data/rbi/orb/models/price_update_params.rbi +16 -10
  320. data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +15 -8
  321. data/rbi/orb/models/prices/external_price_id_update_params.rbi +21 -10
  322. data/rbi/orb/models/subscription.rbi +668 -420
  323. data/rbi/orb/models/subscription_cancel_params.rbi +47 -22
  324. data/rbi/orb/models/subscription_cancel_response.rbi +817 -438
  325. data/rbi/orb/models/subscription_change_apply_params.rbi +19 -13
  326. data/rbi/orb/models/subscription_change_apply_response.rbi +906 -505
  327. data/rbi/orb/models/subscription_change_cancel_params.rbi +13 -4
  328. data/rbi/orb/models/subscription_change_cancel_response.rbi +906 -516
  329. data/rbi/orb/models/subscription_change_retrieve_params.rbi +13 -4
  330. data/rbi/orb/models/subscription_change_retrieve_response.rbi +903 -524
  331. data/rbi/orb/models/subscription_create_params.rbi +10096 -6746
  332. data/rbi/orb/models/subscription_create_response.rbi +817 -438
  333. data/rbi/orb/models/subscription_fetch_costs_params.rbi +50 -22
  334. data/rbi/orb/models/subscription_fetch_costs_response.rbi +172 -123
  335. data/rbi/orb/models/subscription_fetch_params.rbi +13 -4
  336. data/rbi/orb/models/subscription_fetch_schedule_params.rbi +23 -17
  337. data/rbi/orb/models/subscription_fetch_schedule_response.rbi +45 -19
  338. data/rbi/orb/models/subscription_fetch_usage_params.rbi +84 -34
  339. data/rbi/orb/models/subscription_list_params.rbi +42 -28
  340. data/rbi/orb/models/subscription_price_intervals_params.rbi +5798 -3823
  341. data/rbi/orb/models/subscription_price_intervals_response.rbi +840 -453
  342. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +9676 -6922
  343. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +838 -467
  344. data/rbi/orb/models/subscription_trigger_phase_params.rbi +19 -13
  345. data/rbi/orb/models/subscription_trigger_phase_response.rbi +832 -448
  346. data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +16 -4
  347. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +839 -467
  348. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +22 -5
  349. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +815 -504
  350. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +16 -4
  351. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +828 -497
  352. data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +63 -26
  353. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +839 -467
  354. data/rbi/orb/models/subscription_update_params.rbi +22 -16
  355. data/rbi/orb/models/subscription_update_trial_params.rbi +60 -19
  356. data/rbi/orb/models/subscription_update_trial_response.rbi +832 -447
  357. data/rbi/orb/models/subscription_usage.rbi +325 -121
  358. data/rbi/orb/models/subscriptions.rbi +19 -11
  359. data/rbi/orb/models/top_level_ping_params.rbi +11 -4
  360. data/rbi/orb/models/top_level_ping_response.rbi +10 -3
  361. data/rbi/orb/models/trial_discount.rbi +30 -20
  362. data/rbi/orb/models/usage_discount.rbi +29 -19
  363. data/rbi/orb/models.rbi +22 -11
  364. data/rbi/orb/request_options.rbi +12 -6
  365. data/rbi/orb/resources/alerts.rbi +61 -40
  366. data/rbi/orb/resources/coupons/subscriptions.rbi +7 -5
  367. data/rbi/orb/resources/coupons.rbi +33 -18
  368. data/rbi/orb/resources/credit_notes.rbi +22 -13
  369. data/rbi/orb/resources/customers/balance_transactions.rbi +17 -9
  370. data/rbi/orb/resources/customers/costs.rbi +18 -11
  371. data/rbi/orb/resources/customers/credits/ledger.rbi +98 -74
  372. data/rbi/orb/resources/customers/credits/top_ups.rbi +61 -25
  373. data/rbi/orb/resources/customers/credits.rbi +16 -7
  374. data/rbi/orb/resources/customers.rbi +137 -72
  375. data/rbi/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +8 -4
  376. data/rbi/orb/resources/dimensional_price_groups.rbi +26 -12
  377. data/rbi/orb/resources/events/backfills.rbi +35 -17
  378. data/rbi/orb/resources/events/volume.rbi +7 -5
  379. data/rbi/orb/resources/events.rbi +26 -16
  380. data/rbi/orb/resources/invoice_line_items.rbi +7 -5
  381. data/rbi/orb/resources/invoices.rbi +72 -41
  382. data/rbi/orb/resources/items.rbi +40 -13
  383. data/rbi/orb/resources/metrics.rbi +25 -15
  384. data/rbi/orb/resources/plans/external_plan_id.rbi +15 -7
  385. data/rbi/orb/resources/plans.rbi +57 -47
  386. data/rbi/orb/resources/prices/external_price_id.rbi +73 -68
  387. data/rbi/orb/resources/prices.rbi +176 -156
  388. data/rbi/orb/resources/subscription_changes.rbi +19 -11
  389. data/rbi/orb/resources/subscriptions.rbi +200 -114
  390. data/rbi/orb/resources/top_level.rbi +9 -3
  391. data/sig/orb/internal/page.rbs +0 -2
  392. data/sig/orb/internal/transport/base_client.rbs +16 -1
  393. data/sig/orb/internal/transport/pooled_net_requester.rbs +2 -0
  394. data/sig/orb/internal/type/base_model.rbs +11 -5
  395. data/sig/orb/internal/type/base_page.rbs +1 -1
  396. data/sig/orb/internal/type/converter.rbs +2 -0
  397. data/sig/orb/internal/type/enum.rbs +1 -0
  398. data/sig/orb/internal/type/request_parameters.rbs +3 -1
  399. data/sig/orb/internal/type/union.rbs +1 -0
  400. data/sig/orb/internal/util.rbs +13 -0
  401. data/sig/orb/internal.rbs +2 -0
  402. data/sig/orb/models/alert.rbs +19 -31
  403. data/sig/orb/models/alert_create_for_customer_params.rbs +3 -7
  404. data/sig/orb/models/alert_create_for_external_customer_params.rbs +3 -7
  405. data/sig/orb/models/alert_create_for_subscription_params.rbs +3 -7
  406. data/sig/orb/models/alert_disable_params.rbs +0 -2
  407. data/sig/orb/models/alert_enable_params.rbs +0 -2
  408. data/sig/orb/models/alert_list_params.rbs +0 -2
  409. data/sig/orb/models/alert_retrieve_params.rbs +0 -2
  410. data/sig/orb/models/alert_update_params.rbs +3 -7
  411. data/sig/orb/models/amount_discount.rbs +4 -6
  412. data/sig/orb/models/billable_metric.rbs +7 -9
  413. data/sig/orb/models/coupon.rbs +5 -8
  414. data/sig/orb/models/coupon_archive_params.rbs +0 -2
  415. data/sig/orb/models/coupon_create_params.rbs +3 -9
  416. data/sig/orb/models/coupon_fetch_params.rbs +0 -2
  417. data/sig/orb/models/coupon_list_params.rbs +0 -2
  418. data/sig/orb/models/coupons/subscription_list_params.rbs +0 -2
  419. data/sig/orb/models/credit_note.rbs +48 -66
  420. data/sig/orb/models/credit_note_create_params.rbs +3 -7
  421. data/sig/orb/models/credit_note_fetch_params.rbs +0 -2
  422. data/sig/orb/models/credit_note_list_params.rbs +0 -2
  423. data/sig/orb/models/customer.rbs +43 -63
  424. data/sig/orb/models/customer_create_params.rbs +32 -52
  425. data/sig/orb/models/customer_delete_params.rbs +0 -2
  426. data/sig/orb/models/customer_fetch_by_external_id_params.rbs +0 -2
  427. data/sig/orb/models/customer_fetch_params.rbs +0 -2
  428. data/sig/orb/models/customer_list_params.rbs +0 -2
  429. data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +0 -2
  430. data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +0 -2
  431. data/sig/orb/models/customer_update_by_external_id_params.rbs +32 -52
  432. data/sig/orb/models/customer_update_params.rbs +32 -52
  433. data/sig/orb/models/customers/balance_transaction_create_params.rbs +0 -2
  434. data/sig/orb/models/customers/balance_transaction_create_response.rbs +0 -6
  435. data/sig/orb/models/customers/balance_transaction_list_params.rbs +0 -2
  436. data/sig/orb/models/customers/balance_transaction_list_response.rbs +0 -6
  437. data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +0 -2
  438. data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +0 -6
  439. data/sig/orb/models/customers/cost_list_params.rbs +0 -2
  440. data/sig/orb/models/customers/cost_list_response.rbs +0 -6
  441. data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +0 -2
  442. data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +0 -2
  443. data/sig/orb/models/customers/credit_list_params.rbs +0 -2
  444. data/sig/orb/models/customers/credit_list_response.rbs +0 -2
  445. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +3 -7
  446. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +1 -43
  447. data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +3 -7
  448. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +1 -43
  449. data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +0 -2
  450. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +1 -43
  451. data/sig/orb/models/customers/credits/ledger_list_params.rbs +0 -2
  452. data/sig/orb/models/customers/credits/ledger_list_response.rbs +1 -43
  453. data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +3 -7
  454. data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +0 -4
  455. data/sig/orb/models/customers/credits/top_up_create_params.rbs +3 -7
  456. data/sig/orb/models/customers/credits/top_up_create_response.rbs +0 -4
  457. data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +0 -2
  458. data/sig/orb/models/customers/credits/top_up_delete_params.rbs +0 -2
  459. data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +0 -2
  460. data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +0 -4
  461. data/sig/orb/models/customers/credits/top_up_list_params.rbs +0 -2
  462. data/sig/orb/models/customers/credits/top_up_list_response.rbs +0 -4
  463. data/sig/orb/models/dimensional_price_group.rbs +0 -2
  464. data/sig/orb/models/dimensional_price_group_create_params.rbs +0 -2
  465. data/sig/orb/models/dimensional_price_group_list_params.rbs +0 -2
  466. data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +0 -2
  467. data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +0 -2
  468. data/sig/orb/models/dimensional_price_groups.rbs +6 -8
  469. data/sig/orb/models/discount.rbs +5 -5
  470. data/sig/orb/models/evaluate_price_group.rbs +4 -6
  471. data/sig/orb/models/event_deprecate_params.rbs +0 -2
  472. data/sig/orb/models/event_deprecate_response.rbs +0 -2
  473. data/sig/orb/models/event_ingest_params.rbs +3 -7
  474. data/sig/orb/models/event_ingest_response.rbs +0 -6
  475. data/sig/orb/models/event_search_params.rbs +0 -2
  476. data/sig/orb/models/event_search_response.rbs +0 -4
  477. data/sig/orb/models/event_update_params.rbs +0 -2
  478. data/sig/orb/models/event_update_response.rbs +0 -2
  479. data/sig/orb/models/events/backfill_close_params.rbs +0 -2
  480. data/sig/orb/models/events/backfill_close_response.rbs +0 -2
  481. data/sig/orb/models/events/backfill_create_params.rbs +0 -2
  482. data/sig/orb/models/events/backfill_create_response.rbs +0 -2
  483. data/sig/orb/models/events/backfill_fetch_params.rbs +0 -2
  484. data/sig/orb/models/events/backfill_fetch_response.rbs +0 -2
  485. data/sig/orb/models/events/backfill_list_params.rbs +0 -2
  486. data/sig/orb/models/events/backfill_list_response.rbs +0 -2
  487. data/sig/orb/models/events/backfill_revert_params.rbs +0 -2
  488. data/sig/orb/models/events/backfill_revert_response.rbs +0 -2
  489. data/sig/orb/models/events/event_volumes.rbs +3 -10
  490. data/sig/orb/models/events/volume_list_params.rbs +0 -2
  491. data/sig/orb/models/invoice.rbs +110 -172
  492. data/sig/orb/models/invoice_create_params.rbs +10 -16
  493. data/sig/orb/models/invoice_fetch_params.rbs +0 -2
  494. data/sig/orb/models/invoice_fetch_upcoming_params.rbs +0 -2
  495. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +2 -64
  496. data/sig/orb/models/invoice_issue_params.rbs +0 -2
  497. data/sig/orb/models/invoice_level_discount.rbs +2 -4
  498. data/sig/orb/models/invoice_line_item_create_params.rbs +0 -2
  499. data/sig/orb/models/invoice_line_item_create_response.rbs +2 -36
  500. data/sig/orb/models/invoice_list_params.rbs +4 -6
  501. data/sig/orb/models/invoice_mark_paid_params.rbs +0 -2
  502. data/sig/orb/models/invoice_pay_params.rbs +0 -2
  503. data/sig/orb/models/invoice_update_params.rbs +0 -2
  504. data/sig/orb/models/invoice_void_params.rbs +0 -2
  505. data/sig/orb/models/item.rbs +7 -11
  506. data/sig/orb/models/item_create_params.rbs +0 -2
  507. data/sig/orb/models/item_fetch_params.rbs +0 -2
  508. data/sig/orb/models/item_list_params.rbs +0 -2
  509. data/sig/orb/models/item_update_params.rbs +7 -11
  510. data/sig/orb/models/metric_create_params.rbs +0 -2
  511. data/sig/orb/models/metric_fetch_params.rbs +0 -2
  512. data/sig/orb/models/metric_list_params.rbs +0 -2
  513. data/sig/orb/models/metric_update_params.rbs +0 -2
  514. data/sig/orb/models/pagination_metadata.rbs +0 -2
  515. data/sig/orb/models/percentage_discount.rbs +4 -6
  516. data/sig/orb/models/plan.rbs +45 -73
  517. data/sig/orb/models/plan_create_params.rbs +518 -696
  518. data/sig/orb/models/plan_fetch_params.rbs +0 -2
  519. data/sig/orb/models/plan_list_params.rbs +0 -2
  520. data/sig/orb/models/plan_update_params.rbs +0 -2
  521. data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +0 -2
  522. data/sig/orb/models/plans/external_plan_id_update_params.rbs +0 -2
  523. data/sig/orb/models/price.rbs +1194 -1730
  524. data/sig/orb/models/price_create_params.rbs +59 -97
  525. data/sig/orb/models/price_evaluate_params.rbs +0 -2
  526. data/sig/orb/models/price_evaluate_response.rbs +3 -6
  527. data/sig/orb/models/price_fetch_params.rbs +0 -2
  528. data/sig/orb/models/price_list_params.rbs +0 -2
  529. data/sig/orb/models/price_update_params.rbs +0 -2
  530. data/sig/orb/models/prices/external_price_id_fetch_params.rbs +0 -2
  531. data/sig/orb/models/prices/external_price_id_update_params.rbs +0 -2
  532. data/sig/orb/models/subscription.rbs +56 -94
  533. data/sig/orb/models/subscription_cancel_params.rbs +0 -2
  534. data/sig/orb/models/subscription_cancel_response.rbs +20 -60
  535. data/sig/orb/models/subscription_change_apply_params.rbs +0 -2
  536. data/sig/orb/models/subscription_change_apply_response.rbs +20 -62
  537. data/sig/orb/models/subscription_change_cancel_params.rbs +0 -2
  538. data/sig/orb/models/subscription_change_cancel_response.rbs +20 -62
  539. data/sig/orb/models/subscription_change_retrieve_params.rbs +0 -2
  540. data/sig/orb/models/subscription_change_retrieve_response.rbs +20 -62
  541. data/sig/orb/models/subscription_create_params.rbs +1103 -1499
  542. data/sig/orb/models/subscription_create_response.rbs +20 -60
  543. data/sig/orb/models/subscription_fetch_costs_params.rbs +0 -2
  544. data/sig/orb/models/subscription_fetch_costs_response.rbs +0 -6
  545. data/sig/orb/models/subscription_fetch_params.rbs +0 -2
  546. data/sig/orb/models/subscription_fetch_schedule_params.rbs +0 -2
  547. data/sig/orb/models/subscription_fetch_schedule_response.rbs +0 -4
  548. data/sig/orb/models/subscription_fetch_usage_params.rbs +0 -2
  549. data/sig/orb/models/subscription_list_params.rbs +0 -2
  550. data/sig/orb/models/subscription_price_intervals_params.rbs +666 -896
  551. data/sig/orb/models/subscription_price_intervals_response.rbs +20 -60
  552. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1103 -1499
  553. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +20 -60
  554. data/sig/orb/models/subscription_trigger_phase_params.rbs +0 -2
  555. data/sig/orb/models/subscription_trigger_phase_response.rbs +20 -60
  556. data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +0 -2
  557. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +20 -60
  558. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +0 -2
  559. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +20 -60
  560. data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +0 -2
  561. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +20 -60
  562. data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +0 -2
  563. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +20 -60
  564. data/sig/orb/models/subscription_update_params.rbs +0 -2
  565. data/sig/orb/models/subscription_update_trial_params.rbs +1 -3
  566. data/sig/orb/models/subscription_update_trial_response.rbs +20 -60
  567. data/sig/orb/models/subscription_usage.rbs +35 -53
  568. data/sig/orb/models/subscriptions.rbs +6 -8
  569. data/sig/orb/models/top_level_ping_params.rbs +0 -2
  570. data/sig/orb/models/top_level_ping_response.rbs +0 -2
  571. data/sig/orb/models/trial_discount.rbs +4 -6
  572. data/sig/orb/models/usage_discount.rbs +4 -6
  573. data/sig/orb/request_options.rbs +1 -1
  574. data/sig/orb/resources/alerts.rbs +12 -12
  575. data/sig/orb/resources/coupons/subscriptions.rbs +1 -1
  576. data/sig/orb/resources/coupons.rbs +4 -4
  577. data/sig/orb/resources/credit_notes.rbs +4 -4
  578. data/sig/orb/resources/customers/credits/ledger.rbs +2 -2
  579. data/sig/orb/resources/customers/credits/top_ups.rbs +2 -2
  580. data/sig/orb/resources/customers.rbs +24 -24
  581. data/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs +1 -1
  582. data/sig/orb/resources/dimensional_price_groups.rbs +3 -3
  583. data/sig/orb/resources/events/volume.rbs +1 -1
  584. data/sig/orb/resources/events.rbs +1 -1
  585. data/sig/orb/resources/invoices.rbs +10 -10
  586. data/sig/orb/resources/items.rbs +5 -5
  587. data/sig/orb/resources/metrics.rbs +4 -4
  588. data/sig/orb/resources/plans/external_plan_id.rbs +2 -2
  589. data/sig/orb/resources/plans.rbs +5 -5
  590. data/sig/orb/resources/prices.rbs +11 -11
  591. data/sig/orb/resources/subscriptions.rbs +21 -21
  592. metadata +2 -2
@@ -9,7 +9,28 @@ module Orb
9
9
  module LedgerListResponse
10
10
  extend Orb::Internal::Type::Union
11
11
 
12
+ Variants =
13
+ T.type_alias do
14
+ T.any(
15
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment,
16
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement,
17
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange,
18
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry,
19
+ Orb::Models::Customers::Credits::LedgerListResponse::Void,
20
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated,
21
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment
22
+ )
23
+ end
24
+
12
25
  class Increment < Orb::Internal::Type::BaseModel
26
+ OrHash =
27
+ T.type_alias do
28
+ T.any(
29
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment,
30
+ Orb::Internal::AnyHash
31
+ )
32
+ end
33
+
13
34
  sig { returns(String) }
14
35
  attr_accessor :id
15
36
 
@@ -19,28 +40,36 @@ module Orb
19
40
  sig { returns(Time) }
20
41
  attr_accessor :created_at
21
42
 
22
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock) }
43
+ sig do
44
+ returns(
45
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock
46
+ )
47
+ end
23
48
  attr_reader :credit_block
24
49
 
25
50
  sig do
26
51
  params(
27
- credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock, Orb::Internal::AnyHash)
28
- )
29
- .void
52
+ credit_block:
53
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock::OrHash
54
+ ).void
30
55
  end
31
56
  attr_writer :credit_block
32
57
 
33
58
  sig { returns(String) }
34
59
  attr_accessor :currency
35
60
 
36
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer) }
61
+ sig do
62
+ returns(
63
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer
64
+ )
65
+ end
37
66
  attr_reader :customer
38
67
 
39
68
  sig do
40
69
  params(
41
- customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer, Orb::Internal::AnyHash)
42
- )
43
- .void
70
+ customer:
71
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer::OrHash
72
+ ).void
44
73
  end
45
74
  attr_writer :customer
46
75
 
@@ -50,7 +79,11 @@ module Orb
50
79
  sig { returns(Float) }
51
80
  attr_accessor :ending_balance
52
81
 
53
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol) }
82
+ sig do
83
+ returns(
84
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
85
+ )
86
+ end
54
87
  attr_accessor :entry_status
55
88
 
56
89
  sig { returns(Symbol) }
@@ -74,18 +107,20 @@ module Orb
74
107
  id: String,
75
108
  amount: Float,
76
109
  created_at: Time,
77
- credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock, Orb::Internal::AnyHash),
110
+ credit_block:
111
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock::OrHash,
78
112
  currency: String,
79
- customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer, Orb::Internal::AnyHash),
113
+ customer:
114
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer::OrHash,
80
115
  description: T.nilable(String),
81
116
  ending_balance: Float,
82
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::OrSymbol,
117
+ entry_status:
118
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::OrSymbol,
83
119
  ledger_sequence_number: Integer,
84
120
  metadata: T::Hash[Symbol, String],
85
121
  starting_balance: Float,
86
122
  entry_type: Symbol
87
- )
88
- .returns(T.attached_class)
123
+ ).returns(T.attached_class)
89
124
  end
90
125
  def self.new(
91
126
  id:,
@@ -105,30 +140,43 @@ module Orb
105
140
  metadata:,
106
141
  starting_balance:,
107
142
  entry_type: :increment
108
- ); end
143
+ )
144
+ end
145
+
109
146
  sig do
110
- override
111
- .returns(
112
- {
113
- id: String,
114
- amount: Float,
115
- created_at: Time,
116
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock,
117
- currency: String,
118
- customer: Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer,
119
- description: T.nilable(String),
120
- ending_balance: Float,
121
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol,
122
- entry_type: Symbol,
123
- ledger_sequence_number: Integer,
124
- metadata: T::Hash[Symbol, String],
125
- starting_balance: Float
126
- }
127
- )
147
+ override.returns(
148
+ {
149
+ id: String,
150
+ amount: Float,
151
+ created_at: Time,
152
+ credit_block:
153
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock,
154
+ currency: String,
155
+ customer:
156
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer,
157
+ description: T.nilable(String),
158
+ ending_balance: Float,
159
+ entry_status:
160
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol,
161
+ entry_type: Symbol,
162
+ ledger_sequence_number: Integer,
163
+ metadata: T::Hash[Symbol, String],
164
+ starting_balance: Float
165
+ }
166
+ )
167
+ end
168
+ def to_hash
128
169
  end
129
- def to_hash; end
130
170
 
131
171
  class CreditBlock < Orb::Internal::Type::BaseModel
172
+ OrHash =
173
+ T.type_alias do
174
+ T.any(
175
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock,
176
+ Orb::Internal::AnyHash
177
+ )
178
+ end
179
+
132
180
  sig { returns(String) }
133
181
  attr_accessor :id
134
182
 
@@ -139,10 +187,14 @@ module Orb
139
187
  attr_accessor :per_unit_cost_basis
140
188
 
141
189
  sig do
142
- params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String))
143
- .returns(T.attached_class)
190
+ params(
191
+ id: String,
192
+ expiry_date: T.nilable(Time),
193
+ per_unit_cost_basis: T.nilable(String)
194
+ ).returns(T.attached_class)
195
+ end
196
+ def self.new(id:, expiry_date:, per_unit_cost_basis:)
144
197
  end
145
- def self.new(id:, expiry_date:, per_unit_cost_basis:); end
146
198
 
147
199
  sig do
148
200
  override.returns(
@@ -153,28 +205,53 @@ module Orb
153
205
  }
154
206
  )
155
207
  end
156
- def to_hash; end
208
+ def to_hash
209
+ end
157
210
  end
158
211
 
159
212
  class Customer < Orb::Internal::Type::BaseModel
213
+ OrHash =
214
+ T.type_alias do
215
+ T.any(
216
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer,
217
+ Orb::Internal::AnyHash
218
+ )
219
+ end
220
+
160
221
  sig { returns(String) }
161
222
  attr_accessor :id
162
223
 
163
224
  sig { returns(T.nilable(String)) }
164
225
  attr_accessor :external_customer_id
165
226
 
166
- sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) }
167
- def self.new(id:, external_customer_id:); end
227
+ sig do
228
+ params(
229
+ id: String,
230
+ external_customer_id: T.nilable(String)
231
+ ).returns(T.attached_class)
232
+ end
233
+ def self.new(id:, external_customer_id:)
234
+ end
168
235
 
169
- sig { override.returns({id: String, external_customer_id: T.nilable(String)}) }
170
- def to_hash; end
236
+ sig do
237
+ override.returns(
238
+ { id: String, external_customer_id: T.nilable(String) }
239
+ )
240
+ end
241
+ def to_hash
242
+ end
171
243
  end
172
244
 
173
245
  module EntryStatus
174
246
  extend Orb::Internal::Type::Enum
175
247
 
176
248
  TaggedSymbol =
177
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus) }
249
+ T.type_alias do
250
+ T.all(
251
+ Symbol,
252
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus
253
+ )
254
+ end
178
255
  OrSymbol = T.type_alias { T.any(Symbol, String) }
179
256
 
180
257
  COMMITTED =
@@ -183,19 +260,32 @@ module Orb
183
260
  Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
184
261
  )
185
262
  PENDING =
186
- T.let(:pending, Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol)
263
+ T.let(
264
+ :pending,
265
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
266
+ )
187
267
 
188
268
  sig do
189
- override
190
- .returns(
191
- T::Array[Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol]
192
- )
269
+ override.returns(
270
+ T::Array[
271
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
272
+ ]
273
+ )
274
+ end
275
+ def self.values
193
276
  end
194
- def self.values; end
195
277
  end
196
278
  end
197
279
 
198
280
  class Decrement < Orb::Internal::Type::BaseModel
281
+ OrHash =
282
+ T.type_alias do
283
+ T.any(
284
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement,
285
+ Orb::Internal::AnyHash
286
+ )
287
+ end
288
+
199
289
  sig { returns(String) }
200
290
  attr_accessor :id
201
291
 
@@ -205,28 +295,36 @@ module Orb
205
295
  sig { returns(Time) }
206
296
  attr_accessor :created_at
207
297
 
208
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock) }
298
+ sig do
299
+ returns(
300
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock
301
+ )
302
+ end
209
303
  attr_reader :credit_block
210
304
 
211
305
  sig do
212
306
  params(
213
- credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock, Orb::Internal::AnyHash)
214
- )
215
- .void
307
+ credit_block:
308
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock::OrHash
309
+ ).void
216
310
  end
217
311
  attr_writer :credit_block
218
312
 
219
313
  sig { returns(String) }
220
314
  attr_accessor :currency
221
315
 
222
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer) }
316
+ sig do
317
+ returns(
318
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer
319
+ )
320
+ end
223
321
  attr_reader :customer
224
322
 
225
323
  sig do
226
324
  params(
227
- customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer, Orb::Internal::AnyHash)
228
- )
229
- .void
325
+ customer:
326
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer::OrHash
327
+ ).void
230
328
  end
231
329
  attr_writer :customer
232
330
 
@@ -236,7 +334,11 @@ module Orb
236
334
  sig { returns(Float) }
237
335
  attr_accessor :ending_balance
238
336
 
239
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol) }
337
+ sig do
338
+ returns(
339
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
340
+ )
341
+ end
240
342
  attr_accessor :entry_status
241
343
 
242
344
  sig { returns(Symbol) }
@@ -269,12 +371,15 @@ module Orb
269
371
  id: String,
270
372
  amount: Float,
271
373
  created_at: Time,
272
- credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock, Orb::Internal::AnyHash),
374
+ credit_block:
375
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock::OrHash,
273
376
  currency: String,
274
- customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer, Orb::Internal::AnyHash),
377
+ customer:
378
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer::OrHash,
275
379
  description: T.nilable(String),
276
380
  ending_balance: Float,
277
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::OrSymbol,
381
+ entry_status:
382
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::OrSymbol,
278
383
  ledger_sequence_number: Integer,
279
384
  metadata: T::Hash[Symbol, String],
280
385
  starting_balance: Float,
@@ -282,8 +387,7 @@ module Orb
282
387
  invoice_id: T.nilable(String),
283
388
  price_id: T.nilable(String),
284
389
  entry_type: Symbol
285
- )
286
- .returns(T.attached_class)
390
+ ).returns(T.attached_class)
287
391
  end
288
392
  def self.new(
289
393
  id:,
@@ -306,33 +410,46 @@ module Orb
306
410
  invoice_id: nil,
307
411
  price_id: nil,
308
412
  entry_type: :decrement
309
- ); end
413
+ )
414
+ end
415
+
310
416
  sig do
311
- override
312
- .returns(
313
- {
314
- id: String,
315
- amount: Float,
316
- created_at: Time,
317
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock,
318
- currency: String,
319
- customer: Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer,
320
- description: T.nilable(String),
321
- ending_balance: Float,
322
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol,
323
- entry_type: Symbol,
324
- ledger_sequence_number: Integer,
325
- metadata: T::Hash[Symbol, String],
326
- starting_balance: Float,
327
- event_id: T.nilable(String),
328
- invoice_id: T.nilable(String),
329
- price_id: T.nilable(String)
330
- }
331
- )
417
+ override.returns(
418
+ {
419
+ id: String,
420
+ amount: Float,
421
+ created_at: Time,
422
+ credit_block:
423
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock,
424
+ currency: String,
425
+ customer:
426
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer,
427
+ description: T.nilable(String),
428
+ ending_balance: Float,
429
+ entry_status:
430
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol,
431
+ entry_type: Symbol,
432
+ ledger_sequence_number: Integer,
433
+ metadata: T::Hash[Symbol, String],
434
+ starting_balance: Float,
435
+ event_id: T.nilable(String),
436
+ invoice_id: T.nilable(String),
437
+ price_id: T.nilable(String)
438
+ }
439
+ )
440
+ end
441
+ def to_hash
332
442
  end
333
- def to_hash; end
334
443
 
335
444
  class CreditBlock < Orb::Internal::Type::BaseModel
445
+ OrHash =
446
+ T.type_alias do
447
+ T.any(
448
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock,
449
+ Orb::Internal::AnyHash
450
+ )
451
+ end
452
+
336
453
  sig { returns(String) }
337
454
  attr_accessor :id
338
455
 
@@ -343,10 +460,14 @@ module Orb
343
460
  attr_accessor :per_unit_cost_basis
344
461
 
345
462
  sig do
346
- params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String))
347
- .returns(T.attached_class)
463
+ params(
464
+ id: String,
465
+ expiry_date: T.nilable(Time),
466
+ per_unit_cost_basis: T.nilable(String)
467
+ ).returns(T.attached_class)
468
+ end
469
+ def self.new(id:, expiry_date:, per_unit_cost_basis:)
348
470
  end
349
- def self.new(id:, expiry_date:, per_unit_cost_basis:); end
350
471
 
351
472
  sig do
352
473
  override.returns(
@@ -357,28 +478,53 @@ module Orb
357
478
  }
358
479
  )
359
480
  end
360
- def to_hash; end
481
+ def to_hash
482
+ end
361
483
  end
362
484
 
363
485
  class Customer < Orb::Internal::Type::BaseModel
486
+ OrHash =
487
+ T.type_alias do
488
+ T.any(
489
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer,
490
+ Orb::Internal::AnyHash
491
+ )
492
+ end
493
+
364
494
  sig { returns(String) }
365
495
  attr_accessor :id
366
496
 
367
497
  sig { returns(T.nilable(String)) }
368
498
  attr_accessor :external_customer_id
369
499
 
370
- sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) }
371
- def self.new(id:, external_customer_id:); end
500
+ sig do
501
+ params(
502
+ id: String,
503
+ external_customer_id: T.nilable(String)
504
+ ).returns(T.attached_class)
505
+ end
506
+ def self.new(id:, external_customer_id:)
507
+ end
372
508
 
373
- sig { override.returns({id: String, external_customer_id: T.nilable(String)}) }
374
- def to_hash; end
509
+ sig do
510
+ override.returns(
511
+ { id: String, external_customer_id: T.nilable(String) }
512
+ )
513
+ end
514
+ def to_hash
515
+ end
375
516
  end
376
517
 
377
518
  module EntryStatus
378
519
  extend Orb::Internal::Type::Enum
379
520
 
380
521
  TaggedSymbol =
381
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus) }
522
+ T.type_alias do
523
+ T.all(
524
+ Symbol,
525
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus
526
+ )
527
+ end
382
528
  OrSymbol = T.type_alias { T.any(Symbol, String) }
383
529
 
384
530
  COMMITTED =
@@ -387,19 +533,32 @@ module Orb
387
533
  Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
388
534
  )
389
535
  PENDING =
390
- T.let(:pending, Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol)
536
+ T.let(
537
+ :pending,
538
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
539
+ )
391
540
 
392
541
  sig do
393
- override
394
- .returns(
395
- T::Array[Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol]
396
- )
542
+ override.returns(
543
+ T::Array[
544
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
545
+ ]
546
+ )
547
+ end
548
+ def self.values
397
549
  end
398
- def self.values; end
399
550
  end
400
551
  end
401
552
 
402
553
  class ExpirationChange < Orb::Internal::Type::BaseModel
554
+ OrHash =
555
+ T.type_alias do
556
+ T.any(
557
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange,
558
+ Orb::Internal::AnyHash
559
+ )
560
+ end
561
+
403
562
  sig { returns(String) }
404
563
  attr_accessor :id
405
564
 
@@ -409,34 +568,36 @@ module Orb
409
568
  sig { returns(Time) }
410
569
  attr_accessor :created_at
411
570
 
412
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock) }
571
+ sig do
572
+ returns(
573
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock
574
+ )
575
+ end
413
576
  attr_reader :credit_block
414
577
 
415
578
  sig do
416
579
  params(
417
- credit_block: T.any(
418
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
419
- Orb::Internal::AnyHash
420
- )
421
- )
422
- .void
580
+ credit_block:
581
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock::OrHash
582
+ ).void
423
583
  end
424
584
  attr_writer :credit_block
425
585
 
426
586
  sig { returns(String) }
427
587
  attr_accessor :currency
428
588
 
429
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer) }
589
+ sig do
590
+ returns(
591
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer
592
+ )
593
+ end
430
594
  attr_reader :customer
431
595
 
432
596
  sig do
433
597
  params(
434
- customer: T.any(
435
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
436
- Orb::Internal::AnyHash
437
- )
438
- )
439
- .void
598
+ customer:
599
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer::OrHash
600
+ ).void
440
601
  end
441
602
  attr_writer :customer
442
603
 
@@ -446,7 +607,11 @@ module Orb
446
607
  sig { returns(Float) }
447
608
  attr_accessor :ending_balance
448
609
 
449
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol) }
610
+ sig do
611
+ returns(
612
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol
613
+ )
614
+ end
450
615
  attr_accessor :entry_status
451
616
 
452
617
  sig { returns(Symbol) }
@@ -473,25 +638,21 @@ module Orb
473
638
  id: String,
474
639
  amount: Float,
475
640
  created_at: Time,
476
- credit_block: T.any(
477
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
478
- Orb::Internal::AnyHash
479
- ),
641
+ credit_block:
642
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock::OrHash,
480
643
  currency: String,
481
- customer: T.any(
482
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
483
- Orb::Internal::AnyHash
484
- ),
644
+ customer:
645
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer::OrHash,
485
646
  description: T.nilable(String),
486
647
  ending_balance: Float,
487
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::OrSymbol,
648
+ entry_status:
649
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::OrSymbol,
488
650
  ledger_sequence_number: Integer,
489
651
  metadata: T::Hash[Symbol, String],
490
652
  new_block_expiry_date: T.nilable(Time),
491
653
  starting_balance: Float,
492
654
  entry_type: Symbol
493
- )
494
- .returns(T.attached_class)
655
+ ).returns(T.attached_class)
495
656
  end
496
657
  def self.new(
497
658
  id:,
@@ -512,31 +673,44 @@ module Orb
512
673
  new_block_expiry_date:,
513
674
  starting_balance:,
514
675
  entry_type: :expiration_change
515
- ); end
676
+ )
677
+ end
678
+
516
679
  sig do
517
- override
518
- .returns(
519
- {
520
- id: String,
521
- amount: Float,
522
- created_at: Time,
523
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
524
- currency: String,
525
- customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
526
- description: T.nilable(String),
527
- ending_balance: Float,
528
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol,
529
- entry_type: Symbol,
530
- ledger_sequence_number: Integer,
531
- metadata: T::Hash[Symbol, String],
532
- new_block_expiry_date: T.nilable(Time),
533
- starting_balance: Float
534
- }
535
- )
680
+ override.returns(
681
+ {
682
+ id: String,
683
+ amount: Float,
684
+ created_at: Time,
685
+ credit_block:
686
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
687
+ currency: String,
688
+ customer:
689
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
690
+ description: T.nilable(String),
691
+ ending_balance: Float,
692
+ entry_status:
693
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol,
694
+ entry_type: Symbol,
695
+ ledger_sequence_number: Integer,
696
+ metadata: T::Hash[Symbol, String],
697
+ new_block_expiry_date: T.nilable(Time),
698
+ starting_balance: Float
699
+ }
700
+ )
701
+ end
702
+ def to_hash
536
703
  end
537
- def to_hash; end
538
704
 
539
705
  class CreditBlock < Orb::Internal::Type::BaseModel
706
+ OrHash =
707
+ T.type_alias do
708
+ T.any(
709
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
710
+ Orb::Internal::AnyHash
711
+ )
712
+ end
713
+
540
714
  sig { returns(String) }
541
715
  attr_accessor :id
542
716
 
@@ -547,10 +721,14 @@ module Orb
547
721
  attr_accessor :per_unit_cost_basis
548
722
 
549
723
  sig do
550
- params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String))
551
- .returns(T.attached_class)
724
+ params(
725
+ id: String,
726
+ expiry_date: T.nilable(Time),
727
+ per_unit_cost_basis: T.nilable(String)
728
+ ).returns(T.attached_class)
729
+ end
730
+ def self.new(id:, expiry_date:, per_unit_cost_basis:)
552
731
  end
553
- def self.new(id:, expiry_date:, per_unit_cost_basis:); end
554
732
 
555
733
  sig do
556
734
  override.returns(
@@ -561,28 +739,53 @@ module Orb
561
739
  }
562
740
  )
563
741
  end
564
- def to_hash; end
742
+ def to_hash
743
+ end
565
744
  end
566
745
 
567
746
  class Customer < Orb::Internal::Type::BaseModel
747
+ OrHash =
748
+ T.type_alias do
749
+ T.any(
750
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
751
+ Orb::Internal::AnyHash
752
+ )
753
+ end
754
+
568
755
  sig { returns(String) }
569
756
  attr_accessor :id
570
757
 
571
758
  sig { returns(T.nilable(String)) }
572
759
  attr_accessor :external_customer_id
573
760
 
574
- sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) }
575
- def self.new(id:, external_customer_id:); end
761
+ sig do
762
+ params(
763
+ id: String,
764
+ external_customer_id: T.nilable(String)
765
+ ).returns(T.attached_class)
766
+ end
767
+ def self.new(id:, external_customer_id:)
768
+ end
576
769
 
577
- sig { override.returns({id: String, external_customer_id: T.nilable(String)}) }
578
- def to_hash; end
770
+ sig do
771
+ override.returns(
772
+ { id: String, external_customer_id: T.nilable(String) }
773
+ )
774
+ end
775
+ def to_hash
776
+ end
579
777
  end
580
778
 
581
779
  module EntryStatus
582
780
  extend Orb::Internal::Type::Enum
583
781
 
584
782
  TaggedSymbol =
585
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus) }
783
+ T.type_alias do
784
+ T.all(
785
+ Symbol,
786
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus
787
+ )
788
+ end
586
789
  OrSymbol = T.type_alias { T.any(Symbol, String) }
587
790
 
588
791
  COMMITTED =
@@ -597,16 +800,26 @@ module Orb
597
800
  )
598
801
 
599
802
  sig do
600
- override
601
- .returns(
602
- T::Array[Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol]
603
- )
803
+ override.returns(
804
+ T::Array[
805
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol
806
+ ]
807
+ )
808
+ end
809
+ def self.values
604
810
  end
605
- def self.values; end
606
811
  end
607
812
  end
608
813
 
609
814
  class CreditBlockExpiry < Orb::Internal::Type::BaseModel
815
+ OrHash =
816
+ T.type_alias do
817
+ T.any(
818
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry,
819
+ Orb::Internal::AnyHash
820
+ )
821
+ end
822
+
610
823
  sig { returns(String) }
611
824
  attr_accessor :id
612
825
 
@@ -616,34 +829,36 @@ module Orb
616
829
  sig { returns(Time) }
617
830
  attr_accessor :created_at
618
831
 
619
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock) }
832
+ sig do
833
+ returns(
834
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock
835
+ )
836
+ end
620
837
  attr_reader :credit_block
621
838
 
622
839
  sig do
623
840
  params(
624
- credit_block: T.any(
625
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
626
- Orb::Internal::AnyHash
627
- )
628
- )
629
- .void
841
+ credit_block:
842
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock::OrHash
843
+ ).void
630
844
  end
631
845
  attr_writer :credit_block
632
846
 
633
847
  sig { returns(String) }
634
848
  attr_accessor :currency
635
849
 
636
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer) }
850
+ sig do
851
+ returns(
852
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer
853
+ )
854
+ end
637
855
  attr_reader :customer
638
856
 
639
857
  sig do
640
858
  params(
641
- customer: T.any(
642
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
643
- Orb::Internal::AnyHash
644
- )
645
- )
646
- .void
859
+ customer:
860
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer::OrHash
861
+ ).void
647
862
  end
648
863
  attr_writer :customer
649
864
 
@@ -653,7 +868,11 @@ module Orb
653
868
  sig { returns(Float) }
654
869
  attr_accessor :ending_balance
655
870
 
656
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol) }
871
+ sig do
872
+ returns(
873
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
874
+ )
875
+ end
657
876
  attr_accessor :entry_status
658
877
 
659
878
  sig { returns(Symbol) }
@@ -677,24 +896,20 @@ module Orb
677
896
  id: String,
678
897
  amount: Float,
679
898
  created_at: Time,
680
- credit_block: T.any(
681
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
682
- Orb::Internal::AnyHash
683
- ),
899
+ credit_block:
900
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock::OrHash,
684
901
  currency: String,
685
- customer: T.any(
686
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
687
- Orb::Internal::AnyHash
688
- ),
902
+ customer:
903
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer::OrHash,
689
904
  description: T.nilable(String),
690
905
  ending_balance: Float,
691
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::OrSymbol,
906
+ entry_status:
907
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::OrSymbol,
692
908
  ledger_sequence_number: Integer,
693
909
  metadata: T::Hash[Symbol, String],
694
910
  starting_balance: Float,
695
911
  entry_type: Symbol
696
- )
697
- .returns(T.attached_class)
912
+ ).returns(T.attached_class)
698
913
  end
699
914
  def self.new(
700
915
  id:,
@@ -714,30 +929,43 @@ module Orb
714
929
  metadata:,
715
930
  starting_balance:,
716
931
  entry_type: :credit_block_expiry
717
- ); end
932
+ )
933
+ end
934
+
718
935
  sig do
719
- override
720
- .returns(
721
- {
722
- id: String,
723
- amount: Float,
724
- created_at: Time,
725
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
726
- currency: String,
727
- customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
728
- description: T.nilable(String),
729
- ending_balance: Float,
730
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol,
731
- entry_type: Symbol,
732
- ledger_sequence_number: Integer,
733
- metadata: T::Hash[Symbol, String],
734
- starting_balance: Float
735
- }
736
- )
936
+ override.returns(
937
+ {
938
+ id: String,
939
+ amount: Float,
940
+ created_at: Time,
941
+ credit_block:
942
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
943
+ currency: String,
944
+ customer:
945
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
946
+ description: T.nilable(String),
947
+ ending_balance: Float,
948
+ entry_status:
949
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol,
950
+ entry_type: Symbol,
951
+ ledger_sequence_number: Integer,
952
+ metadata: T::Hash[Symbol, String],
953
+ starting_balance: Float
954
+ }
955
+ )
956
+ end
957
+ def to_hash
737
958
  end
738
- def to_hash; end
739
959
 
740
960
  class CreditBlock < Orb::Internal::Type::BaseModel
961
+ OrHash =
962
+ T.type_alias do
963
+ T.any(
964
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
965
+ Orb::Internal::AnyHash
966
+ )
967
+ end
968
+
741
969
  sig { returns(String) }
742
970
  attr_accessor :id
743
971
 
@@ -748,10 +976,14 @@ module Orb
748
976
  attr_accessor :per_unit_cost_basis
749
977
 
750
978
  sig do
751
- params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String))
752
- .returns(T.attached_class)
979
+ params(
980
+ id: String,
981
+ expiry_date: T.nilable(Time),
982
+ per_unit_cost_basis: T.nilable(String)
983
+ ).returns(T.attached_class)
984
+ end
985
+ def self.new(id:, expiry_date:, per_unit_cost_basis:)
753
986
  end
754
- def self.new(id:, expiry_date:, per_unit_cost_basis:); end
755
987
 
756
988
  sig do
757
989
  override.returns(
@@ -762,28 +994,53 @@ module Orb
762
994
  }
763
995
  )
764
996
  end
765
- def to_hash; end
997
+ def to_hash
998
+ end
766
999
  end
767
1000
 
768
1001
  class Customer < Orb::Internal::Type::BaseModel
1002
+ OrHash =
1003
+ T.type_alias do
1004
+ T.any(
1005
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
1006
+ Orb::Internal::AnyHash
1007
+ )
1008
+ end
1009
+
769
1010
  sig { returns(String) }
770
1011
  attr_accessor :id
771
1012
 
772
1013
  sig { returns(T.nilable(String)) }
773
1014
  attr_accessor :external_customer_id
774
1015
 
775
- sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) }
776
- def self.new(id:, external_customer_id:); end
1016
+ sig do
1017
+ params(
1018
+ id: String,
1019
+ external_customer_id: T.nilable(String)
1020
+ ).returns(T.attached_class)
1021
+ end
1022
+ def self.new(id:, external_customer_id:)
1023
+ end
777
1024
 
778
- sig { override.returns({id: String, external_customer_id: T.nilable(String)}) }
779
- def to_hash; end
1025
+ sig do
1026
+ override.returns(
1027
+ { id: String, external_customer_id: T.nilable(String) }
1028
+ )
1029
+ end
1030
+ def to_hash
1031
+ end
780
1032
  end
781
1033
 
782
1034
  module EntryStatus
783
1035
  extend Orb::Internal::Type::Enum
784
1036
 
785
1037
  TaggedSymbol =
786
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus) }
1038
+ T.type_alias do
1039
+ T.all(
1040
+ Symbol,
1041
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus
1042
+ )
1043
+ end
787
1044
  OrSymbol = T.type_alias { T.any(Symbol, String) }
788
1045
 
789
1046
  COMMITTED =
@@ -798,16 +1055,26 @@ module Orb
798
1055
  )
799
1056
 
800
1057
  sig do
801
- override
802
- .returns(
803
- T::Array[Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol]
804
- )
1058
+ override.returns(
1059
+ T::Array[
1060
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
1061
+ ]
1062
+ )
1063
+ end
1064
+ def self.values
805
1065
  end
806
- def self.values; end
807
1066
  end
808
1067
  end
809
1068
 
810
1069
  class Void < Orb::Internal::Type::BaseModel
1070
+ OrHash =
1071
+ T.type_alias do
1072
+ T.any(
1073
+ Orb::Models::Customers::Credits::LedgerListResponse::Void,
1074
+ Orb::Internal::AnyHash
1075
+ )
1076
+ end
1077
+
811
1078
  sig { returns(String) }
812
1079
  attr_accessor :id
813
1080
 
@@ -817,28 +1084,36 @@ module Orb
817
1084
  sig { returns(Time) }
818
1085
  attr_accessor :created_at
819
1086
 
820
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock) }
1087
+ sig do
1088
+ returns(
1089
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock
1090
+ )
1091
+ end
821
1092
  attr_reader :credit_block
822
1093
 
823
1094
  sig do
824
1095
  params(
825
- credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock, Orb::Internal::AnyHash)
826
- )
827
- .void
1096
+ credit_block:
1097
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock::OrHash
1098
+ ).void
828
1099
  end
829
1100
  attr_writer :credit_block
830
1101
 
831
1102
  sig { returns(String) }
832
1103
  attr_accessor :currency
833
1104
 
834
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer) }
1105
+ sig do
1106
+ returns(
1107
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer
1108
+ )
1109
+ end
835
1110
  attr_reader :customer
836
1111
 
837
1112
  sig do
838
1113
  params(
839
- customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer, Orb::Internal::AnyHash)
840
- )
841
- .void
1114
+ customer:
1115
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer::OrHash
1116
+ ).void
842
1117
  end
843
1118
  attr_writer :customer
844
1119
 
@@ -848,7 +1123,11 @@ module Orb
848
1123
  sig { returns(Float) }
849
1124
  attr_accessor :ending_balance
850
1125
 
851
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol) }
1126
+ sig do
1127
+ returns(
1128
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
1129
+ )
1130
+ end
852
1131
  attr_accessor :entry_status
853
1132
 
854
1133
  sig { returns(Symbol) }
@@ -878,20 +1157,22 @@ module Orb
878
1157
  id: String,
879
1158
  amount: Float,
880
1159
  created_at: Time,
881
- credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock, Orb::Internal::AnyHash),
1160
+ credit_block:
1161
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock::OrHash,
882
1162
  currency: String,
883
- customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer, Orb::Internal::AnyHash),
1163
+ customer:
1164
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer::OrHash,
884
1165
  description: T.nilable(String),
885
1166
  ending_balance: Float,
886
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::OrSymbol,
1167
+ entry_status:
1168
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::OrSymbol,
887
1169
  ledger_sequence_number: Integer,
888
1170
  metadata: T::Hash[Symbol, String],
889
1171
  starting_balance: Float,
890
1172
  void_amount: Float,
891
1173
  void_reason: T.nilable(String),
892
1174
  entry_type: Symbol
893
- )
894
- .returns(T.attached_class)
1175
+ ).returns(T.attached_class)
895
1176
  end
896
1177
  def self.new(
897
1178
  id:,
@@ -913,32 +1194,45 @@ module Orb
913
1194
  void_amount:,
914
1195
  void_reason:,
915
1196
  entry_type: :void
916
- ); end
1197
+ )
1198
+ end
1199
+
917
1200
  sig do
918
- override
919
- .returns(
920
- {
921
- id: String,
922
- amount: Float,
923
- created_at: Time,
924
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock,
925
- currency: String,
926
- customer: Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer,
927
- description: T.nilable(String),
928
- ending_balance: Float,
929
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol,
930
- entry_type: Symbol,
931
- ledger_sequence_number: Integer,
932
- metadata: T::Hash[Symbol, String],
933
- starting_balance: Float,
934
- void_amount: Float,
935
- void_reason: T.nilable(String)
936
- }
937
- )
1201
+ override.returns(
1202
+ {
1203
+ id: String,
1204
+ amount: Float,
1205
+ created_at: Time,
1206
+ credit_block:
1207
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock,
1208
+ currency: String,
1209
+ customer:
1210
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer,
1211
+ description: T.nilable(String),
1212
+ ending_balance: Float,
1213
+ entry_status:
1214
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol,
1215
+ entry_type: Symbol,
1216
+ ledger_sequence_number: Integer,
1217
+ metadata: T::Hash[Symbol, String],
1218
+ starting_balance: Float,
1219
+ void_amount: Float,
1220
+ void_reason: T.nilable(String)
1221
+ }
1222
+ )
1223
+ end
1224
+ def to_hash
938
1225
  end
939
- def to_hash; end
940
1226
 
941
1227
  class CreditBlock < Orb::Internal::Type::BaseModel
1228
+ OrHash =
1229
+ T.type_alias do
1230
+ T.any(
1231
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock,
1232
+ Orb::Internal::AnyHash
1233
+ )
1234
+ end
1235
+
942
1236
  sig { returns(String) }
943
1237
  attr_accessor :id
944
1238
 
@@ -949,10 +1243,14 @@ module Orb
949
1243
  attr_accessor :per_unit_cost_basis
950
1244
 
951
1245
  sig do
952
- params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String))
953
- .returns(T.attached_class)
1246
+ params(
1247
+ id: String,
1248
+ expiry_date: T.nilable(Time),
1249
+ per_unit_cost_basis: T.nilable(String)
1250
+ ).returns(T.attached_class)
1251
+ end
1252
+ def self.new(id:, expiry_date:, per_unit_cost_basis:)
954
1253
  end
955
- def self.new(id:, expiry_date:, per_unit_cost_basis:); end
956
1254
 
957
1255
  sig do
958
1256
  override.returns(
@@ -963,44 +1261,87 @@ module Orb
963
1261
  }
964
1262
  )
965
1263
  end
966
- def to_hash; end
1264
+ def to_hash
1265
+ end
967
1266
  end
968
1267
 
969
1268
  class Customer < Orb::Internal::Type::BaseModel
1269
+ OrHash =
1270
+ T.type_alias do
1271
+ T.any(
1272
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer,
1273
+ Orb::Internal::AnyHash
1274
+ )
1275
+ end
1276
+
970
1277
  sig { returns(String) }
971
1278
  attr_accessor :id
972
1279
 
973
1280
  sig { returns(T.nilable(String)) }
974
1281
  attr_accessor :external_customer_id
975
1282
 
976
- sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) }
977
- def self.new(id:, external_customer_id:); end
1283
+ sig do
1284
+ params(
1285
+ id: String,
1286
+ external_customer_id: T.nilable(String)
1287
+ ).returns(T.attached_class)
1288
+ end
1289
+ def self.new(id:, external_customer_id:)
1290
+ end
978
1291
 
979
- sig { override.returns({id: String, external_customer_id: T.nilable(String)}) }
980
- def to_hash; end
1292
+ sig do
1293
+ override.returns(
1294
+ { id: String, external_customer_id: T.nilable(String) }
1295
+ )
1296
+ end
1297
+ def to_hash
1298
+ end
981
1299
  end
982
1300
 
983
1301
  module EntryStatus
984
1302
  extend Orb::Internal::Type::Enum
985
1303
 
986
1304
  TaggedSymbol =
987
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus) }
1305
+ T.type_alias do
1306
+ T.all(
1307
+ Symbol,
1308
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus
1309
+ )
1310
+ end
988
1311
  OrSymbol = T.type_alias { T.any(Symbol, String) }
989
1312
 
990
1313
  COMMITTED =
991
- T.let(:committed, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol)
1314
+ T.let(
1315
+ :committed,
1316
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
1317
+ )
992
1318
  PENDING =
993
- T.let(:pending, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol)
1319
+ T.let(
1320
+ :pending,
1321
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
1322
+ )
994
1323
 
995
1324
  sig do
996
- override
997
- .returns(T::Array[Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol])
1325
+ override.returns(
1326
+ T::Array[
1327
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
1328
+ ]
1329
+ )
1330
+ end
1331
+ def self.values
998
1332
  end
999
- def self.values; end
1000
1333
  end
1001
1334
  end
1002
1335
 
1003
1336
  class VoidInitiated < Orb::Internal::Type::BaseModel
1337
+ OrHash =
1338
+ T.type_alias do
1339
+ T.any(
1340
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated,
1341
+ Orb::Internal::AnyHash
1342
+ )
1343
+ end
1344
+
1004
1345
  sig { returns(String) }
1005
1346
  attr_accessor :id
1006
1347
 
@@ -1010,34 +1351,36 @@ module Orb
1010
1351
  sig { returns(Time) }
1011
1352
  attr_accessor :created_at
1012
1353
 
1013
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock) }
1354
+ sig do
1355
+ returns(
1356
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock
1357
+ )
1358
+ end
1014
1359
  attr_reader :credit_block
1015
1360
 
1016
1361
  sig do
1017
1362
  params(
1018
- credit_block: T.any(
1019
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
1020
- Orb::Internal::AnyHash
1021
- )
1022
- )
1023
- .void
1363
+ credit_block:
1364
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock::OrHash
1365
+ ).void
1024
1366
  end
1025
1367
  attr_writer :credit_block
1026
1368
 
1027
1369
  sig { returns(String) }
1028
1370
  attr_accessor :currency
1029
1371
 
1030
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer) }
1372
+ sig do
1373
+ returns(
1374
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer
1375
+ )
1376
+ end
1031
1377
  attr_reader :customer
1032
1378
 
1033
1379
  sig do
1034
1380
  params(
1035
- customer: T.any(
1036
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
1037
- Orb::Internal::AnyHash
1038
- )
1039
- )
1040
- .void
1381
+ customer:
1382
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer::OrHash
1383
+ ).void
1041
1384
  end
1042
1385
  attr_writer :customer
1043
1386
 
@@ -1047,7 +1390,11 @@ module Orb
1047
1390
  sig { returns(Float) }
1048
1391
  attr_accessor :ending_balance
1049
1392
 
1050
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol) }
1393
+ sig do
1394
+ returns(
1395
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol
1396
+ )
1397
+ end
1051
1398
  attr_accessor :entry_status
1052
1399
 
1053
1400
  sig { returns(Symbol) }
@@ -1080,18 +1427,15 @@ module Orb
1080
1427
  id: String,
1081
1428
  amount: Float,
1082
1429
  created_at: Time,
1083
- credit_block: T.any(
1084
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
1085
- Orb::Internal::AnyHash
1086
- ),
1430
+ credit_block:
1431
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock::OrHash,
1087
1432
  currency: String,
1088
- customer: T.any(
1089
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
1090
- Orb::Internal::AnyHash
1091
- ),
1433
+ customer:
1434
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer::OrHash,
1092
1435
  description: T.nilable(String),
1093
1436
  ending_balance: Float,
1094
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::OrSymbol,
1437
+ entry_status:
1438
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::OrSymbol,
1095
1439
  ledger_sequence_number: Integer,
1096
1440
  metadata: T::Hash[Symbol, String],
1097
1441
  new_block_expiry_date: Time,
@@ -1099,8 +1443,7 @@ module Orb
1099
1443
  void_amount: Float,
1100
1444
  void_reason: T.nilable(String),
1101
1445
  entry_type: Symbol
1102
- )
1103
- .returns(T.attached_class)
1446
+ ).returns(T.attached_class)
1104
1447
  end
1105
1448
  def self.new(
1106
1449
  id:,
@@ -1123,33 +1466,46 @@ module Orb
1123
1466
  void_amount:,
1124
1467
  void_reason:,
1125
1468
  entry_type: :void_initiated
1126
- ); end
1469
+ )
1470
+ end
1471
+
1127
1472
  sig do
1128
- override
1129
- .returns(
1130
- {
1131
- id: String,
1132
- amount: Float,
1133
- created_at: Time,
1134
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
1135
- currency: String,
1136
- customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
1137
- description: T.nilable(String),
1138
- ending_balance: Float,
1139
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol,
1140
- entry_type: Symbol,
1141
- ledger_sequence_number: Integer,
1142
- metadata: T::Hash[Symbol, String],
1143
- new_block_expiry_date: Time,
1144
- starting_balance: Float,
1145
- void_amount: Float,
1146
- void_reason: T.nilable(String)
1147
- }
1148
- )
1473
+ override.returns(
1474
+ {
1475
+ id: String,
1476
+ amount: Float,
1477
+ created_at: Time,
1478
+ credit_block:
1479
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
1480
+ currency: String,
1481
+ customer:
1482
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
1483
+ description: T.nilable(String),
1484
+ ending_balance: Float,
1485
+ entry_status:
1486
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol,
1487
+ entry_type: Symbol,
1488
+ ledger_sequence_number: Integer,
1489
+ metadata: T::Hash[Symbol, String],
1490
+ new_block_expiry_date: Time,
1491
+ starting_balance: Float,
1492
+ void_amount: Float,
1493
+ void_reason: T.nilable(String)
1494
+ }
1495
+ )
1496
+ end
1497
+ def to_hash
1149
1498
  end
1150
- def to_hash; end
1151
1499
 
1152
1500
  class CreditBlock < Orb::Internal::Type::BaseModel
1501
+ OrHash =
1502
+ T.type_alias do
1503
+ T.any(
1504
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
1505
+ Orb::Internal::AnyHash
1506
+ )
1507
+ end
1508
+
1153
1509
  sig { returns(String) }
1154
1510
  attr_accessor :id
1155
1511
 
@@ -1160,10 +1516,14 @@ module Orb
1160
1516
  attr_accessor :per_unit_cost_basis
1161
1517
 
1162
1518
  sig do
1163
- params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String))
1164
- .returns(T.attached_class)
1519
+ params(
1520
+ id: String,
1521
+ expiry_date: T.nilable(Time),
1522
+ per_unit_cost_basis: T.nilable(String)
1523
+ ).returns(T.attached_class)
1524
+ end
1525
+ def self.new(id:, expiry_date:, per_unit_cost_basis:)
1165
1526
  end
1166
- def self.new(id:, expiry_date:, per_unit_cost_basis:); end
1167
1527
 
1168
1528
  sig do
1169
1529
  override.returns(
@@ -1174,28 +1534,53 @@ module Orb
1174
1534
  }
1175
1535
  )
1176
1536
  end
1177
- def to_hash; end
1537
+ def to_hash
1538
+ end
1178
1539
  end
1179
1540
 
1180
1541
  class Customer < Orb::Internal::Type::BaseModel
1542
+ OrHash =
1543
+ T.type_alias do
1544
+ T.any(
1545
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
1546
+ Orb::Internal::AnyHash
1547
+ )
1548
+ end
1549
+
1181
1550
  sig { returns(String) }
1182
1551
  attr_accessor :id
1183
1552
 
1184
1553
  sig { returns(T.nilable(String)) }
1185
1554
  attr_accessor :external_customer_id
1186
1555
 
1187
- sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) }
1188
- def self.new(id:, external_customer_id:); end
1556
+ sig do
1557
+ params(
1558
+ id: String,
1559
+ external_customer_id: T.nilable(String)
1560
+ ).returns(T.attached_class)
1561
+ end
1562
+ def self.new(id:, external_customer_id:)
1563
+ end
1189
1564
 
1190
- sig { override.returns({id: String, external_customer_id: T.nilable(String)}) }
1191
- def to_hash; end
1565
+ sig do
1566
+ override.returns(
1567
+ { id: String, external_customer_id: T.nilable(String) }
1568
+ )
1569
+ end
1570
+ def to_hash
1571
+ end
1192
1572
  end
1193
1573
 
1194
1574
  module EntryStatus
1195
1575
  extend Orb::Internal::Type::Enum
1196
1576
 
1197
1577
  TaggedSymbol =
1198
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus) }
1578
+ T.type_alias do
1579
+ T.all(
1580
+ Symbol,
1581
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus
1582
+ )
1583
+ end
1199
1584
  OrSymbol = T.type_alias { T.any(Symbol, String) }
1200
1585
 
1201
1586
  COMMITTED =
@@ -1210,16 +1595,26 @@ module Orb
1210
1595
  )
1211
1596
 
1212
1597
  sig do
1213
- override
1214
- .returns(
1215
- T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol]
1216
- )
1598
+ override.returns(
1599
+ T::Array[
1600
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol
1601
+ ]
1602
+ )
1603
+ end
1604
+ def self.values
1217
1605
  end
1218
- def self.values; end
1219
1606
  end
1220
1607
  end
1221
1608
 
1222
1609
  class Amendment < Orb::Internal::Type::BaseModel
1610
+ OrHash =
1611
+ T.type_alias do
1612
+ T.any(
1613
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment,
1614
+ Orb::Internal::AnyHash
1615
+ )
1616
+ end
1617
+
1223
1618
  sig { returns(String) }
1224
1619
  attr_accessor :id
1225
1620
 
@@ -1229,28 +1624,36 @@ module Orb
1229
1624
  sig { returns(Time) }
1230
1625
  attr_accessor :created_at
1231
1626
 
1232
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock) }
1627
+ sig do
1628
+ returns(
1629
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock
1630
+ )
1631
+ end
1233
1632
  attr_reader :credit_block
1234
1633
 
1235
1634
  sig do
1236
1635
  params(
1237
- credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock, Orb::Internal::AnyHash)
1238
- )
1239
- .void
1636
+ credit_block:
1637
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock::OrHash
1638
+ ).void
1240
1639
  end
1241
1640
  attr_writer :credit_block
1242
1641
 
1243
1642
  sig { returns(String) }
1244
1643
  attr_accessor :currency
1245
1644
 
1246
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer) }
1645
+ sig do
1646
+ returns(
1647
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer
1648
+ )
1649
+ end
1247
1650
  attr_reader :customer
1248
1651
 
1249
1652
  sig do
1250
1653
  params(
1251
- customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer, Orb::Internal::AnyHash)
1252
- )
1253
- .void
1654
+ customer:
1655
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer::OrHash
1656
+ ).void
1254
1657
  end
1255
1658
  attr_writer :customer
1256
1659
 
@@ -1260,7 +1663,11 @@ module Orb
1260
1663
  sig { returns(Float) }
1261
1664
  attr_accessor :ending_balance
1262
1665
 
1263
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol) }
1666
+ sig do
1667
+ returns(
1668
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
1669
+ )
1670
+ end
1264
1671
  attr_accessor :entry_status
1265
1672
 
1266
1673
  sig { returns(Symbol) }
@@ -1284,18 +1691,20 @@ module Orb
1284
1691
  id: String,
1285
1692
  amount: Float,
1286
1693
  created_at: Time,
1287
- credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock, Orb::Internal::AnyHash),
1694
+ credit_block:
1695
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock::OrHash,
1288
1696
  currency: String,
1289
- customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer, Orb::Internal::AnyHash),
1697
+ customer:
1698
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer::OrHash,
1290
1699
  description: T.nilable(String),
1291
1700
  ending_balance: Float,
1292
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::OrSymbol,
1701
+ entry_status:
1702
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::OrSymbol,
1293
1703
  ledger_sequence_number: Integer,
1294
1704
  metadata: T::Hash[Symbol, String],
1295
1705
  starting_balance: Float,
1296
1706
  entry_type: Symbol
1297
- )
1298
- .returns(T.attached_class)
1707
+ ).returns(T.attached_class)
1299
1708
  end
1300
1709
  def self.new(
1301
1710
  id:,
@@ -1315,30 +1724,43 @@ module Orb
1315
1724
  metadata:,
1316
1725
  starting_balance:,
1317
1726
  entry_type: :amendment
1318
- ); end
1727
+ )
1728
+ end
1729
+
1319
1730
  sig do
1320
- override
1321
- .returns(
1322
- {
1323
- id: String,
1324
- amount: Float,
1325
- created_at: Time,
1326
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock,
1327
- currency: String,
1328
- customer: Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer,
1329
- description: T.nilable(String),
1330
- ending_balance: Float,
1331
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol,
1332
- entry_type: Symbol,
1333
- ledger_sequence_number: Integer,
1334
- metadata: T::Hash[Symbol, String],
1335
- starting_balance: Float
1336
- }
1337
- )
1731
+ override.returns(
1732
+ {
1733
+ id: String,
1734
+ amount: Float,
1735
+ created_at: Time,
1736
+ credit_block:
1737
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock,
1738
+ currency: String,
1739
+ customer:
1740
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer,
1741
+ description: T.nilable(String),
1742
+ ending_balance: Float,
1743
+ entry_status:
1744
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol,
1745
+ entry_type: Symbol,
1746
+ ledger_sequence_number: Integer,
1747
+ metadata: T::Hash[Symbol, String],
1748
+ starting_balance: Float
1749
+ }
1750
+ )
1751
+ end
1752
+ def to_hash
1338
1753
  end
1339
- def to_hash; end
1340
1754
 
1341
1755
  class CreditBlock < Orb::Internal::Type::BaseModel
1756
+ OrHash =
1757
+ T.type_alias do
1758
+ T.any(
1759
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock,
1760
+ Orb::Internal::AnyHash
1761
+ )
1762
+ end
1763
+
1342
1764
  sig { returns(String) }
1343
1765
  attr_accessor :id
1344
1766
 
@@ -1349,10 +1771,14 @@ module Orb
1349
1771
  attr_accessor :per_unit_cost_basis
1350
1772
 
1351
1773
  sig do
1352
- params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String))
1353
- .returns(T.attached_class)
1774
+ params(
1775
+ id: String,
1776
+ expiry_date: T.nilable(Time),
1777
+ per_unit_cost_basis: T.nilable(String)
1778
+ ).returns(T.attached_class)
1779
+ end
1780
+ def self.new(id:, expiry_date:, per_unit_cost_basis:)
1354
1781
  end
1355
- def self.new(id:, expiry_date:, per_unit_cost_basis:); end
1356
1782
 
1357
1783
  sig do
1358
1784
  override.returns(
@@ -1363,28 +1789,53 @@ module Orb
1363
1789
  }
1364
1790
  )
1365
1791
  end
1366
- def to_hash; end
1792
+ def to_hash
1793
+ end
1367
1794
  end
1368
1795
 
1369
1796
  class Customer < Orb::Internal::Type::BaseModel
1797
+ OrHash =
1798
+ T.type_alias do
1799
+ T.any(
1800
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer,
1801
+ Orb::Internal::AnyHash
1802
+ )
1803
+ end
1804
+
1370
1805
  sig { returns(String) }
1371
1806
  attr_accessor :id
1372
1807
 
1373
1808
  sig { returns(T.nilable(String)) }
1374
1809
  attr_accessor :external_customer_id
1375
1810
 
1376
- sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) }
1377
- def self.new(id:, external_customer_id:); end
1811
+ sig do
1812
+ params(
1813
+ id: String,
1814
+ external_customer_id: T.nilable(String)
1815
+ ).returns(T.attached_class)
1816
+ end
1817
+ def self.new(id:, external_customer_id:)
1818
+ end
1378
1819
 
1379
- sig { override.returns({id: String, external_customer_id: T.nilable(String)}) }
1380
- def to_hash; end
1820
+ sig do
1821
+ override.returns(
1822
+ { id: String, external_customer_id: T.nilable(String) }
1823
+ )
1824
+ end
1825
+ def to_hash
1826
+ end
1381
1827
  end
1382
1828
 
1383
1829
  module EntryStatus
1384
1830
  extend Orb::Internal::Type::Enum
1385
1831
 
1386
1832
  TaggedSymbol =
1387
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus) }
1833
+ T.type_alias do
1834
+ T.all(
1835
+ Symbol,
1836
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus
1837
+ )
1838
+ end
1388
1839
  OrSymbol = T.type_alias { T.any(Symbol, String) }
1389
1840
 
1390
1841
  COMMITTED =
@@ -1393,25 +1844,32 @@ module Orb
1393
1844
  Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
1394
1845
  )
1395
1846
  PENDING =
1396
- T.let(:pending, Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol)
1847
+ T.let(
1848
+ :pending,
1849
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
1850
+ )
1397
1851
 
1398
1852
  sig do
1399
- override
1400
- .returns(
1401
- T::Array[Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol]
1402
- )
1853
+ override.returns(
1854
+ T::Array[
1855
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
1856
+ ]
1857
+ )
1858
+ end
1859
+ def self.values
1403
1860
  end
1404
- def self.values; end
1405
1861
  end
1406
1862
  end
1407
1863
 
1408
1864
  sig do
1409
- override
1410
- .returns(
1411
- [Orb::Models::Customers::Credits::LedgerListResponse::Increment, Orb::Models::Customers::Credits::LedgerListResponse::Decrement, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerListResponse::Void, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerListResponse::Amendment]
1412
- )
1865
+ override.returns(
1866
+ T::Array[
1867
+ Orb::Models::Customers::Credits::LedgerListResponse::Variants
1868
+ ]
1869
+ )
1870
+ end
1871
+ def self.variants
1413
1872
  end
1414
- def self.variants; end
1415
1873
  end
1416
1874
  end
1417
1875
  end