orb-billing 0.2.0 → 0.3.1

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 (488) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +67 -0
  3. data/README.md +63 -53
  4. data/lib/orb/client.rb +4 -4
  5. data/lib/orb/errors.rb +9 -9
  6. data/lib/orb/file_part.rb +55 -0
  7. data/lib/orb/internal/page.rb +7 -11
  8. data/lib/orb/internal/transport/base_client.rb +10 -10
  9. data/lib/orb/internal/transport/pooled_net_requester.rb +2 -2
  10. data/lib/orb/internal/type/array_of.rb +11 -0
  11. data/lib/orb/internal/type/base_model.rb +33 -23
  12. data/lib/orb/internal/type/base_page.rb +9 -1
  13. data/lib/orb/internal/type/boolean.rb +14 -11
  14. data/lib/orb/internal/type/converter.rb +4 -1
  15. data/lib/orb/internal/type/enum.rb +19 -16
  16. data/lib/orb/internal/type/{io_like.rb → file_input.rb} +33 -15
  17. data/lib/orb/internal/type/hash_of.rb +11 -0
  18. data/lib/orb/internal/type/request_parameters.rb +3 -10
  19. data/lib/orb/internal/type/union.rb +10 -1
  20. data/lib/orb/internal/type/unknown.rb +14 -11
  21. data/lib/orb/internal/util.rb +88 -64
  22. data/lib/orb/internal.rb +0 -1
  23. data/lib/orb/models/alert.rb +68 -71
  24. data/lib/orb/models/alert_create_for_customer_params.rb +20 -25
  25. data/lib/orb/models/alert_create_for_external_customer_params.rb +20 -25
  26. data/lib/orb/models/alert_create_for_subscription_params.rb +20 -25
  27. data/lib/orb/models/alert_disable_params.rb +5 -9
  28. data/lib/orb/models/alert_enable_params.rb +5 -9
  29. data/lib/orb/models/alert_list_params.rb +26 -36
  30. data/lib/orb/models/alert_retrieve_params.rb +3 -8
  31. data/lib/orb/models/alert_update_params.rb +14 -18
  32. data/lib/orb/models/amount_discount.rb +14 -14
  33. data/lib/orb/models/billable_metric.rb +23 -20
  34. data/lib/orb/models/billing_cycle_relative_date.rb +2 -5
  35. data/lib/orb/models/coupon.rb +28 -21
  36. data/lib/orb/models/coupon_archive_params.rb +3 -8
  37. data/lib/orb/models/coupon_create_params.rb +29 -34
  38. data/lib/orb/models/coupon_fetch_params.rb +3 -8
  39. data/lib/orb/models/coupon_list_params.rb +17 -17
  40. data/lib/orb/models/coupons/subscription_list_params.rb +12 -15
  41. data/lib/orb/models/credit_note.rb +100 -166
  42. data/lib/orb/models/credit_note_create_params.rb +15 -23
  43. data/lib/orb/models/credit_note_fetch_params.rb +3 -8
  44. data/lib/orb/models/credit_note_list_params.rb +20 -30
  45. data/lib/orb/models/customer.rb +224 -271
  46. data/lib/orb/models/customer_create_params.rb +216 -257
  47. data/lib/orb/models/customer_delete_params.rb +3 -8
  48. data/lib/orb/models/customer_fetch_by_external_id_params.rb +3 -8
  49. data/lib/orb/models/customer_fetch_params.rb +3 -8
  50. data/lib/orb/models/customer_list_params.rb +20 -30
  51. data/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb +3 -8
  52. data/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb +3 -8
  53. data/lib/orb/models/customer_update_by_external_id_params.rb +212 -257
  54. data/lib/orb/models/customer_update_params.rb +212 -255
  55. data/lib/orb/models/customers/balance_transaction_create_params.rb +11 -16
  56. data/lib/orb/models/customers/balance_transaction_create_response.rb +33 -51
  57. data/lib/orb/models/customers/balance_transaction_list_params.rb +20 -30
  58. data/lib/orb/models/customers/balance_transaction_list_response.rb +33 -51
  59. data/lib/orb/models/customers/cost_list_by_external_id_params.rb +17 -17
  60. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +23 -27
  61. data/lib/orb/models/customers/cost_list_params.rb +17 -17
  62. data/lib/orb/models/customers/cost_list_response.rb +23 -27
  63. data/lib/orb/models/customers/credit_list_by_external_id_params.rb +18 -22
  64. data/lib/orb/models/customers/credit_list_by_external_id_response.rb +10 -17
  65. data/lib/orb/models/customers/credit_list_params.rb +18 -22
  66. data/lib/orb/models/customers/credit_list_response.rb +10 -17
  67. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +64 -66
  68. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +384 -491
  69. data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +63 -66
  70. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +384 -498
  71. data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +33 -48
  72. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +384 -494
  73. data/lib/orb/models/customers/credits/ledger_list_params.rb +32 -48
  74. data/lib/orb/models/customers/credits/ledger_list_response.rb +383 -501
  75. data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +47 -50
  76. data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +43 -46
  77. data/lib/orb/models/customers/credits/top_up_create_params.rb +46 -50
  78. data/lib/orb/models/customers/credits/top_up_create_response.rb +42 -46
  79. data/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb +4 -9
  80. data/lib/orb/models/customers/credits/top_up_delete_params.rb +4 -9
  81. data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +12 -15
  82. data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +43 -46
  83. data/lib/orb/models/customers/credits/top_up_list_params.rb +12 -15
  84. data/lib/orb/models/customers/credits/top_up_list_response.rb +42 -46
  85. data/lib/orb/models/dimensional_price_group.rb +21 -15
  86. data/lib/orb/models/dimensional_price_group_create_params.rb +17 -23
  87. data/lib/orb/models/dimensional_price_group_list_params.rb +12 -15
  88. data/lib/orb/models/dimensional_price_group_retrieve_params.rb +3 -8
  89. data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb +3 -8
  90. data/lib/orb/models/dimensional_price_groups.rb +3 -7
  91. data/lib/orb/models/discount.rb +2 -3
  92. data/lib/orb/models/evaluate_price_group.rb +8 -11
  93. data/lib/orb/models/event_deprecate_params.rb +3 -8
  94. data/lib/orb/models/event_deprecate_response.rb +2 -6
  95. data/lib/orb/models/event_ingest_params.rb +33 -27
  96. data/lib/orb/models/event_ingest_response.rb +23 -24
  97. data/lib/orb/models/event_search_params.rb +15 -11
  98. data/lib/orb/models/event_search_response.rb +27 -22
  99. data/lib/orb/models/event_update_params.rb +19 -13
  100. data/lib/orb/models/event_update_response.rb +2 -6
  101. data/lib/orb/models/events/backfill_close_params.rb +3 -8
  102. data/lib/orb/models/events/backfill_close_response.rb +34 -39
  103. data/lib/orb/models/events/backfill_create_params.rb +28 -32
  104. data/lib/orb/models/events/backfill_create_response.rb +34 -39
  105. data/lib/orb/models/events/backfill_fetch_params.rb +3 -8
  106. data/lib/orb/models/events/backfill_fetch_response.rb +34 -39
  107. data/lib/orb/models/events/backfill_list_params.rb +12 -15
  108. data/lib/orb/models/events/backfill_list_response.rb +34 -39
  109. data/lib/orb/models/events/backfill_revert_params.rb +3 -8
  110. data/lib/orb/models/events/backfill_revert_response.rb +34 -39
  111. data/lib/orb/models/events/event_volumes.rb +11 -17
  112. data/lib/orb/models/events/volume_list_params.rb +19 -22
  113. data/lib/orb/models/invoice.rb +619 -681
  114. data/lib/orb/models/invoice_create_params.rb +52 -61
  115. data/lib/orb/models/invoice_fetch_params.rb +3 -8
  116. data/lib/orb/models/invoice_fetch_upcoming_params.rb +4 -9
  117. data/lib/orb/models/invoice_fetch_upcoming_response.rb +618 -669
  118. data/lib/orb/models/invoice_issue_params.rb +10 -14
  119. data/lib/orb/models/invoice_level_discount.rb +2 -3
  120. data/lib/orb/models/invoice_line_item_create_params.rb +19 -14
  121. data/lib/orb/models/invoice_line_item_create_response.rb +281 -306
  122. data/lib/orb/models/invoice_list_params.rb +51 -66
  123. data/lib/orb/models/invoice_mark_paid_params.rb +9 -11
  124. data/lib/orb/models/invoice_pay_params.rb +3 -8
  125. data/lib/orb/models/invoice_update_params.rb +9 -9
  126. data/lib/orb/models/invoice_void_params.rb +3 -8
  127. data/lib/orb/models/item.rb +14 -25
  128. data/lib/orb/models/item_create_params.rb +5 -9
  129. data/lib/orb/models/item_fetch_params.rb +3 -8
  130. data/lib/orb/models/item_list_params.rb +12 -15
  131. data/lib/orb/models/item_update_params.rb +10 -22
  132. data/lib/orb/models/metric_create_params.rb +17 -13
  133. data/lib/orb/models/metric_fetch_params.rb +3 -8
  134. data/lib/orb/models/metric_list_params.rb +20 -30
  135. data/lib/orb/models/metric_update_params.rb +9 -9
  136. data/lib/orb/models/pagination_metadata.rb +3 -7
  137. data/lib/orb/models/percentage_discount.rb +15 -14
  138. data/lib/orb/models/plan.rb +259 -291
  139. data/lib/orb/models/plan_create_params.rb +2070 -2466
  140. data/lib/orb/models/plan_fetch_params.rb +3 -8
  141. data/lib/orb/models/plan_list_params.rb +25 -42
  142. data/lib/orb/models/plan_update_params.rb +12 -10
  143. data/lib/orb/models/plans/external_plan_id_fetch_params.rb +3 -8
  144. data/lib/orb/models/plans/external_plan_id_update_params.rb +12 -10
  145. data/lib/orb/models/price.rb +3842 -5005
  146. data/lib/orb/models/price_create_params.rb +203 -244
  147. data/lib/orb/models/price_evaluate_params.rb +21 -30
  148. data/lib/orb/models/price_evaluate_response.rb +2 -6
  149. data/lib/orb/models/price_fetch_params.rb +3 -8
  150. data/lib/orb/models/price_list_params.rb +12 -15
  151. data/lib/orb/models/price_update_params.rb +9 -9
  152. data/lib/orb/models/prices/external_price_id_fetch_params.rb +3 -8
  153. data/lib/orb/models/prices/external_price_id_update_params.rb +9 -9
  154. data/lib/orb/models/subscription.rb +360 -405
  155. data/lib/orb/models/subscription_cancel_params.rb +16 -16
  156. data/lib/orb/models/subscription_cancel_response.rb +358 -399
  157. data/lib/orb/models/subscription_change_apply_params.rb +7 -10
  158. data/lib/orb/models/subscription_change_apply_response.rb +384 -418
  159. data/lib/orb/models/subscription_change_cancel_params.rb +3 -8
  160. data/lib/orb/models/subscription_change_cancel_response.rb +384 -417
  161. data/lib/orb/models/subscription_change_retrieve_params.rb +3 -8
  162. data/lib/orb/models/subscription_change_retrieve_response.rb +385 -417
  163. data/lib/orb/models/subscription_create_params.rb +4735 -5417
  164. data/lib/orb/models/subscription_create_response.rb +358 -399
  165. data/lib/orb/models/subscription_fetch_costs_params.rb +17 -17
  166. data/lib/orb/models/subscription_fetch_costs_response.rb +23 -27
  167. data/lib/orb/models/subscription_fetch_params.rb +3 -8
  168. data/lib/orb/models/subscription_fetch_schedule_params.rb +20 -30
  169. data/lib/orb/models/subscription_fetch_schedule_response.rb +15 -17
  170. data/lib/orb/models/subscription_fetch_usage_params.rb +32 -43
  171. data/lib/orb/models/subscription_list_params.rb +28 -41
  172. data/lib/orb/models/subscription_price_intervals_params.rb +2560 -3040
  173. data/lib/orb/models/subscription_price_intervals_response.rb +361 -399
  174. data/lib/orb/models/subscription_schedule_plan_change_params.rb +4728 -5411
  175. data/lib/orb/models/subscription_schedule_plan_change_response.rb +361 -398
  176. data/lib/orb/models/subscription_trigger_phase_params.rb +12 -10
  177. data/lib/orb/models/subscription_trigger_phase_response.rb +360 -399
  178. data/lib/orb/models/subscription_unschedule_cancellation_params.rb +3 -8
  179. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +361 -398
  180. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb +5 -9
  181. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +362 -396
  182. data/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb +3 -8
  183. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +362 -396
  184. data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +22 -33
  185. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +361 -398
  186. data/lib/orb/models/subscription_update_params.rb +21 -23
  187. data/lib/orb/models/subscription_update_trial_params.rb +15 -18
  188. data/lib/orb/models/subscription_update_trial_response.rb +360 -399
  189. data/lib/orb/models/subscription_usage.rb +37 -80
  190. data/lib/orb/models/subscriptions.rb +3 -7
  191. data/lib/orb/models/top_level_ping_params.rb +3 -8
  192. data/lib/orb/models/top_level_ping_response.rb +2 -6
  193. data/lib/orb/models/trial_discount.rb +16 -24
  194. data/lib/orb/models/usage_discount.rb +15 -14
  195. data/lib/orb/models.rb +220 -0
  196. data/lib/orb/request_options.rb +4 -6
  197. data/lib/orb/resources/alerts.rb +48 -17
  198. data/lib/orb/resources/coupons/subscriptions.rb +9 -2
  199. data/lib/orb/resources/coupons.rb +26 -8
  200. data/lib/orb/resources/credit_notes.rb +17 -4
  201. data/lib/orb/resources/customers/balance_transactions.rb +18 -3
  202. data/lib/orb/resources/customers/costs.rb +26 -8
  203. data/lib/orb/resources/customers/credits/ledger.rb +112 -32
  204. data/lib/orb/resources/customers/credits/top_ups.rb +67 -20
  205. data/lib/orb/resources/customers/credits.rb +28 -8
  206. data/lib/orb/resources/customers.rb +138 -39
  207. data/lib/orb/resources/dimensional_price_groups.rb +19 -4
  208. data/lib/orb/resources/events/backfills.rb +32 -9
  209. data/lib/orb/resources/events/volume.rb +14 -4
  210. data/lib/orb/resources/events.rb +40 -11
  211. data/lib/orb/resources/invoice_line_items.rb +16 -6
  212. data/lib/orb/resources/invoices.rb +77 -17
  213. data/lib/orb/resources/items.rb +10 -3
  214. data/lib/orb/resources/metrics.rb +33 -8
  215. data/lib/orb/resources/plans/external_plan_id.rb +10 -2
  216. data/lib/orb/resources/plans.rb +47 -11
  217. data/lib/orb/resources/prices/external_price_id.rb +9 -3
  218. data/lib/orb/resources/prices.rb +101 -26
  219. data/lib/orb/resources/subscription_changes.rb +5 -2
  220. data/lib/orb/resources/subscriptions.rb +292 -78
  221. data/lib/orb/version.rb +1 -1
  222. data/lib/orb.rb +2 -10
  223. data/rbi/{lib/orb → orb}/client.rbi +4 -4
  224. data/rbi/{lib/orb → orb}/errors.rbi +1 -1
  225. data/rbi/orb/file_part.rbi +34 -0
  226. data/rbi/{lib/orb → orb}/internal/transport/base_client.rbi +19 -5
  227. data/rbi/{lib/orb → orb}/internal/type/array_of.rbi +3 -0
  228. data/rbi/{lib/orb → orb}/internal/type/base_model.rbi +7 -1
  229. data/rbi/{lib/orb → orb}/internal/type/base_page.rbi +2 -0
  230. data/rbi/{lib/orb → orb}/internal/type/enum.rbi +3 -6
  231. data/rbi/{lib/orb/internal/type/io_like.rbi → orb/internal/type/file_input.rbi} +5 -2
  232. data/rbi/{lib/orb → orb}/internal/type/hash_of.rbi +3 -0
  233. data/rbi/{lib/orb → orb}/internal/type/request_parameters.rbi +1 -1
  234. data/rbi/{lib/orb → orb}/internal/type/union.rbi +3 -0
  235. data/rbi/{lib/orb → orb}/internal/util.rbi +28 -19
  236. data/rbi/{lib/orb → orb}/internal.rbi +0 -1
  237. data/rbi/{lib/orb → orb}/models/alert.rbi +28 -8
  238. data/rbi/{lib/orb → orb}/models/alert_create_for_customer_params.rbi +16 -6
  239. data/rbi/{lib/orb → orb}/models/alert_create_for_external_customer_params.rbi +16 -6
  240. data/rbi/{lib/orb → orb}/models/alert_create_for_subscription_params.rbi +16 -6
  241. data/rbi/{lib/orb → orb}/models/alert_disable_params.rbi +5 -2
  242. data/rbi/{lib/orb → orb}/models/alert_enable_params.rbi +5 -2
  243. data/rbi/{lib/orb → orb}/models/alert_list_params.rbi +6 -0
  244. data/rbi/{lib/orb → orb}/models/alert_update_params.rbi +11 -4
  245. data/rbi/{lib/orb → orb}/models/amount_discount.rbi +10 -4
  246. data/rbi/{lib/orb → orb}/models/billable_metric.rbi +16 -3
  247. data/rbi/{lib/orb → orb}/models/billing_cycle_relative_date.rbi +1 -1
  248. data/rbi/{lib/orb → orb}/models/coupon.rbi +10 -3
  249. data/rbi/{lib/orb → orb}/models/coupon_create_params.rbi +15 -12
  250. data/rbi/{lib/orb → orb}/models/coupon_list_params.rbi +13 -3
  251. data/rbi/{lib/orb → orb}/models/coupons/subscription_list_params.rbi +8 -2
  252. data/rbi/{lib/orb → orb}/models/credit_note.rbi +44 -12
  253. data/rbi/{lib/orb → orb}/models/credit_note_create_params.rbi +15 -6
  254. data/rbi/{lib/orb → orb}/models/credit_note_list_params.rbi +3 -0
  255. data/rbi/{lib/orb → orb}/models/customer.rbi +130 -11
  256. data/rbi/{lib/orb → orb}/models/customer_create_params.rbi +151 -17
  257. data/rbi/{lib/orb → orb}/models/customer_list_params.rbi +3 -0
  258. data/rbi/{lib/orb → orb}/models/customer_update_by_external_id_params.rbi +149 -17
  259. data/rbi/{lib/orb → orb}/models/customer_update_params.rbi +149 -17
  260. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_create_params.rbi +8 -4
  261. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_create_response.rbi +18 -8
  262. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_list_params.rbi +3 -0
  263. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_list_response.rbi +18 -8
  264. data/rbi/{lib/orb → orb}/models/customers/cost_list_by_external_id_params.rbi +9 -5
  265. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +225 -0
  266. data/rbi/{lib/orb → orb}/models/customers/cost_list_params.rbi +9 -5
  267. data/rbi/orb/models/customers/cost_list_response.rbi +223 -0
  268. data/rbi/{lib/orb → orb}/models/customers/credit_list_by_external_id_params.rbi +13 -3
  269. data/rbi/{lib/orb → orb}/models/customers/credit_list_by_external_id_response.rbi +1 -2
  270. data/rbi/{lib/orb → orb}/models/customers/credit_list_params.rbi +13 -3
  271. data/rbi/{lib/orb → orb}/models/customers/credit_list_response.rbi +1 -2
  272. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +40 -18
  273. data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_response.rbi → orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi} +157 -170
  274. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_create_entry_params.rbi +40 -6
  275. data/rbi/{lib/orb/models/customers/credits/ledger_list_response.rbi → orb/models/customers/credits/ledger_create_entry_response.rbi} +149 -196
  276. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_by_external_id_params.rbi +6 -16
  277. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_by_external_id_response.rbi +148 -229
  278. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_params.rbi +6 -4
  279. data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi → orb/models/customers/credits/ledger_list_response.rbi} +149 -343
  280. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_by_external_id_params.rbi +27 -10
  281. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_by_external_id_response.rbi +25 -10
  282. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_params.rbi +27 -4
  283. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_response.rbi +25 -10
  284. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_params.rbi +8 -2
  285. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_response.rbi +25 -10
  286. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_params.rbi +8 -2
  287. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_response.rbi +25 -4
  288. data/rbi/{lib/orb → orb}/models/dimensional_price_group.rbi +11 -3
  289. data/rbi/{lib/orb → orb}/models/dimensional_price_group_create_params.rbi +4 -0
  290. data/rbi/{lib/orb → orb}/models/dimensional_price_group_list_params.rbi +8 -2
  291. data/rbi/{lib/orb → orb}/models/evaluate_price_group.rbi +8 -2
  292. data/rbi/{lib/orb → orb}/models/event_deprecate_response.rbi +4 -2
  293. data/rbi/{lib/orb → orb}/models/event_ingest_params.rbi +22 -5
  294. data/rbi/{lib/orb → orb}/models/event_ingest_response.rbi +15 -4
  295. data/rbi/{lib/orb → orb}/models/event_search_params.rbi +14 -2
  296. data/rbi/{lib/orb → orb}/models/event_search_response.rbi +14 -3
  297. data/rbi/{lib/orb → orb}/models/event_update_params.rbi +10 -3
  298. data/rbi/{lib/orb → orb}/models/event_update_response.rbi +4 -2
  299. data/rbi/{lib/orb → orb}/models/events/backfill_close_response.rbi +14 -2
  300. data/rbi/{lib/orb → orb}/models/events/backfill_create_params.rbi +18 -0
  301. data/rbi/{lib/orb → orb}/models/events/backfill_create_response.rbi +14 -2
  302. data/rbi/{lib/orb → orb}/models/events/backfill_fetch_response.rbi +14 -2
  303. data/rbi/{lib/orb → orb}/models/events/backfill_list_params.rbi +8 -2
  304. data/rbi/{lib/orb → orb}/models/events/backfill_list_response.rbi +14 -2
  305. data/rbi/{lib/orb → orb}/models/events/backfill_revert_response.rbi +14 -2
  306. data/rbi/{lib/orb → orb}/models/events/event_volumes.rbi +8 -4
  307. data/rbi/{lib/orb → orb}/models/events/volume_list_params.rbi +18 -2
  308. data/rbi/{lib/orb → orb}/models/invoice.rbi +513 -202
  309. data/rbi/{lib/orb → orb}/models/invoice_create_params.rbi +38 -6
  310. data/rbi/{lib/orb → orb}/models/invoice_fetch_upcoming_response.rbi +513 -216
  311. data/rbi/{lib/orb → orb}/models/invoice_issue_params.rbi +9 -2
  312. data/rbi/{lib/orb → orb}/models/invoice_line_item_create_params.rbi +16 -2
  313. data/rbi/{lib/orb → orb}/models/invoice_line_item_create_response.rbi +279 -182
  314. data/rbi/{lib/orb → orb}/models/invoice_list_params.rbi +9 -2
  315. data/rbi/{lib/orb → orb}/models/invoice_mark_paid_params.rbi +9 -2
  316. data/rbi/{lib/orb → orb}/models/invoice_update_params.rbi +7 -2
  317. data/rbi/{lib/orb → orb}/models/item.rbi +1 -2
  318. data/rbi/{lib/orb → orb}/models/item_create_params.rbi +5 -2
  319. data/rbi/{lib/orb → orb}/models/item_list_params.rbi +8 -2
  320. data/rbi/{lib/orb → orb}/models/item_update_params.rbi +1 -8
  321. data/rbi/{lib/orb → orb}/models/metric_create_params.rbi +15 -2
  322. data/rbi/{lib/orb → orb}/models/metric_list_params.rbi +3 -0
  323. data/rbi/{lib/orb → orb}/models/metric_update_params.rbi +7 -2
  324. data/rbi/{lib/orb → orb}/models/percentage_discount.rbi +11 -4
  325. data/rbi/{lib/orb → orb}/models/plan.rbi +207 -120
  326. data/rbi/{lib/orb → orb}/models/plan_create_params.rbi +1971 -2414
  327. data/rbi/{lib/orb → orb}/models/plan_list_params.rbi +5 -1
  328. data/rbi/{lib/orb → orb}/models/plan_update_params.rbi +11 -2
  329. data/rbi/{lib/orb → orb}/models/plans/external_plan_id_update_params.rbi +11 -2
  330. data/rbi/{lib/orb → orb}/models/price.rbi +2594 -2957
  331. data/rbi/{lib/orb → orb}/models/price_create_params.rbi +137 -53
  332. data/rbi/{lib/orb → orb}/models/price_evaluate_params.rbi +10 -0
  333. data/rbi/{lib/orb → orb}/models/price_list_params.rbi +8 -2
  334. data/rbi/{lib/orb → orb}/models/price_update_params.rbi +7 -2
  335. data/rbi/{lib/orb → orb}/models/prices/external_price_id_update_params.rbi +7 -2
  336. data/rbi/{lib/orb → orb}/models/subscription.rbi +292 -129
  337. data/rbi/{lib/orb → orb}/models/subscription_cancel_params.rbi +8 -5
  338. data/rbi/{lib/orb → orb}/models/subscription_cancel_response.rbi +305 -132
  339. data/rbi/{lib/orb → orb}/models/subscription_change_apply_params.rbi +7 -2
  340. data/rbi/{lib/orb → orb}/models/subscription_change_apply_response.rbi +317 -136
  341. data/rbi/{lib/orb → orb}/models/subscription_change_cancel_response.rbi +317 -136
  342. data/rbi/{lib/orb → orb}/models/subscription_change_retrieve_response.rbi +317 -136
  343. data/rbi/{lib/orb → orb}/models/subscription_create_params.rbi +4271 -4270
  344. data/rbi/{lib/orb → orb}/models/subscription_create_response.rbi +305 -132
  345. data/rbi/{lib/orb → orb}/models/subscription_fetch_costs_params.rbi +9 -5
  346. data/rbi/orb/models/subscription_fetch_costs_response.rbi +221 -0
  347. data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_params.rbi +3 -0
  348. data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_response.rbi +8 -2
  349. data/rbi/{lib/orb → orb}/models/subscription_fetch_usage_params.rbi +13 -4
  350. data/rbi/{lib/orb → orb}/models/subscription_list_params.rbi +4 -2
  351. data/rbi/{lib/orb → orb}/models/subscription_price_intervals_params.rbi +2354 -2317
  352. data/rbi/{lib/orb → orb}/models/subscription_price_intervals_response.rbi +305 -132
  353. data/rbi/{lib/orb → orb}/models/subscription_schedule_plan_change_params.rbi +4280 -3758
  354. data/rbi/{lib/orb → orb}/models/subscription_schedule_plan_change_response.rbi +305 -132
  355. data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_params.rbi +10 -2
  356. data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_response.rbi +305 -132
  357. data/rbi/{lib/orb → orb}/models/subscription_unschedule_cancellation_response.rbi +305 -132
  358. data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +5 -2
  359. data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +305 -138
  360. data/rbi/{lib/orb → orb}/models/subscription_unschedule_pending_plan_changes_response.rbi +305 -132
  361. data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_params.rbi +11 -2
  362. data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_response.rbi +305 -132
  363. data/rbi/{lib/orb → orb}/models/subscription_update_params.rbi +15 -0
  364. data/rbi/{lib/orb → orb}/models/subscription_update_trial_params.rbi +11 -5
  365. data/rbi/{lib/orb → orb}/models/subscription_update_trial_response.rbi +305 -132
  366. data/rbi/{lib/orb → orb}/models/subscription_usage.rbi +2 -16
  367. data/rbi/{lib/orb → orb}/models/trial_discount.rbi +5 -1
  368. data/rbi/{lib/orb → orb}/models/usage_discount.rbi +11 -3
  369. data/rbi/orb/models.rbi +220 -0
  370. data/rbi/{lib/orb → orb}/request_options.rbi +2 -0
  371. data/rbi/{lib/orb → orb}/resources/alerts.rbi +8 -14
  372. data/rbi/{lib/orb → orb}/resources/coupons/subscriptions.rbi +1 -1
  373. data/rbi/{lib/orb → orb}/resources/coupons.rbi +6 -18
  374. data/rbi/{lib/orb → orb}/resources/credit_notes.rbi +3 -9
  375. data/rbi/{lib/orb → orb}/resources/customers/balance_transactions.rbi +2 -2
  376. data/rbi/{lib/orb → orb}/resources/customers/costs.rbi +2 -2
  377. data/rbi/{lib/orb → orb}/resources/customers/credits/ledger.rbi +32 -32
  378. data/rbi/{lib/orb → orb}/resources/customers/credits/top_ups.rbi +6 -18
  379. data/rbi/{lib/orb → orb}/resources/customers/credits.rbi +2 -2
  380. data/rbi/{lib/orb → orb}/resources/customers.rbi +15 -45
  381. data/rbi/{lib/orb → orb}/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +1 -4
  382. data/rbi/{lib/orb → orb}/resources/dimensional_price_groups.rbi +3 -10
  383. data/rbi/{lib/orb → orb}/resources/events/backfills.rbi +5 -18
  384. data/rbi/{lib/orb → orb}/resources/events/volume.rbi +1 -1
  385. data/rbi/{lib/orb → orb}/resources/events.rbi +4 -10
  386. data/rbi/{lib/orb → orb}/resources/invoice_line_items.rbi +1 -1
  387. data/rbi/{lib/orb → orb}/resources/invoices.rbi +9 -34
  388. data/rbi/{lib/orb → orb}/resources/items.rbi +4 -17
  389. data/rbi/{lib/orb → orb}/resources/metrics.rbi +4 -10
  390. data/rbi/{lib/orb → orb}/resources/plans/external_plan_id.rbi +2 -8
  391. data/rbi/{lib/orb → orb}/resources/plans.rbi +29 -35
  392. data/rbi/orb/resources/prices/external_price_id.rbi +103 -0
  393. data/rbi/{lib/orb → orb}/resources/prices.rbi +117 -124
  394. data/rbi/{lib/orb → orb}/resources/subscription_changes.rbi +3 -9
  395. data/rbi/{lib/orb → orb}/resources/subscriptions.rbi +16 -32
  396. data/rbi/{lib/orb → orb}/resources/top_level.rbi +1 -4
  397. data/sig/orb/file_part.rbs +21 -0
  398. data/sig/orb/internal/transport/base_client.rbs +9 -3
  399. data/sig/orb/internal/type/array_of.rbs +2 -0
  400. data/sig/orb/internal/type/base_model.rbs +4 -0
  401. data/sig/orb/internal/type/enum.rbs +2 -2
  402. data/sig/orb/internal/type/{io_like.rbs → file_input.rbs} +1 -1
  403. data/sig/orb/internal/type/hash_of.rbs +2 -0
  404. data/sig/orb/internal/type/union.rbs +2 -0
  405. data/sig/orb/internal/util.rbs +16 -12
  406. data/sig/orb/models/coupon_create_params.rbs +9 -10
  407. data/sig/orb/models/customer_create_params.rbs +9 -10
  408. data/sig/orb/models/customer_update_by_external_id_params.rbs +9 -10
  409. data/sig/orb/models/customer_update_params.rbs +9 -10
  410. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +113 -113
  411. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +113 -113
  412. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +113 -113
  413. data/sig/orb/models/customers/credits/ledger_list_response.rbs +113 -113
  414. data/sig/orb/models/invoice.rbs +54 -54
  415. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +54 -54
  416. data/sig/orb/models/invoice_line_item_create_response.rbs +54 -54
  417. data/sig/orb/models/plan.rbs +21 -21
  418. data/sig/orb/models/plan_create_params.rbs +653 -653
  419. data/sig/orb/models/price.rbs +1517 -1521
  420. data/sig/orb/models/subscription.rbs +34 -34
  421. data/sig/orb/models/subscription_cancel_response.rbs +34 -34
  422. data/sig/orb/models/subscription_change_apply_response.rbs +34 -34
  423. data/sig/orb/models/subscription_change_cancel_response.rbs +34 -34
  424. data/sig/orb/models/subscription_change_retrieve_response.rbs +34 -34
  425. data/sig/orb/models/subscription_create_params.rbs +1348 -1348
  426. data/sig/orb/models/subscription_create_response.rbs +34 -34
  427. data/sig/orb/models/subscription_price_intervals_params.rbs +767 -769
  428. data/sig/orb/models/subscription_price_intervals_response.rbs +34 -34
  429. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1348 -1348
  430. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +34 -34
  431. data/sig/orb/models/subscription_trigger_phase_response.rbs +34 -34
  432. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +34 -34
  433. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +34 -34
  434. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +34 -34
  435. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +34 -34
  436. data/sig/orb/models/subscription_update_trial_response.rbs +34 -34
  437. data/sig/orb/models.rbs +215 -0
  438. metadata +230 -224
  439. data/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +0 -208
  440. data/rbi/lib/orb/models/customers/cost_list_response.rbi +0 -206
  441. data/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +0 -204
  442. data/rbi/lib/orb/resources/prices/external_price_id.rbi +0 -106
  443. /data/rbi/{lib/orb → orb}/internal/page.rbi +0 -0
  444. /data/rbi/{lib/orb → orb}/internal/transport/pooled_net_requester.rbi +0 -0
  445. /data/rbi/{lib/orb → orb}/internal/type/boolean.rbi +0 -0
  446. /data/rbi/{lib/orb → orb}/internal/type/converter.rbi +0 -0
  447. /data/rbi/{lib/orb → orb}/internal/type/unknown.rbi +0 -0
  448. /data/rbi/{lib/orb → orb}/models/alert_retrieve_params.rbi +0 -0
  449. /data/rbi/{lib/orb → orb}/models/coupon_archive_params.rbi +0 -0
  450. /data/rbi/{lib/orb → orb}/models/coupon_fetch_params.rbi +0 -0
  451. /data/rbi/{lib/orb → orb}/models/credit_note_fetch_params.rbi +0 -0
  452. /data/rbi/{lib/orb → orb}/models/customer_delete_params.rbi +0 -0
  453. /data/rbi/{lib/orb → orb}/models/customer_fetch_by_external_id_params.rbi +0 -0
  454. /data/rbi/{lib/orb → orb}/models/customer_fetch_params.rbi +0 -0
  455. /data/rbi/{lib/orb → orb}/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +0 -0
  456. /data/rbi/{lib/orb → orb}/models/customer_sync_payment_methods_from_gateway_params.rbi +0 -0
  457. /data/rbi/{lib/orb → orb}/models/customers/credits/top_up_delete_by_external_id_params.rbi +0 -0
  458. /data/rbi/{lib/orb → orb}/models/customers/credits/top_up_delete_params.rbi +0 -0
  459. /data/rbi/{lib/orb → orb}/models/dimensional_price_group_retrieve_params.rbi +0 -0
  460. /data/rbi/{lib/orb → orb}/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +0 -0
  461. /data/rbi/{lib/orb → orb}/models/dimensional_price_groups.rbi +0 -0
  462. /data/rbi/{lib/orb → orb}/models/discount.rbi +0 -0
  463. /data/rbi/{lib/orb → orb}/models/event_deprecate_params.rbi +0 -0
  464. /data/rbi/{lib/orb → orb}/models/events/backfill_close_params.rbi +0 -0
  465. /data/rbi/{lib/orb → orb}/models/events/backfill_fetch_params.rbi +0 -0
  466. /data/rbi/{lib/orb → orb}/models/events/backfill_revert_params.rbi +0 -0
  467. /data/rbi/{lib/orb → orb}/models/invoice_fetch_params.rbi +0 -0
  468. /data/rbi/{lib/orb → orb}/models/invoice_fetch_upcoming_params.rbi +0 -0
  469. /data/rbi/{lib/orb → orb}/models/invoice_level_discount.rbi +0 -0
  470. /data/rbi/{lib/orb → orb}/models/invoice_pay_params.rbi +0 -0
  471. /data/rbi/{lib/orb → orb}/models/invoice_void_params.rbi +0 -0
  472. /data/rbi/{lib/orb → orb}/models/item_fetch_params.rbi +0 -0
  473. /data/rbi/{lib/orb → orb}/models/metric_fetch_params.rbi +0 -0
  474. /data/rbi/{lib/orb → orb}/models/pagination_metadata.rbi +0 -0
  475. /data/rbi/{lib/orb → orb}/models/plan_fetch_params.rbi +0 -0
  476. /data/rbi/{lib/orb → orb}/models/plans/external_plan_id_fetch_params.rbi +0 -0
  477. /data/rbi/{lib/orb → orb}/models/price_evaluate_response.rbi +0 -0
  478. /data/rbi/{lib/orb → orb}/models/price_fetch_params.rbi +0 -0
  479. /data/rbi/{lib/orb → orb}/models/prices/external_price_id_fetch_params.rbi +0 -0
  480. /data/rbi/{lib/orb → orb}/models/subscription_change_cancel_params.rbi +0 -0
  481. /data/rbi/{lib/orb → orb}/models/subscription_change_retrieve_params.rbi +0 -0
  482. /data/rbi/{lib/orb → orb}/models/subscription_fetch_params.rbi +0 -0
  483. /data/rbi/{lib/orb → orb}/models/subscription_unschedule_cancellation_params.rbi +0 -0
  484. /data/rbi/{lib/orb → orb}/models/subscription_unschedule_pending_plan_changes_params.rbi +0 -0
  485. /data/rbi/{lib/orb → orb}/models/subscriptions.rbi +0 -0
  486. /data/rbi/{lib/orb → orb}/models/top_level_ping_params.rbi +0 -0
  487. /data/rbi/{lib/orb → orb}/models/top_level_ping_response.rbi +0 -0
  488. /data/rbi/{lib/orb → orb}/version.rbi +0 -0
