orb-billing 0.3.1 → 0.4.0

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