orb-billing 0.3.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 (310) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +5 -5
  4. data/lib/orb/errors.rb +9 -9
  5. data/lib/orb/internal/page.rb +3 -3
  6. data/lib/orb/internal/transport/base_client.rb +3 -3
  7. data/lib/orb/internal/type/base_model.rb +1 -9
  8. data/lib/orb/internal/type/boolean.rb +10 -11
  9. data/lib/orb/internal/type/enum.rb +10 -11
  10. data/lib/orb/internal/type/request_parameters.rb +2 -8
  11. data/lib/orb/internal/type/unknown.rb +10 -11
  12. data/lib/orb/internal/util.rb +20 -4
  13. data/lib/orb/models/coupon_create_params.rb +7 -7
  14. data/lib/orb/models/customer_create_params.rb +7 -7
  15. data/lib/orb/models/customer_update_by_external_id_params.rb +7 -9
  16. data/lib/orb/models/customer_update_params.rb +7 -7
  17. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +2 -2
  18. data/lib/orb/models/customers/cost_list_response.rb +2 -2
  19. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +106 -107
  20. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +111 -119
  21. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +110 -114
  22. data/lib/orb/models/customers/credits/ledger_list_response.rb +112 -124
  23. data/lib/orb/models/invoice.rb +50 -64
  24. data/lib/orb/models/invoice_fetch_upcoming_response.rb +51 -55
  25. data/lib/orb/models/invoice_line_item_create_response.rb +54 -57
  26. data/lib/orb/models/plan.rb +20 -23
  27. data/lib/orb/models/plan_create_params.rb +635 -670
  28. data/lib/orb/models/price.rb +1547 -1599
  29. data/lib/orb/models/subscription.rb +35 -41
  30. data/lib/orb/models/subscription_cancel_response.rb +33 -36
  31. data/lib/orb/models/subscription_change_apply_response.rb +31 -32
  32. data/lib/orb/models/subscription_change_cancel_response.rb +31 -31
  33. data/lib/orb/models/subscription_change_retrieve_response.rb +31 -31
  34. data/lib/orb/models/subscription_create_params.rb +1316 -1367
  35. data/lib/orb/models/subscription_create_response.rb +33 -36
  36. data/lib/orb/models/subscription_fetch_costs_response.rb +2 -2
  37. data/lib/orb/models/subscription_price_intervals_params.rb +748 -774
  38. data/lib/orb/models/subscription_price_intervals_response.rb +32 -35
  39. data/lib/orb/models/subscription_schedule_plan_change_params.rb +1299 -1354
  40. data/lib/orb/models/subscription_schedule_plan_change_response.rb +31 -33
  41. data/lib/orb/models/subscription_trigger_phase_response.rb +32 -35
  42. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +31 -33
  43. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +31 -31
  44. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +31 -31
  45. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +31 -33
  46. data/lib/orb/models/subscription_update_trial_response.rb +33 -36
  47. data/lib/orb/models.rb +220 -0
  48. data/lib/orb/request_options.rb +4 -5
  49. data/lib/orb/resources/coupons.rb +1 -1
  50. data/lib/orb/resources/customers/credits/ledger.rb +4 -4
  51. data/lib/orb/resources/customers.rb +3 -3
  52. data/lib/orb/resources/plans.rb +1 -1
  53. data/lib/orb/resources/prices/external_price_id.rb +2 -2
  54. data/lib/orb/resources/prices.rb +4 -4
  55. data/lib/orb/version.rb +1 -1
  56. data/rbi/{lib/orb → orb}/errors.rbi +1 -1
  57. data/rbi/{lib/orb → orb}/internal/transport/base_client.rbi +2 -2
  58. data/rbi/{lib/orb → orb}/internal/type/request_parameters.rbi +1 -1
  59. data/rbi/{lib/orb → orb}/internal/util.rbi +5 -1
  60. data/rbi/{lib/orb → orb}/models/coupon_create_params.rbi +9 -9
  61. data/rbi/{lib/orb → orb}/models/customer_create_params.rbi +9 -9
  62. data/rbi/{lib/orb → orb}/models/customer_update_by_external_id_params.rbi +9 -9
  63. data/rbi/{lib/orb → orb}/models/customer_update_params.rbi +9 -9
  64. data/rbi/{lib/orb → orb}/models/customers/cost_list_by_external_id_response.rbi +84 -84
  65. data/rbi/{lib/orb → orb}/models/customers/cost_list_response.rbi +84 -84
  66. data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_response.rbi → orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi} +122 -114
  67. data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi → orb/models/customers/credits/ledger_create_entry_response.rbi} +114 -216
  68. data/rbi/{lib/orb/models/customers/credits/ledger_list_response.rbi → orb/models/customers/credits/ledger_list_by_external_id_response.rbi} +114 -114
  69. data/rbi/{lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi → orb/models/customers/credits/ledger_list_response.rbi} +114 -271
  70. data/rbi/{lib/orb → orb}/models/invoice.rbi +138 -156
  71. data/rbi/{lib/orb → orb}/models/invoice_fetch_upcoming_response.rbi +138 -150
  72. data/rbi/{lib/orb → orb}/models/invoice_line_item_create_response.rbi +138 -162
  73. data/rbi/{lib/orb → orb}/models/plan.rbi +105 -105
  74. data/rbi/{lib/orb → orb}/models/plan_create_params.rbi +973 -1734
  75. data/rbi/{lib/orb → orb}/models/price.rbi +1875 -2267
  76. data/rbi/{lib/orb → orb}/models/subscription.rbi +118 -118
  77. data/rbi/{lib/orb → orb}/models/subscription_cancel_response.rbi +118 -118
  78. data/rbi/{lib/orb → orb}/models/subscription_change_apply_response.rbi +118 -118
  79. data/rbi/{lib/orb → orb}/models/subscription_change_cancel_response.rbi +118 -118
  80. data/rbi/{lib/orb → orb}/models/subscription_change_retrieve_response.rbi +118 -118
  81. data/rbi/{lib/orb → orb}/models/subscription_create_params.rbi +1988 -2733
  82. data/rbi/{lib/orb → orb}/models/subscription_create_response.rbi +118 -118
  83. data/rbi/{lib/orb → orb}/models/subscription_fetch_costs_response.rbi +84 -84
  84. data/rbi/{lib/orb → orb}/models/subscription_price_intervals_params.rbi +1125 -1455
  85. data/rbi/{lib/orb → orb}/models/subscription_price_intervals_response.rbi +118 -118
  86. data/rbi/{lib/orb → orb}/models/subscription_schedule_plan_change_params.rbi +1988 -2210
  87. data/rbi/{lib/orb → orb}/models/subscription_schedule_plan_change_response.rbi +118 -118
  88. data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_response.rbi +118 -118
  89. data/rbi/{lib/orb → orb}/models/subscription_unschedule_cancellation_response.rbi +118 -118
  90. data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +118 -118
  91. data/rbi/{lib/orb → orb}/models/subscription_unschedule_pending_plan_changes_response.rbi +118 -118
  92. data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_response.rbi +118 -118
  93. data/rbi/{lib/orb → orb}/models/subscription_update_trial_response.rbi +118 -118
  94. data/rbi/orb/models.rbi +220 -0
  95. data/rbi/{lib/orb → orb}/request_options.rbi +2 -0
  96. data/rbi/{lib/orb → orb}/resources/alerts.rbi +8 -14
  97. data/rbi/{lib/orb → orb}/resources/coupons/subscriptions.rbi +1 -1
  98. data/rbi/{lib/orb → orb}/resources/coupons.rbi +6 -18
  99. data/rbi/{lib/orb → orb}/resources/credit_notes.rbi +3 -9
  100. data/rbi/{lib/orb → orb}/resources/customers/balance_transactions.rbi +2 -2
  101. data/rbi/{lib/orb → orb}/resources/customers/costs.rbi +2 -2
  102. data/rbi/{lib/orb → orb}/resources/customers/credits/ledger.rbi +32 -32
  103. data/rbi/{lib/orb → orb}/resources/customers/credits/top_ups.rbi +6 -18
  104. data/rbi/{lib/orb → orb}/resources/customers/credits.rbi +2 -2
  105. data/rbi/{lib/orb → orb}/resources/customers.rbi +15 -45
  106. data/rbi/{lib/orb → orb}/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +1 -4
  107. data/rbi/{lib/orb → orb}/resources/dimensional_price_groups.rbi +3 -10
  108. data/rbi/{lib/orb → orb}/resources/events/backfills.rbi +5 -18
  109. data/rbi/{lib/orb → orb}/resources/events/volume.rbi +1 -1
  110. data/rbi/{lib/orb → orb}/resources/events.rbi +4 -10
  111. data/rbi/{lib/orb → orb}/resources/invoice_line_items.rbi +1 -1
  112. data/rbi/{lib/orb → orb}/resources/invoices.rbi +9 -34
  113. data/rbi/{lib/orb → orb}/resources/items.rbi +4 -17
  114. data/rbi/{lib/orb → orb}/resources/metrics.rbi +4 -10
  115. data/rbi/{lib/orb → orb}/resources/plans/external_plan_id.rbi +2 -8
  116. data/rbi/{lib/orb → orb}/resources/plans.rbi +29 -35
  117. data/rbi/orb/resources/prices/external_price_id.rbi +103 -0
  118. data/rbi/{lib/orb → orb}/resources/prices.rbi +117 -124
  119. data/rbi/{lib/orb → orb}/resources/subscription_changes.rbi +3 -9
  120. data/rbi/{lib/orb → orb}/resources/subscriptions.rbi +16 -32
  121. data/rbi/{lib/orb → orb}/resources/top_level.rbi +1 -4
  122. data/sig/orb/internal/util.rbs +2 -0
  123. data/sig/orb/models/coupon_create_params.rbs +9 -10
  124. data/sig/orb/models/customer_create_params.rbs +9 -10
  125. data/sig/orb/models/customer_update_by_external_id_params.rbs +9 -10
  126. data/sig/orb/models/customer_update_params.rbs +9 -10
  127. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +113 -113
  128. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +113 -113
  129. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +113 -113
  130. data/sig/orb/models/customers/credits/ledger_list_response.rbs +113 -113
  131. data/sig/orb/models/invoice.rbs +54 -54
  132. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +54 -54
  133. data/sig/orb/models/invoice_line_item_create_response.rbs +54 -54
  134. data/sig/orb/models/plan.rbs +21 -21
  135. data/sig/orb/models/plan_create_params.rbs +653 -653
  136. data/sig/orb/models/price.rbs +1517 -1521
  137. data/sig/orb/models/subscription.rbs +34 -34
  138. data/sig/orb/models/subscription_cancel_response.rbs +34 -34
  139. data/sig/orb/models/subscription_change_apply_response.rbs +34 -34
  140. data/sig/orb/models/subscription_change_cancel_response.rbs +34 -34
  141. data/sig/orb/models/subscription_change_retrieve_response.rbs +34 -34
  142. data/sig/orb/models/subscription_create_params.rbs +1348 -1348
  143. data/sig/orb/models/subscription_create_response.rbs +34 -34
  144. data/sig/orb/models/subscription_price_intervals_params.rbs +767 -769
  145. data/sig/orb/models/subscription_price_intervals_response.rbs +34 -34
  146. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1348 -1348
  147. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +34 -34
  148. data/sig/orb/models/subscription_trigger_phase_response.rbs +34 -34
  149. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +34 -34
  150. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +34 -34
  151. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +34 -34
  152. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +34 -34
  153. data/sig/orb/models/subscription_update_trial_response.rbs +34 -34
  154. data/sig/orb/models.rbs +215 -0
  155. metadata +226 -223
  156. data/rbi/lib/orb/resources/prices/external_price_id.rbi +0 -106
  157. data/rbi/{lib/orb → orb}/client.rbi +0 -0
  158. data/rbi/{lib/orb → orb}/file_part.rbi +0 -0
  159. data/rbi/{lib/orb → orb}/internal/page.rbi +0 -0
  160. data/rbi/{lib/orb → orb}/internal/transport/pooled_net_requester.rbi +0 -0
  161. data/rbi/{lib/orb → orb}/internal/type/array_of.rbi +0 -0
  162. data/rbi/{lib/orb → orb}/internal/type/base_model.rbi +0 -0
  163. data/rbi/{lib/orb → orb}/internal/type/base_page.rbi +0 -0
  164. data/rbi/{lib/orb → orb}/internal/type/boolean.rbi +0 -0
  165. data/rbi/{lib/orb → orb}/internal/type/converter.rbi +0 -0
  166. data/rbi/{lib/orb → orb}/internal/type/enum.rbi +0 -0
  167. data/rbi/{lib/orb → orb}/internal/type/file_input.rbi +0 -0
  168. data/rbi/{lib/orb → orb}/internal/type/hash_of.rbi +0 -0
  169. data/rbi/{lib/orb → orb}/internal/type/union.rbi +0 -0
  170. data/rbi/{lib/orb → orb}/internal/type/unknown.rbi +0 -0
  171. data/rbi/{lib/orb → orb}/internal.rbi +0 -0
  172. data/rbi/{lib/orb → orb}/models/alert.rbi +0 -0
  173. data/rbi/{lib/orb → orb}/models/alert_create_for_customer_params.rbi +0 -0
  174. data/rbi/{lib/orb → orb}/models/alert_create_for_external_customer_params.rbi +0 -0
  175. data/rbi/{lib/orb → orb}/models/alert_create_for_subscription_params.rbi +0 -0
  176. data/rbi/{lib/orb → orb}/models/alert_disable_params.rbi +0 -0
  177. data/rbi/{lib/orb → orb}/models/alert_enable_params.rbi +0 -0
  178. data/rbi/{lib/orb → orb}/models/alert_list_params.rbi +0 -0
  179. data/rbi/{lib/orb → orb}/models/alert_retrieve_params.rbi +0 -0
  180. data/rbi/{lib/orb → orb}/models/alert_update_params.rbi +0 -0
  181. data/rbi/{lib/orb → orb}/models/amount_discount.rbi +0 -0
  182. data/rbi/{lib/orb → orb}/models/billable_metric.rbi +0 -0
  183. data/rbi/{lib/orb → orb}/models/billing_cycle_relative_date.rbi +0 -0
  184. data/rbi/{lib/orb → orb}/models/coupon.rbi +0 -0
  185. data/rbi/{lib/orb → orb}/models/coupon_archive_params.rbi +0 -0
  186. data/rbi/{lib/orb → orb}/models/coupon_fetch_params.rbi +0 -0
  187. data/rbi/{lib/orb → orb}/models/coupon_list_params.rbi +0 -0
  188. data/rbi/{lib/orb → orb}/models/coupons/subscription_list_params.rbi +0 -0
  189. data/rbi/{lib/orb → orb}/models/credit_note.rbi +0 -0
  190. data/rbi/{lib/orb → orb}/models/credit_note_create_params.rbi +0 -0
  191. data/rbi/{lib/orb → orb}/models/credit_note_fetch_params.rbi +0 -0
  192. data/rbi/{lib/orb → orb}/models/credit_note_list_params.rbi +0 -0
  193. data/rbi/{lib/orb → orb}/models/customer.rbi +0 -0
  194. data/rbi/{lib/orb → orb}/models/customer_delete_params.rbi +0 -0
  195. data/rbi/{lib/orb → orb}/models/customer_fetch_by_external_id_params.rbi +0 -0
  196. data/rbi/{lib/orb → orb}/models/customer_fetch_params.rbi +0 -0
  197. data/rbi/{lib/orb → orb}/models/customer_list_params.rbi +0 -0
  198. data/rbi/{lib/orb → orb}/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +0 -0
  199. data/rbi/{lib/orb → orb}/models/customer_sync_payment_methods_from_gateway_params.rbi +0 -0
  200. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_create_params.rbi +0 -0
  201. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_create_response.rbi +0 -0
  202. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_list_params.rbi +0 -0
  203. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_list_response.rbi +0 -0
  204. data/rbi/{lib/orb → orb}/models/customers/cost_list_by_external_id_params.rbi +0 -0
  205. data/rbi/{lib/orb → orb}/models/customers/cost_list_params.rbi +0 -0
  206. data/rbi/{lib/orb → orb}/models/customers/credit_list_by_external_id_params.rbi +0 -0
  207. data/rbi/{lib/orb → orb}/models/customers/credit_list_by_external_id_response.rbi +0 -0
  208. data/rbi/{lib/orb → orb}/models/customers/credit_list_params.rbi +0 -0
  209. data/rbi/{lib/orb → orb}/models/customers/credit_list_response.rbi +0 -0
  210. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +0 -0
  211. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_create_entry_params.rbi +0 -0
  212. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_by_external_id_params.rbi +0 -0
  213. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_params.rbi +0 -0
  214. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_by_external_id_params.rbi +0 -0
  215. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_by_external_id_response.rbi +0 -0
  216. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_params.rbi +0 -0
  217. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_response.rbi +0 -0
  218. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_delete_by_external_id_params.rbi +0 -0
  219. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_delete_params.rbi +0 -0
  220. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_params.rbi +0 -0
  221. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_response.rbi +0 -0
  222. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_params.rbi +0 -0
  223. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_response.rbi +0 -0
  224. data/rbi/{lib/orb → orb}/models/dimensional_price_group.rbi +0 -0
  225. data/rbi/{lib/orb → orb}/models/dimensional_price_group_create_params.rbi +0 -0
  226. data/rbi/{lib/orb → orb}/models/dimensional_price_group_list_params.rbi +0 -0
  227. data/rbi/{lib/orb → orb}/models/dimensional_price_group_retrieve_params.rbi +0 -0
  228. data/rbi/{lib/orb → orb}/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +0 -0
  229. data/rbi/{lib/orb → orb}/models/dimensional_price_groups.rbi +0 -0
  230. data/rbi/{lib/orb → orb}/models/discount.rbi +0 -0
  231. data/rbi/{lib/orb → orb}/models/evaluate_price_group.rbi +0 -0
  232. data/rbi/{lib/orb → orb}/models/event_deprecate_params.rbi +0 -0
  233. data/rbi/{lib/orb → orb}/models/event_deprecate_response.rbi +0 -0
  234. data/rbi/{lib/orb → orb}/models/event_ingest_params.rbi +0 -0
  235. data/rbi/{lib/orb → orb}/models/event_ingest_response.rbi +0 -0
  236. data/rbi/{lib/orb → orb}/models/event_search_params.rbi +0 -0
  237. data/rbi/{lib/orb → orb}/models/event_search_response.rbi +0 -0
  238. data/rbi/{lib/orb → orb}/models/event_update_params.rbi +0 -0
  239. data/rbi/{lib/orb → orb}/models/event_update_response.rbi +0 -0
  240. data/rbi/{lib/orb → orb}/models/events/backfill_close_params.rbi +0 -0
  241. data/rbi/{lib/orb → orb}/models/events/backfill_close_response.rbi +0 -0
  242. data/rbi/{lib/orb → orb}/models/events/backfill_create_params.rbi +0 -0
  243. data/rbi/{lib/orb → orb}/models/events/backfill_create_response.rbi +0 -0
  244. data/rbi/{lib/orb → orb}/models/events/backfill_fetch_params.rbi +0 -0
  245. data/rbi/{lib/orb → orb}/models/events/backfill_fetch_response.rbi +0 -0
  246. data/rbi/{lib/orb → orb}/models/events/backfill_list_params.rbi +0 -0
  247. data/rbi/{lib/orb → orb}/models/events/backfill_list_response.rbi +0 -0
  248. data/rbi/{lib/orb → orb}/models/events/backfill_revert_params.rbi +0 -0
  249. data/rbi/{lib/orb → orb}/models/events/backfill_revert_response.rbi +0 -0
  250. data/rbi/{lib/orb → orb}/models/events/event_volumes.rbi +2 -2
  251. /data/rbi/{lib/orb → orb}/models/events/volume_list_params.rbi +0 -0
  252. /data/rbi/{lib/orb → orb}/models/invoice_create_params.rbi +0 -0
  253. /data/rbi/{lib/orb → orb}/models/invoice_fetch_params.rbi +0 -0
  254. /data/rbi/{lib/orb → orb}/models/invoice_fetch_upcoming_params.rbi +0 -0
  255. /data/rbi/{lib/orb → orb}/models/invoice_issue_params.rbi +0 -0
  256. /data/rbi/{lib/orb → orb}/models/invoice_level_discount.rbi +0 -0
  257. /data/rbi/{lib/orb → orb}/models/invoice_line_item_create_params.rbi +0 -0
  258. /data/rbi/{lib/orb → orb}/models/invoice_list_params.rbi +0 -0
  259. /data/rbi/{lib/orb → orb}/models/invoice_mark_paid_params.rbi +0 -0
  260. /data/rbi/{lib/orb → orb}/models/invoice_pay_params.rbi +0 -0
  261. /data/rbi/{lib/orb → orb}/models/invoice_update_params.rbi +0 -0
  262. /data/rbi/{lib/orb → orb}/models/invoice_void_params.rbi +0 -0
  263. /data/rbi/{lib/orb → orb}/models/item.rbi +0 -0
  264. /data/rbi/{lib/orb → orb}/models/item_create_params.rbi +0 -0
  265. /data/rbi/{lib/orb → orb}/models/item_fetch_params.rbi +0 -0
  266. /data/rbi/{lib/orb → orb}/models/item_list_params.rbi +0 -0
  267. /data/rbi/{lib/orb → orb}/models/item_update_params.rbi +0 -0
  268. /data/rbi/{lib/orb → orb}/models/metric_create_params.rbi +0 -0
  269. /data/rbi/{lib/orb → orb}/models/metric_fetch_params.rbi +0 -0
  270. /data/rbi/{lib/orb → orb}/models/metric_list_params.rbi +0 -0
  271. /data/rbi/{lib/orb → orb}/models/metric_update_params.rbi +0 -0
  272. /data/rbi/{lib/orb → orb}/models/pagination_metadata.rbi +0 -0
  273. /data/rbi/{lib/orb → orb}/models/percentage_discount.rbi +0 -0
  274. /data/rbi/{lib/orb → orb}/models/plan_fetch_params.rbi +0 -0
  275. /data/rbi/{lib/orb → orb}/models/plan_list_params.rbi +0 -0
  276. /data/rbi/{lib/orb → orb}/models/plan_update_params.rbi +0 -0
  277. /data/rbi/{lib/orb → orb}/models/plans/external_plan_id_fetch_params.rbi +0 -0
  278. /data/rbi/{lib/orb → orb}/models/plans/external_plan_id_update_params.rbi +0 -0
  279. /data/rbi/{lib/orb → orb}/models/price_create_params.rbi +0 -0
  280. /data/rbi/{lib/orb → orb}/models/price_evaluate_params.rbi +0 -0
  281. /data/rbi/{lib/orb → orb}/models/price_evaluate_response.rbi +0 -0
  282. /data/rbi/{lib/orb → orb}/models/price_fetch_params.rbi +0 -0
  283. /data/rbi/{lib/orb → orb}/models/price_list_params.rbi +0 -0
  284. /data/rbi/{lib/orb → orb}/models/price_update_params.rbi +0 -0
  285. /data/rbi/{lib/orb → orb}/models/prices/external_price_id_fetch_params.rbi +0 -0
  286. /data/rbi/{lib/orb → orb}/models/prices/external_price_id_update_params.rbi +0 -0
  287. /data/rbi/{lib/orb → orb}/models/subscription_cancel_params.rbi +0 -0
  288. /data/rbi/{lib/orb → orb}/models/subscription_change_apply_params.rbi +0 -0
  289. /data/rbi/{lib/orb → orb}/models/subscription_change_cancel_params.rbi +0 -0
  290. /data/rbi/{lib/orb → orb}/models/subscription_change_retrieve_params.rbi +0 -0
  291. /data/rbi/{lib/orb → orb}/models/subscription_fetch_costs_params.rbi +0 -0
  292. /data/rbi/{lib/orb → orb}/models/subscription_fetch_params.rbi +0 -0
  293. /data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_params.rbi +0 -0
  294. /data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_response.rbi +0 -0
  295. /data/rbi/{lib/orb → orb}/models/subscription_fetch_usage_params.rbi +0 -0
  296. /data/rbi/{lib/orb → orb}/models/subscription_list_params.rbi +0 -0
  297. /data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_params.rbi +0 -0
  298. /data/rbi/{lib/orb → orb}/models/subscription_unschedule_cancellation_params.rbi +0 -0
  299. /data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +0 -0
  300. /data/rbi/{lib/orb → orb}/models/subscription_unschedule_pending_plan_changes_params.rbi +0 -0
  301. /data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_params.rbi +0 -0
  302. /data/rbi/{lib/orb → orb}/models/subscription_update_params.rbi +0 -0
  303. /data/rbi/{lib/orb → orb}/models/subscription_update_trial_params.rbi +0 -0
  304. /data/rbi/{lib/orb → orb}/models/subscription_usage.rbi +0 -0
  305. /data/rbi/{lib/orb → orb}/models/subscriptions.rbi +0 -0
  306. /data/rbi/{lib/orb → orb}/models/top_level_ping_params.rbi +0 -0
  307. /data/rbi/{lib/orb → orb}/models/top_level_ping_response.rbi +0 -0
  308. /data/rbi/{lib/orb → orb}/models/trial_discount.rbi +0 -0
  309. /data/rbi/{lib/orb → orb}/models/usage_discount.rbi +0 -0
  310. /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
  #