@@ -6,10 +6,10 @@ module Orb
6
6
  module Credits
7
7
  # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid
8
8
  # credits within Orb.
9
- module LedgerListResponse
9
+ module LedgerCreateEntryResponse
10
10
  extend Orb::Internal::Type::Union
11
11
 
12
- class IncrementLedgerEntry < Orb::Internal::Type::BaseModel
12
+ class Increment < Orb::Internal::Type::BaseModel
13
13
  sig { returns(String) }
14
14
  attr_accessor :id
15
15
 
@@ -19,13 +19,13 @@ module Orb
19
19
  sig { returns(Time) }
20
20
  attr_accessor :created_at
21
21
 
22
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) }
22
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock) }
23
23
  attr_reader :credit_block
24
24
 
25
25
  sig do
26
26
  params(
27
27
  credit_block: T.any(
28
- Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock,
28
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock,
29
29
  Orb::Internal::AnyHash
30
30
  )
31
31
  )
@@ -36,13 +36,13 @@ module Orb
36
36
  sig { returns(String) }
37
37
  attr_accessor :currency
38
38
 
39
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) }
39
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer) }
40
40
  attr_reader :customer
41
41
 
42
42
  sig do
43
43
  params(
44
44
  customer: T.any(
45
- Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer,
45
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer,
46
46
  Orb::Internal::AnyHash
47
47
  )
48
48
  )
