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