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
@@ -13,24 +13,22 @@ module Orb
13
13
 
14
14
  discriminator :entry_type
15
15
 
16
- variant :increment, -> { Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry }
16
+ variant :increment, -> { Orb::Models::Customers::Credits::LedgerListResponse::Increment }
17
17
 
18
- variant :decrement, -> { Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry }
18
+ variant :decrement, -> { Orb::Models::Customers::Credits::LedgerListResponse::Decrement }
19
19
 
20
- variant :expiration_change,
21
- -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry }
20
+ variant :expiration_change, -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange }
22
21
 
23
22
  variant :credit_block_expiry,
24
- -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry }
23
+ -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry }
25
24
 
26
- variant :void, -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry }
25
+ variant :void, -> { Orb::Models::Customers::Credits::LedgerListResponse::Void }
27
26
 
28
- variant :void_initiated,
29
- -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry }
27
+ variant :void_initiated, -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated }
30
28
 
31
- variant :amendment, -> { Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry }
29
+ variant :amendment, -> { Orb::Models::Customers::Credits::LedgerListResponse::Amendment }
32
30
 
33
- class IncrementLedgerEntry < Orb::Internal::Type::BaseModel
31
+ class Increment < Orb::Internal::Type::BaseModel
34
32
  # @!attribute id
35
33
  #
36
34
  # @return [String]
@@ -48,9 +46,8 @@ module Orb
48
46
 
49
47
  # @!attribute credit_block
50
48
  #
51
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock]
52
- required :credit_block,
53
- -> { Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock }
49
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock]
50
+ required :credit_block, -> { Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock }
54
51
 
55
52
  # @!attribute currency
56
53
  #
@@ -59,9 +56,8 @@ module Orb
59
56
 
60
57
  # @!attribute customer
61
58
  #
62
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer]
63
- required :customer,
64
- -> { Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer }
59
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer]
60
+ required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer }
65
61
 
66
62
  # @!attribute description
67
63
  #
@@ -75,9 +71,9 @@ module Orb
75
71
 
76
72
  # @!attribute entry_status
77
73
  #
78
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus]
74
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus]
79
75
  required :entry_status,
80
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus }
76
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus }
81
77
 
82
78
  # @!attribute entry_type
83
79
  #
@@ -103,43 +99,39 @@ module Orb
103
99
  # @return [Float]
104
100
  required :starting_balance, Float
105
101
 
106
- # @!parse
107
- # # @param id [String]
108
- # # @param amount [Float]
109
- # # @param created_at [Time]
110
- # # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock]
111
- # # @param currency [String]
112
- # # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer]
113
- # # @param description [String, nil]
114
- # # @param ending_balance [Float]
115
- # # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus]
116
- # # @param ledger_sequence_number [Integer]
117
- # # @param metadata [Hash{Symbol=>String}]
118
- # # @param starting_balance [Float]
119
- # # @param entry_type [Symbol, :increment]
120
- # #
121
- # def initialize(
122
- # id:,
123
- # amount:,
124
- # created_at:,
125
- # credit_block:,
126
- # currency:,
127
- # customer:,
128
- # description:,
129
- # ending_balance:,
130
- # entry_status:,
131
- # ledger_sequence_number:,
132
- # metadata:,
133
- # starting_balance:,
134
- # entry_type: :increment,
135
- # **
136
- # )
137
- # super
138
- # end
139
-
140
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
141
-
142
- # @see Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry#credit_block
102
+ # @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, entry_type: :increment)
103
+ # Some parameter documentations has been truncated, see
104
+ # {Orb::Models::Customers::Credits::LedgerListResponse::Increment} for more
105
+ # details.
106
+ #
107
+ # @param id [String]
108
+ #
109
+ # @param amount [Float]
110
+ #
111
+ # @param created_at [Time]
112
+ #
113
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock]
114
+ #
115
+ # @param currency [String]
116
+ #
117
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer]
118
+ #
119
+ # @param description [String, nil]
120
+ #
121
+ # @param ending_balance [Float]
122
+ #
123
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus]
124
+ #
125
+ # @param ledger_sequence_number [Integer]
126
+ #
127
+ # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
128
+ # ...
129
+ #
130
+ # @param starting_balance [Float]
131
+ #
132
+ # @param entry_type [Symbol, :increment]
133
+
134
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Increment#credit_block
143
135
  class CreditBlock < Orb::Internal::Type::BaseModel
144
136
  # @!attribute id
145
137
  #
@@ -156,17 +148,13 @@ module Orb
156
148
  # @return [String, nil]
157
149
  required :per_unit_cost_basis, String, nil?: true
158
150
 
159
- # @!parse
160
- # # @param id [String]
161
- # # @param expiry_date [Time, nil]
162
- # # @param per_unit_cost_basis [String, nil]
163
- # #
164
- # def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
165
-
166
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
151
+ # @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
152
+ # @param id [String]
153
+ # @param expiry_date [Time, nil]
154
+ # @param per_unit_cost_basis [String, nil]
167
155
  end