@@ -105,8 +101,8 @@ module Orb
105
101
 
106
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)
107
103
  # Some parameter documentations has been truncated, see
108
- # {Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry} for
109
- # more details.
104
+ # {Orb::Models::Customers::Credits::LedgerListResponse::Increment} for more
105
+ # details.
110
106
  #
111
107
  # @param id [String]
112
108
  #
@@ -114,17 +110,17 @@ module Orb
114
110
  #
115
111
  # @param created_at [Time]
116
112
  #
117
- # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock]
113
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock]
118
114
  #
119
115
  # @param currency [String]
120
116
  #
121
- # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer]
117
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer]
122
118
  #
123
119
  # @param description [String, nil]
124
120
  #
125
121
  # @param ending_balance [Float]
126
122
  #
127
- # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus]
123
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus]
128
124
  #
129
125
  # @param ledger_sequence_number [Integer]
130
126
  #
@@ -135,7 +131,7 @@ module Orb
135
131
  #
136
132
  # @param entry_type [Symbol, :increment]
137
133
 
138
- # @see Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry#credit_block
134
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Increment#credit_block
139
135
  class CreditBlock < Orb::Internal::Type::BaseModel
140
136
  # @!attribute id
141
137
  #
@@ -158,7 +154,7 @@ module Orb
158
154
  # @param per_unit_cost_basis [String, nil]