@@ -56,11 +56,7 @@ module Orb
56
56
  sig { returns(Float) }
57
57
  attr_accessor :ending_balance
58
58
 
59
- sig do
60
- returns(
61
- Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol
62
- )
63
- end
59
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::TaggedSymbol) }
64
60
  attr_accessor :entry_status
65
61
 
66
62
  sig { returns(Symbol) }
@@ -85,17 +81,17 @@ module Orb
85
81
  amount: Float,
86
82
  created_at: Time,
87
83
  credit_block: T.any(
88
- Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock,
84
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock,
89
85
  Orb::Internal::AnyHash
90
86
  ),
91
87
  currency: String,
92
88
  customer: T.any(
93
- Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer,
89
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer,
94
90
  Orb::Internal::AnyHash
95
91
  ),
96
92
  description: T.nilable(String),
97
93
  ending_balance: Float,
98
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::OrSymbol,
94
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::OrSymbol,
99
95
  ledger_sequence_number: Integer,
100
96
  metadata: T::Hash[Symbol, String],
101
97
  starting_balance: Float,
@@ -114,6 +110,10 @@ module Orb
114
110
  ending_balance:,
115
111
  entry_status:,
116
112
  ledger_sequence_number:,
113
+ # User specified key-value pairs for the resource. If not present, this defaults
114
+ # to an empty dictionary. Individual keys can be removed by setting the value to
115
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
116
+ # `null`.
117
117
  metadata:,