168
156
 
169
- # @see Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry#customer
157
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Increment#customer
170
158
  class Customer < Orb::Internal::Type::BaseModel
171
159
  # @!attribute id
172
160
  #
@@ -178,31 +166,24 @@ module Orb
178
166
  # @return [String, nil]
179
167
  required :external_customer_id, String, nil?: true
180
168
 
181
- # @!parse
182
- # # @param id [String]
183
- # # @param external_customer_id [String, nil]
184
- # #
185
- # def initialize(id:, external_customer_id:, **) = super
186
-
187
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
169
+ # @!method initialize(id:, external_customer_id:)
170
+ # @param id [String]
171
+ # @param external_customer_id [String, nil]
188
172
  end
189
173
 
190
- # @see Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry#entry_status
174
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Increment#entry_status
191
175
  module EntryStatus
192
176
  extend Orb::Internal::Type::Enum
193
177
 
194
178
  COMMITTED = :committed
195
179
  PENDING = :pending
196
180
 
197
- finalize!
198
-
199
- # @!parse
200
- # # @return [Array<Symbol>]
201
- # def self.values; end
181
+ # @!method self.values
182
+ # @return [Array<Symbol>]
202
183
  end
203
184
  end
204
185
 
205
- class DecrementLedgerEntry < Orb::Internal::Type::BaseModel
186
+ class Decrement < Orb::Internal::Type::BaseModel
206
187
  # @!attribute id
207
188
  #
208
189
  # @return [String]
@@ -220,9 +201,8 @@ module Orb
220
201
 
221
202
  # @!attribute credit_block
222
203
  #
223
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock]
224
- required :credit_block,
225
- -> { Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock }
204
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock]
205
+ required :credit_block, -> { Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock }
226
206
 
227
207
  # @!attribute currency
228
208
  #
@@ -231,9 +211,8 @@ module Orb
231
211
 
232
212
  # @!attribute customer
233
213
  #
234
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer]
235
- required :customer,
236
- -> { Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer }
214
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer]
215
+ required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer }
237
216
 
238
217
  # @!attribute description
239
218
  #
@@ -247,9 +226,9 @@ module Orb
247
226
 
248
227
  # @!attribute entry_status
249
228
  #
250
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus]
229
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus]
251
230
  required :entry_status,
252
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus }
231
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus }
253
232
 
254
233
  # @!attribute entry_type
255
234
  #
@@ -290,49 +269,45 @@ module Orb
290
269
  # @return [String, nil]
291
270
  optional :price_id, String, nil?: true
292
271
 
293
- # @!parse
294
- # # @param id [String]
295
- # # @param amount [Float]
296
- # # @param created_at [Time]
297
- # # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock]
298
- # # @param currency [String]
299
- # # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer]
300
- # # @param description [String, nil]
301
- # # @param ending_balance [Float]
302
- # # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus]
303
- # # @param ledger_sequence_number [Integer]
304
- # # @param metadata [Hash{Symbol=>String}]
305
- # # @param starting_balance [Float]
306
- # # @param event_id [String, nil]
307
- # # @param invoice_id [String, nil]
308
- # # @param price_id [String, nil]
309
- # # @param entry_type [Symbol, :decrement]
310
- # #
311
- # def initialize(
312
- # id:,
313
- # amount:,
314
- # created_at:,
315
- # credit_block:,
316
- # currency:,
317
- # customer:,
318
- # description:,
319
- # ending_balance:,
320
- # entry_status:,
321
- # ledger_sequence_number:,
322
- # metadata:,
323
- # starting_balance:,
324
- # event_id: nil,
325
- # invoice_id: nil,
326
- # price_id: nil,
327
- # entry_type: :decrement,
328
- # **
329
- # )
330
- # super
331
- # end
332
-
333
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
334
-
335
- # @see Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry#credit_block
272
+ # @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, event_id: nil, invoice_id: nil, price_id: nil, entry_type: :decrement)
273
+ # Some parameter documentations has been truncated, see
274
+ # {Orb::Models::Customers::Credits::LedgerListResponse::Decrement} for more
275
+ # details.
276
+ #
277
+ # @param id [String]
278
+ #
279
+ # @param amount [Float]
280
+ #
281
+ # @param created_at [Time]
282
+ #
283
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock]
284
+ #
285
+ # @param currency [String]
286
+ #
287
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer]
288
+ #
289
+ # @param description [String, nil]
290
+ #
291
+ # @param ending_balance [Float]
292
+ #
293
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus]
294
+ #
295
+ # @param ledger_sequence_number [Integer]
296
+ #
297
+ # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
298
+ # ...
299
+ #
300
+ # @param starting_balance [Float]
301
+ #
302
+ # @param event_id [String, nil]
303
+ #
304
+ # @param invoice_id [String, nil]
305
+ #
306
+ # @param price_id [String, nil]
307
+ #
308
+ # @param entry_type [Symbol, :decrement]
309
+
310
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Decrement#credit_block
336
311
  class CreditBlock < Orb::Internal::Type::BaseModel