159
155
  end
160
156
 
161
- # @see Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry#customer
157
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Increment#customer
162
158
  class Customer < Orb::Internal::Type::BaseModel
163
159
  # @!attribute id
164
160
  #
@@ -175,7 +171,7 @@ module Orb
175
171
  # @param external_customer_id [String, nil]
176
172
  end
177
173
 
178
- # @see Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry#entry_status
174
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Increment#entry_status
179
175
  module EntryStatus
180
176
  extend Orb::Internal::Type::Enum
181
177
 
@@ -187,7 +183,7 @@ module Orb
187
183
  end
188
184
  end
189
185
 
190
- class DecrementLedgerEntry < Orb::Internal::Type::BaseModel
186
+ class Decrement < Orb::Internal::Type::BaseModel
191
187
  # @!attribute id
192
188
  #
193
189
  # @return [String]
@@ -205,9 +201,8 @@ module Orb
205
201
 
206
202
  # @!attribute credit_block
207
203
  #
208
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock]
209
- required :credit_block,
210
- -> { 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 }
211
206
 
212
207
  # @!attribute currency
213
208
  #
@@ -216,9 +211,8 @@ module Orb
216
211
 
217
212
  # @!attribute customer
218
213
  #
219
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer]
220
- required :customer,
221
- -> { 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 }
222
216
 