118
118
  starting_balance:,
119
119
  entry_type: :increment
@@ -125,12 +125,12 @@ module Orb
125
125
  id: String,
126
126
  amount: Float,
127
127
  created_at: Time,
128
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock,
128
+ credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock,
129
129
  currency: String,
130
- customer: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer,
130
+ customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer,
131
131
  description: T.nilable(String),
132
132
  ending_balance: Float,
133
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol,
133
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::TaggedSymbol,
134
134
  entry_type: Symbol,
135
135
  ledger_sequence_number: Integer,
136
136
  metadata: T::Hash[Symbol, String],
@@ -186,38 +186,31 @@ module Orb
186
186
  extend Orb::Internal::Type::Enum
187
187
 
188
188
  TaggedSymbol =
189
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus) }
190
- OrSymbol =
191
- T.type_alias do
192
- T.any(
193
- Symbol,
194
- String,
195
- Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol
196
- )
197
- end
189
+ T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus) }
190
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
198
191
 
199
192
  COMMITTED =
200
193
  T.let(
201
194
  :committed,
202
- Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol
195
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::TaggedSymbol
203
196
  )
204
197
  PENDING =
205
198
  T.let(
206
199
  :pending,
207
- Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol
200
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::TaggedSymbol
208
201
  )