337
312
  # @!attribute id
338
313
  #
@@ -349,17 +324,13 @@ module Orb
349
324
  # @return [String, nil]
350
325
  required :per_unit_cost_basis, String, nil?: true
351
326
 
352
- # @!parse
353
- # # @param id [String]
354
- # # @param expiry_date [Time, nil]
355
- # # @param per_unit_cost_basis [String, nil]
356
- # #
357
- # def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
358
-
359
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
327
+ # @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
328
+ # @param id [String]
329
+ # @param expiry_date [Time, nil]
330
+ # @param per_unit_cost_basis [String, nil]
360
331
  end
361
332
 
362
- # @see Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry#customer
333
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Decrement#customer
363
334
  class Customer < Orb::Internal::Type::BaseModel
364
335
  # @!attribute id
365
336
  #
@@ -371,31 +342,24 @@ module Orb
371
342
  # @return [String, nil]
372
343
  required :external_customer_id, String, nil?: true
373
344
 
374
- # @!parse
375
- # # @param id [String]
376
- # # @param external_customer_id [String, nil]
377
- # #
378
- # def initialize(id:, external_customer_id:, **) = super
379
-
380
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
345
+ # @!method initialize(id:, external_customer_id:)
346
+ # @param id [String]
347
+ # @param external_customer_id [String, nil]
381
348
  end
382
349
 
383
- # @see Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry#entry_status
350
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Decrement#entry_status
384
351
  module EntryStatus
385
352
  extend Orb::Internal::Type::Enum
386
353
 
387
354
  COMMITTED = :committed
388
355
  PENDING = :pending
389
356
 
390
- finalize!
391
-
392
- # @!parse
393
- # # @return [Array<Symbol>]
394
- # def self.values; end
357
+ # @!method self.values
358
+ # @return [Array<Symbol>]
395
359
  end
396
360
  end
397
361
 
398
- class ExpirationChangeLedgerEntry < Orb::Internal::Type::BaseModel
362
+ class ExpirationChange < Orb::Internal::Type::BaseModel
399
363
  # @!attribute id
400
364
  #
401
365
  # @return [String]
@@ -413,9 +377,9 @@ module Orb
413
377
 
414
378
  # @!attribute credit_block
415
379
  #
416
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock]
380
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock]
417
381
  required :credit_block,
418
- -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock }
382
+ -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock }
419
383
 
420
384
  # @!attribute currency
421
385
  #
@@ -424,9 +388,8 @@ module Orb
424
388
 
425
389
  # @!attribute customer
426
390
  #
427
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer]
428
- required :customer,
429
- -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer }
391
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer]
392
+ required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer }
430
393
 
431
394
  # @!attribute description
432
395
  #
@@ -440,9 +403,9 @@ module Orb
440
403
 
441
404
  # @!attribute entry_status
442
405
  #
443
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus]
406
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus]
444
407
  required :entry_status,
445
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus }
408
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus }
446
409
 
447
410
  # @!attribute entry_type
448
411
  #
@@ -473,45 +436,41 @@ module Orb
473
436
  # @return [Float]
474
437
  required :starting_balance, Float
475
438
 
476
- # @!parse
477
- # # @param id [String]
478
- # # @param amount [Float]
479
- # # @param created_at [Time]
480
- # # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock]
481
- # # @param currency [String]
482
- # # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer]
483
- # # @param description [String, nil]
484
- # # @param ending_balance [Float]
485
- # # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus]
486
- # # @param ledger_sequence_number [Integer]
487
- # # @param metadata [Hash{Symbol=>String}]
488
- # # @param new_block_expiry_date [Time, nil]
489
- # # @param starting_balance [Float]
490
- # # @param entry_type [Symbol, :expiration_change]
491
- # #
492
- # def initialize(
493
- # id:,
494
- # amount:,
495
- # created_at:,
496
- # credit_block:,
497
- # currency:,
498
- # customer:,
499
- # description:,
500
- # ending_balance:,
501
- # entry_status:,
502
- # ledger_sequence_number:,
503
- # metadata:,
504
- # new_block_expiry_date:,
505
- # starting_balance:,
506
- # entry_type: :expiration_change,
507
- # **
508
- # )
509
- # super
510
- # end
511
-
512
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
513
-
514
- # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry#credit_block
439
+ # @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, new_block_expiry_date:, starting_balance:, entry_type: :expiration_change)
440
+ # Some parameter documentations has been truncated, see
441
+ # {Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange} for more
442
+ # details.
443
+ #
444
+ # @param id [String]
445
+ #
446
+ # @param amount [Float]
447
+ #
448
+ # @param created_at [Time]
449
+ #
450
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock]
451
+ #
452
+ # @param currency [String]
453
+ #
454
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer]
455
+ #
456
+ # @param description [String, nil]
457
+ #
458
+ # @param ending_balance [Float]
459
+ #
460
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus]
461
+ #
462
+ # @param ledger_sequence_number [Integer]
463
+ #
464
+ # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
465
+ # ...
466
+ #
467
+ # @param new_block_expiry_date [Time, nil]
468
+ #
469
+ # @param starting_balance [Float]
470
+ #
471
+ # @param entry_type [Symbol, :expiration_change]
472
+
473
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange#credit_block
515
474
  class CreditBlock < Orb::Internal::Type::BaseModel