223
217
  # @!attribute description
224
218
  #
@@ -232,9 +226,9 @@ module Orb
232
226
 
233
227
  # @!attribute entry_status
234
228
  #
235
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus]
229
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus]
236
230
  required :entry_status,
237
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus }
231
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus }
238
232
 
239
233
  # @!attribute entry_type
240
234
  #
@@ -277,8 +271,8 @@ module Orb
277
271
 
278
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)
279
273
  # Some parameter documentations has been truncated, see
280
- # {Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry} for
281
- # more details.
274
+ # {Orb::Models::Customers::Credits::LedgerListResponse::Decrement} for more
275
+ # details.
282
276
  #
283
277
  # @param id [String]
284
278
  #
@@ -286,17 +280,17 @@ module Orb
286
280
  #
287
281
  # @param created_at [Time]
288
282
  #
289
- # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock]
283
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock]
290
284
  #
291
285
  # @param currency [String]
292
286
  #
293
- # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer]
287
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer]
294
288
  #
295
289
  # @param description [String, nil]
296
290
  #
297
291
  # @param ending_balance [Float]
298
292
  #
299
- # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus]
293
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus]
300
294
  #
301
295
  # @param ledger_sequence_number [Integer]
302
296
  #
@@ -313,7 +307,7 @@ module Orb
313
307
  #