209
202
 
210
203
  sig do
211
204
  override
212
205
  .returns(
213
- T::Array[Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol]
206
+ T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::TaggedSymbol]
214
207
  )
215
208
  end
216
209
  def self.values; end
217
210
  end
218
211
  end
219
212
 
220
- class DecrementLedgerEntry < Orb::Internal::Type::BaseModel
213
+ class Decrement < Orb::Internal::Type::BaseModel
221
214
  sig { returns(String) }
222
215
  attr_accessor :id
223
216
 
@@ -227,13 +220,13 @@ module Orb
227
220
  sig { returns(Time) }
228
221
  attr_accessor :created_at
229
222
 
230
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) }
223
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock) }
231
224
  attr_reader :credit_block
232
225
 
233
226
  sig do
234
227
  params(
235
228
  credit_block: T.any(
236
- Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock,
229
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock,
237
230
  Orb::Internal::AnyHash
238
231
  )
239
232
  )
@@ -244,13 +237,13 @@ module Orb
244
237
  sig { returns(String) }
245
238
  attr_accessor :currency
246
239
 
247
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) }
240
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer) }
248
241
  attr_reader :customer
249
242
 
250
243
  sig do
251
244
  params(
252
245
  customer: T.any(
253
- Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer,
246
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer,
254
247
  Orb::Internal::AnyHash
255
248
  )
256
249
  )