516
475
  # @!attribute id
517
476
  #
@@ -528,17 +487,13 @@ module Orb
528
487
  # @return [String, nil]
529
488
  required :per_unit_cost_basis, String, nil?: true
530
489
 
531
- # @!parse
532
- # # @param id [String]
533
- # # @param expiry_date [Time, nil]
534
- # # @param per_unit_cost_basis [String, nil]
535
- # #
536
- # def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
537
-
538
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
490
+ # @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
491
+ # @param id [String]
492
+ # @param expiry_date [Time, nil]
493
+ # @param per_unit_cost_basis [String, nil]
539
494
  end
540
495
 
541
- # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry#customer
496
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange#customer
542
497
  class Customer < Orb::Internal::Type::BaseModel
543
498
  # @!attribute id
544
499
  #
@@ -550,31 +505,24 @@ module Orb
550
505
  # @return [String, nil]
551
506
  required :external_customer_id, String, nil?: true
552
507
 
553
- # @!parse
554
- # # @param id [String]
555
- # # @param external_customer_id [String, nil]
556
- # #
557
- # def initialize(id:, external_customer_id:, **) = super
558
-
559
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
508
+ # @!method initialize(id:, external_customer_id:)
509
+ # @param id [String]
510
+ # @param external_customer_id [String, nil]
560
511
  end
561
512
 
562
- # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry#entry_status
513
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange#entry_status
563
514
  module EntryStatus
564
515
  extend Orb::Internal::Type::Enum
565
516
 
566
517
  COMMITTED = :committed
567
518
  PENDING = :pending
568
519
 
569
- finalize!
570
-
571
- # @!parse
572
- # # @return [Array<Symbol>]
573
- # def self.values; end
520
+ # @!method self.values
521
+ # @return [Array<Symbol>]
574
522
  end
575
523
  end
576
524
 
577
- class CreditBlockExpiryLedgerEntry < Orb::Internal::Type::BaseModel
525
+ class CreditBlockExpiry < Orb::Internal::Type::BaseModel
578
526
  # @!attribute id
579
527
  #
580
528
  # @return [String]
@@ -592,9 +540,9 @@ module Orb
592
540
 
593
541
  # @!attribute credit_block
594
542
  #
595
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock]
543
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock]
596
544
  required :credit_block,
597
- -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock }
545
+ -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock }
598
546
 
599
547
  # @!attribute currency
600
548
  #
@@ -603,9 +551,9 @@ module Orb
603
551
 
604
552
  # @!attribute customer
605
553
  #
606
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer]
554
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer]
607
555
  required :customer,
608
- -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer }
556
+ -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer }
609
557
 
610
558
  # @!attribute description
611
559
  #
@@ -619,9 +567,9 @@ module Orb
619
567
 
620
568
  # @!attribute entry_status
621
569
  #
622
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus]
570
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus]
623
571
  required :entry_status,
624
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus }
572
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus }
625
573
 
626
574
  # @!attribute entry_type
627
575
  #
@@ -647,43 +595,39 @@ module Orb
647
595
  # @return [Float]
648
596
  required :starting_balance, Float
649
597
 
650
- # @!parse
651
- # # @param id [String]
652
- # # @param amount [Float]
653
- # # @param created_at [Time]
654
- # # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock]
655
- # # @param currency [String]
656
- # # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer]
657
- # # @param description [String, nil]
658
- # # @param ending_balance [Float]
659
- # # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus]
660
- # # @param ledger_sequence_number [Integer]
661
- # # @param metadata [Hash{Symbol=>String}]
662
- # # @param starting_balance [Float]
663
- # # @param entry_type [Symbol, :credit_block_expiry]
664
- # #
665
- # def initialize(
666
- # id:,
667
- # amount:,
668
- # created_at:,
669
- # credit_block:,
670
- # currency:,
671
- # customer:,
672
- # description:,
673
- # ending_balance:,
674
- # entry_status:,
675
- # ledger_sequence_number:,
676
- # metadata:,
677
- # starting_balance:,
678
- # entry_type: :credit_block_expiry,
679
- # **
680
- # )
681
- # super
682
- # end
683
-
684
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
685
-
686
- # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry#credit_block
598
+ # @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, entry_type: :credit_block_expiry)
599
+ # Some parameter documentations has been truncated, see
600
+ # {Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry} for
601
+ # more details.
602
+ #
603
+ # @param id [String]
604
+ #
605
+ # @param amount [Float]
606
+ #
607
+ # @param created_at [Time]
608
+ #
609
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock]
610
+ #
611
+ # @param currency [String]
612
+ #
613
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer]
614
+ #
615
+ # @param description [String, nil]
616
+ #
617
+ # @param ending_balance [Float]
618
+ #
619
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus]
620
+ #
621
+ # @param ledger_sequence_number [Integer]
622
+ #
623
+ # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
624
+ # ...
625
+ #
626
+ # @param starting_balance [Float]
627
+ #
628
+ # @param entry_type [Symbol, :credit_block_expiry]
629
+
630
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry#credit_block
687
631
  class CreditBlock < Orb::Internal::Type::BaseModel