314
308
  # @param entry_type [Symbol, :decrement]
315
309
 
316
- # @see Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry#credit_block
310
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Decrement#credit_block
317
311
  class CreditBlock < Orb::Internal::Type::BaseModel
318
312
  # @!attribute id
319
313
  #
@@ -336,7 +330,7 @@ module Orb
336
330
  # @param per_unit_cost_basis [String, nil]
337
331
  end
338
332
 
339
- # @see Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry#customer
333
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Decrement#customer
340
334
  class Customer < Orb::Internal::Type::BaseModel
341
335
  # @!attribute id
342
336
  #
@@ -353,7 +347,7 @@ module Orb
353
347
  # @param external_customer_id [String, nil]
354
348
  end
355
349
 
356
- # @see Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry#entry_status
350
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Decrement#entry_status
357
351
  module EntryStatus
358
352
  extend Orb::Internal::Type::Enum
359
353
 
@@ -365,7 +359,7 @@ module Orb
365
359
  end
366
360
  end
367
361
 
368
- class ExpirationChangeLedgerEntry < Orb::Internal::Type::BaseModel
362
+ class ExpirationChange < Orb::Internal::Type::BaseModel
369
363
  # @!attribute id
370
364
  #
371
365
  # @return [String]
@@ -383,9 +377,9 @@ module Orb
383
377
 