@@ -264,11 +257,7 @@ module Orb
264
257
  sig { returns(Float) }
265
258
  attr_accessor :ending_balance
266
259
 
267
- sig do
268
- returns(
269
- Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol
270
- )
271
- end
260
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::TaggedSymbol) }
272
261
  attr_accessor :entry_status
273
262
 
274
263
  sig { returns(Symbol) }
@@ -302,17 +291,17 @@ module Orb
302
291
  amount: Float,
303
292
  created_at: Time,
304
293
  credit_block: T.any(
305
- Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock,
294
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock,
306
295
  Orb::Internal::AnyHash
307
296
  ),
308
297
  currency: String,
309
298
  customer: T.any(
310
- Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer,
299
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer,
311
300
  Orb::Internal::AnyHash
312
301
  ),
313
302
  description: T.nilable(String),
314
303
  ending_balance: Float,
315
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::OrSymbol,
304
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::OrSymbol,
316
305
  ledger_sequence_number: Integer,
317
306
  metadata: T::Hash[Symbol, String],
318
307
  starting_balance: Float,
@@ -334,6 +323,10 @@ module Orb
334
323
  ending_balance:,
335
324
  entry_status:,
336
325
  ledger_sequence_number:,
326
+ # User specified key-value pairs for the resource. If not present, this defaults
327
+ # to an empty dictionary. Individual keys can be removed by setting the value to
328
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
329
+ # `null`.
337
330
  metadata:,
338
331
  starting_balance:,
339
332
  event_id: nil,
@@ -348,12 +341,12 @@ module Orb
348
341
  id: String,
349
342
  amount: Float,
350
343
  created_at: Time,
351
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock,
344
+ credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock,
352
345
  currency: String,
353
- customer: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer,
346
+ customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer,
354
347
  description: T.nilable(String),
355
348
  ending_balance: Float,
356
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol,
349
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::TaggedSymbol,
357
350
  entry_type: Symbol,
358
351
  ledger_sequence_number: Integer,
359
352
  metadata: T::Hash[Symbol, String],
@@ -412,38 +405,31 @@ module Orb
412
405
  extend Orb::Internal::Type::Enum
413
406
 
414
407
  TaggedSymbol =
415
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus) }
416
- OrSymbol =
417
- T.type_alias do
418
- T.any(
419
- Symbol,
420
- String,
421
- Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol
422
- )
423
- end
408
+ T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus) }
409
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
424
410
 
425
411
  COMMITTED =
426
412
  T.let(
427
413
  :committed,
428
- Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol
414
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::TaggedSymbol
429
415
  )
430
416
  PENDING =
431
417
  T.let(
432
418
  :pending,
433
- Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol
419
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::TaggedSymbol
434
420
  )
435
421
 
436
422
  sig do
437
423
  override
438
424
  .returns(
439
- T::Array[Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol]
425
+ T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::TaggedSymbol]
440
426
  )
441
427
  end
442
428
  def self.values; end
443
429
  end
444
430
  end
445
431
 
446
- class ExpirationChangeLedgerEntry < Orb::Internal::Type::BaseModel
432
+ class ExpirationChange < Orb::Internal::Type::BaseModel
447
433
  sig { returns(String) }
448
434
  attr_accessor :id
449
435
 
@@ -453,13 +439,13 @@ module Orb
453
439
  sig { returns(Time) }
454
440
  attr_accessor :created_at
455
441
 
456
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) }
442
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock) }
457
443
  attr_reader :credit_block
458
444
 
459
445
  sig do
460
446
  params(
461
447
  credit_block: T.any(
462
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock,
448
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock,
463
449
  Orb::Internal::AnyHash
464
450
  )
465
451
  )
@@ -470,13 +456,13 @@ module Orb
470
456
  sig { returns(String) }
471
457
  attr_accessor :currency
472
458
 
473
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) }
459
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer) }
474
460
  attr_reader :customer
475
461
 
476
462
  sig do
477
463
  params(
478
464
  customer: T.any(
479
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer,
465
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer,
480
466
  Orb::Internal::AnyHash
481
467
  )
482
468
  )
@@ -492,7 +478,7 @@ module Orb
492
478
 
493
479
  sig do
494
480
  returns(
495
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol
481
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::TaggedSymbol
496
482
  )
497
483
  end
498
484
  attr_accessor :entry_status
@@ -522,17 +508,17 @@ module Orb
522
508
  amount: Float,
523
509
  created_at: Time,
524
510
  credit_block: T.any(
525
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock,
511
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock,
526
512
  Orb::Internal::AnyHash
527
513
  ),
528
514
  currency: String,
529
515
  customer: T.any(
530
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer,
516
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer,
531
517
  Orb::Internal::AnyHash
532
518
  ),
533
519
  description: T.nilable(String),
534
520
  ending_balance: Float,
535
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::OrSymbol,
521
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::OrSymbol,
536
522
  ledger_sequence_number: Integer,
537
523
  metadata: T::Hash[Symbol, String],
538
524
  new_block_expiry_date: T.nilable(Time),
@@ -552,6 +538,10 @@ module Orb
552
538
  ending_balance:,
553
539
  entry_status:,
554
540
  ledger_sequence_number:,
541
+ # User specified key-value pairs for the resource. If not present, this defaults
542
+ # to an empty dictionary. Individual keys can be removed by setting the value to
543
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
544
+ # `null`.
555
545
  metadata:,
556
546
  new_block_expiry_date:,
557
547
  starting_balance:,
@@ -564,12 +554,12 @@ module Orb
564
554
  id: String,
565
555
  amount: Float,
566
556
  created_at: Time,
567
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock,
557
+ credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock,
568
558
  currency: String,
569
- customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer,
559
+ customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer,
570
560
  description: T.nilable(String),
571
561
  ending_balance: Float,
572
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol,
562
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::TaggedSymbol,
573
563
  entry_type: Symbol,
574
564
  ledger_sequence_number: Integer,
575
565
  metadata: T::Hash[Symbol, String],
@@ -626,42 +616,31 @@ module Orb
626
616
  extend Orb::Internal::Type::Enum
627
617
 
628
618
  TaggedSymbol =
629
- T.type_alias do
630
- T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus)
631
- end
632
- OrSymbol =
633
- T.type_alias do
634
- T.any(
635
- Symbol,
636
- String,
637
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol
638
- )
639
- end
619
+ T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus) }
620
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
640
621
 
641
622
  COMMITTED =
642
623
  T.let(
643
624
  :committed,
644
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol
625
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::TaggedSymbol
645
626
  )
646
627
  PENDING =
647
628
  T.let(
648
629
  :pending,
649
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol
630
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::TaggedSymbol
650
631
  )
651
632
 
652
633
  sig do
653
634
  override
654
635
  .returns(
655
- T::Array[
656
- Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol
657
- ]
636
+ T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::TaggedSymbol]
658
637
  )
659
638
  end
660
639
  def self.values; end
661
640
  end
662
641
  end
663
642
 
664
- class CreditBlockExpiryLedgerEntry < Orb::Internal::Type::BaseModel
643
+ class CreditBlockExpiry < Orb::Internal::Type::BaseModel
665
644
  sig { returns(String) }
666
645
  attr_accessor :id
667
646
 
@@ -671,13 +650,13 @@ module Orb
671
650
  sig { returns(Time) }
672
651
  attr_accessor :created_at
673
652
 