688
632
  # @!attribute id
689
633
  #
@@ -700,17 +644,13 @@ module Orb
700
644
  # @return [String, nil]
701
645
  required :per_unit_cost_basis, String, nil?: true
702
646
 
703
- # @!parse
704
- # # @param id [String]
705
- # # @param expiry_date [Time, nil]
706
- # # @param per_unit_cost_basis [String, nil]
707
- # #
708
- # def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
709
-
710
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
647
+ # @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
648
+ # @param id [String]
649
+ # @param expiry_date [Time, nil]
650
+ # @param per_unit_cost_basis [String, nil]
711
651
  end
712
652
 
713
- # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry#customer
653
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry#customer
714
654
  class Customer < Orb::Internal::Type::BaseModel
715
655
  # @!attribute id
716
656
  #
@@ -722,31 +662,24 @@ module Orb
722
662
  # @return [String, nil]
723
663
  required :external_customer_id, String, nil?: true
724
664
 
725
- # @!parse
726
- # # @param id [String]
727
- # # @param external_customer_id [String, nil]
728
- # #
729
- # def initialize(id:, external_customer_id:, **) = super
730
-
731
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
665
+ # @!method initialize(id:, external_customer_id:)
666
+ # @param id [String]
667
+ # @param external_customer_id [String, nil]
732
668
  end
733
669
 
734
- # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry#entry_status
670
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry#entry_status
735
671
  module EntryStatus
736
672
  extend Orb::Internal::Type::Enum
737
673
 
738
674
  COMMITTED = :committed
739
675
  PENDING = :pending
740
676
 
741
- finalize!
742
-
743
- # @!parse
744
- # # @return [Array<Symbol>]
745
- # def self.values; end
677
+ # @!method self.values
678
+ # @return [Array<Symbol>]
746
679
  end
747
680
  end
748
681
 
749
- class VoidLedgerEntry < Orb::Internal::Type::BaseModel
682
+ class Void < Orb::Internal::Type::BaseModel
750
683
  # @!attribute id
751
684
  #
752
685
  # @return [String]
@@ -764,9 +697,8 @@ module Orb
764
697
 
765
698
  # @!attribute credit_block
766
699
  #
767
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock]
768
- required :credit_block,
769
- -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock }
700
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock]
701
+ required :credit_block, -> { Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock }
770
702
 
771
703
  # @!attribute currency
772
704
  #
@@ -775,8 +707,8 @@ module Orb
775
707
 
776
708
  # @!attribute customer
777
709
  #
778
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer]
779
- required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer }
710
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer]
711
+ required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer }
780
712
 
781
713
  # @!attribute description
782
714
  #
@@ -790,9 +722,9 @@ module Orb
790
722
 
791
723
  # @!attribute entry_status
792
724
  #
793
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus]
725
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus]
794
726
  required :entry_status,
795
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus }
727
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus }
796
728
 
797
729
  # @!attribute entry_type
798
730
  #
@@ -828,47 +760,42 @@ module Orb
828
760
  # @return [String, nil]
829
761
  required :void_reason, String, nil?: true
830
762
 
831
- # @!parse
832
- # # @param id [String]
833
- # # @param amount [Float]
834
- # # @param created_at [Time]
835
- # # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock]
836
- # # @param currency [String]
837
- # # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer]
838
- # # @param description [String, nil]
839
- # # @param ending_balance [Float]
840
- # # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus]
841
- # # @param ledger_sequence_number [Integer]
842
- # # @param metadata [Hash{Symbol=>String}]
843
- # # @param starting_balance [Float]
844
- # # @param void_amount [Float]
845
- # # @param void_reason [String, nil]
846
- # # @param entry_type [Symbol, :void]
847
- # #
848
- # def initialize(
849
- # id:,
850
- # amount:,
851
- # created_at:,
852
- # credit_block:,
853
- # currency:,
854
- # customer:,
855
- # description:,
856
- # ending_balance:,
857
- # entry_status:,
858
- # ledger_sequence_number:,
859
- # metadata:,
860
- # starting_balance:,
861
- # void_amount:,
862
- # void_reason:,
863
- # entry_type: :void,
864
- # **
865
- # )
866
- # super
867
- # end
868
-
869
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
870
-
871
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry#credit_block
763
+ # @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, void_amount:, void_reason:, entry_type: :void)
764
+ # Some parameter documentations has been truncated, see
765
+ # {Orb::Models::Customers::Credits::LedgerListResponse::Void} for more details.
766
+ #
767
+ # @param id [String]
768
+ #
769
+ # @param amount [Float]
770
+ #
771
+ # @param created_at [Time]
772
+ #
773
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock]
774
+ #
775
+ # @param currency [String]
776
+ #
777
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer]
778
+ #
779
+ # @param description [String, nil]
780
+ #
781
+ # @param ending_balance [Float]
782
+ #
783
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus]
784
+ #
785
+ # @param ledger_sequence_number [Integer]
786
+ #
787
+ # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
788
+ # ...
789
+ #
790
+ # @param starting_balance [Float]
791
+ #
792
+ # @param void_amount [Float]
793
+ #
794
+ # @param void_reason [String, nil]
795
+ #
796
+ # @param entry_type [Symbol, :void]
797
+
798
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Void#credit_block
872
799
  class CreditBlock < Orb::Internal::Type::BaseModel