384
378
  # @!attribute credit_block
385
379
  #
386
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock]
380
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock]
387
381
  required :credit_block,
388
- -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock }
382
+ -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock }
389
383
 
390
384
  # @!attribute currency
391
385
  #
@@ -394,9 +388,8 @@ module Orb
394
388
 
395
389
  # @!attribute customer
396
390
  #
397
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer]
398
- required :customer,
399
- -> { 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 }
400
393
 
401
394
  # @!attribute description
402
395
  #
@@ -410,9 +403,9 @@ module Orb
410
403
 
411
404
  # @!attribute entry_status
412
405
  #
413
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus]
406
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus]
414
407
  required :entry_status,
415
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus }
408
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus }
416
409
 
417
410
  # @!attribute entry_type
418
411
  #
@@ -445,8 +438,8 @@ module Orb
445
438
 
446
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)
447
440
  # Some parameter documentations has been truncated, see
448
- # {Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry}
449
- # for more details.
441
+ # {Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange} for more
442
+ # details.
450
443
  #
451
444
  # @param id [String]
452
445
  #
@@ -454,17 +447,17 @@ module Orb
454
447
  #
455
448
  # @param created_at [Time]
456
449
  #
457
- # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock]
450
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock]
458
451
  #
459
452
  # @param currency [String]
460
453
  #
461
- # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer]
454
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer]
462
455
  #
463
456
  # @param description [String, nil]
464
457
  #
465
458
  # @param ending_balance [Float]
466
459
  #
467
- # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus]
460
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus]
468
461
  #
469
462
  # @param ledger_sequence_number [Integer]
470
463
  #
@@ -477,7 +470,7 @@ module Orb
477
470
  #
478
471
  # @param entry_type [Symbol, :expiration_change]
479
472
 
480
- # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry#credit_block
473
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange#credit_block
481
474
  class CreditBlock < Orb::Internal::Type::BaseModel
482
475
  # @!attribute id
483
476
  #
@@ -500,7 +493,7 @@ module Orb
500
493
  # @param per_unit_cost_basis [String, nil]
501
494
  end
502
495
 
503
- # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry#customer
496
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange#customer
504
497
  class Customer < Orb::Internal::Type::BaseModel
505
498
  # @!attribute id
506
499
  #
@@ -517,7 +510,7 @@ module Orb
517
510
  # @param external_customer_id [String, nil]
518
511
  end
519
512
 
520
- # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry#entry_status
513
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange#entry_status
521
514
  module EntryStatus
522
515
  extend Orb::Internal::Type::Enum
523
516
 
@@ -529,7 +522,7 @@ module Orb
529
522
  end
530
523
  end
531
524
 
532
- class CreditBlockExpiryLedgerEntry < Orb::Internal::Type::BaseModel
525
+ class CreditBlockExpiry < Orb::Internal::Type::BaseModel
533
526
  # @!attribute id
534
527
  #
535
528
  # @return [String]
@@ -547,9 +540,9 @@ module Orb
547
540
 
548
541
  # @!attribute credit_block
549
542
  #
550
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock]
543
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock]
551
544
  required :credit_block,
552
- -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock }
545
+ -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock }
553
546
 
554
547
  # @!attribute currency
555
548
  #
@@ -558,9 +551,9 @@ module Orb
558
551
 
559
552
  # @!attribute customer
560
553
  #
561
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer]
554
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer]
562
555
  required :customer,
563
- -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer }
556
+ -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer }
564
557
 
565
558
  # @!attribute description
566
559
  #
@@ -574,9 +567,9 @@ module Orb
574
567
 
575
568
  # @!attribute entry_status
576
569
  #
577
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus]
570
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus]
578
571
  required :entry_status,