674
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) }
653
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock) }
675
654
  attr_reader :credit_block
676
655
 
677
656
  sig do
678
657
  params(
679
658
  credit_block: T.any(
680
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock,
659
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock,
681
660
  Orb::Internal::AnyHash
682
661
  )
683
662
  )
@@ -688,13 +667,13 @@ module Orb
688
667
  sig { returns(String) }
689
668
  attr_accessor :currency
690
669
 
691
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) }
670
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer) }
692
671
  attr_reader :customer
693
672
 
694
673
  sig do
695
674
  params(
696
675
  customer: T.any(
697
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer,
676
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer,
698
677
  Orb::Internal::AnyHash
699
678
  )
700
679
  )
@@ -710,7 +689,7 @@ module Orb
710
689
 
711
690
  sig do
712
691
  returns(
713
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol
692
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
714
693
  )
715
694
  end
716
695
  attr_accessor :entry_status
@@ -737,17 +716,17 @@ module Orb
737
716
  amount: Float,
738
717
  created_at: Time,
739
718
  credit_block: T.any(
740
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock,
719
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock,
741
720
  Orb::Internal::AnyHash
742
721
  ),
743
722
  currency: String,
744
723
  customer: T.any(
745
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer,
724
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer,
746
725
  Orb::Internal::AnyHash
747
726
  ),
748
727
  description: T.nilable(String),
749
728
  ending_balance: Float,
750
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::OrSymbol,
729
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::OrSymbol,
751
730
  ledger_sequence_number: Integer,
752
731
  metadata: T::Hash[Symbol, String],
753
732
  starting_balance: Float,
@@ -766,6 +745,10 @@ module Orb
766
745
  ending_balance:,
767
746
  entry_status:,
768
747
  ledger_sequence_number:,
748
+ # User specified key-value pairs for the resource. If not present, this defaults
749
+ # to an empty dictionary. Individual keys can be removed by setting the value to
750
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
751
+ # `null`.
769
752
  metadata:,
770
753
  starting_balance:,
771
754
  entry_type: :credit_block_expiry
@@ -777,12 +760,12 @@ module Orb
777
760
  id: String,
778
761
  amount: Float,
779
762
  created_at: Time,
780
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock,
763
+ credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock,
781
764
  currency: String,
782
- customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer,
765
+ customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer,
783
766
  description: T.nilable(String),
784
767
  ending_balance: Float,
785
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol,
768
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol,
786
769
  entry_type: Symbol,
787
770
  ledger_sequence_number: Integer,
788
771
  metadata: T::Hash[Symbol, String],
@@ -838,42 +821,31 @@ module Orb
838
821
  extend Orb::Internal::Type::Enum
839
822
 
840
823
  TaggedSymbol =
841
- T.type_alias do
842
- T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus)
843
- end
844
- OrSymbol =
845
- T.type_alias do
846
- T.any(
847
- Symbol,
848
- String,
849
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol
850
- )
851
- end
824
+ T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus) }
825
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
852
826
 
853
827
  COMMITTED =
854
828
  T.let(
855
829
  :committed,
856
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol
830
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
857
831
  )
858
832
  PENDING =
859
833
  T.let(
860
834
  :pending,
861
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol
835
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
862
836
  )
863
837
 
864
838
  sig do
865
839
  override
866
840
  .returns(
867
- T::Array[
868
- Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol
869
- ]
841
+ T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol]
870
842
  )
871
843
  end
872
844
  def self.values; end
873
845
  end
874
846
  end
875
847
 
876
- class VoidLedgerEntry < Orb::Internal::Type::BaseModel
848
+ class Void < Orb::Internal::Type::BaseModel
877
849
  sig { returns(String) }
878
850
  attr_accessor :id
879
851
 
@@ -883,13 +855,13 @@ module Orb
883
855
  sig { returns(Time) }
884
856
  attr_accessor :created_at
885
857
 
886
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock) }
858
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock) }
887
859
  attr_reader :credit_block
888
860
 
889
861
  sig do
890
862
  params(
891
863
  credit_block: T.any(
892
- Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock,
864
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock,
893
865
  Orb::Internal::AnyHash
894
866
  )
895
867
  )
@@ -900,15 +872,12 @@ module Orb
900
872
  sig { returns(String) }
901
873
  attr_accessor :currency
902
874
 
903
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer) }
875
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer) }
904
876
  attr_reader :customer
905
877
 
906
878
  sig do
907
879
  params(
908
- customer: T.any(
909
- Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer,
910
- Orb::Internal::AnyHash
911
- )
880
+ customer: T.any(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer, Orb::Internal::AnyHash)
912
881
  )
913
882
  .void
914
883
  end
@@ -920,7 +889,7 @@ module Orb
920
889
  sig { returns(Float) }
921
890
  attr_accessor :ending_balance
922
891
 
923
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol) }
892
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::TaggedSymbol) }
924
893
  attr_accessor :entry_status
925
894
 
926
895
  sig { returns(Symbol) }
@@ -951,17 +920,14 @@ module Orb
951
920
  amount: Float,
952
921
  created_at: Time,
953
922
  credit_block: T.any(
954
- Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock,
923
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock,
955
924
  Orb::Internal::AnyHash
956
925
  ),
957
926
  currency: String,
958
- customer: T.any(
959
- Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer,
960
- Orb::Internal::AnyHash
961
- ),
927
+ customer: T.any(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer, Orb::Internal::AnyHash),
962
928
  description: T.nilable(String),
963
929
  ending_balance: Float,
964
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::OrSymbol,
930
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::OrSymbol,
965
931
  ledger_sequence_number: Integer,
966
932
  metadata: T::Hash[Symbol, String],
967
933
  starting_balance: Float,
@@ -982,6 +948,10 @@ module Orb
982
948
  ending_balance:,
983
949
  entry_status:,
984
950
  ledger_sequence_number:,
951
+ # User specified key-value pairs for the resource. If not present, this defaults
952
+ # to an empty dictionary. Individual keys can be removed by setting the value to
953
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
954
+ # `null`.
985
955
  metadata:,
986
956
  starting_balance:,
987
957
  void_amount:,
@@ -995,12 +965,12 @@ module Orb
995
965
  id: String,
996
966
  amount: Float,
997
967
  created_at: Time,
998
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock,
968
+ credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock,
999
969
  currency: String,
1000
- customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer,
970
+ customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer,
1001
971
  description: T.nilable(String),
1002
972
  ending_balance: Float,
1003
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol,
973
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::TaggedSymbol,
1004
974
  entry_type: Symbol,
1005
975
  ledger_sequence_number: Integer,
1006
976
  metadata: T::Hash[Symbol, String],
@@ -1058,38 +1028,31 @@ module Orb
1058
1028
  extend Orb::Internal::Type::Enum
1059
1029
 
1060
1030
  TaggedSymbol =
1061
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus) }
1062
- OrSymbol =
1063
- T.type_alias do
1064
- T.any(
1065
- Symbol,
1066
- String,
1067
- Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol
1068
- )
1069
- end
1031
+ T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus) }
1032
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1070
1033
 
1071
1034
  COMMITTED =
1072
1035
  T.let(
1073
1036
  :committed,
1074
- Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol
1037
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::TaggedSymbol
1075
1038
  )
1076
1039
  PENDING =
1077
1040
  T.let(
1078
1041
  :pending,
1079
- Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol
1042
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::TaggedSymbol
1080
1043
  )
1081
1044
 
1082
1045
  sig do
1083
1046
  override
1084
1047
  .returns(
1085
- T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol]
1048
+ T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::TaggedSymbol]
1086
1049
  )
1087
1050
  end
1088
1051
  def self.values; end
1089
1052
  end
1090
1053
  end
1091
1054
 
1092
- class VoidInitiatedLedgerEntry < Orb::Internal::Type::BaseModel
1055
+ class VoidInitiated < Orb::Internal::Type::BaseModel
1093
1056
  sig { returns(String) }
1094
1057
  attr_accessor :id
1095
1058
 
@@ -1099,13 +1062,13 @@ module Orb
1099
1062
  sig { returns(Time) }
1100
1063
  attr_accessor :created_at
1101
1064
 
1102
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) }
1065
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock) }
1103
1066
  attr_reader :credit_block
1104
1067
 
1105
1068
  sig do
1106
1069
  params(
1107
1070
  credit_block: T.any(
1108
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock,
1071
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock,
1109
1072
  Orb::Internal::AnyHash
1110
1073
  )
1111
1074
  )