873
800
  # @!attribute id
874
801
  #
@@ -885,17 +812,13 @@ module Orb
885
812
  # @return [String, nil]
886
813
  required :per_unit_cost_basis, String, nil?: true
887
814
 
888
- # @!parse
889
- # # @param id [String]
890
- # # @param expiry_date [Time, nil]
891
- # # @param per_unit_cost_basis [String, nil]
892
- # #
893
- # def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
894
-
895
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
815
+ # @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
816
+ # @param id [String]
817
+ # @param expiry_date [Time, nil]
818
+ # @param per_unit_cost_basis [String, nil]
896
819
  end
897
820
 
898
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry#customer
821
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Void#customer
899
822
  class Customer < Orb::Internal::Type::BaseModel
900
823
  # @!attribute id
901
824
  #
@@ -907,31 +830,24 @@ module Orb
907
830
  # @return [String, nil]
908
831
  required :external_customer_id, String, nil?: true
909
832
 
910
- # @!parse
911
- # # @param id [String]
912
- # # @param external_customer_id [String, nil]
913
- # #
914
- # def initialize(id:, external_customer_id:, **) = super
915
-
916
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
833
+ # @!method initialize(id:, external_customer_id:)
834
+ # @param id [String]
835
+ # @param external_customer_id [String, nil]
917
836
  end
918
837
 
919
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry#entry_status
838
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Void#entry_status
920
839
  module EntryStatus
921
840
  extend Orb::Internal::Type::Enum
922
841
 
923
842
  COMMITTED = :committed
924
843
  PENDING = :pending
925
844
 
926
- finalize!
927
-
928
- # @!parse
929
- # # @return [Array<Symbol>]
930
- # def self.values; end
845
+ # @!method self.values
846
+ # @return [Array<Symbol>]
931
847
  end
932
848
  end
933
849
 
934
- class VoidInitiatedLedgerEntry < Orb::Internal::Type::BaseModel
850
+ class VoidInitiated < Orb::Internal::Type::BaseModel
935
851
  # @!attribute id
936
852
  #
937
853
  # @return [String]
@@ -949,9 +865,9 @@ module Orb
949
865
 
950
866
  # @!attribute credit_block
951
867
  #
952
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock]
868
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock]
953
869
  required :credit_block,
954
- -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock }
870
+ -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock }
955
871
 
956
872
  # @!attribute currency
957
873
  #
@@ -960,9 +876,8 @@ module Orb
960
876
 
961
877
  # @!attribute customer
962
878
  #
963
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer]
964
- required :customer,
965
- -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer }
879
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer]
880
+ required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer }
966
881
 
967
882
  # @!attribute description
968
883
  #
@@ -976,9 +891,9 @@ module Orb
976
891
 
977
892
  # @!attribute entry_status
978
893
  #
979
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus]
894
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus]
980
895
  required :entry_status,
981
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus }
896
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus }
982
897
 
983
898
  # @!attribute entry_type
984
899
  #
@@ -1019,49 +934,45 @@ module Orb
1019
934
  # @return [String, nil]
1020
935
  required :void_reason, String, nil?: true
1021
936
 