579
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus }
572
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus }
580
573
 
581
574
  # @!attribute entry_type
582
575
  #
@@ -604,8 +597,8 @@ module Orb
604
597
 
605
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)
606
599
  # Some parameter documentations has been truncated, see
607
- # {Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry}
608
- # for more details.
600
+ # {Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry} for
601
+ # more details.
609
602
  #
610
603
  # @param id [String]
611
604
  #
@@ -613,17 +606,17 @@ module Orb
613
606
  #
614
607
  # @param created_at [Time]
615
608
  #
616
- # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock]
609
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock]
617
610
  #
618
611
  # @param currency [String]
619
612
  #
620
- # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer]
613
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer]
621
614
  #
622
615
  # @param description [String, nil]
623
616
  #
624
617
  # @param ending_balance [Float]
625
618
  #
626
- # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus]
619
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus]
627
620
  #
628
621
  # @param ledger_sequence_number [Integer]
629
622
  #
@@ -634,7 +627,7 @@ module Orb
634
627
  #
635
628
  # @param entry_type [Symbol, :credit_block_expiry]
636
629
 
637
- # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry#credit_block
630
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry#credit_block
638
631
  class CreditBlock < Orb::Internal::Type::BaseModel
639
632
  # @!attribute id
640
633
  #
@@ -657,7 +650,7 @@ module Orb
657
650
  # @param per_unit_cost_basis [String, nil]
658
651
  end
659
652
 
660
- # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry#customer
653
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry#customer
661
654
  class Customer < Orb::Internal::Type::BaseModel
662
655
  # @!attribute id
663
656
  #
@@ -674,7 +667,7 @@ module Orb
674
667
  # @param external_customer_id [String, nil]
675
668
  end
676
669
 
677
- # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry#entry_status
670
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry#entry_status
678
671
  module EntryStatus
679
672
  extend Orb::Internal::Type::Enum
680
673
 
@@ -686,7 +679,7 @@ module Orb
686
679
  end
687
680
  end
688
681
 
689
- class VoidLedgerEntry < Orb::Internal::Type::BaseModel
682
+ class Void < Orb::Internal::Type::BaseModel
690
683
  # @!attribute id
691
684
  #
692
685
  # @return [String]
@@ -704,9 +697,8 @@ module Orb
704
697
 
705
698
  # @!attribute credit_block
706
699
  #
707
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock]
708
- required :credit_block,
709
- -> { 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 }
710
702
 
711
703
  # @!attribute currency
712
704
  #
@@ -715,8 +707,8 @@ module Orb
715
707
 
716
708
  # @!attribute customer
717
709
  #
718
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer]
719
- 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 }
720
712
 
721
713
  # @!attribute description
722
714
  #
@@ -730,9 +722,9 @@ module Orb
730
722
 
731
723
  # @!attribute entry_status
732
724
  #
733
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus]
725
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus]
734
726
  required :entry_status,
735
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus }
727
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus }
736
728
 
737
729
  # @!attribute entry_type
738
730
  #
@@ -770,8 +762,7 @@ module Orb
770
762
 
771
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)
772
764
  # Some parameter documentations has been truncated, see
773
- # {Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry} for more
774
- # details.
765
+ # {Orb::Models::Customers::Credits::LedgerListResponse::Void} for more details.
775
766
  #
776
767
  # @param id [String]
777
768
  #
@@ -779,17 +770,17 @@ module Orb
779
770
  #
780
771
  # @param created_at [Time]
781
772
  #
782
- # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock]
773
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock]
783
774
  #
784
775
  # @param currency [String]
785
776
  #
786
- # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer]
777
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer]
787
778
  #
788
779
  # @param description [String, nil]
789
780
  #
790
781
  # @param ending_balance [Float]
791
782
  #
792
- # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus]
783
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus]
793
784
  #
794
785
  # @param ledger_sequence_number [Integer]
795
786
  #
@@ -804,7 +795,7 @@ module Orb
804
795
  #
805
796
  # @param entry_type [Symbol, :void]
806
797
 
807
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry#credit_block
798
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Void#credit_block
808
799
  class CreditBlock < Orb::Internal::Type::BaseModel
809
800
  # @!attribute id
810
801
  #
@@ -827,7 +818,7 @@ module Orb
827
818
  # @param per_unit_cost_basis [String, nil]
828
819
  end
829
820
 
830
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry#customer
821
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Void#customer
831
822
  class Customer < Orb::Internal::Type::BaseModel
832
823
  # @!attribute id
833
824
  #
@@ -844,7 +835,7 @@ module Orb
844
835
  # @param external_customer_id [String, nil]
845
836
  end
846
837
 
847
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry#entry_status
838
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Void#entry_status
848
839
  module EntryStatus
849
840
  extend Orb::Internal::Type::Enum
850
841
 
@@ -856,7 +847,7 @@ module Orb
856
847
  end
857
848
  end
858
849
 
859
- class VoidInitiatedLedgerEntry < Orb::Internal::Type::BaseModel
850
+ class VoidInitiated < Orb::Internal::Type::BaseModel
860
851
  # @!attribute id
861
852
  #
862
853
  # @return [String]
@@ -874,9 +865,9 @@ module Orb
874
865
 
875
866
  # @!attribute credit_block
876
867
  #
877
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock]
868
+ # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock]
878
869
  required :credit_block,
879
- -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock }
870
+ -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock }
880
871
 
881
872
  # @!attribute currency
882
873
  #
@@ -885,9 +876,8 @@ module Orb
885
876
 
886
877
  # @!attribute customer
887
878
  #
888
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer]
889
- required :customer,
890
- -> { 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 }
891
881
 
892
882
  # @!attribute description
893
883
  #
@@ -901,9 +891,9 @@ module Orb
901
891
 
902
892
  # @!attribute entry_status
903
893
  #