@@ -1116,13 +1079,13 @@ module Orb
1116
1079
  sig { returns(String) }
1117
1080
  attr_accessor :currency
1118
1081
 
1119
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) }
1082
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer) }
1120
1083
  attr_reader :customer
1121
1084
 
1122
1085
  sig do
1123
1086
  params(
1124
1087
  customer: T.any(
1125
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer,
1088
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer,
1126
1089
  Orb::Internal::AnyHash
1127
1090
  )
1128
1091
  )
@@ -1138,7 +1101,7 @@ module Orb
1138
1101
 
1139
1102
  sig do
1140
1103
  returns(
1141
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol
1104
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::TaggedSymbol
1142
1105
  )
1143
1106
  end
1144
1107
  attr_accessor :entry_status
@@ -1174,17 +1137,17 @@ module Orb
1174
1137
  amount: Float,
1175
1138
  created_at: Time,
1176
1139
  credit_block: T.any(
1177
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock,
1140
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock,
1178
1141
  Orb::Internal::AnyHash
1179
1142
  ),
1180
1143
  currency: String,
1181
1144
  customer: T.any(
1182
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer,
1145
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer,
1183
1146
  Orb::Internal::AnyHash
1184
1147
  ),
1185
1148
  description: T.nilable(String),
1186
1149
  ending_balance: Float,
1187
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::OrSymbol,
1150
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::OrSymbol,
1188
1151
  ledger_sequence_number: Integer,
1189
1152
  metadata: T::Hash[Symbol, String],
1190
1153
  new_block_expiry_date: Time,
@@ -1206,6 +1169,10 @@ module Orb
1206
1169
  ending_balance:,
1207
1170
  entry_status:,
1208
1171
  ledger_sequence_number:,
1172
+ # User specified key-value pairs for the resource. If not present, this defaults
1173
+ # to an empty dictionary. Individual keys can be removed by setting the value to
1174
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1175
+ # `null`.
1209
1176
  metadata:,
1210
1177
  new_block_expiry_date:,
1211
1178
  starting_balance:,
@@ -1220,12 +1187,12 @@ module Orb
1220
1187
  id: String,
1221
1188
  amount: Float,
1222
1189
  created_at: Time,
1223
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock,
1190
+ credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock,
1224
1191
  currency: String,
1225
- customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer,
1192
+ customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer,
1226
1193
  description: T.nilable(String),
1227
1194
  ending_balance: Float,
1228
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol,
1195
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::TaggedSymbol,
1229
1196
  entry_type: Symbol,
1230
1197
  ledger_sequence_number: Integer,
1231
1198
  metadata: T::Hash[Symbol, String],
@@ -1284,38 +1251,31 @@ module Orb
1284
1251
  extend Orb::Internal::Type::Enum
1285
1252
 
1286
1253
  TaggedSymbol =
1287
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus) }
1288
- OrSymbol =
1289
- T.type_alias do
1290
- T.any(
1291
- Symbol,
1292
- String,
1293
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol
1294
- )
1295
- end
1254
+ T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus) }
1255
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1296
1256
 
1297
1257
  COMMITTED =
1298
1258
  T.let(
1299
1259
  :committed,
1300
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol
1260
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::TaggedSymbol
1301
1261
  )
1302
1262
  PENDING =
1303
1263
  T.let(
1304
1264
  :pending,
1305
- Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol
1265
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::TaggedSymbol
1306
1266
  )
1307
1267
 
1308
1268
  sig do
1309
1269
  override
1310
1270
  .returns(
1311
- T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol]
1271
+ T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::TaggedSymbol]
1312
1272
  )
1313
1273
  end
1314
1274
  def self.values; end
1315
1275
  end
1316
1276
  end
1317
1277
 
1318
- class AmendmentLedgerEntry < Orb::Internal::Type::BaseModel
1278
+ class Amendment < Orb::Internal::Type::BaseModel
1319
1279
  sig { returns(String) }
1320
1280
  attr_accessor :id
1321
1281
 
@@ -1325,13 +1285,13 @@ module Orb
1325
1285
  sig { returns(Time) }
1326
1286
  attr_accessor :created_at
1327
1287
 
1328
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) }
1288
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock) }
1329
1289
  attr_reader :credit_block
1330
1290
 
1331
1291
  sig do
1332
1292
  params(
1333
1293
  credit_block: T.any(
1334
- Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock,
1294
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock,
1335
1295
  Orb::Internal::AnyHash
1336
1296
  )
1337
1297
  )
@@ -1342,13 +1302,13 @@ module Orb
1342
1302
  sig { returns(String) }
1343
1303
  attr_accessor :currency
1344
1304
 
1345
- sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) }
1305
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer) }
1346
1306
  attr_reader :customer
1347
1307
 
1348
1308
  sig do
1349
1309
  params(
1350
1310
  customer: T.any(
1351
- Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer,
1311
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer,
1352
1312
  Orb::Internal::AnyHash
1353
1313
  )
1354
1314
  )
@@ -1362,11 +1322,7 @@ module Orb
1362
1322
  sig { returns(Float) }
1363
1323
  attr_accessor :ending_balance
1364
1324
 
1365
- sig do
1366
- returns(
1367
- Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol
1368
- )
1369
- end
1325
+ sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::TaggedSymbol) }
1370
1326
  attr_accessor :entry_status
1371
1327
 
1372
1328
  sig { returns(Symbol) }
@@ -1391,17 +1347,17 @@ module Orb
1391
1347
  amount: Float,
1392
1348
  created_at: Time,
1393
1349
  credit_block: T.any(
1394
- Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock,
1350
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock,
1395
1351
  Orb::Internal::AnyHash
1396
1352
  ),
1397
1353
  currency: String,
1398
1354
  customer: T.any(
1399
- Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer,
1355
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer,
1400
1356
  Orb::Internal::AnyHash
1401
1357
  ),
1402
1358
  description: T.nilable(String),
1403
1359
  ending_balance: Float,
1404
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::OrSymbol,
1360
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::OrSymbol,
1405
1361
  ledger_sequence_number: Integer,
1406
1362
  metadata: T::Hash[Symbol, String],
1407
1363
  starting_balance: Float,
@@ -1420,6 +1376,10 @@ module Orb
1420
1376
  ending_balance:,
1421
1377
  entry_status:,
1422
1378
  ledger_sequence_number:,
1379
+ # User specified key-value pairs for the resource. If not present, this defaults
1380
+ # to an empty dictionary. Individual keys can be removed by setting the value to
1381
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1382
+ # `null`.
1423
1383
  metadata:,
1424
1384
  starting_balance:,
1425
1385
  entry_type: :amendment
@@ -1431,12 +1391,12 @@ module Orb
1431
1391
  id: String,
1432
1392
  amount: Float,
1433
1393
  created_at: Time,
1434
- credit_block: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock,
1394
+ credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock,
1435
1395
  currency: String,
1436
- customer: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer,
1396
+ customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer,
1437
1397
  description: T.nilable(String),
1438
1398
  ending_balance: Float,
1439
- entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol,
1399
+ entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::TaggedSymbol,
1440
1400
  entry_type: Symbol,
1441
1401
  ledger_sequence_number: Integer,
1442
1402
  metadata: T::Hash[Symbol, String],
@@ -1492,31 +1452,24 @@ module Orb
1492
1452
  extend Orb::Internal::Type::Enum
1493
1453
 
1494
1454
  TaggedSymbol =
1495
- T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus) }
1496
- OrSymbol =
1497
- T.type_alias do
1498
- T.any(
1499
- Symbol,
1500
- String,
1501
- Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol
1502
- )
1503
- end
1455
+ T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus) }
1456
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1504
1457
 
1505
1458
  COMMITTED =
1506
1459
  T.let(
1507
1460
  :committed,
1508
- Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol
1461
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::TaggedSymbol
1509
1462
  )
1510
1463
  PENDING =
1511
1464
  T.let(
1512
1465
  :pending,
1513
- Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol
1466
+ Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::TaggedSymbol
1514
1467
  )
1515
1468
 
1516
1469
  sig do
1517
1470
  override
1518
1471
  .returns(
1519
- T::Array[Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol]
1472
+ T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::TaggedSymbol]
1520
1473
  )
1521
1474
  end
1522
1475
  def self.values; end
@@ -1526,7 +1479,7 @@ module Orb
1526
1479
  sig do
1527
1480
  override
1528
1481
  .returns(
1529
- [Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry]
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]
1530
1483
  )
1531
1484
  end
1532
1485
  def self.variants; end