orb-billing 0.3.1 → 0.3.2

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