1022
- # @!parse
1023
- # # @param id [String]
1024
- # # @param amount [Float]
1025
- # # @param created_at [Time]
1026
- # # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock]
1027
- # # @param currency [String]
1028
- # # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer]
1029
- # # @param description [String, nil]
1030
- # # @param ending_balance [Float]
1031
- # # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus]
1032
- # # @param ledger_sequence_number [Integer]
1033
- # # @param metadata [Hash{Symbol=>String}]
1034
- # # @param new_block_expiry_date [Time]
1035
- # # @param starting_balance [Float]
1036
- # # @param void_amount [Float]
1037
- # # @param void_reason [String, nil]
1038
- # # @param entry_type [Symbol, :void_initiated]
1039
- # #
1040
- # def initialize(
1041
- # id:,
1042
- # amount:,
1043
- # created_at:,
1044
- # credit_block:,
1045
- # currency:,
1046
- # customer:,
1047
- # description:,
1048
- # ending_balance:,
1049
- # entry_status:,
1050
- # ledger_sequence_number:,
1051
- # metadata:,
1052
- # new_block_expiry_date:,
1053
- # starting_balance:,
1054
- # void_amount:,
1055
- # void_reason:,
1056
- # entry_type: :void_initiated,
1057
- # **
1058
- # )
1059
- # super
1060
- # end
1061
-
1062
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1063
-
1064
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry#credit_block
937
+ # @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, new_block_expiry_date:, starting_balance:, void_amount:, void_reason:, entry_type: :void_initiated)
938
+ # Some parameter documentations has been truncated, see
939
+ # {Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated} for more
940
+ # details.
941
+ #
942
+ # @param id [String]
943
+ #
944
+ # @param amount [Float]
945
+ #
946
+ # @param created_at [Time]
947
+ #
948
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock]
949
+ #
950
+ # @param currency [String]
951
+ #
952
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer]
953
+ #
954
+ # @param description [String, nil]
955
+ #
956
+ # @param ending_balance [Float]
957
+ #
958
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus]
959
+ #
960
+ # @param ledger_sequence_number [Integer]
961
+ #
962
+ # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
963
+ # ...
964
+ #
965
+ # @param new_block_expiry_date [Time]
966
+ #
967
+ # @param starting_balance [Float]
968
+ #
969
+ # @param void_amount [Float]
970
+ #
971
+ # @param void_reason [String, nil]
972
+ #
973
+ # @param entry_type [Symbol, :void_initiated]
974
+
975
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated#credit_block
1065
976
  class CreditBlock < Orb::Internal::Type::BaseModel
1066
977
  # @!attribute id
1067
978
  #
@@ -1078,17 +989,13 @@ module Orb
1078
989
  # @return [String, nil]
1079
990
  required :per_unit_cost_basis, String, nil?: true
1080
991
 
1081
- # @!parse
1082
- # # @param id [String]
1083
- # # @param expiry_date [Time, nil]
1084
- # # @param per_unit_cost_basis [String, nil]
1085
- # #
1086
- # def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
1087
-
1088
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
992
+ # @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
993
+ # @param id [String]
994
+ # @param expiry_date [Time, nil]
995
+ # @param per_unit_cost_basis [String, nil]
1089
996
  end
1090
997
 
1091
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry#customer
998
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated#customer
1092
999
  class Customer < Orb::Internal::Type::BaseModel
1093
1000
  # @!attribute id
1094
1001
  #
@@ -1100,31 +1007,24 @@ module Orb
1100
1007
  # @return [String, nil]
1101
1008
  required :external_customer_id, String, nil?: true
1102
1009
 
1103
- # @!parse
1104
- # # @param id [String]
1105
- # # @param external_customer_id [String, nil]
1106
- # #
1107
- # def initialize(id:, external_customer_id:, **) = super
1108
-
1109
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1010
+ # @!method initialize(id:, external_customer_id:)
1011
+ # @param id [String]
1012
+ # @param external_customer_id [String, nil]
1110
1013
  end
1111
1014
 
1112
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry#entry_status
1015
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated#entry_status
1113
1016
  module EntryStatus
1114
1017
  extend Orb::Internal::Type::Enum
1115
1018
 
1116
1019
  COMMITTED = :committed
1117
1020
  PENDING = :pending
1118
1021
 
1119
- finalize!
1120
-
1121
- # @!parse
1122
- # # @return [Array<Symbol>]
1123
- # def self.values; end
1022
+ # @!method self.values
1023
+ # @return [Array<Symbol>]
1124
1024
  end
1125
1025
  end
1126
1026
 
1127
- class AmendmentLedgerEntry < Orb::Internal::Type::BaseModel
1027
+ class Amendment < Orb::Internal::Type::BaseModel
1128
1028
  # @!attribute id
1129
1029
  #
1130
1030
  # @return [String]
@@ -1142,9 +1042,8 @@ module Orb
1142
1042
 
1143
1043
  # @!attribute credit_block
1144
1044
  #
1145
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock]
1146
- required :credit_block,
1147
- -> { Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock }
1045
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock]
1046
+ required :credit_block, -> { Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock }
1148
1047
 
1149
1048
  # @!attribute currency
1150
1049
  #
@@ -1153,9 +1052,8 @@ module Orb
1153
1052
 
1154
1053
  # @!attribute customer
1155
1054
  #
1156
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer]
1157
- required :customer,
1158
- -> { Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer }
1055
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer]
1056
+ required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer }
1159
1057
 
1160
1058
  # @!attribute description
1161
1059
  #
@@ -1169,9 +1067,9 @@ module Orb
1169
1067
 
1170
1068
  # @!attribute entry_status
1171
1069
  #
1172
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus]
1070
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus]
1173
1071
  required :entry_status,