904
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus]
894
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus]
905
895
  required :entry_status,
906
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus }
896
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus }
907
897
 
908
898
  # @!attribute entry_type
909
899
  #
@@ -946,8 +936,8 @@ module Orb
946
936
 
947
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)
948
938
  # Some parameter documentations has been truncated, see
949
- # {Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry}
950
- # for more details.
939
+ # {Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated} for more
940
+ # details.
951
941
  #
952
942
  # @param id [String]
953
943
  #
@@ -955,17 +945,17 @@ module Orb
955
945
  #
956
946
  # @param created_at [Time]
957
947
  #
958
- # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock]
948
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock]
959
949
  #
960
950
  # @param currency [String]
961
951
  #
962
- # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer]
952
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer]
963
953
  #
964
954
  # @param description [String, nil]
965
955
  #
966
956
  # @param ending_balance [Float]
967
957
  #
968
- # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus]
958
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus]
969
959
  #
970
960
  # @param ledger_sequence_number [Integer]
971
961
  #
@@ -982,7 +972,7 @@ module Orb
982
972
  #
983
973
  # @param entry_type [Symbol, :void_initiated]
984
974
 
985
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry#credit_block
975
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated#credit_block
986
976
  class CreditBlock < Orb::Internal::Type::BaseModel
987
977
  # @!attribute id
988
978
  #
@@ -1005,7 +995,7 @@ module Orb
1005
995
  # @param per_unit_cost_basis [String, nil]
1006
996
  end
1007
997
 
1008
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry#customer
998
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated#customer
1009
999
  class Customer < Orb::Internal::Type::BaseModel
1010
1000
  # @!attribute id
1011
1001
  #
@@ -1022,7 +1012,7 @@ module Orb
1022
1012
  # @param external_customer_id [String, nil]
1023
1013
  end
1024
1014
 
1025
- # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry#entry_status
1015
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated#entry_status
1026
1016
  module EntryStatus
1027
1017
  extend Orb::Internal::Type::Enum
1028
1018
 
@@ -1034,7 +1024,7 @@ module Orb
1034
1024
  end
1035
1025
  end
1036
1026
 
1037
- class AmendmentLedgerEntry < Orb::Internal::Type::BaseModel
1027
+ class Amendment < Orb::Internal::Type::BaseModel
1038
1028
  # @!attribute id
1039
1029
  #
1040
1030
  # @return [String]
@@ -1052,9 +1042,8 @@ module Orb
1052
1042
 
1053
1043
  # @!attribute credit_block
1054
1044
  #
1055
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock]
1056
- required :credit_block,
1057
- -> { 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 }
1058
1047
 
1059
1048
  # @!attribute currency
1060
1049
  #
@@ -1063,9 +1052,8 @@ module Orb
1063
1052
 
1064
1053
  # @!attribute customer
1065
1054
  #
1066
- # @return [Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer]
1067
- required :customer,
1068
- -> { 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 }
1069
1057
 
1070
1058
  # @!attribute description
1071
1059
  #
@@ -1079,9 +1067,9 @@ module Orb
1079
1067
 
1080
1068
  # @!attribute entry_status
1081
1069
  #
1082
- # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus]
1070
+ # @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus]
1083
1071
  required :entry_status,
1084
- enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus }
1072
+ enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus }
1085
1073
 
1086
1074
  # @!attribute entry_type
1087
1075
  #
@@ -1109,8 +1097,8 @@ module Orb
1109
1097
 
1110
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)
1111
1099
  # Some parameter documentations has been truncated, see
1112
- # {Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry} for
1113
- # more details.
1100
+ # {Orb::Models::Customers::Credits::LedgerListResponse::Amendment} for more
1101
+ # details.
1114
1102
  #
1115
1103
  # @param id [String]
1116
1104
  #
@@ -1118,17 +1106,17 @@ module Orb
1118
1106
  #
1119
1107
  # @param created_at [Time]
1120
1108
  #
1121
- # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock]
1109
+ # @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock]
1122
1110
  #
1123
1111
  # @param currency [String]
1124
1112
  #
1125
- # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer]
1113
+ # @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer]
1126
1114
  #
1127
1115
  # @param description [String, nil]
1128
1116
  #
1129
1117
  # @param ending_balance [Float]
1130
1118
  #
1131
- # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus]
1119
+ # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus]
1132
1120
  #
1133
1121
  # @param ledger_sequence_number [Integer]
1134
1122
  #
@@ -1139,7 +1127,7 @@ module Orb
1139
1127
  #
1140
1128
  # @param entry_type [Symbol, :amendment]
1141
1129
 
1142
- # @see Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry#credit_block
1130
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Amendment#credit_block
1143
1131
  class CreditBlock < Orb::Internal::Type::BaseModel
1144
1132
  # @!attribute id
1145
1133
  #
@@ -1162,7 +1150,7 @@ module Orb
1162
1150
  # @param per_unit_cost_basis [String, nil]
1163
1151
  end
1164
1152
 
1165
- # @see Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry#customer
1153
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Amendment#customer
1166
1154
  class Customer < Orb::Internal::Type::BaseModel
1167
1155
  # @!attribute id
1168
1156
  #
@@ -1179,7 +1167,7 @@ module Orb
1179
1167
  # @param external_customer_id [String, nil]
1180
1168
  end
1181
1169
 
1182
- # @see Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry#entry_status
1170
+ # @see Orb::Models::Customers::Credits::LedgerListResponse::Amendment#entry_status
1183
1171
  module EntryStatus
1184
1172
  extend Orb::Internal::Type::Enum
1185
1173
 
@@ -1192,7 +1180,7 @@ module Orb
1192
1180
  end
1193
1181
 
1194
1182
  # @!method self.variants
1195
- # @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)]
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)]
1196
1184
  end
1197
1185
  end
1198
1186
  end