1174
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus }
1072
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus }
1175
1073
 
1176
1074
  # @!attribute entry_type
1177
1075
  #
@@ -1197,43 +1095,39 @@ module Orb
1197
1095
  # @return [Float]
1198
1096
  required :starting_balance, Float
1199
1097
 
1200
- # @!parse
1201
- # # @param id [String]
1202
- # # @param amount [Float]
1203
- # # @param created_at [Time]
1204
- # # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock]
1205
- # # @param currency [String]
1206
- # # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer]
1207
- # # @param description [String, nil]
1208
- # # @param ending_balance [Float]
1209
- # # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus]
1210
- # # @param ledger_sequence_number [Integer]
1211
- # # @param metadata [Hash{Symbol=>String}]
1212
- # # @param starting_balance [Float]
1213
- # # @param entry_type [Symbol, :amendment]
1214
- # #
1215
- # def initialize(
1216
- # id:,
1217
- # amount:,
1218
- # created_at:,
1219
- # credit_block:,
1220
- # currency:,
1221
- # customer:,
1222
- # description:,
1223
- # ending_balance:,
1224
- # entry_status:,
1225
- # ledger_sequence_number:,
1226
- # metadata:,
1227
- # starting_balance:,
1228
- # entry_type: :amendment,
1229
- # **
1230
- # )
1231
- # super
1232
- # end
1233
-
1234
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1235
-
1236
- # @see Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry#credit_block
1098
+ # @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, entry_type: :amendment)
1099
+ # Some parameter documentations has been truncated, see
1100
+ # {Orb::Models::Customers::Credits::LedgerListResponse::Amendment} for more
1101
+ # details.
1102
+ #
1103
+ # @param id [String]
1104
+ #
1105
+ # @param amount [Float]
1106
+ #
1107
+ # @param created_at [Time]
1108
+ #
1109
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock]
1110
+ #
1111
+ # @param currency [String]
1112
+ #
1113
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer]
1114
+ #
1115
+ # @param description [String, nil]
1116
+ #
1117
+ # @param ending_balance [Float]
1118
+ #
1119
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus]
1120
+ #
1121
+ # @param ledger_sequence_number [Integer]
1122
+ #
1123
+ # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
1124
+ # ...
1125
+ #
1126
+ # @param starting_balance [Float]
1127
+ #
1128
+ # @param entry_type [Symbol, :amendment]
1129
+
1130
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Amendment#credit_block
1237
1131
  class CreditBlock < Orb::Internal::Type::BaseModel
1238
1132
  # @!attribute id
1239
1133
  #
@@ -1250,17 +1144,13 @@ module Orb
1250
1144
  # @return [String, nil]
1251
1145
  required :per_unit_cost_basis, String, nil?: true
1252
1146
 
1253
- # @!parse
1254
- # # @param id [String]
1255
- # # @param expiry_date [Time, nil]
1256
- # # @param per_unit_cost_basis [String, nil]
1257
- # #
1258
- # def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
1259
-
1260
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1147
+ # @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
1148
+ # @param id [String]
1149
+ # @param expiry_date [Time, nil]
1150
+ # @param per_unit_cost_basis [String, nil]
1261
1151
  end
1262
1152
 
1263
- # @see Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry#customer
1153
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Amendment#customer
1264
1154
  class Customer < Orb::Internal::Type::BaseModel
1265
1155
  # @!attribute id
1266
1156
  #
@@ -1272,33 +1162,25 @@ module Orb
1272
1162
  # @return [String, nil]
1273
1163
  required :external_customer_id, String, nil?: true
1274
1164
 
1275
- # @!parse
1276
- # # @param id [String]
1277
- # # @param external_customer_id [String, nil]
1278
- # #
1279
- # def initialize(id:, external_customer_id:, **) = super
1280
-
1281
- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1165
+ # @!method initialize(id:, external_customer_id:)
1166
+ # @param id [String]
1167
+ # @param external_customer_id [String, nil]
1282
1168
  end
1283
1169
 
1284
- # @see Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry#entry_status
1170
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Amendment#entry_status
1285
1171
  module EntryStatus
1286
1172
  extend Orb::Internal::Type::Enum
1287
1173
 
1288
1174
  COMMITTED = :committed
1289
1175
  PENDING = :pending
1290
1176
 
1291
- finalize!
1292
-
1293
- # @!parse
1294
- # # @return [Array<Symbol>]
1295
- # def self.values; end
1177
+ # @!method self.values
1178
+ # @return [Array<Symbol>]
1296
1179
  end
1297
1180
  end
1298
1181
 
1299
- # @!parse
1300
- # # @return [Array(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)]
1301
- # def self.variants; end
1182
+ # @!method self.variants
1183
+ # @return [Array(Orb::Models::Customers::Credits::LedgerListResponse::Increment, Orb::Models::Customers::Credits::LedgerListResponse::Decrement, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerListResponse::Void, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerListResponse::Amendment)]
1302
1184
  end
1303
1185
  end
1304
1186
  end