orb-billing 0.3.1 → 0.3.2

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 (572) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +3 -3
  4. data/lib/orb/file_part.rb +2 -2
  5. data/lib/orb/internal/type/enum.rb +3 -3
  6. data/lib/orb/internal/type/request_parameters.rb +4 -4
  7. data/lib/orb/internal/type/union.rb +4 -4
  8. data/lib/orb/internal/util.rb +1 -1
  9. data/lib/orb/models/alert.rb +29 -32
  10. data/lib/orb/models/alert_create_for_customer_params.rb +7 -8
  11. data/lib/orb/models/alert_create_for_external_customer_params.rb +7 -8
  12. data/lib/orb/models/alert_create_for_subscription_params.rb +7 -8
  13. data/lib/orb/models/alert_list_params.rb +0 -1
  14. data/lib/orb/models/alert_update_params.rb +4 -5
  15. data/lib/orb/models/amount_discount.rb +6 -7
  16. data/lib/orb/models/billable_metric.rb +9 -11
  17. data/lib/orb/models/coupon.rb +9 -12
  18. data/lib/orb/models/coupon_create_params.rb +6 -8
  19. data/lib/orb/models/coupon_list_params.rb +0 -2
  20. data/lib/orb/models/coupons/subscription_list_params.rb +0 -1
  21. data/lib/orb/models/credit_note.rb +48 -46
  22. data/lib/orb/models/credit_note_create_params.rb +6 -6
  23. data/lib/orb/models/credit_note_list_params.rb +0 -1
  24. data/lib/orb/models/customer.rb +54 -61
  25. data/lib/orb/models/customer_create_params.rb +41 -53
  26. data/lib/orb/models/customer_list_params.rb +0 -1
  27. data/lib/orb/models/customer_update_by_external_id_params.rb +41 -53
  28. data/lib/orb/models/customer_update_params.rb +41 -51
  29. data/lib/orb/models/customers/balance_transaction_create_params.rb +3 -3
  30. data/lib/orb/models/customers/balance_transaction_create_response.rb +0 -2
  31. data/lib/orb/models/customers/balance_transaction_list_params.rb +0 -1
  32. data/lib/orb/models/customers/balance_transaction_list_response.rb +0 -2
  33. data/lib/orb/models/customers/cost_list_by_external_id_params.rb +3 -4
  34. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +3 -3
  35. data/lib/orb/models/customers/cost_list_params.rb +3 -4
  36. data/lib/orb/models/customers/cost_list_response.rb +3 -3
  37. data/lib/orb/models/customers/credit_list_by_external_id_params.rb +0 -2
  38. data/lib/orb/models/customers/credit_list_params.rb +0 -2
  39. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +12 -21
  40. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +0 -7
  41. data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +11 -22
  42. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +0 -7
  43. data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +6 -7
  44. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +0 -7
  45. data/lib/orb/models/customers/credits/ledger_list_params.rb +8 -9
  46. data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -7
  47. data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +10 -15
  48. data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +0 -6
  49. data/lib/orb/models/customers/credits/top_up_create_params.rb +7 -15
  50. data/lib/orb/models/customers/credits/top_up_create_response.rb +0 -6
  51. data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +0 -1
  52. data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +0 -6
  53. data/lib/orb/models/customers/credits/top_up_list_params.rb +0 -1
  54. data/lib/orb/models/customers/credits/top_up_list_response.rb +0 -6
  55. data/lib/orb/models/dimensional_price_group.rb +1 -3
  56. data/lib/orb/models/dimensional_price_group_create_params.rb +0 -1
  57. data/lib/orb/models/dimensional_price_group_list_params.rb +0 -1
  58. data/lib/orb/models/dimensional_price_groups.rb +6 -6
  59. data/lib/orb/models/discount.rb +5 -5
  60. data/lib/orb/models/evaluate_price_group.rb +1 -1
  61. data/lib/orb/models/event_ingest_params.rb +4 -9
  62. data/lib/orb/models/event_ingest_response.rb +0 -3
  63. data/lib/orb/models/event_search_params.rb +0 -3
  64. data/lib/orb/models/event_search_response.rb +0 -4
  65. data/lib/orb/models/event_update_params.rb +0 -3
  66. data/lib/orb/models/events/backfill_close_response.rb +0 -4
  67. data/lib/orb/models/events/backfill_create_params.rb +0 -7
  68. data/lib/orb/models/events/backfill_create_response.rb +0 -4
  69. data/lib/orb/models/events/backfill_fetch_response.rb +0 -4
  70. data/lib/orb/models/events/backfill_list_params.rb +0 -1
  71. data/lib/orb/models/events/backfill_list_response.rb +0 -4
  72. data/lib/orb/models/events/backfill_revert_response.rb +0 -4
  73. data/lib/orb/models/events/event_volumes.rb +3 -3
  74. data/lib/orb/models/events/volume_list_params.rb +0 -3
  75. data/lib/orb/models/invoice.rb +157 -202
  76. data/lib/orb/models/invoice_create_params.rb +14 -21
  77. data/lib/orb/models/invoice_fetch_upcoming_response.rb +9 -54
  78. data/lib/orb/models/invoice_issue_params.rb +0 -1
  79. data/lib/orb/models/invoice_level_discount.rb +4 -4
  80. data/lib/orb/models/invoice_line_item_create_params.rb +0 -1
  81. data/lib/orb/models/invoice_line_item_create_response.rb +6 -26
  82. data/lib/orb/models/invoice_list_params.rb +6 -10
  83. data/lib/orb/models/invoice_update_params.rb +0 -1
  84. data/lib/orb/models/item.rb +7 -8
  85. data/lib/orb/models/item_list_params.rb +0 -1
  86. data/lib/orb/models/item_update_params.rb +7 -7
  87. data/lib/orb/models/metric_create_params.rb +0 -1
  88. data/lib/orb/models/metric_list_params.rb +0 -1
  89. data/lib/orb/models/metric_update_params.rb +0 -1
  90. data/lib/orb/models/percentage_discount.rb +6 -8
  91. data/lib/orb/models/plan.rb +78 -103
  92. data/lib/orb/models/plan_create_params.rb +727 -800
  93. data/lib/orb/models/plan_list_params.rb +3 -4
  94. data/lib/orb/models/plan_update_params.rb +0 -2
  95. data/lib/orb/models/plans/external_plan_id_update_params.rb +0 -2
  96. data/lib/orb/models/price.rb +1671 -1724
  97. data/lib/orb/models/price_create_params.rb +75 -84
  98. data/lib/orb/models/price_evaluate_params.rb +0 -2
  99. data/lib/orb/models/price_evaluate_response.rb +3 -3
  100. data/lib/orb/models/price_list_params.rb +0 -1
  101. data/lib/orb/models/price_update_params.rb +0 -1
  102. data/lib/orb/models/prices/external_price_id_update_params.rb +0 -1
  103. data/lib/orb/models/subscription.rb +86 -122
  104. data/lib/orb/models/subscription_cancel_params.rb +3 -5
  105. data/lib/orb/models/subscription_cancel_response.rb +21 -57
  106. data/lib/orb/models/subscription_change_apply_response.rb +21 -58
  107. data/lib/orb/models/subscription_change_cancel_response.rb +21 -58
  108. data/lib/orb/models/subscription_change_retrieve_response.rb +21 -58
  109. data/lib/orb/models/subscription_create_params.rb +1865 -1815
  110. data/lib/orb/models/subscription_create_response.rb +21 -57
  111. data/lib/orb/models/subscription_fetch_costs_params.rb +3 -4
  112. data/lib/orb/models/subscription_fetch_costs_response.rb +3 -3
  113. data/lib/orb/models/subscription_fetch_schedule_params.rb +0 -1
  114. data/lib/orb/models/subscription_fetch_schedule_response.rb +0 -1
  115. data/lib/orb/models/subscription_fetch_usage_params.rb +6 -8
  116. data/lib/orb/models/subscription_list_params.rb +3 -4
  117. data/lib/orb/models/subscription_price_intervals_params.rb +1105 -1017
  118. data/lib/orb/models/subscription_price_intervals_response.rb +21 -57
  119. data/lib/orb/models/subscription_schedule_plan_change_params.rb +1906 -1791
  120. data/lib/orb/models/subscription_schedule_plan_change_response.rb +21 -57
  121. data/lib/orb/models/subscription_trigger_phase_params.rb +0 -2
  122. data/lib/orb/models/subscription_trigger_phase_response.rb +21 -57
  123. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +21 -57
  124. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +21 -57
  125. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +21 -57
  126. data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +3 -6
  127. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +21 -57
  128. data/lib/orb/models/subscription_update_params.rb +0 -5
  129. data/lib/orb/models/subscription_update_trial_params.rb +4 -6
  130. data/lib/orb/models/subscription_update_trial_response.rb +21 -57
  131. data/lib/orb/models/subscription_usage.rb +46 -39
  132. data/lib/orb/models/subscriptions.rb +6 -6
  133. data/lib/orb/models/trial_discount.rb +6 -7
  134. data/lib/orb/models/usage_discount.rb +6 -8
  135. data/lib/orb/resources/alerts.rb +30 -31
  136. data/lib/orb/resources/coupons/subscriptions.rb +3 -4
  137. data/lib/orb/resources/coupons.rb +11 -21
  138. data/lib/orb/resources/credit_notes.rb +10 -11
  139. data/lib/orb/resources/customers/balance_transactions.rb +3 -4
  140. data/lib/orb/resources/customers/costs.rb +4 -6
  141. data/lib/orb/resources/customers/credits/ledger.rb +14 -33
  142. data/lib/orb/resources/customers/credits/top_ups.rb +10 -20
  143. data/lib/orb/resources/customers/credits.rb +2 -6
  144. data/lib/orb/resources/customers.rb +40 -67
  145. data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +2 -2
  146. data/lib/orb/resources/dimensional_price_groups.rb +8 -10
  147. data/lib/orb/resources/events/backfills.rb +2 -10
  148. data/lib/orb/resources/events/volume.rb +3 -6
  149. data/lib/orb/resources/events.rb +4 -12
  150. data/lib/orb/resources/invoice_line_items.rb +1 -2
  151. data/lib/orb/resources/invoices.rb +26 -43
  152. data/lib/orb/resources/items.rb +12 -13
  153. data/lib/orb/resources/metrics.rb +11 -14
  154. data/lib/orb/resources/plans/external_plan_id.rb +5 -7
  155. data/lib/orb/resources/plans.rb +14 -23
  156. data/lib/orb/resources/prices/external_price_id.rb +5 -6
  157. data/lib/orb/resources/prices.rb +25 -35
  158. data/lib/orb/resources/subscription_changes.rb +1 -1
  159. data/lib/orb/resources/subscriptions.rb +49 -107
  160. data/lib/orb/version.rb +1 -1
  161. data/lib/orb.rb +1 -0
  162. data/rbi/orb/client.rbi +5 -4
  163. data/rbi/orb/errors.rbi +59 -28
  164. data/rbi/orb/file_part.rbi +9 -6
  165. data/rbi/orb/internal/page.rbi +19 -6
  166. data/rbi/orb/internal/transport/base_client.rbi +131 -73
  167. data/rbi/orb/internal/transport/pooled_net_requester.rbi +25 -12
  168. data/rbi/orb/internal/type/array_of.rbi +42 -34
  169. data/rbi/orb/internal/type/base_model.rbi +124 -65
  170. data/rbi/orb/internal/type/base_page.rbi +11 -7
  171. data/rbi/orb/internal/type/boolean.rbi +16 -10
  172. data/rbi/orb/internal/type/converter.rbi +66 -31
  173. data/rbi/orb/internal/type/enum.rbi +27 -15
  174. data/rbi/orb/internal/type/file_input.rbi +12 -10
  175. data/rbi/orb/internal/type/hash_of.rbi +34 -24
  176. data/rbi/orb/internal/type/request_parameters.rbi +12 -4
  177. data/rbi/orb/internal/type/union.rbi +60 -25
  178. data/rbi/orb/internal/type/unknown.rbi +20 -12
  179. data/rbi/orb/internal/util.rbi +210 -89
  180. data/rbi/orb/models/alert.rbi +107 -70
  181. data/rbi/orb/models/alert_create_for_customer_params.rbi +60 -27
  182. data/rbi/orb/models/alert_create_for_external_customer_params.rbi +68 -29
  183. data/rbi/orb/models/alert_create_for_subscription_params.rbi +53 -26
  184. data/rbi/orb/models/alert_disable_params.rbi +17 -6
  185. data/rbi/orb/models/alert_enable_params.rbi +17 -6
  186. data/rbi/orb/models/alert_list_params.rbi +23 -20
  187. data/rbi/orb/models/alert_retrieve_params.rbi +10 -4
  188. data/rbi/orb/models/alert_update_params.rbi +25 -14
  189. data/rbi/orb/models/amount_discount.rbi +28 -19
  190. data/rbi/orb/models/billable_metric.rbi +33 -26
  191. data/rbi/orb/models/billing_cycle_relative_date.rbi +11 -5
  192. data/rbi/orb/models/coupon.rbi +28 -20
  193. data/rbi/orb/models/coupon_archive_params.rbi +10 -4
  194. data/rbi/orb/models/coupon_create_params.rbi +72 -38
  195. data/rbi/orb/models/coupon_fetch_params.rbi +10 -4
  196. data/rbi/orb/models/coupon_list_params.rbi +18 -15
  197. data/rbi/orb/models/coupons/subscription_list_params.rbi +16 -6
  198. data/rbi/orb/models/credit_note.rbi +293 -158
  199. data/rbi/orb/models/credit_note_create_params.rbi +58 -29
  200. data/rbi/orb/models/credit_note_fetch_params.rbi +10 -4
  201. data/rbi/orb/models/credit_note_list_params.rbi +20 -17
  202. data/rbi/orb/models/customer.rbi +430 -329
  203. data/rbi/orb/models/customer_create_params.rbi +662 -325
  204. data/rbi/orb/models/customer_delete_params.rbi +10 -4
  205. data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +10 -4
  206. data/rbi/orb/models/customer_fetch_params.rbi +10 -4
  207. data/rbi/orb/models/customer_list_params.rbi +20 -17
  208. data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +10 -4
  209. data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +10 -4
  210. data/rbi/orb/models/customer_update_by_external_id_params.rbi +1136 -336
  211. data/rbi/orb/models/customer_update_params.rbi +661 -324
  212. data/rbi/orb/models/customers/balance_transaction_create_params.rbi +50 -21
  213. data/rbi/orb/models/customers/balance_transaction_create_response.rbi +154 -61
  214. data/rbi/orb/models/customers/balance_transaction_list_params.rbi +20 -17
  215. data/rbi/orb/models/customers/balance_transaction_list_response.rbi +164 -59
  216. data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +56 -22
  217. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +162 -124
  218. data/rbi/orb/models/customers/cost_list_params.rbi +45 -22
  219. data/rbi/orb/models/customers/cost_list_response.rbi +154 -123
  220. data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +18 -15
  221. data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +48 -22
  222. data/rbi/orb/models/customers/credit_list_params.rbi +18 -15
  223. data/rbi/orb/models/customers/credit_list_response.rbi +44 -21
  224. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +106 -68
  225. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +643 -434
  226. data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +117 -59
  227. data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +700 -425
  228. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +102 -44
  229. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +681 -432
  230. data/rbi/orb/models/customers/credits/ledger_list_params.rbi +123 -40
  231. data/rbi/orb/models/customers/credits/ledger_list_response.rbi +735 -389
  232. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +74 -53
  233. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +65 -48
  234. data/rbi/orb/models/customers/credits/top_up_create_params.rbi +84 -45
  235. data/rbi/orb/models/customers/credits/top_up_create_response.rbi +83 -43
  236. data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +16 -6
  237. data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +15 -5
  238. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +9 -5
  239. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +70 -49
  240. data/rbi/orb/models/customers/credits/top_up_list_params.rbi +9 -5
  241. data/rbi/orb/models/customers/credits/top_up_list_response.rbi +84 -43
  242. data/rbi/orb/models/dimensional_price_group.rbi +18 -15
  243. data/rbi/orb/models/dimensional_price_group_create_params.rbi +19 -16
  244. data/rbi/orb/models/dimensional_price_group_list_params.rbi +16 -6
  245. data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +10 -4
  246. data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +10 -9
  247. data/rbi/orb/models/dimensional_price_groups.rbi +18 -13
  248. data/rbi/orb/models/discount.rbi +11 -5
  249. data/rbi/orb/models/evaluate_price_group.rbi +28 -12
  250. data/rbi/orb/models/event_deprecate_params.rbi +10 -4
  251. data/rbi/orb/models/event_deprecate_response.rbi +8 -3
  252. data/rbi/orb/models/event_ingest_params.rbi +37 -31
  253. data/rbi/orb/models/event_ingest_response.rbi +63 -23
  254. data/rbi/orb/models/event_search_params.rbi +17 -14
  255. data/rbi/orb/models/event_search_response.rbi +33 -21
  256. data/rbi/orb/models/event_update_params.rbi +19 -16
  257. data/rbi/orb/models/event_update_response.rbi +8 -3
  258. data/rbi/orb/models/events/backfill_close_params.rbi +10 -9
  259. data/rbi/orb/models/events/backfill_close_response.rbi +64 -29
  260. data/rbi/orb/models/events/backfill_create_params.rbi +21 -18
  261. data/rbi/orb/models/events/backfill_create_response.rbi +63 -29
  262. data/rbi/orb/models/events/backfill_fetch_params.rbi +10 -9
  263. data/rbi/orb/models/events/backfill_fetch_response.rbi +64 -29
  264. data/rbi/orb/models/events/backfill_list_params.rbi +16 -6
  265. data/rbi/orb/models/events/backfill_list_response.rbi +62 -28
  266. data/rbi/orb/models/events/backfill_revert_params.rbi +10 -9
  267. data/rbi/orb/models/events/backfill_revert_response.rbi +63 -29
  268. data/rbi/orb/models/events/event_volumes.rbi +32 -10
  269. data/rbi/orb/models/events/volume_list_params.rbi +18 -15
  270. data/rbi/orb/models/invoice.rbi +1286 -805
  271. data/rbi/orb/models/invoice_create_params.rbi +97 -69
  272. data/rbi/orb/models/invoice_fetch_params.rbi +10 -4
  273. data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +15 -5
  274. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +1991 -861
  275. data/rbi/orb/models/invoice_issue_params.rbi +16 -5
  276. data/rbi/orb/models/invoice_level_discount.rbi +11 -4
  277. data/rbi/orb/models/invoice_line_item_create_params.rbi +20 -17
  278. data/rbi/orb/models/invoice_line_item_create_response.rbi +573 -376
  279. data/rbi/orb/models/invoice_list_params.rbi +67 -47
  280. data/rbi/orb/models/invoice_mark_paid_params.rbi +17 -14
  281. data/rbi/orb/models/invoice_pay_params.rbi +10 -4
  282. data/rbi/orb/models/invoice_update_params.rbi +15 -10
  283. data/rbi/orb/models/invoice_void_params.rbi +10 -4
  284. data/rbi/orb/models/item.rbi +87 -39
  285. data/rbi/orb/models/item_create_params.rbi +14 -5
  286. data/rbi/orb/models/item_fetch_params.rbi +10 -4
  287. data/rbi/orb/models/item_list_params.rbi +16 -6
  288. data/rbi/orb/models/item_update_params.rbi +79 -39
  289. data/rbi/orb/models/metric_create_params.rbi +19 -16
  290. data/rbi/orb/models/metric_fetch_params.rbi +10 -4
  291. data/rbi/orb/models/metric_list_params.rbi +20 -17
  292. data/rbi/orb/models/metric_update_params.rbi +15 -10
  293. data/rbi/orb/models/pagination_metadata.rbi +16 -4
  294. data/rbi/orb/models/percentage_discount.rbi +32 -19
  295. data/rbi/orb/models/plan.rbi +496 -365
  296. data/rbi/orb/models/plan_create_params.rbi +4785 -2875
  297. data/rbi/orb/models/plan_fetch_params.rbi +10 -4
  298. data/rbi/orb/models/plan_list_params.rbi +34 -27
  299. data/rbi/orb/models/plan_update_params.rbi +16 -13
  300. data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +10 -9
  301. data/rbi/orb/models/plans/external_plan_id_update_params.rbi +16 -13
  302. data/rbi/orb/models/price.rbi +9969 -5024
  303. data/rbi/orb/models/price_create_params.rbi +501 -245
  304. data/rbi/orb/models/price_evaluate_params.rbi +20 -17
  305. data/rbi/orb/models/price_evaluate_response.rbi +11 -6
  306. data/rbi/orb/models/price_fetch_params.rbi +10 -4
  307. data/rbi/orb/models/price_list_params.rbi +16 -6
  308. data/rbi/orb/models/price_update_params.rbi +15 -10
  309. data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +10 -9
  310. data/rbi/orb/models/prices/external_price_id_update_params.rbi +15 -10
  311. data/rbi/orb/models/subscription.rbi +578 -420
  312. data/rbi/orb/models/subscription_cancel_params.rbi +44 -22
  313. data/rbi/orb/models/subscription_cancel_response.rbi +700 -438
  314. data/rbi/orb/models/subscription_change_apply_params.rbi +16 -13
  315. data/rbi/orb/models/subscription_change_apply_response.rbi +784 -504
  316. data/rbi/orb/models/subscription_change_cancel_params.rbi +10 -4
  317. data/rbi/orb/models/subscription_change_cancel_response.rbi +783 -514
  318. data/rbi/orb/models/subscription_change_retrieve_params.rbi +10 -4
  319. data/rbi/orb/models/subscription_change_retrieve_response.rbi +782 -524
  320. data/rbi/orb/models/subscription_create_params.rbi +9021 -6730
  321. data/rbi/orb/models/subscription_create_response.rbi +700 -438
  322. data/rbi/orb/models/subscription_fetch_costs_params.rbi +47 -22
  323. data/rbi/orb/models/subscription_fetch_costs_response.rbi +154 -123
  324. data/rbi/orb/models/subscription_fetch_params.rbi +10 -4
  325. data/rbi/orb/models/subscription_fetch_schedule_params.rbi +20 -17
  326. data/rbi/orb/models/subscription_fetch_schedule_response.rbi +33 -19
  327. data/rbi/orb/models/subscription_fetch_usage_params.rbi +81 -34
  328. data/rbi/orb/models/subscription_list_params.rbi +39 -28
  329. data/rbi/orb/models/subscription_price_intervals_params.rbi +5181 -3822
  330. data/rbi/orb/models/subscription_price_intervals_response.rbi +720 -453
  331. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +8602 -6910
  332. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +718 -467
  333. data/rbi/orb/models/subscription_trigger_phase_params.rbi +16 -13
  334. data/rbi/orb/models/subscription_trigger_phase_response.rbi +712 -448
  335. data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +10 -4
  336. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +719 -467
  337. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +16 -5
  338. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +693 -502
  339. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +10 -4
  340. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +708 -497
  341. data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +57 -26
  342. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +719 -467
  343. data/rbi/orb/models/subscription_update_params.rbi +19 -16
  344. data/rbi/orb/models/subscription_update_trial_params.rbi +57 -19
  345. data/rbi/orb/models/subscription_update_trial_response.rbi +712 -447
  346. data/rbi/orb/models/subscription_usage.rbi +271 -121
  347. data/rbi/orb/models/subscriptions.rbi +18 -11
  348. data/rbi/orb/models/top_level_ping_params.rbi +10 -4
  349. data/rbi/orb/models/top_level_ping_response.rbi +7 -3
  350. data/rbi/orb/models/trial_discount.rbi +29 -20
  351. data/rbi/orb/models/usage_discount.rbi +28 -19
  352. data/rbi/orb/models.rbi +22 -11
  353. data/rbi/orb/request_options.rbi +12 -6
  354. data/rbi/orb/resources/alerts.rbi +61 -40
  355. data/rbi/orb/resources/coupons/subscriptions.rbi +7 -5
  356. data/rbi/orb/resources/coupons.rbi +33 -18
  357. data/rbi/orb/resources/credit_notes.rbi +22 -13
  358. data/rbi/orb/resources/customers/balance_transactions.rbi +17 -9
  359. data/rbi/orb/resources/customers/costs.rbi +18 -11
  360. data/rbi/orb/resources/customers/credits/ledger.rbi +98 -74
  361. data/rbi/orb/resources/customers/credits/top_ups.rbi +61 -25
  362. data/rbi/orb/resources/customers/credits.rbi +16 -7
  363. data/rbi/orb/resources/customers.rbi +137 -72
  364. data/rbi/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +8 -4
  365. data/rbi/orb/resources/dimensional_price_groups.rbi +26 -12
  366. data/rbi/orb/resources/events/backfills.rbi +35 -17
  367. data/rbi/orb/resources/events/volume.rbi +7 -5
  368. data/rbi/orb/resources/events.rbi +26 -16
  369. data/rbi/orb/resources/invoice_line_items.rbi +7 -5
  370. data/rbi/orb/resources/invoices.rbi +72 -41
  371. data/rbi/orb/resources/items.rbi +40 -13
  372. data/rbi/orb/resources/metrics.rbi +25 -15
  373. data/rbi/orb/resources/plans/external_plan_id.rbi +15 -7
  374. data/rbi/orb/resources/plans.rbi +57 -47
  375. data/rbi/orb/resources/prices/external_price_id.rbi +73 -68
  376. data/rbi/orb/resources/prices.rbi +176 -156
  377. data/rbi/orb/resources/subscription_changes.rbi +19 -11
  378. data/rbi/orb/resources/subscriptions.rbi +200 -114
  379. data/rbi/orb/resources/top_level.rbi +9 -3
  380. data/sig/orb/internal/page.rbs +0 -2
  381. data/sig/orb/internal/type/request_parameters.rbs +3 -1
  382. data/sig/orb/models/alert.rbs +19 -31
  383. data/sig/orb/models/alert_create_for_customer_params.rbs +3 -7
  384. data/sig/orb/models/alert_create_for_external_customer_params.rbs +3 -7
  385. data/sig/orb/models/alert_create_for_subscription_params.rbs +3 -7
  386. data/sig/orb/models/alert_disable_params.rbs +0 -2
  387. data/sig/orb/models/alert_enable_params.rbs +0 -2
  388. data/sig/orb/models/alert_list_params.rbs +0 -2
  389. data/sig/orb/models/alert_retrieve_params.rbs +0 -2
  390. data/sig/orb/models/alert_update_params.rbs +3 -7
  391. data/sig/orb/models/amount_discount.rbs +4 -6
  392. data/sig/orb/models/billable_metric.rbs +7 -9
  393. data/sig/orb/models/coupon.rbs +5 -8
  394. data/sig/orb/models/coupon_archive_params.rbs +0 -2
  395. data/sig/orb/models/coupon_create_params.rbs +3 -9
  396. data/sig/orb/models/coupon_fetch_params.rbs +0 -2
  397. data/sig/orb/models/coupon_list_params.rbs +0 -2
  398. data/sig/orb/models/coupons/subscription_list_params.rbs +0 -2
  399. data/sig/orb/models/credit_note.rbs +48 -66
  400. data/sig/orb/models/credit_note_create_params.rbs +3 -7
  401. data/sig/orb/models/credit_note_fetch_params.rbs +0 -2
  402. data/sig/orb/models/credit_note_list_params.rbs +0 -2
  403. data/sig/orb/models/customer.rbs +43 -63
  404. data/sig/orb/models/customer_create_params.rbs +32 -52
  405. data/sig/orb/models/customer_delete_params.rbs +0 -2
  406. data/sig/orb/models/customer_fetch_by_external_id_params.rbs +0 -2
  407. data/sig/orb/models/customer_fetch_params.rbs +0 -2
  408. data/sig/orb/models/customer_list_params.rbs +0 -2
  409. data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +0 -2
  410. data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +0 -2
  411. data/sig/orb/models/customer_update_by_external_id_params.rbs +32 -52
  412. data/sig/orb/models/customer_update_params.rbs +32 -52
  413. data/sig/orb/models/customers/balance_transaction_create_params.rbs +0 -2
  414. data/sig/orb/models/customers/balance_transaction_create_response.rbs +0 -6
  415. data/sig/orb/models/customers/balance_transaction_list_params.rbs +0 -2
  416. data/sig/orb/models/customers/balance_transaction_list_response.rbs +0 -6
  417. data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +0 -2
  418. data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +0 -6
  419. data/sig/orb/models/customers/cost_list_params.rbs +0 -2
  420. data/sig/orb/models/customers/cost_list_response.rbs +0 -6
  421. data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +0 -2
  422. data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +0 -2
  423. data/sig/orb/models/customers/credit_list_params.rbs +0 -2
  424. data/sig/orb/models/customers/credit_list_response.rbs +0 -2
  425. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +3 -7
  426. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +1 -43
  427. data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +3 -7
  428. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +1 -43
  429. data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +0 -2
  430. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +1 -43
  431. data/sig/orb/models/customers/credits/ledger_list_params.rbs +0 -2
  432. data/sig/orb/models/customers/credits/ledger_list_response.rbs +1 -43
  433. data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +3 -7
  434. data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +0 -4
  435. data/sig/orb/models/customers/credits/top_up_create_params.rbs +3 -7
  436. data/sig/orb/models/customers/credits/top_up_create_response.rbs +0 -4
  437. data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +0 -2
  438. data/sig/orb/models/customers/credits/top_up_delete_params.rbs +0 -2
  439. data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +0 -2
  440. data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +0 -4
  441. data/sig/orb/models/customers/credits/top_up_list_params.rbs +0 -2
  442. data/sig/orb/models/customers/credits/top_up_list_response.rbs +0 -4
  443. data/sig/orb/models/dimensional_price_group.rbs +0 -2
  444. data/sig/orb/models/dimensional_price_group_create_params.rbs +0 -2
  445. data/sig/orb/models/dimensional_price_group_list_params.rbs +0 -2
  446. data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +0 -2
  447. data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +0 -2
  448. data/sig/orb/models/dimensional_price_groups.rbs +6 -8
  449. data/sig/orb/models/discount.rbs +5 -5
  450. data/sig/orb/models/evaluate_price_group.rbs +4 -6
  451. data/sig/orb/models/event_deprecate_params.rbs +0 -2
  452. data/sig/orb/models/event_deprecate_response.rbs +0 -2
  453. data/sig/orb/models/event_ingest_params.rbs +3 -7
  454. data/sig/orb/models/event_ingest_response.rbs +0 -6
  455. data/sig/orb/models/event_search_params.rbs +0 -2
  456. data/sig/orb/models/event_search_response.rbs +0 -4
  457. data/sig/orb/models/event_update_params.rbs +0 -2
  458. data/sig/orb/models/event_update_response.rbs +0 -2
  459. data/sig/orb/models/events/backfill_close_params.rbs +0 -2
  460. data/sig/orb/models/events/backfill_close_response.rbs +0 -2
  461. data/sig/orb/models/events/backfill_create_params.rbs +0 -2
  462. data/sig/orb/models/events/backfill_create_response.rbs +0 -2
  463. data/sig/orb/models/events/backfill_fetch_params.rbs +0 -2
  464. data/sig/orb/models/events/backfill_fetch_response.rbs +0 -2
  465. data/sig/orb/models/events/backfill_list_params.rbs +0 -2
  466. data/sig/orb/models/events/backfill_list_response.rbs +0 -2
  467. data/sig/orb/models/events/backfill_revert_params.rbs +0 -2
  468. data/sig/orb/models/events/backfill_revert_response.rbs +0 -2
  469. data/sig/orb/models/events/event_volumes.rbs +3 -10
  470. data/sig/orb/models/events/volume_list_params.rbs +0 -2
  471. data/sig/orb/models/invoice.rbs +110 -172
  472. data/sig/orb/models/invoice_create_params.rbs +10 -16
  473. data/sig/orb/models/invoice_fetch_params.rbs +0 -2
  474. data/sig/orb/models/invoice_fetch_upcoming_params.rbs +0 -2
  475. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +2 -64
  476. data/sig/orb/models/invoice_issue_params.rbs +0 -2
  477. data/sig/orb/models/invoice_level_discount.rbs +2 -4
  478. data/sig/orb/models/invoice_line_item_create_params.rbs +0 -2
  479. data/sig/orb/models/invoice_line_item_create_response.rbs +2 -36
  480. data/sig/orb/models/invoice_list_params.rbs +4 -6
  481. data/sig/orb/models/invoice_mark_paid_params.rbs +0 -2
  482. data/sig/orb/models/invoice_pay_params.rbs +0 -2
  483. data/sig/orb/models/invoice_update_params.rbs +0 -2
  484. data/sig/orb/models/invoice_void_params.rbs +0 -2
  485. data/sig/orb/models/item.rbs +7 -11
  486. data/sig/orb/models/item_create_params.rbs +0 -2
  487. data/sig/orb/models/item_fetch_params.rbs +0 -2
  488. data/sig/orb/models/item_list_params.rbs +0 -2
  489. data/sig/orb/models/item_update_params.rbs +7 -11
  490. data/sig/orb/models/metric_create_params.rbs +0 -2
  491. data/sig/orb/models/metric_fetch_params.rbs +0 -2
  492. data/sig/orb/models/metric_list_params.rbs +0 -2
  493. data/sig/orb/models/metric_update_params.rbs +0 -2
  494. data/sig/orb/models/pagination_metadata.rbs +0 -2
  495. data/sig/orb/models/percentage_discount.rbs +4 -6
  496. data/sig/orb/models/plan.rbs +45 -73
  497. data/sig/orb/models/plan_create_params.rbs +518 -696
  498. data/sig/orb/models/plan_fetch_params.rbs +0 -2
  499. data/sig/orb/models/plan_list_params.rbs +0 -2
  500. data/sig/orb/models/plan_update_params.rbs +0 -2
  501. data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +0 -2
  502. data/sig/orb/models/plans/external_plan_id_update_params.rbs +0 -2
  503. data/sig/orb/models/price.rbs +1194 -1730
  504. data/sig/orb/models/price_create_params.rbs +59 -97
  505. data/sig/orb/models/price_evaluate_params.rbs +0 -2
  506. data/sig/orb/models/price_evaluate_response.rbs +3 -6
  507. data/sig/orb/models/price_fetch_params.rbs +0 -2
  508. data/sig/orb/models/price_list_params.rbs +0 -2
  509. data/sig/orb/models/price_update_params.rbs +0 -2
  510. data/sig/orb/models/prices/external_price_id_fetch_params.rbs +0 -2
  511. data/sig/orb/models/prices/external_price_id_update_params.rbs +0 -2
  512. data/sig/orb/models/subscription.rbs +56 -94
  513. data/sig/orb/models/subscription_cancel_params.rbs +0 -2
  514. data/sig/orb/models/subscription_cancel_response.rbs +20 -60
  515. data/sig/orb/models/subscription_change_apply_params.rbs +0 -2
  516. data/sig/orb/models/subscription_change_apply_response.rbs +20 -62
  517. data/sig/orb/models/subscription_change_cancel_params.rbs +0 -2
  518. data/sig/orb/models/subscription_change_cancel_response.rbs +20 -62
  519. data/sig/orb/models/subscription_change_retrieve_params.rbs +0 -2
  520. data/sig/orb/models/subscription_change_retrieve_response.rbs +20 -62
  521. data/sig/orb/models/subscription_create_params.rbs +1103 -1499
  522. data/sig/orb/models/subscription_create_response.rbs +20 -60
  523. data/sig/orb/models/subscription_fetch_costs_params.rbs +0 -2
  524. data/sig/orb/models/subscription_fetch_costs_response.rbs +0 -6
  525. data/sig/orb/models/subscription_fetch_params.rbs +0 -2
  526. data/sig/orb/models/subscription_fetch_schedule_params.rbs +0 -2
  527. data/sig/orb/models/subscription_fetch_schedule_response.rbs +0 -4
  528. data/sig/orb/models/subscription_fetch_usage_params.rbs +0 -2
  529. data/sig/orb/models/subscription_list_params.rbs +0 -2
  530. data/sig/orb/models/subscription_price_intervals_params.rbs +666 -896
  531. data/sig/orb/models/subscription_price_intervals_response.rbs +20 -60
  532. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1103 -1499
  533. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +20 -60
  534. data/sig/orb/models/subscription_trigger_phase_params.rbs +0 -2
  535. data/sig/orb/models/subscription_trigger_phase_response.rbs +20 -60
  536. data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +0 -2
  537. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +20 -60
  538. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +0 -2
  539. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +20 -60
  540. data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +0 -2
  541. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +20 -60
  542. data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +0 -2
  543. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +20 -60
  544. data/sig/orb/models/subscription_update_params.rbs +0 -2
  545. data/sig/orb/models/subscription_update_trial_params.rbs +1 -3
  546. data/sig/orb/models/subscription_update_trial_response.rbs +20 -60
  547. data/sig/orb/models/subscription_usage.rbs +35 -53
  548. data/sig/orb/models/subscriptions.rbs +6 -8
  549. data/sig/orb/models/top_level_ping_params.rbs +0 -2
  550. data/sig/orb/models/top_level_ping_response.rbs +0 -2
  551. data/sig/orb/models/trial_discount.rbs +4 -6
  552. data/sig/orb/models/usage_discount.rbs +4 -6
  553. data/sig/orb/request_options.rbs +1 -1
  554. data/sig/orb/resources/alerts.rbs +12 -12
  555. data/sig/orb/resources/coupons/subscriptions.rbs +1 -1
  556. data/sig/orb/resources/coupons.rbs +4 -4
  557. data/sig/orb/resources/credit_notes.rbs +4 -4
  558. data/sig/orb/resources/customers/credits/ledger.rbs +2 -2
  559. data/sig/orb/resources/customers/credits/top_ups.rbs +2 -2
  560. data/sig/orb/resources/customers.rbs +24 -24
  561. data/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs +1 -1
  562. data/sig/orb/resources/dimensional_price_groups.rbs +3 -3
  563. data/sig/orb/resources/events/volume.rbs +1 -1
  564. data/sig/orb/resources/events.rbs +1 -1
  565. data/sig/orb/resources/invoices.rbs +10 -10
  566. data/sig/orb/resources/items.rbs +5 -5
  567. data/sig/orb/resources/metrics.rbs +4 -4
  568. data/sig/orb/resources/plans/external_plan_id.rbs +2 -2
  569. data/sig/orb/resources/plans.rbs +5 -5
  570. data/sig/orb/resources/prices.rbs +11 -11
  571. data/sig/orb/resources/subscriptions.rbs +21 -21
  572. metadata +2 -2
@@ -3,6 +3,8 @@
3
3
  module Orb
4
4
  module Models
5
5
  class Invoice < Orb::Internal::Type::BaseModel
6
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
7
+
6
8
  sig { returns(String) }
7
9
  attr_accessor :id
8
10
 
@@ -11,18 +13,19 @@ module Orb
11
13
  sig { returns(String) }
12
14
  attr_accessor :amount_due
13
15
 
14
- sig { returns(Orb::Models::Invoice::AutoCollection) }
16
+ sig { returns(Orb::Invoice::AutoCollection) }
15
17
  attr_reader :auto_collection
16
18
 
17
- sig { params(auto_collection: T.any(Orb::Models::Invoice::AutoCollection, Orb::Internal::AnyHash)).void }
19
+ sig { params(auto_collection: Orb::Invoice::AutoCollection::OrHash).void }
18
20
  attr_writer :auto_collection
19
21
 
20
- sig { returns(T.nilable(Orb::Models::Invoice::BillingAddress)) }
22
+ sig { returns(T.nilable(Orb::Invoice::BillingAddress)) }
21
23
  attr_reader :billing_address
22
24
 
23
25
  sig do
24
- params(billing_address: T.nilable(T.any(Orb::Models::Invoice::BillingAddress, Orb::Internal::AnyHash)))
25
- .void
26
+ params(
27
+ billing_address: T.nilable(Orb::Invoice::BillingAddress::OrHash)
28
+ ).void
26
29
  end
27
30
  attr_writer :billing_address
28
31
 
@@ -31,20 +34,20 @@ module Orb
31
34
  attr_accessor :created_at
32
35
 
33
36
  # A list of credit notes associated with the invoice
34
- sig { returns(T::Array[Orb::Models::Invoice::CreditNote]) }
37
+ sig { returns(T::Array[Orb::Invoice::CreditNote]) }
35
38
  attr_accessor :credit_notes
36
39
 
37
40
  # An ISO 4217 currency string or `credits`
38
41
  sig { returns(String) }
39
42
  attr_accessor :currency
40
43
 
41
- sig { returns(Orb::Models::Invoice::Customer) }
44
+ sig { returns(Orb::Invoice::Customer) }
42
45
  attr_reader :customer
43
46
 
44
- sig { params(customer: T.any(Orb::Models::Invoice::Customer, Orb::Internal::AnyHash)).void }
47
+ sig { params(customer: Orb::Invoice::Customer::OrHash).void }
45
48
  attr_writer :customer
46
49
 
47
- sig { returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]) }
50
+ sig { returns(T::Array[Orb::Invoice::CustomerBalanceTransaction]) }
48
51
  attr_accessor :customer_balance_transactions
49
52
 
50
53
  # Tax IDs are commonly required to be displayed on customer invoices, which are
@@ -152,11 +155,13 @@ module Orb
152
155
  # | Uruguay | `uy_ruc` | Uruguayan RUC Number |
153
156
  # | Venezuela | `ve_rif` | Venezuelan RIF Number |
154
157
  # | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
155
- sig { returns(T.nilable(Orb::Models::Invoice::CustomerTaxID)) }
158
+ sig { returns(T.nilable(Orb::Invoice::CustomerTaxID)) }
156
159
  attr_reader :customer_tax_id
157
160
 
158
161
  sig do
159
- params(customer_tax_id: T.nilable(T.any(Orb::Models::Invoice::CustomerTaxID, Orb::Internal::AnyHash))).void
162
+ params(
163
+ customer_tax_id: T.nilable(Orb::Invoice::CustomerTaxID::OrHash)
164
+ ).void
160
165
  end
161
166
  attr_writer :customer_tax_id
162
167
 
@@ -168,7 +173,13 @@ module Orb
168
173
 
169
174
  sig do
170
175
  returns(
171
- T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)]
176
+ T::Array[
177
+ T.any(
178
+ Orb::PercentageDiscount,
179
+ Orb::AmountDiscount,
180
+ Orb::TrialDiscount
181
+ )
182
+ ]
172
183
  )
173
184
  end
174
185
  attr_accessor :discounts
@@ -203,7 +214,7 @@ module Orb
203
214
  sig { returns(T.nilable(String)) }
204
215
  attr_accessor :invoice_pdf
205
216
 
206
- sig { returns(Orb::Models::Invoice::InvoiceSource::TaggedSymbol) }
217
+ sig { returns(Orb::Invoice::InvoiceSource::TaggedSymbol) }
207
218
  attr_accessor :invoice_source
208
219
 
209
220
  # If the invoice failed to issue, this will be the last time it failed to issue
@@ -217,13 +228,13 @@ module Orb
217
228
  attr_accessor :issued_at
218
229
 
219
230
  # The breakdown of prices in this invoice.
220
- sig { returns(T::Array[Orb::Models::Invoice::LineItem]) }
231
+ sig { returns(T::Array[Orb::Invoice::LineItem]) }
221
232
  attr_accessor :line_items
222
233
 
223
- sig { returns(T.nilable(Orb::Models::Invoice::Maximum)) }
234
+ sig { returns(T.nilable(Orb::Invoice::Maximum)) }
224
235
  attr_reader :maximum
225
236
 
226
- sig { params(maximum: T.nilable(T.any(Orb::Models::Invoice::Maximum, Orb::Internal::AnyHash))).void }
237
+ sig { params(maximum: T.nilable(Orb::Invoice::Maximum::OrHash)).void }
227
238
  attr_writer :maximum
228
239
 
229
240
  sig { returns(T.nilable(String)) }
@@ -240,10 +251,10 @@ module Orb
240
251
  sig { returns(T::Hash[Symbol, String]) }
241
252
  attr_accessor :metadata
242
253
 
243
- sig { returns(T.nilable(Orb::Models::Invoice::Minimum)) }
254
+ sig { returns(T.nilable(Orb::Invoice::Minimum)) }
244
255
  attr_reader :minimum
245
256
 
246
- sig { params(minimum: T.nilable(T.any(Orb::Models::Invoice::Minimum, Orb::Internal::AnyHash))).void }
257
+ sig { params(minimum: T.nilable(Orb::Invoice::Minimum::OrHash)).void }
247
258
  attr_writer :minimum
248
259
 
249
260
  sig { returns(T.nilable(String)) }
@@ -255,7 +266,7 @@ module Orb
255
266
  attr_accessor :paid_at
256
267
 
257
268
  # A list of payment attempts associated with the invoice
258
- sig { returns(T::Array[Orb::Models::Invoice::PaymentAttempt]) }
269
+ sig { returns(T::Array[Orb::Invoice::PaymentAttempt]) }
259
270
  attr_accessor :payment_attempts
260
271
 
261
272
  # If payment was attempted on this invoice but failed, this will be the time of
@@ -274,22 +285,25 @@ module Orb
274
285
  sig { returns(T.nilable(Time)) }
275
286
  attr_accessor :scheduled_issue_at
276
287
 
277
- sig { returns(T.nilable(Orb::Models::Invoice::ShippingAddress)) }
288
+ sig { returns(T.nilable(Orb::Invoice::ShippingAddress)) }
278
289
  attr_reader :shipping_address
279
290
 
280
291
  sig do
281
- params(shipping_address: T.nilable(T.any(Orb::Models::Invoice::ShippingAddress, Orb::Internal::AnyHash)))
282
- .void
292
+ params(
293
+ shipping_address: T.nilable(Orb::Invoice::ShippingAddress::OrHash)
294
+ ).void
283
295
  end
284
296
  attr_writer :shipping_address
285
297
 
286
- sig { returns(Orb::Models::Invoice::Status::TaggedSymbol) }
298
+ sig { returns(Orb::Invoice::Status::TaggedSymbol) }
287
299
  attr_accessor :status
288
300
 
289
- sig { returns(T.nilable(Orb::Models::Invoice::Subscription)) }
301
+ sig { returns(T.nilable(Orb::Invoice::Subscription)) }
290
302
  attr_reader :subscription
291
303
 
292
- sig { params(subscription: T.nilable(T.any(Orb::Models::Invoice::Subscription, Orb::Internal::AnyHash))).void }
304
+ sig do
305
+ params(subscription: T.nilable(Orb::Invoice::Subscription::OrHash)).void
306
+ end
293
307
  attr_writer :subscription
294
308
 
295
309
  # The total before any discounts and minimums are applied.
@@ -325,54 +339,54 @@ module Orb
325
339
  params(
326
340
  id: String,
327
341
  amount_due: String,
328
- auto_collection: T.any(Orb::Models::Invoice::AutoCollection, Orb::Internal::AnyHash),
329
- billing_address: T.nilable(T.any(Orb::Models::Invoice::BillingAddress, Orb::Internal::AnyHash)),
342
+ auto_collection: Orb::Invoice::AutoCollection::OrHash,
343
+ billing_address: T.nilable(Orb::Invoice::BillingAddress::OrHash),
330
344
  created_at: Time,
331
- credit_notes: T::Array[T.any(Orb::Models::Invoice::CreditNote, Orb::Internal::AnyHash)],
345
+ credit_notes: T::Array[Orb::Invoice::CreditNote::OrHash],
332
346
  currency: String,
333
- customer: T.any(Orb::Models::Invoice::Customer, Orb::Internal::AnyHash),
334
- customer_balance_transactions: T::Array[T.any(Orb::Models::Invoice::CustomerBalanceTransaction, Orb::Internal::AnyHash)],
335
- customer_tax_id: T.nilable(T.any(Orb::Models::Invoice::CustomerTaxID, Orb::Internal::AnyHash)),
347
+ customer: Orb::Invoice::Customer::OrHash,
348
+ customer_balance_transactions:
349
+ T::Array[Orb::Invoice::CustomerBalanceTransaction::OrHash],
350
+ customer_tax_id: T.nilable(Orb::Invoice::CustomerTaxID::OrHash),
336
351
  discount: T.anything,
337
- discounts: T::Array[
338
- T.any(
339
- Orb::Models::PercentageDiscount,
340
- Orb::Internal::AnyHash,
341
- Orb::Models::AmountDiscount,
342
- Orb::Models::TrialDiscount
343
- )
344
- ],
352
+ discounts:
353
+ T::Array[
354
+ T.any(
355
+ Orb::PercentageDiscount::OrHash,
356
+ Orb::AmountDiscount::OrHash,
357
+ Orb::TrialDiscount::OrHash
358
+ )
359
+ ],
345
360
  due_date: T.nilable(Time),
346
361
  eligible_to_issue_at: T.nilable(Time),
347
362
  hosted_invoice_url: T.nilable(String),
348
363
  invoice_date: Time,
349
364
  invoice_number: String,
350
365
  invoice_pdf: T.nilable(String),
351
- invoice_source: Orb::Models::Invoice::InvoiceSource::OrSymbol,
366
+ invoice_source: Orb::Invoice::InvoiceSource::OrSymbol,
352
367
  issue_failed_at: T.nilable(Time),
353
368
  issued_at: T.nilable(Time),
354
- line_items: T::Array[T.any(Orb::Models::Invoice::LineItem, Orb::Internal::AnyHash)],
355
- maximum: T.nilable(T.any(Orb::Models::Invoice::Maximum, Orb::Internal::AnyHash)),
369
+ line_items: T::Array[Orb::Invoice::LineItem::OrHash],
370
+ maximum: T.nilable(Orb::Invoice::Maximum::OrHash),
356
371
  maximum_amount: T.nilable(String),
357
372
  memo: T.nilable(String),
358
373
  metadata: T::Hash[Symbol, String],
359
- minimum: T.nilable(T.any(Orb::Models::Invoice::Minimum, Orb::Internal::AnyHash)),
374
+ minimum: T.nilable(Orb::Invoice::Minimum::OrHash),
360
375
  minimum_amount: T.nilable(String),
361
376
  paid_at: T.nilable(Time),
362
- payment_attempts: T::Array[T.any(Orb::Models::Invoice::PaymentAttempt, Orb::Internal::AnyHash)],
377
+ payment_attempts: T::Array[Orb::Invoice::PaymentAttempt::OrHash],
363
378
  payment_failed_at: T.nilable(Time),
364
379
  payment_started_at: T.nilable(Time),
365
380
  scheduled_issue_at: T.nilable(Time),
366
- shipping_address: T.nilable(T.any(Orb::Models::Invoice::ShippingAddress, Orb::Internal::AnyHash)),
367
- status: Orb::Models::Invoice::Status::OrSymbol,
368
- subscription: T.nilable(T.any(Orb::Models::Invoice::Subscription, Orb::Internal::AnyHash)),
381
+ shipping_address: T.nilable(Orb::Invoice::ShippingAddress::OrHash),
382
+ status: Orb::Invoice::Status::OrSymbol,
383
+ subscription: T.nilable(Orb::Invoice::Subscription::OrHash),
369
384
  subtotal: String,
370
385
  sync_failed_at: T.nilable(Time),
371
386
  total: String,
372
387
  voided_at: T.nilable(Time),
373
388
  will_auto_issue: T::Boolean
374
- )
375
- .returns(T.attached_class)
389
+ ).returns(T.attached_class)
376
390
  end
377
391
  def self.new(
378
392
  id:,
@@ -570,58 +584,70 @@ module Orb
570
584
  # This is true if the invoice will be automatically issued in the future, and
571
585
  # false otherwise.
572
586
  will_auto_issue:
573
- ); end
587
+ )
588
+ end
589
+
574
590
  sig do
575
- override
576
- .returns(
577
- {
578
- id: String,
579
- amount_due: String,
580
- auto_collection: Orb::Models::Invoice::AutoCollection,
581
- billing_address: T.nilable(Orb::Models::Invoice::BillingAddress),
582
- created_at: Time,
583
- credit_notes: T::Array[Orb::Models::Invoice::CreditNote],
584
- currency: String,
585
- customer: Orb::Models::Invoice::Customer,
586
- customer_balance_transactions: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction],
587
- customer_tax_id: T.nilable(Orb::Models::Invoice::CustomerTaxID),
588
- discount: T.anything,
589
- discounts: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)],
590
- due_date: T.nilable(Time),
591
- eligible_to_issue_at: T.nilable(Time),
592
- hosted_invoice_url: T.nilable(String),
593
- invoice_date: Time,
594
- invoice_number: String,
595
- invoice_pdf: T.nilable(String),
596
- invoice_source: Orb::Models::Invoice::InvoiceSource::TaggedSymbol,
597
- issue_failed_at: T.nilable(Time),
598
- issued_at: T.nilable(Time),
599
- line_items: T::Array[Orb::Models::Invoice::LineItem],
600
- maximum: T.nilable(Orb::Models::Invoice::Maximum),
601
- maximum_amount: T.nilable(String),
602
- memo: T.nilable(String),
603
- metadata: T::Hash[Symbol, String],
604
- minimum: T.nilable(Orb::Models::Invoice::Minimum),
605
- minimum_amount: T.nilable(String),
606
- paid_at: T.nilable(Time),
607
- payment_attempts: T::Array[Orb::Models::Invoice::PaymentAttempt],
608
- payment_failed_at: T.nilable(Time),
609
- payment_started_at: T.nilable(Time),
610
- scheduled_issue_at: T.nilable(Time),
611
- shipping_address: T.nilable(Orb::Models::Invoice::ShippingAddress),
612
- status: Orb::Models::Invoice::Status::TaggedSymbol,
613
- subscription: T.nilable(Orb::Models::Invoice::Subscription),
614
- subtotal: String,
615
- sync_failed_at: T.nilable(Time),
616
- total: String,
617
- voided_at: T.nilable(Time),
618
- will_auto_issue: T::Boolean
619
- }
620
- )
591
+ override.returns(
592
+ {
593
+ id: String,
594
+ amount_due: String,
595
+ auto_collection: Orb::Invoice::AutoCollection,
596
+ billing_address: T.nilable(Orb::Invoice::BillingAddress),
597
+ created_at: Time,
598
+ credit_notes: T::Array[Orb::Invoice::CreditNote],
599
+ currency: String,
600
+ customer: Orb::Invoice::Customer,
601
+ customer_balance_transactions:
602
+ T::Array[Orb::Invoice::CustomerBalanceTransaction],
603
+ customer_tax_id: T.nilable(Orb::Invoice::CustomerTaxID),
604
+ discount: T.anything,
605
+ discounts:
606
+ T::Array[
607
+ T.any(
608
+ Orb::PercentageDiscount,
609
+ Orb::AmountDiscount,
610
+ Orb::TrialDiscount
611
+ )
612
+ ],
613
+ due_date: T.nilable(Time),
614
+ eligible_to_issue_at: T.nilable(Time),
615
+ hosted_invoice_url: T.nilable(String),
616
+ invoice_date: Time,
617
+ invoice_number: String,
618
+ invoice_pdf: T.nilable(String),
619
+ invoice_source: Orb::Invoice::InvoiceSource::TaggedSymbol,
620
+ issue_failed_at: T.nilable(Time),
621
+ issued_at: T.nilable(Time),
622
+ line_items: T::Array[Orb::Invoice::LineItem],
623
+ maximum: T.nilable(Orb::Invoice::Maximum),
624
+ maximum_amount: T.nilable(String),
625
+ memo: T.nilable(String),
626
+ metadata: T::Hash[Symbol, String],
627
+ minimum: T.nilable(Orb::Invoice::Minimum),
628
+ minimum_amount: T.nilable(String),
629
+ paid_at: T.nilable(Time),
630
+ payment_attempts: T::Array[Orb::Invoice::PaymentAttempt],
631
+ payment_failed_at: T.nilable(Time),
632
+ payment_started_at: T.nilable(Time),
633
+ scheduled_issue_at: T.nilable(Time),
634
+ shipping_address: T.nilable(Orb::Invoice::ShippingAddress),
635
+ status: Orb::Invoice::Status::TaggedSymbol,
636
+ subscription: T.nilable(Orb::Invoice::Subscription),
637
+ subtotal: String,
638
+ sync_failed_at: T.nilable(Time),
639
+ total: String,
640
+ voided_at: T.nilable(Time),
641
+ will_auto_issue: T::Boolean
642
+ }
643
+ )
644
+ end
645
+ def to_hash
621
646
  end
622
- def to_hash; end
623
647
 
624
648
  class AutoCollection < Orb::Internal::Type::BaseModel
649
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
650
+
625
651
  # True only if auto-collection is enabled for this invoice.
626
652
  sig { returns(T.nilable(T::Boolean)) }
627
653
  attr_accessor :enabled
@@ -651,8 +677,7 @@ module Orb
651
677
  next_attempt_at: T.nilable(Time),
652
678
  num_attempts: T.nilable(Integer),
653
679
  previously_attempted_at: T.nilable(Time)
654
- )
655
- .returns(T.attached_class)
680
+ ).returns(T.attached_class)
656
681
  end
657
682
  def self.new(
658
683
  # True only if auto-collection is enabled for this invoice.
@@ -670,22 +695,26 @@ module Orb
670
695
  # if dunning has been exhausted (`previously_attempted_at` is non-null, but
671
696
  # `next_attempt_time` is null).
672
697
  previously_attempted_at:
673
- ); end
698
+ )
699
+ end
700
+
674
701
  sig do
675
- override
676
- .returns(
677
- {
678
- enabled: T.nilable(T::Boolean),
679
- next_attempt_at: T.nilable(Time),
680
- num_attempts: T.nilable(Integer),
681
- previously_attempted_at: T.nilable(Time)
682
- }
683
- )
702
+ override.returns(
703
+ {
704
+ enabled: T.nilable(T::Boolean),
705
+ next_attempt_at: T.nilable(Time),
706
+ num_attempts: T.nilable(Integer),
707
+ previously_attempted_at: T.nilable(Time)
708
+ }
709
+ )
710
+ end
711
+ def to_hash
684
712
  end
685
- def to_hash; end
686
713
  end
687
714
 
688
715
  class BillingAddress < Orb::Internal::Type::BaseModel
716
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
717
+
689
718
  sig { returns(T.nilable(String)) }
690
719
  attr_accessor :city
691
720
 
@@ -712,28 +741,30 @@ module Orb
712
741
  line2: T.nilable(String),
713
742
  postal_code: T.nilable(String),
714
743
  state: T.nilable(String)
715
- )
716
- .returns(T.attached_class)
744
+ ).returns(T.attached_class)
745
+ end
746
+ def self.new(city:, country:, line1:, line2:, postal_code:, state:)
717
747
  end
718
- def self.new(city:, country:, line1:, line2:, postal_code:, state:); end
719
748
 
720
749
  sig do
721
- override
722
- .returns(
723
- {
724
- city: T.nilable(String),
725
- country: T.nilable(String),
726
- line1: T.nilable(String),
727
- line2: T.nilable(String),
728
- postal_code: T.nilable(String),
729
- state: T.nilable(String)
730
- }
731
- )
750
+ override.returns(
751
+ {
752
+ city: T.nilable(String),
753
+ country: T.nilable(String),
754
+ line1: T.nilable(String),
755
+ line2: T.nilable(String),
756
+ postal_code: T.nilable(String),
757
+ state: T.nilable(String)
758
+ }
759
+ )
760
+ end
761
+ def to_hash
732
762
  end
733
- def to_hash; end
734
763
  end
735
764
 
736
765
  class CreditNote < Orb::Internal::Type::BaseModel
766
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
767
+
737
768
  sig { returns(String) }
738
769
  attr_accessor :id
739
770
 
@@ -767,8 +798,7 @@ module Orb
767
798
  total: String,
768
799
  type: String,
769
800
  voided_at: T.nilable(Time)
770
- )
771
- .returns(T.attached_class)
801
+ ).returns(T.attached_class)
772
802
  end
773
803
  def self.new(
774
804
  id:,
@@ -781,44 +811,64 @@ module Orb
781
811
  # If the credit note has a status of `void`, this gives a timestamp when the
782
812
  # credit note was voided.
783
813
  voided_at:
784
- ); end
814
+ )
815
+ end
816
+
785
817
  sig do
786
- override
787
- .returns(
788
- {
789
- id: String,
790
- credit_note_number: String,
791
- memo: T.nilable(String),
792
- reason: String,
793
- total: String,
794
- type: String,
795
- voided_at: T.nilable(Time)
796
- }
797
- )
818
+ override.returns(
819
+ {
820
+ id: String,
821
+ credit_note_number: String,
822
+ memo: T.nilable(String),
823
+ reason: String,
824
+ total: String,
825
+ type: String,
826
+ voided_at: T.nilable(Time)
827
+ }
828
+ )
829
+ end
830
+ def to_hash
798
831
  end
799
- def to_hash; end
800
832
  end
801
833
 
802
834
  class Customer < Orb::Internal::Type::BaseModel
835
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
836
+
803
837
  sig { returns(String) }
804
838
  attr_accessor :id
805
839
 
806
840
  sig { returns(T.nilable(String)) }
807
841
  attr_accessor :external_customer_id
808
842
 
809
- sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) }
810
- def self.new(id:, external_customer_id:); end
843
+ sig do
844
+ params(id: String, external_customer_id: T.nilable(String)).returns(
845
+ T.attached_class
846
+ )
847
+ end
848
+ def self.new(id:, external_customer_id:)
849
+ end
811
850
 
812
- sig { override.returns({id: String, external_customer_id: T.nilable(String)}) }
813
- def to_hash; end
851
+ sig do
852
+ override.returns(
853
+ { id: String, external_customer_id: T.nilable(String) }
854
+ )
855
+ end
856
+ def to_hash
857
+ end
814
858
  end
815
859
 
816
860
  class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel
861
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
862
+
817
863
  # A unique id for this transaction.
818
864
  sig { returns(String) }
819
865
  attr_accessor :id
820
866
 
821
- sig { returns(Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) }
867
+ sig do
868
+ returns(
869
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
870
+ )
871
+ end
822
872
  attr_accessor :action
823
873
 
824
874
  # The value of the amount changed in the transaction.
@@ -829,14 +879,20 @@ module Orb
829
879
  sig { returns(Time) }
830
880
  attr_accessor :created_at
831
881
 
832
- sig { returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)) }
882
+ sig do
883
+ returns(
884
+ T.nilable(Orb::Invoice::CustomerBalanceTransaction::CreditNote)
885
+ )
886
+ end
833
887
  attr_reader :credit_note
834
888
 
835
889
  sig do
836
890
  params(
837
- credit_note: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote, Orb::Internal::AnyHash))
838
- )
839
- .void
891
+ credit_note:
892
+ T.nilable(
893
+ Orb::Invoice::CustomerBalanceTransaction::CreditNote::OrHash
894
+ )
895
+ ).void
840
896
  end
841
897
  attr_writer :credit_note
842
898
 
@@ -849,14 +905,18 @@ module Orb
849
905
  sig { returns(String) }
850
906
  attr_accessor :ending_balance
851
907
 
852
- sig { returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)) }
908
+ sig do
909
+ returns(T.nilable(Orb::Invoice::CustomerBalanceTransaction::Invoice))
910
+ end
853
911
  attr_reader :invoice
854
912
 
855
913
  sig do
856
914
  params(
857
- invoice: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice, Orb::Internal::AnyHash))
858
- )
859
- .void
915
+ invoice:
916
+ T.nilable(
917
+ Orb::Invoice::CustomerBalanceTransaction::Invoice::OrHash
918
+ )
919
+ ).void
860
920
  end
861
921
  attr_writer :invoice
862
922
 
@@ -865,23 +925,30 @@ module Orb
865
925
  sig { returns(String) }
866
926
  attr_accessor :starting_balance
867
927
 
868
- sig { returns(Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) }
928
+ sig do
929
+ returns(Orb::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol)
930
+ end
869
931
  attr_accessor :type
870
932
 
871
933
  sig do
872
934
  params(
873
935
  id: String,
874
- action: Orb::Models::Invoice::CustomerBalanceTransaction::Action::OrSymbol,
936
+ action: Orb::Invoice::CustomerBalanceTransaction::Action::OrSymbol,
875
937
  amount: String,
876
938
  created_at: Time,
877
- credit_note: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote, Orb::Internal::AnyHash)),
939
+ credit_note:
940
+ T.nilable(
941
+ Orb::Invoice::CustomerBalanceTransaction::CreditNote::OrHash
942
+ ),
878
943
  description: T.nilable(String),
879
944
  ending_balance: String,
880
- invoice: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice, Orb::Internal::AnyHash)),
945
+ invoice:
946
+ T.nilable(
947
+ Orb::Invoice::CustomerBalanceTransaction::Invoice::OrHash
948
+ ),
881
949
  starting_balance: String,
882
- type: Orb::Models::Invoice::CustomerBalanceTransaction::Type::OrSymbol
883
- )
884
- .returns(T.attached_class)
950
+ type: Orb::Invoice::CustomerBalanceTransaction::Type::OrSymbol
951
+ ).returns(T.attached_class)
885
952
  end
886
953
  def self.new(
887
954
  # A unique id for this transaction.
@@ -902,56 +969,100 @@ module Orb
902
969
  # customer's currency.
903
970
  starting_balance:,
904
971
  type:
905
- ); end
972
+ )
973
+ end
974
+
906
975
  sig do
907
- override
908
- .returns(
909
- {
910
- id: String,
911
- action: Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol,
912
- amount: String,
913
- created_at: Time,
914
- credit_note: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote),
915
- description: T.nilable(String),
916
- ending_balance: String,
917
- invoice: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice),
918
- starting_balance: String,
919
- type: Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol
920
- }
921
- )
976
+ override.returns(
977
+ {
978
+ id: String,
979
+ action:
980
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol,
981
+ amount: String,
982
+ created_at: Time,
983
+ credit_note:
984
+ T.nilable(Orb::Invoice::CustomerBalanceTransaction::CreditNote),
985
+ description: T.nilable(String),
986
+ ending_balance: String,
987
+ invoice:
988
+ T.nilable(Orb::Invoice::CustomerBalanceTransaction::Invoice),
989
+ starting_balance: String,
990
+ type: Orb::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol
991
+ }
992
+ )
993
+ end
994
+ def to_hash
922
995
  end
923
- def to_hash; end
924
996
 
925
997
  module Action
926
998
  extend Orb::Internal::Type::Enum
927
999
 
928
- TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Action) }
1000
+ TaggedSymbol =
1001
+ T.type_alias do
1002
+ T.all(Symbol, Orb::Invoice::CustomerBalanceTransaction::Action)
1003
+ end
929
1004
  OrSymbol = T.type_alias { T.any(Symbol, String) }
930
1005
 
931
1006
  APPLIED_TO_INVOICE =
932
- T.let(:applied_to_invoice, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol)
1007
+ T.let(
1008
+ :applied_to_invoice,
1009
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1010
+ )
933
1011
  MANUAL_ADJUSTMENT =
934
- T.let(:manual_adjustment, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol)
1012
+ T.let(
1013
+ :manual_adjustment,
1014
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1015
+ )
935
1016
  PRORATED_REFUND =
936
- T.let(:prorated_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol)
1017
+ T.let(
1018
+ :prorated_refund,
1019
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1020
+ )
937
1021
  REVERT_PRORATED_REFUND =
938
- T.let(:revert_prorated_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol)
1022
+ T.let(
1023
+ :revert_prorated_refund,
1024
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1025
+ )
939
1026
  RETURN_FROM_VOIDING =
940
- T.let(:return_from_voiding, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol)
1027
+ T.let(
1028
+ :return_from_voiding,
1029
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1030
+ )
941
1031
  CREDIT_NOTE_APPLIED =
942
- T.let(:credit_note_applied, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol)
1032
+ T.let(
1033
+ :credit_note_applied,
1034
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1035
+ )
943
1036
  CREDIT_NOTE_VOIDED =
944
- T.let(:credit_note_voided, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol)
1037
+ T.let(
1038
+ :credit_note_voided,
1039
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1040
+ )
945
1041
  OVERPAYMENT_REFUND =
946
- T.let(:overpayment_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol)
1042
+ T.let(
1043
+ :overpayment_refund,
1044
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1045
+ )
947
1046
  EXTERNAL_PAYMENT =
948
- T.let(:external_payment, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol)
1047
+ T.let(
1048
+ :external_payment,
1049
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1050
+ )
949
1051
 
950
- sig { override.returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol]) }
951
- def self.values; end
1052
+ sig do
1053
+ override.returns(
1054
+ T::Array[
1055
+ Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1056
+ ]
1057
+ )
1058
+ end
1059
+ def self.values
1060
+ end
952
1061
  end
953
1062
 
954
1063
  class CreditNote < Orb::Internal::Type::BaseModel
1064
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1065
+
955
1066
  # The id of the Credit note
956
1067
  sig { returns(String) }
957
1068
  attr_accessor :id
@@ -960,12 +1071,17 @@ module Orb
960
1071
  def self.new(
961
1072
  # The id of the Credit note
962
1073
  id:
963
- ); end
964
- sig { override.returns({id: String}) }
965
- def to_hash; end
1074
+ )
1075
+ end
1076
+
1077
+ sig { override.returns({ id: String }) }
1078
+ def to_hash
1079
+ end
966
1080
  end
967
1081
 
968
1082
  class Invoice < Orb::Internal::Type::BaseModel
1083
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1084
+
969
1085
  # The Invoice id
970
1086
  sig { returns(String) }
971
1087
  attr_accessor :id
@@ -974,30 +1090,53 @@ module Orb
974
1090
  def self.new(
975
1091
  # The Invoice id
976
1092
  id:
977
- ); end
978
- sig { override.returns({id: String}) }
979
- def to_hash; end
1093
+ )
1094
+ end
1095
+
1096
+ sig { override.returns({ id: String }) }
1097
+ def to_hash
1098
+ end
980
1099
  end
981
1100
 
982
1101
  module Type
983
1102
  extend Orb::Internal::Type::Enum
984
1103
 
985
- TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Type) }
1104
+ TaggedSymbol =
1105
+ T.type_alias do
1106
+ T.all(Symbol, Orb::Invoice::CustomerBalanceTransaction::Type)
1107
+ end
986
1108
  OrSymbol = T.type_alias { T.any(Symbol, String) }
987
1109
 
988
- INCREMENT = T.let(:increment, Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol)
989
- DECREMENT = T.let(:decrement, Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol)
1110
+ INCREMENT =
1111
+ T.let(
1112
+ :increment,
1113
+ Orb::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol
1114
+ )
1115
+ DECREMENT =
1116
+ T.let(
1117
+ :decrement,
1118
+ Orb::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol
1119
+ )
990
1120
 
991
- sig { override.returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol]) }
992
- def self.values; end
1121
+ sig do
1122
+ override.returns(
1123
+ T::Array[
1124
+ Orb::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol
1125
+ ]
1126
+ )
1127
+ end
1128
+ def self.values
1129
+ end
993
1130
  end
994
1131
  end
995
1132
 
996
1133
  class CustomerTaxID < Orb::Internal::Type::BaseModel
997
- sig { returns(Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) }
1134
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1135
+
1136
+ sig { returns(Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) }
998
1137
  attr_accessor :country
999
1138
 
1000
- sig { returns(Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) }
1139
+ sig { returns(Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) }
1001
1140
  attr_accessor :type
1002
1141
 
1003
1142
  sig { returns(String) }
@@ -1110,213 +1249,299 @@ module Orb
1110
1249
  # | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
1111
1250
  sig do
1112
1251
  params(
1113
- country: Orb::Models::Invoice::CustomerTaxID::Country::OrSymbol,
1114
- type: Orb::Models::Invoice::CustomerTaxID::Type::OrSymbol,
1252
+ country: Orb::Invoice::CustomerTaxID::Country::OrSymbol,
1253
+ type: Orb::Invoice::CustomerTaxID::Type::OrSymbol,
1115
1254
  value: String
1116
- )
1117
- .returns(T.attached_class)
1255
+ ).returns(T.attached_class)
1256
+ end
1257
+ def self.new(country:, type:, value:)
1118
1258
  end
1119
- def self.new(country:, type:, value:); end
1120
1259
 
1121
1260
  sig do
1122
- override
1123
- .returns(
1124
- {
1125
- country: Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol,
1126
- type: Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol,
1127
- value: String
1128
- }
1129
- )
1261
+ override.returns(
1262
+ {
1263
+ country: Orb::Invoice::CustomerTaxID::Country::TaggedSymbol,
1264
+ type: Orb::Invoice::CustomerTaxID::Type::TaggedSymbol,
1265
+ value: String
1266
+ }
1267
+ )
1268
+ end
1269
+ def to_hash
1130
1270
  end
1131
- def to_hash; end
1132
1271
 
1133
1272
  module Country
1134
1273
  extend Orb::Internal::Type::Enum
1135
1274
 
1136
- TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerTaxID::Country) }
1275
+ TaggedSymbol =
1276
+ T.type_alias { T.all(Symbol, Orb::Invoice::CustomerTaxID::Country) }
1137
1277
  OrSymbol = T.type_alias { T.any(Symbol, String) }
1138
1278
 
1139
- AD = T.let(:AD, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1140
- AE = T.let(:AE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1141
- AR = T.let(:AR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1142
- AT = T.let(:AT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1143
- AU = T.let(:AU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1144
- BE = T.let(:BE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1145
- BG = T.let(:BG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1146
- BH = T.let(:BH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1147
- BO = T.let(:BO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1148
- BR = T.let(:BR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1149
- CA = T.let(:CA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1150
- CH = T.let(:CH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1151
- CL = T.let(:CL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1152
- CN = T.let(:CN, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1153
- CO = T.let(:CO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1154
- CR = T.let(:CR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1155
- CY = T.let(:CY, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1156
- CZ = T.let(:CZ, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1157
- DE = T.let(:DE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1158
- DK = T.let(:DK, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1159
- EE = T.let(:EE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1160
- DO = T.let(:DO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1161
- EC = T.let(:EC, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1162
- EG = T.let(:EG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1163
- ES = T.let(:ES, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1164
- EU = T.let(:EU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1165
- FI = T.let(:FI, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1166
- FR = T.let(:FR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1167
- GB = T.let(:GB, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1168
- GE = T.let(:GE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1169
- GR = T.let(:GR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1170
- HK = T.let(:HK, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1171
- HR = T.let(:HR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1172
- HU = T.let(:HU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1173
- ID = T.let(:ID, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1174
- IE = T.let(:IE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1175
- IL = T.let(:IL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1176
- IN = T.let(:IN, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1177
- IS = T.let(:IS, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1178
- IT = T.let(:IT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1179
- JP = T.let(:JP, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1180
- KE = T.let(:KE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1181
- KR = T.let(:KR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1182
- KZ = T.let(:KZ, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1183
- LI = T.let(:LI, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1184
- LT = T.let(:LT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1185
- LU = T.let(:LU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1186
- LV = T.let(:LV, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1187
- MT = T.let(:MT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1188
- MX = T.let(:MX, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1189
- MY = T.let(:MY, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1190
- NG = T.let(:NG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1191
- NL = T.let(:NL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1192
- NO = T.let(:NO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1193
- NZ = T.let(:NZ, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1194
- OM = T.let(:OM, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1195
- PE = T.let(:PE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1196
- PH = T.let(:PH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1197
- PL = T.let(:PL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1198
- PT = T.let(:PT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1199
- RO = T.let(:RO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1200
- RS = T.let(:RS, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1201
- RU = T.let(:RU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1202
- SA = T.let(:SA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1203
- SE = T.let(:SE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1204
- SG = T.let(:SG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1205
- SI = T.let(:SI, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1206
- SK = T.let(:SK, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1207
- SV = T.let(:SV, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1208
- TH = T.let(:TH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1209
- TR = T.let(:TR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1210
- TW = T.let(:TW, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1211
- UA = T.let(:UA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1212
- US = T.let(:US, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1213
- UY = T.let(:UY, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1214
- VE = T.let(:VE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1215
- VN = T.let(:VN, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1216
- ZA = T.let(:ZA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol)
1217
-
1218
- sig { override.returns(T::Array[Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol]) }
1219
- def self.values; end
1279
+ AD = T.let(:AD, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1280
+ AE = T.let(:AE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1281
+ AR = T.let(:AR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1282
+ AT = T.let(:AT, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1283
+ AU = T.let(:AU, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1284
+ BE = T.let(:BE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1285
+ BG = T.let(:BG, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1286
+ BH = T.let(:BH, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1287
+ BO = T.let(:BO, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1288
+ BR = T.let(:BR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1289
+ CA = T.let(:CA, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1290
+ CH = T.let(:CH, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1291
+ CL = T.let(:CL, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1292
+ CN = T.let(:CN, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1293
+ CO = T.let(:CO, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1294
+ CR = T.let(:CR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1295
+ CY = T.let(:CY, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1296
+ CZ = T.let(:CZ, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1297
+ DE = T.let(:DE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1298
+ DK = T.let(:DK, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1299
+ EE = T.let(:EE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1300
+ DO = T.let(:DO, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1301
+ EC = T.let(:EC, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1302
+ EG = T.let(:EG, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1303
+ ES = T.let(:ES, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1304
+ EU = T.let(:EU, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1305
+ FI = T.let(:FI, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1306
+ FR = T.let(:FR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1307
+ GB = T.let(:GB, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1308
+ GE = T.let(:GE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1309
+ GR = T.let(:GR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1310
+ HK = T.let(:HK, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1311
+ HR = T.let(:HR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1312
+ HU = T.let(:HU, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1313
+ ID = T.let(:ID, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1314
+ IE = T.let(:IE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1315
+ IL = T.let(:IL, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1316
+ IN = T.let(:IN, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1317
+ IS = T.let(:IS, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1318
+ IT = T.let(:IT, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1319
+ JP = T.let(:JP, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1320
+ KE = T.let(:KE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1321
+ KR = T.let(:KR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1322
+ KZ = T.let(:KZ, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1323
+ LI = T.let(:LI, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1324
+ LT = T.let(:LT, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1325
+ LU = T.let(:LU, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1326
+ LV = T.let(:LV, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1327
+ MT = T.let(:MT, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1328
+ MX = T.let(:MX, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1329
+ MY = T.let(:MY, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1330
+ NG = T.let(:NG, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1331
+ NL = T.let(:NL, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1332
+ NO = T.let(:NO, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1333
+ NZ = T.let(:NZ, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1334
+ OM = T.let(:OM, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1335
+ PE = T.let(:PE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1336
+ PH = T.let(:PH, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1337
+ PL = T.let(:PL, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1338
+ PT = T.let(:PT, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1339
+ RO = T.let(:RO, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1340
+ RS = T.let(:RS, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1341
+ RU = T.let(:RU, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1342
+ SA = T.let(:SA, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1343
+ SE = T.let(:SE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1344
+ SG = T.let(:SG, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1345
+ SI = T.let(:SI, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1346
+ SK = T.let(:SK, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1347
+ SV = T.let(:SV, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1348
+ TH = T.let(:TH, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1349
+ TR = T.let(:TR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1350
+ TW = T.let(:TW, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1351
+ UA = T.let(:UA, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1352
+ US = T.let(:US, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1353
+ UY = T.let(:UY, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1354
+ VE = T.let(:VE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1355
+ VN = T.let(:VN, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1356
+ ZA = T.let(:ZA, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol)
1357
+
1358
+ sig do
1359
+ override.returns(
1360
+ T::Array[Orb::Invoice::CustomerTaxID::Country::TaggedSymbol]
1361
+ )
1362
+ end
1363
+ def self.values
1364
+ end
1220
1365
  end
1221
1366
 
1222
1367
  module Type
1223
1368
  extend Orb::Internal::Type::Enum
1224
1369
 
1225
- TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerTaxID::Type) }
1370
+ TaggedSymbol =
1371
+ T.type_alias { T.all(Symbol, Orb::Invoice::CustomerTaxID::Type) }
1226
1372
  OrSymbol = T.type_alias { T.any(Symbol, String) }
1227
1373
 
1228
- AD_NRT = T.let(:ad_nrt, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1229
- AE_TRN = T.let(:ae_trn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1230
- AR_CUIT = T.let(:ar_cuit, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1231
- EU_VAT = T.let(:eu_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1232
- AU_ABN = T.let(:au_abn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1233
- AU_ARN = T.let(:au_arn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1234
- BG_UIC = T.let(:bg_uic, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1235
- BH_VAT = T.let(:bh_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1236
- BO_TIN = T.let(:bo_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1237
- BR_CNPJ = T.let(:br_cnpj, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1238
- BR_CPF = T.let(:br_cpf, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1239
- CA_BN = T.let(:ca_bn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1240
- CA_GST_HST = T.let(:ca_gst_hst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1241
- CA_PST_BC = T.let(:ca_pst_bc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1242
- CA_PST_MB = T.let(:ca_pst_mb, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1243
- CA_PST_SK = T.let(:ca_pst_sk, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1244
- CA_QST = T.let(:ca_qst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1245
- CH_VAT = T.let(:ch_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1246
- CL_TIN = T.let(:cl_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1247
- CN_TIN = T.let(:cn_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1248
- CO_NIT = T.let(:co_nit, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1249
- CR_TIN = T.let(:cr_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1250
- DO_RCN = T.let(:do_rcn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1251
- EC_RUC = T.let(:ec_ruc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1252
- EG_TIN = T.let(:eg_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1253
- ES_CIF = T.let(:es_cif, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1254
- EU_OSS_VAT = T.let(:eu_oss_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1255
- GB_VAT = T.let(:gb_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1256
- GE_VAT = T.let(:ge_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1257
- HK_BR = T.let(:hk_br, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1258
- HU_TIN = T.let(:hu_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1259
- ID_NPWP = T.let(:id_npwp, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1260
- IL_VAT = T.let(:il_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1261
- IN_GST = T.let(:in_gst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1262
- IS_VAT = T.let(:is_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1263
- JP_CN = T.let(:jp_cn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1264
- JP_RN = T.let(:jp_rn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1265
- JP_TRN = T.let(:jp_trn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1266
- KE_PIN = T.let(:ke_pin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1267
- KR_BRN = T.let(:kr_brn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1268
- KZ_BIN = T.let(:kz_bin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1269
- LI_UID = T.let(:li_uid, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1270
- MX_RFC = T.let(:mx_rfc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1271
- MY_FRP = T.let(:my_frp, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1272
- MY_ITN = T.let(:my_itn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1273
- MY_SST = T.let(:my_sst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1274
- NG_TIN = T.let(:ng_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1275
- NO_VAT = T.let(:no_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1276
- NO_VOEC = T.let(:no_voec, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1277
- NZ_GST = T.let(:nz_gst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1278
- OM_VAT = T.let(:om_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1279
- PE_RUC = T.let(:pe_ruc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1280
- PH_TIN = T.let(:ph_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1281
- RO_TIN = T.let(:ro_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1282
- RS_PIB = T.let(:rs_pib, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1283
- RU_INN = T.let(:ru_inn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1284
- RU_KPP = T.let(:ru_kpp, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1285
- SA_VAT = T.let(:sa_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1286
- SG_GST = T.let(:sg_gst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1287
- SG_UEN = T.let(:sg_uen, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1288
- SI_TIN = T.let(:si_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1289
- SV_NIT = T.let(:sv_nit, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1290
- TH_VAT = T.let(:th_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1291
- TR_TIN = T.let(:tr_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1292
- TW_VAT = T.let(:tw_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1293
- UA_VAT = T.let(:ua_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1294
- US_EIN = T.let(:us_ein, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1295
- UY_RUC = T.let(:uy_ruc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1296
- VE_RIF = T.let(:ve_rif, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1297
- VN_TIN = T.let(:vn_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1298
- ZA_VAT = T.let(:za_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol)
1299
-
1300
- sig { override.returns(T::Array[Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol]) }
1301
- def self.values; end
1374
+ AD_NRT =
1375
+ T.let(:ad_nrt, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1376
+ AE_TRN =
1377
+ T.let(:ae_trn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1378
+ AR_CUIT =
1379
+ T.let(:ar_cuit, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1380
+ EU_VAT =
1381
+ T.let(:eu_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1382
+ AU_ABN =
1383
+ T.let(:au_abn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1384
+ AU_ARN =
1385
+ T.let(:au_arn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1386
+ BG_UIC =
1387
+ T.let(:bg_uic, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1388
+ BH_VAT =
1389
+ T.let(:bh_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1390
+ BO_TIN =
1391
+ T.let(:bo_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1392
+ BR_CNPJ =
1393
+ T.let(:br_cnpj, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1394
+ BR_CPF =
1395
+ T.let(:br_cpf, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1396
+ CA_BN = T.let(:ca_bn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1397
+ CA_GST_HST =
1398
+ T.let(:ca_gst_hst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1399
+ CA_PST_BC =
1400
+ T.let(:ca_pst_bc, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1401
+ CA_PST_MB =
1402
+ T.let(:ca_pst_mb, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1403
+ CA_PST_SK =
1404
+ T.let(:ca_pst_sk, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1405
+ CA_QST =
1406
+ T.let(:ca_qst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1407
+ CH_VAT =
1408
+ T.let(:ch_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1409
+ CL_TIN =
1410
+ T.let(:cl_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1411
+ CN_TIN =
1412
+ T.let(:cn_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1413
+ CO_NIT =
1414
+ T.let(:co_nit, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1415
+ CR_TIN =
1416
+ T.let(:cr_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1417
+ DO_RCN =
1418
+ T.let(:do_rcn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1419
+ EC_RUC =
1420
+ T.let(:ec_ruc, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1421
+ EG_TIN =
1422
+ T.let(:eg_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1423
+ ES_CIF =
1424
+ T.let(:es_cif, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1425
+ EU_OSS_VAT =
1426
+ T.let(:eu_oss_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1427
+ GB_VAT =
1428
+ T.let(:gb_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1429
+ GE_VAT =
1430
+ T.let(:ge_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1431
+ HK_BR = T.let(:hk_br, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1432
+ HU_TIN =
1433
+ T.let(:hu_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1434
+ ID_NPWP =
1435
+ T.let(:id_npwp, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1436
+ IL_VAT =
1437
+ T.let(:il_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1438
+ IN_GST =
1439
+ T.let(:in_gst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1440
+ IS_VAT =
1441
+ T.let(:is_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1442
+ JP_CN = T.let(:jp_cn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1443
+ JP_RN = T.let(:jp_rn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1444
+ JP_TRN =
1445
+ T.let(:jp_trn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1446
+ KE_PIN =
1447
+ T.let(:ke_pin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1448
+ KR_BRN =
1449
+ T.let(:kr_brn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1450
+ KZ_BIN =
1451
+ T.let(:kz_bin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1452
+ LI_UID =
1453
+ T.let(:li_uid, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1454
+ MX_RFC =
1455
+ T.let(:mx_rfc, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1456
+ MY_FRP =
1457
+ T.let(:my_frp, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1458
+ MY_ITN =
1459
+ T.let(:my_itn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1460
+ MY_SST =
1461
+ T.let(:my_sst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1462
+ NG_TIN =
1463
+ T.let(:ng_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1464
+ NO_VAT =
1465
+ T.let(:no_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1466
+ NO_VOEC =
1467
+ T.let(:no_voec, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1468
+ NZ_GST =
1469
+ T.let(:nz_gst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1470
+ OM_VAT =
1471
+ T.let(:om_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1472
+ PE_RUC =
1473
+ T.let(:pe_ruc, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1474
+ PH_TIN =
1475
+ T.let(:ph_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1476
+ RO_TIN =
1477
+ T.let(:ro_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1478
+ RS_PIB =
1479
+ T.let(:rs_pib, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1480
+ RU_INN =
1481
+ T.let(:ru_inn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1482
+ RU_KPP =
1483
+ T.let(:ru_kpp, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1484
+ SA_VAT =
1485
+ T.let(:sa_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1486
+ SG_GST =
1487
+ T.let(:sg_gst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1488
+ SG_UEN =
1489
+ T.let(:sg_uen, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1490
+ SI_TIN =
1491
+ T.let(:si_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1492
+ SV_NIT =
1493
+ T.let(:sv_nit, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1494
+ TH_VAT =
1495
+ T.let(:th_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1496
+ TR_TIN =
1497
+ T.let(:tr_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1498
+ TW_VAT =
1499
+ T.let(:tw_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1500
+ UA_VAT =
1501
+ T.let(:ua_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1502
+ US_EIN =
1503
+ T.let(:us_ein, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1504
+ UY_RUC =
1505
+ T.let(:uy_ruc, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1506
+ VE_RIF =
1507
+ T.let(:ve_rif, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1508
+ VN_TIN =
1509
+ T.let(:vn_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1510
+ ZA_VAT =
1511
+ T.let(:za_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol)
1512
+
1513
+ sig do
1514
+ override.returns(
1515
+ T::Array[Orb::Invoice::CustomerTaxID::Type::TaggedSymbol]
1516
+ )
1517
+ end
1518
+ def self.values
1519
+ end
1302
1520
  end
1303
1521
  end
1304
1522
 
1305
1523
  module InvoiceSource
1306
1524
  extend Orb::Internal::Type::Enum
1307
1525
 
1308
- TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::InvoiceSource) }
1526
+ TaggedSymbol =
1527
+ T.type_alias { T.all(Symbol, Orb::Invoice::InvoiceSource) }
1309
1528
  OrSymbol = T.type_alias { T.any(Symbol, String) }
1310
1529
 
1311
- SUBSCRIPTION = T.let(:subscription, Orb::Models::Invoice::InvoiceSource::TaggedSymbol)
1312
- PARTIAL = T.let(:partial, Orb::Models::Invoice::InvoiceSource::TaggedSymbol)
1313
- ONE_OFF = T.let(:one_off, Orb::Models::Invoice::InvoiceSource::TaggedSymbol)
1530
+ SUBSCRIPTION =
1531
+ T.let(:subscription, Orb::Invoice::InvoiceSource::TaggedSymbol)
1532
+ PARTIAL = T.let(:partial, Orb::Invoice::InvoiceSource::TaggedSymbol)
1533
+ ONE_OFF = T.let(:one_off, Orb::Invoice::InvoiceSource::TaggedSymbol)
1314
1534
 
1315
- sig { override.returns(T::Array[Orb::Models::Invoice::InvoiceSource::TaggedSymbol]) }
1316
- def self.values; end
1535
+ sig do
1536
+ override.returns(T::Array[Orb::Invoice::InvoiceSource::TaggedSymbol])
1537
+ end
1538
+ def self.values
1539
+ end
1317
1540
  end
1318
1541
 
1319
1542
  class LineItem < Orb::Internal::Type::BaseModel
1543
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1544
+
1320
1545
  # A unique ID for this line item.
1321
1546
  sig { returns(String) }
1322
1547
  attr_accessor :id
@@ -1333,11 +1558,11 @@ module Orb
1333
1558
  returns(
1334
1559
  T::Array[
1335
1560
  T.any(
1336
- Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount,
1337
- Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount,
1338
- Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount,
1339
- Orb::Models::Invoice::LineItem::Adjustment::Minimum,
1340
- Orb::Models::Invoice::LineItem::Adjustment::Maximum
1561
+ Orb::Invoice::LineItem::Adjustment::UsageDiscount,
1562
+ Orb::Invoice::LineItem::Adjustment::AmountDiscount,
1563
+ Orb::Invoice::LineItem::Adjustment::PercentageDiscount,
1564
+ Orb::Invoice::LineItem::Adjustment::Minimum,
1565
+ Orb::Invoice::LineItem::Adjustment::Maximum
1341
1566
  )
1342
1567
  ]
1343
1568
  )
@@ -1357,10 +1582,10 @@ module Orb
1357
1582
  returns(
1358
1583
  T.nilable(
1359
1584
  T.any(
1360
- Orb::Models::PercentageDiscount,
1361
- Orb::Models::TrialDiscount,
1362
- Orb::Models::UsageDiscount,
1363
- Orb::Models::AmountDiscount
1585
+ Orb::PercentageDiscount,
1586
+ Orb::TrialDiscount,
1587
+ Orb::UsageDiscount,
1588
+ Orb::AmountDiscount
1364
1589
  )
1365
1590
  )
1366
1591
  )
@@ -1382,10 +1607,14 @@ module Orb
1382
1607
  attr_accessor :grouping
1383
1608
 
1384
1609
  # This field is deprecated in favor of `adjustments`.
1385
- sig { returns(T.nilable(Orb::Models::Invoice::LineItem::Maximum)) }
1610
+ sig { returns(T.nilable(Orb::Invoice::LineItem::Maximum)) }
1386
1611
  attr_reader :maximum
1387
1612
 
1388
- sig { params(maximum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Maximum, Orb::Internal::AnyHash))).void }
1613
+ sig do
1614
+ params(
1615
+ maximum: T.nilable(Orb::Invoice::LineItem::Maximum::OrHash)
1616
+ ).void
1617
+ end
1389
1618
  attr_writer :maximum
1390
1619
 
1391
1620
  # This field is deprecated in favor of `adjustments`.
@@ -1393,10 +1622,14 @@ module Orb
1393
1622
  attr_accessor :maximum_amount
1394
1623
 
1395
1624
  # This field is deprecated in favor of `adjustments`.
1396
- sig { returns(T.nilable(Orb::Models::Invoice::LineItem::Minimum)) }
1625
+ sig { returns(T.nilable(Orb::Invoice::LineItem::Minimum)) }
1397
1626
  attr_reader :minimum
1398
1627
 
1399
- sig { params(minimum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Minimum, Orb::Internal::AnyHash))).void }
1628
+ sig do
1629
+ params(
1630
+ minimum: T.nilable(Orb::Invoice::LineItem::Minimum::OrHash)
1631
+ ).void
1632
+ end
1400
1633
  attr_writer :minimum
1401
1634
 
1402
1635
  # This field is deprecated in favor of `adjustments`.
@@ -1425,34 +1658,34 @@ module Orb
1425
1658
  returns(
1426
1659
  T.nilable(
1427
1660
  T.any(
1428
- Orb::Models::Price::Unit,
1429
- Orb::Models::Price::Package,
1430
- Orb::Models::Price::Matrix,
1431
- Orb::Models::Price::Tiered,
1432
- Orb::Models::Price::TieredBps,
1433
- Orb::Models::Price::Bps,
1434
- Orb::Models::Price::BulkBps,
1435
- Orb::Models::Price::Bulk,
1436
- Orb::Models::Price::ThresholdTotalAmount,
1437
- Orb::Models::Price::TieredPackage,
1438
- Orb::Models::Price::GroupedTiered,
1439
- Orb::Models::Price::TieredWithMinimum,
1440
- Orb::Models::Price::TieredPackageWithMinimum,
1441
- Orb::Models::Price::PackageWithAllocation,
1442
- Orb::Models::Price::UnitWithPercent,
1443
- Orb::Models::Price::MatrixWithAllocation,
1444
- Orb::Models::Price::TieredWithProration,
1445
- Orb::Models::Price::UnitWithProration,
1446
- Orb::Models::Price::GroupedAllocation,
1447
- Orb::Models::Price::GroupedWithProratedMinimum,
1448
- Orb::Models::Price::GroupedWithMeteredMinimum,
1449
- Orb::Models::Price::MatrixWithDisplayName,
1450
- Orb::Models::Price::BulkWithProration,
1451
- Orb::Models::Price::GroupedTieredPackage,
1452
- Orb::Models::Price::MaxGroupTieredPackage,
1453
- Orb::Models::Price::ScalableMatrixWithUnitPricing,
1454
- Orb::Models::Price::ScalableMatrixWithTieredPricing,
1455
- Orb::Models::Price::CumulativeGroupedBulk
1661
+ Orb::Price::Unit,
1662
+ Orb::Price::Package,
1663
+ Orb::Price::Matrix,
1664
+ Orb::Price::Tiered,
1665
+ Orb::Price::TieredBps,
1666
+ Orb::Price::Bps,
1667
+ Orb::Price::BulkBps,
1668
+ Orb::Price::Bulk,
1669
+ Orb::Price::ThresholdTotalAmount,
1670
+ Orb::Price::TieredPackage,
1671
+ Orb::Price::GroupedTiered,
1672
+ Orb::Price::TieredWithMinimum,
1673
+ Orb::Price::TieredPackageWithMinimum,
1674
+ Orb::Price::PackageWithAllocation,
1675
+ Orb::Price::UnitWithPercent,
1676
+ Orb::Price::MatrixWithAllocation,
1677
+ Orb::Price::TieredWithProration,
1678
+ Orb::Price::UnitWithProration,
1679
+ Orb::Price::GroupedAllocation,
1680
+ Orb::Price::GroupedWithProratedMinimum,
1681
+ Orb::Price::GroupedWithMeteredMinimum,
1682
+ Orb::Price::MatrixWithDisplayName,
1683
+ Orb::Price::BulkWithProration,
1684
+ Orb::Price::GroupedTieredPackage,
1685
+ Orb::Price::MaxGroupTieredPackage,
1686
+ Orb::Price::ScalableMatrixWithUnitPricing,
1687
+ Orb::Price::ScalableMatrixWithTieredPricing,
1688
+ Orb::Price::CumulativeGroupedBulk
1456
1689
  )
1457
1690
  )
1458
1691
  )
@@ -1473,9 +1706,9 @@ module Orb
1473
1706
  returns(
1474
1707
  T::Array[
1475
1708
  T.any(
1476
- Orb::Models::Invoice::LineItem::SubLineItem::Matrix,
1477
- Orb::Models::Invoice::LineItem::SubLineItem::Tier,
1478
- Orb::Models::Invoice::LineItem::SubLineItem::Null
1709
+ Orb::Invoice::LineItem::SubLineItem::Matrix,
1710
+ Orb::Invoice::LineItem::SubLineItem::Tier,
1711
+ Orb::Invoice::LineItem::SubLineItem::Null
1479
1712
  )
1480
1713
  ]
1481
1714
  )
@@ -1488,7 +1721,7 @@ module Orb
1488
1721
 
1489
1722
  # An array of tax rates and their incurred tax amounts. Empty if no tax
1490
1723
  # integration is configured.
1491
- sig { returns(T::Array[Orb::Models::Invoice::LineItem::TaxAmount]) }
1724
+ sig { returns(T::Array[Orb::Invoice::LineItem::TaxAmount]) }
1492
1725
  attr_accessor :tax_amounts
1493
1726
 
1494
1727
  # A list of customer ids that were used to calculate the usage for this line item.
@@ -1499,84 +1732,83 @@ module Orb
1499
1732
  params(
1500
1733
  id: String,
1501
1734
  adjusted_subtotal: String,
1502
- adjustments: T::Array[
1503
- T.any(
1504
- Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount,
1505
- Orb::Internal::AnyHash,
1506
- Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount,
1507
- Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount,
1508
- Orb::Models::Invoice::LineItem::Adjustment::Minimum,
1509
- Orb::Models::Invoice::LineItem::Adjustment::Maximum
1510
- )
1511
- ],
1735
+ adjustments:
1736
+ T::Array[
1737
+ T.any(
1738
+ Orb::Invoice::LineItem::Adjustment::UsageDiscount::OrHash,
1739
+ Orb::Invoice::LineItem::Adjustment::AmountDiscount::OrHash,
1740
+ Orb::Invoice::LineItem::Adjustment::PercentageDiscount::OrHash,
1741
+ Orb::Invoice::LineItem::Adjustment::Minimum::OrHash,
1742
+ Orb::Invoice::LineItem::Adjustment::Maximum::OrHash
1743
+ )
1744
+ ],
1512
1745
  amount: String,
1513
1746
  credits_applied: String,
1514
- discount: T.nilable(
1515
- T.any(
1516
- Orb::Models::PercentageDiscount,
1517
- Orb::Internal::AnyHash,
1518
- Orb::Models::TrialDiscount,
1519
- Orb::Models::UsageDiscount,
1520
- Orb::Models::AmountDiscount
1521
- )
1522
- ),
1747
+ discount:
1748
+ T.nilable(
1749
+ T.any(
1750
+ Orb::PercentageDiscount::OrHash,
1751
+ Orb::TrialDiscount::OrHash,
1752
+ Orb::UsageDiscount::OrHash,
1753
+ Orb::AmountDiscount::OrHash
1754
+ )
1755
+ ),
1523
1756
  end_date: Time,
1524
1757
  filter: T.nilable(String),
1525
1758
  grouping: T.nilable(String),
1526
- maximum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Maximum, Orb::Internal::AnyHash)),
1759
+ maximum: T.nilable(Orb::Invoice::LineItem::Maximum::OrHash),
1527
1760
  maximum_amount: T.nilable(String),
1528
- minimum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Minimum, Orb::Internal::AnyHash)),
1761
+ minimum: T.nilable(Orb::Invoice::LineItem::Minimum::OrHash),
1529
1762
  minimum_amount: T.nilable(String),
1530
1763
  name: String,
1531
1764
  partially_invoiced_amount: String,
1532
- price: T.nilable(
1533
- T.any(
1534
- Orb::Models::Price::Unit,
1535
- Orb::Internal::AnyHash,
1536
- Orb::Models::Price::Package,
1537
- Orb::Models::Price::Matrix,
1538
- Orb::Models::Price::Tiered,
1539
- Orb::Models::Price::TieredBps,
1540
- Orb::Models::Price::Bps,
1541
- Orb::Models::Price::BulkBps,
1542
- Orb::Models::Price::Bulk,
1543
- Orb::Models::Price::ThresholdTotalAmount,
1544
- Orb::Models::Price::TieredPackage,
1545
- Orb::Models::Price::GroupedTiered,
1546
- Orb::Models::Price::TieredWithMinimum,
1547
- Orb::Models::Price::TieredPackageWithMinimum,
1548
- Orb::Models::Price::PackageWithAllocation,
1549
- Orb::Models::Price::UnitWithPercent,
1550
- Orb::Models::Price::MatrixWithAllocation,
1551
- Orb::Models::Price::TieredWithProration,
1552
- Orb::Models::Price::UnitWithProration,
1553
- Orb::Models::Price::GroupedAllocation,
1554
- Orb::Models::Price::GroupedWithProratedMinimum,
1555
- Orb::Models::Price::GroupedWithMeteredMinimum,
1556
- Orb::Models::Price::MatrixWithDisplayName,
1557
- Orb::Models::Price::BulkWithProration,
1558
- Orb::Models::Price::GroupedTieredPackage,
1559
- Orb::Models::Price::MaxGroupTieredPackage,
1560
- Orb::Models::Price::ScalableMatrixWithUnitPricing,
1561
- Orb::Models::Price::ScalableMatrixWithTieredPricing,
1562
- Orb::Models::Price::CumulativeGroupedBulk
1563
- )
1564
- ),
1765
+ price:
1766
+ T.nilable(
1767
+ T.any(
1768
+ Orb::Price::Unit::OrHash,
1769
+ Orb::Price::Package::OrHash,
1770
+ Orb::Price::Matrix::OrHash,
1771
+ Orb::Price::Tiered::OrHash,
1772
+ Orb::Price::TieredBps::OrHash,
1773
+ Orb::Price::Bps::OrHash,
1774
+ Orb::Price::BulkBps::OrHash,
1775
+ Orb::Price::Bulk::OrHash,
1776
+ Orb::Price::ThresholdTotalAmount::OrHash,
1777
+ Orb::Price::TieredPackage::OrHash,
1778
+ Orb::Price::GroupedTiered::OrHash,
1779
+ Orb::Price::TieredWithMinimum::OrHash,
1780
+ Orb::Price::TieredPackageWithMinimum::OrHash,
1781
+ Orb::Price::PackageWithAllocation::OrHash,
1782
+ Orb::Price::UnitWithPercent::OrHash,
1783
+ Orb::Price::MatrixWithAllocation::OrHash,
1784
+ Orb::Price::TieredWithProration::OrHash,
1785
+ Orb::Price::UnitWithProration::OrHash,
1786
+ Orb::Price::GroupedAllocation::OrHash,
1787
+ Orb::Price::GroupedWithProratedMinimum::OrHash,
1788
+ Orb::Price::GroupedWithMeteredMinimum::OrHash,
1789
+ Orb::Price::MatrixWithDisplayName::OrHash,
1790
+ Orb::Price::BulkWithProration::OrHash,
1791
+ Orb::Price::GroupedTieredPackage::OrHash,
1792
+ Orb::Price::MaxGroupTieredPackage::OrHash,
1793
+ Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
1794
+ Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
1795
+ Orb::Price::CumulativeGroupedBulk::OrHash
1796
+ )
1797
+ ),
1565
1798
  quantity: Float,
1566
1799
  start_date: Time,
1567
- sub_line_items: T::Array[
1568
- T.any(
1569
- Orb::Models::Invoice::LineItem::SubLineItem::Matrix,
1570
- Orb::Internal::AnyHash,
1571
- Orb::Models::Invoice::LineItem::SubLineItem::Tier,
1572
- Orb::Models::Invoice::LineItem::SubLineItem::Null
1573
- )
1574
- ],
1800
+ sub_line_items:
1801
+ T::Array[
1802
+ T.any(
1803
+ Orb::Invoice::LineItem::SubLineItem::Matrix::OrHash,
1804
+ Orb::Invoice::LineItem::SubLineItem::Tier::OrHash,
1805
+ Orb::Invoice::LineItem::SubLineItem::Null::OrHash
1806
+ )
1807
+ ],
1575
1808
  subtotal: String,
1576
- tax_amounts: T::Array[T.any(Orb::Models::Invoice::LineItem::TaxAmount, Orb::Internal::AnyHash)],
1809
+ tax_amounts: T::Array[Orb::Invoice::LineItem::TaxAmount::OrHash],
1577
1810
  usage_customer_ids: T.nilable(T::Array[String])
1578
- )
1579
- .returns(T.attached_class)
1811
+ ).returns(T.attached_class)
1580
1812
  end
1581
1813
  def self.new(
1582
1814
  # A unique ID for this line item.
@@ -1639,94 +1871,113 @@ module Orb
1639
1871
  tax_amounts:,
1640
1872
  # A list of customer ids that were used to calculate the usage for this line item.
1641
1873
  usage_customer_ids:
1642
- ); end
1874
+ )
1875
+ end
1876
+
1643
1877
  sig do
1644
- override
1645
- .returns(
1646
- {
1647
- id: String,
1648
- adjusted_subtotal: String,
1649
- adjustments: T::Array[
1878
+ override.returns(
1879
+ {
1880
+ id: String,
1881
+ adjusted_subtotal: String,
1882
+ adjustments:
1883
+ T::Array[
1650
1884
  T.any(
1651
- Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount,
1652
- Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount,
1653
- Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount,
1654
- Orb::Models::Invoice::LineItem::Adjustment::Minimum,
1655
- Orb::Models::Invoice::LineItem::Adjustment::Maximum
1885
+ Orb::Invoice::LineItem::Adjustment::UsageDiscount,
1886
+ Orb::Invoice::LineItem::Adjustment::AmountDiscount,
1887
+ Orb::Invoice::LineItem::Adjustment::PercentageDiscount,
1888
+ Orb::Invoice::LineItem::Adjustment::Minimum,
1889
+ Orb::Invoice::LineItem::Adjustment::Maximum
1656
1890
  )
1657
1891
  ],
1658
- amount: String,
1659
- credits_applied: String,
1660
- discount: T.nilable(
1892
+ amount: String,
1893
+ credits_applied: String,
1894
+ discount:
1895
+ T.nilable(
1661
1896
  T.any(
1662
- Orb::Models::PercentageDiscount,
1663
- Orb::Models::TrialDiscount,
1664
- Orb::Models::UsageDiscount,
1665
- Orb::Models::AmountDiscount
1897
+ Orb::PercentageDiscount,
1898
+ Orb::TrialDiscount,
1899
+ Orb::UsageDiscount,
1900
+ Orb::AmountDiscount
1666
1901
  )
1667
1902
  ),
1668
- end_date: Time,
1669
- filter: T.nilable(String),
1670
- grouping: T.nilable(String),
1671
- maximum: T.nilable(Orb::Models::Invoice::LineItem::Maximum),
1672
- maximum_amount: T.nilable(String),
1673
- minimum: T.nilable(Orb::Models::Invoice::LineItem::Minimum),
1674
- minimum_amount: T.nilable(String),
1675
- name: String,
1676
- partially_invoiced_amount: String,
1677
- price: T.nilable(
1903
+ end_date: Time,
1904
+ filter: T.nilable(String),
1905
+ grouping: T.nilable(String),
1906
+ maximum: T.nilable(Orb::Invoice::LineItem::Maximum),
1907
+ maximum_amount: T.nilable(String),
1908
+ minimum: T.nilable(Orb::Invoice::LineItem::Minimum),
1909
+ minimum_amount: T.nilable(String),
1910
+ name: String,
1911
+ partially_invoiced_amount: String,
1912
+ price:
1913
+ T.nilable(
1678
1914
  T.any(
1679
- Orb::Models::Price::Unit,
1680
- Orb::Models::Price::Package,
1681
- Orb::Models::Price::Matrix,
1682
- Orb::Models::Price::Tiered,
1683
- Orb::Models::Price::TieredBps,
1684
- Orb::Models::Price::Bps,
1685
- Orb::Models::Price::BulkBps,
1686
- Orb::Models::Price::Bulk,
1687
- Orb::Models::Price::ThresholdTotalAmount,
1688
- Orb::Models::Price::TieredPackage,
1689
- Orb::Models::Price::GroupedTiered,
1690
- Orb::Models::Price::TieredWithMinimum,
1691
- Orb::Models::Price::TieredPackageWithMinimum,
1692
- Orb::Models::Price::PackageWithAllocation,
1693
- Orb::Models::Price::UnitWithPercent,
1694
- Orb::Models::Price::MatrixWithAllocation,
1695
- Orb::Models::Price::TieredWithProration,
1696
- Orb::Models::Price::UnitWithProration,
1697
- Orb::Models::Price::GroupedAllocation,
1698
- Orb::Models::Price::GroupedWithProratedMinimum,
1699
- Orb::Models::Price::GroupedWithMeteredMinimum,
1700
- Orb::Models::Price::MatrixWithDisplayName,
1701
- Orb::Models::Price::BulkWithProration,
1702
- Orb::Models::Price::GroupedTieredPackage,
1703
- Orb::Models::Price::MaxGroupTieredPackage,
1704
- Orb::Models::Price::ScalableMatrixWithUnitPricing,
1705
- Orb::Models::Price::ScalableMatrixWithTieredPricing,
1706
- Orb::Models::Price::CumulativeGroupedBulk
1915
+ Orb::Price::Unit,
1916
+ Orb::Price::Package,
1917
+ Orb::Price::Matrix,
1918
+ Orb::Price::Tiered,
1919
+ Orb::Price::TieredBps,
1920
+ Orb::Price::Bps,
1921
+ Orb::Price::BulkBps,
1922
+ Orb::Price::Bulk,
1923
+ Orb::Price::ThresholdTotalAmount,
1924
+ Orb::Price::TieredPackage,
1925
+ Orb::Price::GroupedTiered,
1926
+ Orb::Price::TieredWithMinimum,
1927
+ Orb::Price::TieredPackageWithMinimum,
1928
+ Orb::Price::PackageWithAllocation,
1929
+ Orb::Price::UnitWithPercent,
1930
+ Orb::Price::MatrixWithAllocation,
1931
+ Orb::Price::TieredWithProration,
1932
+ Orb::Price::UnitWithProration,
1933
+ Orb::Price::GroupedAllocation,
1934
+ Orb::Price::GroupedWithProratedMinimum,
1935
+ Orb::Price::GroupedWithMeteredMinimum,
1936
+ Orb::Price::MatrixWithDisplayName,
1937
+ Orb::Price::BulkWithProration,
1938
+ Orb::Price::GroupedTieredPackage,
1939
+ Orb::Price::MaxGroupTieredPackage,
1940
+ Orb::Price::ScalableMatrixWithUnitPricing,
1941
+ Orb::Price::ScalableMatrixWithTieredPricing,
1942
+ Orb::Price::CumulativeGroupedBulk
1707
1943
  )
1708
1944
  ),
1709
- quantity: Float,
1710
- start_date: Time,
1711
- sub_line_items: T::Array[
1945
+ quantity: Float,
1946
+ start_date: Time,
1947
+ sub_line_items:
1948
+ T::Array[
1712
1949
  T.any(
1713
- Orb::Models::Invoice::LineItem::SubLineItem::Matrix,
1714
- Orb::Models::Invoice::LineItem::SubLineItem::Tier,
1715
- Orb::Models::Invoice::LineItem::SubLineItem::Null
1950
+ Orb::Invoice::LineItem::SubLineItem::Matrix,
1951
+ Orb::Invoice::LineItem::SubLineItem::Tier,
1952
+ Orb::Invoice::LineItem::SubLineItem::Null
1716
1953
  )
1717
1954
  ],
1718
- subtotal: String,
1719
- tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount],
1720
- usage_customer_ids: T.nilable(T::Array[String])
1721
- }
1722
- )
1955
+ subtotal: String,
1956
+ tax_amounts: T::Array[Orb::Invoice::LineItem::TaxAmount],
1957
+ usage_customer_ids: T.nilable(T::Array[String])
1958
+ }
1959
+ )
1960
+ end
1961
+ def to_hash
1723
1962
  end
1724
- def to_hash; end
1725
1963
 
1726
1964
  module Adjustment
1727
1965
  extend Orb::Internal::Type::Union
1728
1966
 
1967
+ Variants =
1968
+ T.type_alias do
1969
+ T.any(
1970
+ Orb::Invoice::LineItem::Adjustment::UsageDiscount,
1971
+ Orb::Invoice::LineItem::Adjustment::AmountDiscount,
1972
+ Orb::Invoice::LineItem::Adjustment::PercentageDiscount,
1973
+ Orb::Invoice::LineItem::Adjustment::Minimum,
1974
+ Orb::Invoice::LineItem::Adjustment::Maximum
1975
+ )
1976
+ end
1977
+
1729
1978
  class UsageDiscount < Orb::Internal::Type::BaseModel
1979
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1980
+
1730
1981
  sig { returns(String) }
1731
1982
  attr_accessor :id
1732
1983
 
@@ -1764,8 +2015,7 @@ module Orb
1764
2015
  reason: T.nilable(String),
1765
2016
  usage_discount: Float,
1766
2017
  adjustment_type: Symbol
1767
- )
1768
- .returns(T.attached_class)
2018
+ ).returns(T.attached_class)
1769
2019
  end
1770
2020
  def self.new(
1771
2021
  id:,
@@ -1782,25 +2032,29 @@ module Orb
1782
2032
  # to in a given billing period.
1783
2033
  usage_discount:,
1784
2034
  adjustment_type: :usage_discount
1785
- ); end
2035
+ )
2036
+ end
2037
+
1786
2038
  sig do
1787
- override
1788
- .returns(
1789
- {
1790
- id: String,
1791
- adjustment_type: Symbol,
1792
- amount: String,
1793
- applies_to_price_ids: T::Array[String],
1794
- is_invoice_level: T::Boolean,
1795
- reason: T.nilable(String),
1796
- usage_discount: Float
1797
- }
1798
- )
2039
+ override.returns(
2040
+ {
2041
+ id: String,
2042
+ adjustment_type: Symbol,
2043
+ amount: String,
2044
+ applies_to_price_ids: T::Array[String],
2045
+ is_invoice_level: T::Boolean,
2046
+ reason: T.nilable(String),
2047
+ usage_discount: Float
2048
+ }
2049
+ )
2050
+ end
2051
+ def to_hash
1799
2052
  end
1800
- def to_hash; end
1801
2053
  end
1802
2054
 
1803
2055
  class AmountDiscount < Orb::Internal::Type::BaseModel
2056
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2057
+
1804
2058
  sig { returns(String) }
1805
2059
  attr_accessor :id
1806
2060
 
@@ -1838,8 +2092,7 @@ module Orb
1838
2092
  is_invoice_level: T::Boolean,
1839
2093
  reason: T.nilable(String),
1840
2094
  adjustment_type: Symbol
1841
- )
1842
- .returns(T.attached_class)
2095
+ ).returns(T.attached_class)
1843
2096
  end
1844
2097
  def self.new(
1845
2098
  id:,
@@ -1856,25 +2109,29 @@ module Orb
1856
2109
  # The reason for the adjustment.
1857
2110
  reason:,
1858
2111
  adjustment_type: :amount_discount
1859
- ); end
2112
+ )
2113
+ end
2114
+
1860
2115
  sig do
1861
- override
1862
- .returns(
1863
- {
1864
- id: String,
1865
- adjustment_type: Symbol,
1866
- amount: String,
1867
- amount_discount: String,
1868
- applies_to_price_ids: T::Array[String],
1869
- is_invoice_level: T::Boolean,
1870
- reason: T.nilable(String)
1871
- }
1872
- )
2116
+ override.returns(
2117
+ {
2118
+ id: String,
2119
+ adjustment_type: Symbol,
2120
+ amount: String,
2121
+ amount_discount: String,
2122
+ applies_to_price_ids: T::Array[String],
2123
+ is_invoice_level: T::Boolean,
2124
+ reason: T.nilable(String)
2125
+ }
2126
+ )
2127
+ end
2128
+ def to_hash
1873
2129
  end
1874
- def to_hash; end
1875
2130
  end
1876
2131
 
1877
2132
  class PercentageDiscount < Orb::Internal::Type::BaseModel
2133
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2134
+
1878
2135
  sig { returns(String) }
1879
2136
  attr_accessor :id
1880
2137
 
@@ -1912,8 +2169,7 @@ module Orb
1912
2169
  percentage_discount: Float,
1913
2170
  reason: T.nilable(String),
1914
2171
  adjustment_type: Symbol
1915
- )
1916
- .returns(T.attached_class)
2172
+ ).returns(T.attached_class)
1917
2173
  end
1918
2174
  def self.new(
1919
2175
  id:,
@@ -1930,25 +2186,29 @@ module Orb
1930
2186
  # The reason for the adjustment.
1931
2187
  reason:,
1932
2188
  adjustment_type: :percentage_discount
1933
- ); end
2189
+ )
2190
+ end
2191
+
1934
2192
  sig do
1935
- override
1936
- .returns(
1937
- {
1938
- id: String,
1939
- adjustment_type: Symbol,
1940
- amount: String,
1941
- applies_to_price_ids: T::Array[String],
1942
- is_invoice_level: T::Boolean,
1943
- percentage_discount: Float,
1944
- reason: T.nilable(String)
1945
- }
1946
- )
2193
+ override.returns(
2194
+ {
2195
+ id: String,
2196
+ adjustment_type: Symbol,
2197
+ amount: String,
2198
+ applies_to_price_ids: T::Array[String],
2199
+ is_invoice_level: T::Boolean,
2200
+ percentage_discount: Float,
2201
+ reason: T.nilable(String)
2202
+ }
2203
+ )
2204
+ end
2205
+ def to_hash
1947
2206
  end
1948
- def to_hash; end
1949
2207
  end
1950
2208
 
1951
2209
  class Minimum < Orb::Internal::Type::BaseModel
2210
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2211
+
1952
2212
  sig { returns(String) }
1953
2213
  attr_accessor :id
1954
2214
 
@@ -1991,8 +2251,7 @@ module Orb
1991
2251
  minimum_amount: String,
1992
2252
  reason: T.nilable(String),
1993
2253
  adjustment_type: Symbol
1994
- )
1995
- .returns(T.attached_class)
2254
+ ).returns(T.attached_class)
1996
2255
  end
1997
2256
  def self.new(
1998
2257
  id:,
@@ -2011,26 +2270,30 @@ module Orb
2011
2270
  # The reason for the adjustment.
2012
2271
  reason:,
2013
2272
  adjustment_type: :minimum
2014
- ); end
2273
+ )
2274
+ end
2275
+
2015
2276
  sig do
2016
- override
2017
- .returns(
2018
- {
2019
- id: String,
2020
- adjustment_type: Symbol,
2021
- amount: String,
2022
- applies_to_price_ids: T::Array[String],
2023
- is_invoice_level: T::Boolean,
2024
- item_id: String,
2025
- minimum_amount: String,
2026
- reason: T.nilable(String)
2027
- }
2028
- )
2277
+ override.returns(
2278
+ {
2279
+ id: String,
2280
+ adjustment_type: Symbol,
2281
+ amount: String,
2282
+ applies_to_price_ids: T::Array[String],
2283
+ is_invoice_level: T::Boolean,
2284
+ item_id: String,
2285
+ minimum_amount: String,
2286
+ reason: T.nilable(String)
2287
+ }
2288
+ )
2289
+ end
2290
+ def to_hash
2029
2291
  end
2030
- def to_hash; end
2031
2292
  end
2032
2293
 
2033
2294
  class Maximum < Orb::Internal::Type::BaseModel
2295
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2296
+
2034
2297
  sig { returns(String) }
2035
2298
  attr_accessor :id
2036
2299
 
@@ -2068,8 +2331,7 @@ module Orb
2068
2331
  maximum_amount: String,
2069
2332
  reason: T.nilable(String),
2070
2333
  adjustment_type: Symbol
2071
- )
2072
- .returns(T.attached_class)
2334
+ ).returns(T.attached_class)
2073
2335
  end
2074
2336
  def self.new(
2075
2337
  id:,
@@ -2086,34 +2348,38 @@ module Orb
2086
2348
  # The reason for the adjustment.
2087
2349
  reason:,
2088
2350
  adjustment_type: :maximum
2089
- ); end
2351
+ )
2352
+ end
2353
+
2090
2354
  sig do
2091
- override
2092
- .returns(
2093
- {
2094
- id: String,
2095
- adjustment_type: Symbol,
2096
- amount: String,
2097
- applies_to_price_ids: T::Array[String],
2098
- is_invoice_level: T::Boolean,
2099
- maximum_amount: String,
2100
- reason: T.nilable(String)
2101
- }
2102
- )
2355
+ override.returns(
2356
+ {
2357
+ id: String,
2358
+ adjustment_type: Symbol,
2359
+ amount: String,
2360
+ applies_to_price_ids: T::Array[String],
2361
+ is_invoice_level: T::Boolean,
2362
+ maximum_amount: String,
2363
+ reason: T.nilable(String)
2364
+ }
2365
+ )
2366
+ end
2367
+ def to_hash
2103
2368
  end
2104
- def to_hash; end
2105
2369
  end
2106
2370
 
2107
2371
  sig do
2108
- override
2109
- .returns(
2110
- [Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount, Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount, Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount, Orb::Models::Invoice::LineItem::Adjustment::Minimum, Orb::Models::Invoice::LineItem::Adjustment::Maximum]
2111
- )
2372
+ override.returns(
2373
+ T::Array[Orb::Invoice::LineItem::Adjustment::Variants]
2374
+ )
2375
+ end
2376
+ def self.variants
2112
2377
  end
2113
- def self.variants; end
2114
2378
  end
2115
2379
 
2116
2380
  class Maximum < Orb::Internal::Type::BaseModel
2381
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2382
+
2117
2383
  # List of price_ids that this maximum amount applies to. For plan/plan phase
2118
2384
  # maximums, this can be a subset of prices.
2119
2385
  sig { returns(T::Array[String]) }
@@ -2125,7 +2391,10 @@ module Orb
2125
2391
 
2126
2392
  # This field is deprecated in favor of `adjustments`.
2127
2393
  sig do
2128
- params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class)
2394
+ params(
2395
+ applies_to_price_ids: T::Array[String],
2396
+ maximum_amount: String
2397
+ ).returns(T.attached_class)
2129
2398
  end
2130
2399
  def self.new(
2131
2400
  # List of price_ids that this maximum amount applies to. For plan/plan phase
@@ -2133,12 +2402,21 @@ module Orb
2133
2402
  applies_to_price_ids:,
2134
2403
  # Maximum amount applied
2135
2404
  maximum_amount:
2136
- ); end
2137
- sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) }
2138
- def to_hash; end
2405
+ )
2406
+ end
2407
+
2408
+ sig do
2409
+ override.returns(
2410
+ { applies_to_price_ids: T::Array[String], maximum_amount: String }
2411
+ )
2412
+ end
2413
+ def to_hash
2414
+ end
2139
2415
  end
2140
2416
 
2141
2417
  class Minimum < Orb::Internal::Type::BaseModel
2418
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2419
+
2142
2420
  # List of price_ids that this minimum amount applies to. For plan/plan phase
2143
2421
  # minimums, this can be a subset of prices.
2144
2422
  sig { returns(T::Array[String]) }
@@ -2150,7 +2428,10 @@ module Orb
2150
2428
 
2151
2429
  # This field is deprecated in favor of `adjustments`.
2152
2430
  sig do
2153
- params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class)
2431
+ params(
2432
+ applies_to_price_ids: T::Array[String],
2433
+ minimum_amount: String
2434
+ ).returns(T.attached_class)
2154
2435
  end
2155
2436
  def self.new(
2156
2437
  # List of price_ids that this minimum amount applies to. For plan/plan phase
@@ -2158,38 +2439,64 @@ module Orb
2158
2439
  applies_to_price_ids:,
2159
2440
  # Minimum amount applied
2160
2441
  minimum_amount:
2161
- ); end
2162
- sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) }
2163
- def to_hash; end
2442
+ )
2443
+ end
2444
+
2445
+ sig do
2446
+ override.returns(
2447
+ { applies_to_price_ids: T::Array[String], minimum_amount: String }
2448
+ )
2449
+ end
2450
+ def to_hash
2451
+ end
2164
2452
  end
2165
2453
 
2166
2454
  module SubLineItem
2167
2455
  extend Orb::Internal::Type::Union
2168
2456
 
2457
+ Variants =
2458
+ T.type_alias do
2459
+ T.any(
2460
+ Orb::Invoice::LineItem::SubLineItem::Matrix,
2461
+ Orb::Invoice::LineItem::SubLineItem::Tier,
2462
+ Orb::Invoice::LineItem::SubLineItem::Null
2463
+ )
2464
+ end
2465
+
2169
2466
  class Matrix < Orb::Internal::Type::BaseModel
2467
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2468
+
2170
2469
  # The total amount for this sub line item.
2171
2470
  sig { returns(String) }
2172
2471
  attr_accessor :amount
2173
2472
 
2174
- sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping)) }
2473
+ sig do
2474
+ returns(
2475
+ T.nilable(Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping)
2476
+ )
2477
+ end
2175
2478
  attr_reader :grouping
2176
2479
 
2177
2480
  sig do
2178
2481
  params(
2179
- grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping, Orb::Internal::AnyHash))
2180
- )
2181
- .void
2482
+ grouping:
2483
+ T.nilable(
2484
+ Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping::OrHash
2485
+ )
2486
+ ).void
2182
2487
  end
2183
2488
  attr_writer :grouping
2184
2489
 
2185
- sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig) }
2490
+ sig do
2491
+ returns(Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig)
2492
+ end
2186
2493
  attr_reader :matrix_config
2187
2494
 
2188
2495
  sig do
2189
2496
  params(
2190
- matrix_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig, Orb::Internal::AnyHash)
2191
- )
2192
- .void
2497
+ matrix_config:
2498
+ Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig::OrHash
2499
+ ).void
2193
2500
  end
2194
2501
  attr_writer :matrix_config
2195
2502
 
@@ -2205,13 +2512,16 @@ module Orb
2205
2512
  sig do
2206
2513
  params(
2207
2514
  amount: String,
2208
- grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping, Orb::Internal::AnyHash)),
2209
- matrix_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig, Orb::Internal::AnyHash),
2515
+ grouping:
2516
+ T.nilable(
2517
+ Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping::OrHash
2518
+ ),
2519
+ matrix_config:
2520
+ Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig::OrHash,
2210
2521
  name: String,
2211
2522
  quantity: Float,
2212
2523
  type: Symbol
2213
- )
2214
- .returns(T.attached_class)
2524
+ ).returns(T.attached_class)
2215
2525
  end
2216
2526
  def self.new(
2217
2527
  # The total amount for this sub line item.
@@ -2221,23 +2531,32 @@ module Orb
2221
2531
  name:,
2222
2532
  quantity:,
2223
2533
  type: :matrix
2224
- ); end
2534
+ )
2535
+ end
2536
+
2225
2537
  sig do
2226
- override
2227
- .returns(
2228
- {
2229
- amount: String,
2230
- grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping),
2231
- matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig,
2232
- name: String,
2233
- quantity: Float,
2234
- type: Symbol
2235
- }
2236
- )
2538
+ override.returns(
2539
+ {
2540
+ amount: String,
2541
+ grouping:
2542
+ T.nilable(
2543
+ Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping
2544
+ ),
2545
+ matrix_config:
2546
+ Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig,
2547
+ name: String,
2548
+ quantity: Float,
2549
+ type: Symbol
2550
+ }
2551
+ )
2552
+ end
2553
+ def to_hash
2237
2554
  end
2238
- def to_hash; end
2239
2555
 
2240
2556
  class Grouping < Orb::Internal::Type::BaseModel
2557
+ OrHash =
2558
+ T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2559
+
2241
2560
  sig { returns(String) }
2242
2561
  attr_accessor :key
2243
2562
 
@@ -2245,44 +2564,75 @@ module Orb
2245
2564
  sig { returns(T.nilable(String)) }
2246
2565
  attr_accessor :value
2247
2566
 
2248
- sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) }
2567
+ sig do
2568
+ params(key: String, value: T.nilable(String)).returns(
2569
+ T.attached_class
2570
+ )
2571
+ end
2249
2572
  def self.new(
2250
2573
  key:,
2251
2574
  # No value indicates the default group
2252
2575
  value:
2253
- ); end
2254
- sig { override.returns({key: String, value: T.nilable(String)}) }
2255
- def to_hash; end
2576
+ )
2577
+ end
2578
+
2579
+ sig do
2580
+ override.returns({ key: String, value: T.nilable(String) })
2581
+ end
2582
+ def to_hash
2583
+ end
2256
2584
  end
2257
2585
 
2258
2586
  class MatrixConfig < Orb::Internal::Type::BaseModel
2587
+ OrHash =
2588
+ T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2589
+
2259
2590
  # The ordered dimension values for this line item.
2260
2591
  sig { returns(T::Array[T.nilable(String)]) }
2261
2592
  attr_accessor :dimension_values
2262
2593
 
2263
- sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) }
2594
+ sig do
2595
+ params(dimension_values: T::Array[T.nilable(String)]).returns(
2596
+ T.attached_class
2597
+ )
2598
+ end
2264
2599
  def self.new(
2265
2600
  # The ordered dimension values for this line item.
2266
2601
  dimension_values:
2267
- ); end
2268
- sig { override.returns({dimension_values: T::Array[T.nilable(String)]}) }
2269
- def to_hash; end
2602
+ )
2603
+ end
2604
+
2605
+ sig do
2606
+ override.returns(
2607
+ { dimension_values: T::Array[T.nilable(String)] }
2608
+ )
2609
+ end
2610
+ def to_hash
2611
+ end
2270
2612
  end
2271
2613
  end
2272
2614
 
2273
2615
  class Tier < Orb::Internal::Type::BaseModel
2616
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2617
+
2274
2618
  # The total amount for this sub line item.
2275
2619
  sig { returns(String) }
2276
2620
  attr_accessor :amount
2277
2621
 
2278
- sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping)) }
2622
+ sig do
2623
+ returns(
2624
+ T.nilable(Orb::Invoice::LineItem::SubLineItem::Tier::Grouping)
2625
+ )
2626
+ end
2279
2627
  attr_reader :grouping
2280
2628
 
2281
2629
  sig do
2282
2630
  params(
2283
- grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping, Orb::Internal::AnyHash))
2284
- )
2285
- .void
2631
+ grouping:
2632
+ T.nilable(
2633
+ Orb::Invoice::LineItem::SubLineItem::Tier::Grouping::OrHash
2634
+ )
2635
+ ).void
2286
2636
  end
2287
2637
  attr_writer :grouping
2288
2638
 
@@ -2292,14 +2642,16 @@ module Orb
2292
2642
  sig { returns(Float) }
2293
2643
  attr_accessor :quantity
2294
2644
 
2295
- sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig) }
2645
+ sig do
2646
+ returns(Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig)
2647
+ end
2296
2648
  attr_reader :tier_config
2297
2649
 
2298
2650
  sig do
2299
2651
  params(
2300
- tier_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig, Orb::Internal::AnyHash)
2301
- )
2302
- .void
2652
+ tier_config:
2653
+ Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig::OrHash
2654
+ ).void
2303
2655
  end
2304
2656
  attr_writer :tier_config
2305
2657
 
@@ -2309,13 +2661,16 @@ module Orb
2309
2661
  sig do
2310
2662
  params(
2311
2663
  amount: String,
2312
- grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping, Orb::Internal::AnyHash)),
2664
+ grouping:
2665
+ T.nilable(
2666
+ Orb::Invoice::LineItem::SubLineItem::Tier::Grouping::OrHash
2667
+ ),
2313
2668
  name: String,
2314
2669
  quantity: Float,
2315
- tier_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig, Orb::Internal::AnyHash),
2670
+ tier_config:
2671
+ Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig::OrHash,
2316
2672
  type: Symbol
2317
- )
2318
- .returns(T.attached_class)
2673
+ ).returns(T.attached_class)
2319
2674
  end
2320
2675
  def self.new(
2321
2676
  # The total amount for this sub line item.
@@ -2325,23 +2680,32 @@ module Orb
2325
2680
  quantity:,
2326
2681
  tier_config:,
2327
2682
  type: :tier
2328
- ); end
2683
+ )
2684
+ end
2685
+
2329
2686
  sig do
2330
- override
2331
- .returns(
2332
- {
2333
- amount: String,
2334
- grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping),
2335
- name: String,
2336
- quantity: Float,
2337
- tier_config: Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig,
2338
- type: Symbol
2339
- }
2340
- )
2687
+ override.returns(
2688
+ {
2689
+ amount: String,
2690
+ grouping:
2691
+ T.nilable(
2692
+ Orb::Invoice::LineItem::SubLineItem::Tier::Grouping
2693
+ ),
2694
+ name: String,
2695
+ quantity: Float,
2696
+ tier_config:
2697
+ Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig,
2698
+ type: Symbol
2699
+ }
2700
+ )
2701
+ end
2702
+ def to_hash
2341
2703
  end
2342
- def to_hash; end
2343
2704
 
2344
2705
  class Grouping < Orb::Internal::Type::BaseModel
2706
+ OrHash =
2707
+ T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2708
+
2345
2709
  sig { returns(String) }
2346
2710
  attr_accessor :key
2347
2711
 
@@ -2349,17 +2713,29 @@ module Orb
2349
2713
  sig { returns(T.nilable(String)) }
2350
2714
  attr_accessor :value
2351
2715
 
2352
- sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) }
2716
+ sig do
2717
+ params(key: String, value: T.nilable(String)).returns(
2718
+ T.attached_class
2719
+ )
2720
+ end
2353
2721
  def self.new(
2354
2722
  key:,
2355
2723
  # No value indicates the default group
2356
2724
  value:
2357
- ); end
2358
- sig { override.returns({key: String, value: T.nilable(String)}) }
2359
- def to_hash; end
2725
+ )
2726
+ end
2727
+
2728
+ sig do
2729
+ override.returns({ key: String, value: T.nilable(String) })
2730
+ end
2731
+ def to_hash
2732
+ end
2360
2733
  end
2361
2734
 
2362
2735
  class TierConfig < Orb::Internal::Type::BaseModel
2736
+ OrHash =
2737
+ T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2738
+
2363
2739
  sig { returns(Float) }
2364
2740
  attr_accessor :first_unit
2365
2741
 
@@ -2376,26 +2752,44 @@ module Orb
2376
2752
  unit_amount: String
2377
2753
  ).returns(T.attached_class)
2378
2754
  end
2379
- def self.new(first_unit:, last_unit:, unit_amount:); end
2755
+ def self.new(first_unit:, last_unit:, unit_amount:)
2756
+ end
2380
2757
 
2381
- sig { override.returns({first_unit: Float, last_unit: T.nilable(Float), unit_amount: String}) }
2382
- def to_hash; end
2758
+ sig do
2759
+ override.returns(
2760
+ {
2761
+ first_unit: Float,
2762
+ last_unit: T.nilable(Float),
2763
+ unit_amount: String
2764
+ }
2765
+ )
2766
+ end
2767
+ def to_hash
2768
+ end
2383
2769
  end
2384
2770
  end
2385
2771
 
2386
2772
  class Null < Orb::Internal::Type::BaseModel
2773
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2774
+
2387
2775
  # The total amount for this sub line item.
2388
2776
  sig { returns(String) }
2389
2777
  attr_accessor :amount
2390
2778
 
2391
- sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping)) }
2779
+ sig do
2780
+ returns(
2781
+ T.nilable(Orb::Invoice::LineItem::SubLineItem::Null::Grouping)
2782
+ )
2783
+ end
2392
2784
  attr_reader :grouping
2393
2785
 
2394
2786
  sig do
2395
2787
  params(
2396
- grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping, Orb::Internal::AnyHash))
2397
- )
2398
- .void
2788
+ grouping:
2789
+ T.nilable(
2790
+ Orb::Invoice::LineItem::SubLineItem::Null::Grouping::OrHash
2791
+ )
2792
+ ).void
2399
2793
  end
2400
2794
  attr_writer :grouping
2401
2795
 
@@ -2411,12 +2805,14 @@ module Orb
2411
2805
  sig do
2412
2806
  params(
2413
2807
  amount: String,
2414
- grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping, Orb::Internal::AnyHash)),
2808
+ grouping:
2809
+ T.nilable(
2810
+ Orb::Invoice::LineItem::SubLineItem::Null::Grouping::OrHash
2811
+ ),
2415
2812
  name: String,
2416
2813
  quantity: Float,
2417
2814
  type: Symbol
2418
- )
2419
- .returns(T.attached_class)
2815
+ ).returns(T.attached_class)
2420
2816
  end
2421
2817
  def self.new(
2422
2818
  # The total amount for this sub line item.
@@ -2425,22 +2821,30 @@ module Orb
2425
2821
  name:,
2426
2822
  quantity:,
2427
2823
  type: :"'null'"
2428
- ); end
2824
+ )
2825
+ end
2826
+
2429
2827
  sig do
2430
- override
2431
- .returns(
2432
- {
2433
- amount: String,
2434
- grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping),
2435
- name: String,
2436
- quantity: Float,
2437
- type: Symbol
2438
- }
2439
- )
2828
+ override.returns(
2829
+ {
2830
+ amount: String,
2831
+ grouping:
2832
+ T.nilable(
2833
+ Orb::Invoice::LineItem::SubLineItem::Null::Grouping
2834
+ ),
2835
+ name: String,
2836
+ quantity: Float,
2837
+ type: Symbol
2838
+ }
2839
+ )
2840
+ end
2841
+ def to_hash
2440
2842
  end
2441
- def to_hash; end
2442
2843
 
2443
2844
  class Grouping < Orb::Internal::Type::BaseModel
2845
+ OrHash =
2846
+ T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2847
+
2444
2848
  sig { returns(String) }
2445
2849
  attr_accessor :key
2446
2850
 
@@ -2448,27 +2852,38 @@ module Orb
2448
2852
  sig { returns(T.nilable(String)) }
2449
2853
  attr_accessor :value
2450
2854
 
2451
- sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) }
2855
+ sig do
2856
+ params(key: String, value: T.nilable(String)).returns(
2857
+ T.attached_class
2858
+ )
2859
+ end
2452
2860
  def self.new(
2453
2861
  key:,
2454
2862
  # No value indicates the default group
2455
2863
  value:
2456
- ); end
2457
- sig { override.returns({key: String, value: T.nilable(String)}) }
2458
- def to_hash; end
2864
+ )
2865
+ end
2866
+
2867
+ sig do
2868
+ override.returns({ key: String, value: T.nilable(String) })
2869
+ end
2870
+ def to_hash
2871
+ end
2459
2872
  end
2460
2873
  end
2461
2874
 
2462
2875
  sig do
2463
- override
2464
- .returns(
2465
- [Orb::Models::Invoice::LineItem::SubLineItem::Matrix, Orb::Models::Invoice::LineItem::SubLineItem::Tier, Orb::Models::Invoice::LineItem::SubLineItem::Null]
2466
- )
2876
+ override.returns(
2877
+ T::Array[Orb::Invoice::LineItem::SubLineItem::Variants]
2878
+ )
2879
+ end
2880
+ def self.variants
2467
2881
  end
2468
- def self.variants; end
2469
2882
  end
2470
2883
 
2471
2884
  class TaxAmount < Orb::Internal::Type::BaseModel
2885
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2886
+
2472
2887
  # The amount of additional tax incurred by this tax rate.
2473
2888
  sig { returns(String) }
2474
2889
  attr_accessor :amount
@@ -2482,8 +2897,11 @@ module Orb
2482
2897
  attr_accessor :tax_rate_percentage
2483
2898
 
2484
2899
  sig do
2485
- params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String))
2486
- .returns(T.attached_class)
2900
+ params(
2901
+ amount: String,
2902
+ tax_rate_description: String,
2903
+ tax_rate_percentage: T.nilable(String)
2904
+ ).returns(T.attached_class)
2487
2905
  end
2488
2906
  def self.new(
2489
2907
  # The amount of additional tax incurred by this tax rate.
@@ -2492,7 +2910,9 @@ module Orb
2492
2910
  tax_rate_description:,
2493
2911
  # The tax rate percentage, out of 100.
2494
2912
  tax_rate_percentage:
2495
- ); end
2913
+ )
2914
+ end
2915
+
2496
2916
  sig do
2497
2917
  override.returns(
2498
2918
  {
@@ -2502,11 +2922,14 @@ module Orb
2502
2922
  }
2503
2923
  )
2504
2924
  end
2505
- def to_hash; end
2925
+ def to_hash
2926
+ end
2506
2927
  end
2507
2928
  end
2508
2929
 
2509
2930
  class Maximum < Orb::Internal::Type::BaseModel
2931
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2932
+
2510
2933
  # List of price_ids that this maximum amount applies to. For plan/plan phase
2511
2934
  # maximums, this can be a subset of prices.
2512
2935
  sig { returns(T::Array[String]) }
@@ -2517,7 +2940,10 @@ module Orb
2517
2940
  attr_accessor :maximum_amount
2518
2941
 
2519
2942
  sig do
2520
- params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class)
2943
+ params(
2944
+ applies_to_price_ids: T::Array[String],
2945
+ maximum_amount: String
2946
+ ).returns(T.attached_class)
2521
2947
  end
2522
2948
  def self.new(
2523
2949
  # List of price_ids that this maximum amount applies to. For plan/plan phase
@@ -2525,12 +2951,21 @@ module Orb
2525
2951
  applies_to_price_ids:,
2526
2952
  # Maximum amount applied
2527
2953
  maximum_amount:
2528
- ); end
2529
- sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) }
2530
- def to_hash; end
2954
+ )
2955
+ end
2956
+
2957
+ sig do
2958
+ override.returns(
2959
+ { applies_to_price_ids: T::Array[String], maximum_amount: String }
2960
+ )
2961
+ end
2962
+ def to_hash
2963
+ end
2531
2964
  end
2532
2965
 
2533
2966
  class Minimum < Orb::Internal::Type::BaseModel
2967
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
2968
+
2534
2969
  # List of price_ids that this minimum amount applies to. For plan/plan phase
2535
2970
  # minimums, this can be a subset of prices.
2536
2971
  sig { returns(T::Array[String]) }
@@ -2541,7 +2976,10 @@ module Orb
2541
2976
  attr_accessor :minimum_amount
2542
2977
 
2543
2978
  sig do
2544
- params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class)
2979
+ params(
2980
+ applies_to_price_ids: T::Array[String],
2981
+ minimum_amount: String
2982
+ ).returns(T.attached_class)
2545
2983
  end
2546
2984
  def self.new(
2547
2985
  # List of price_ids that this minimum amount applies to. For plan/plan phase
@@ -2549,12 +2987,21 @@ module Orb
2549
2987
  applies_to_price_ids:,
2550
2988
  # Minimum amount applied
2551
2989
  minimum_amount:
2552
- ); end
2553
- sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) }
2554
- def to_hash; end
2990
+ )
2991
+ end
2992
+
2993
+ sig do
2994
+ override.returns(
2995
+ { applies_to_price_ids: T::Array[String], minimum_amount: String }
2996
+ )
2997
+ end
2998
+ def to_hash
2999
+ end
2555
3000
  end
2556
3001
 
2557
3002
  class PaymentAttempt < Orb::Internal::Type::BaseModel
3003
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3004
+
2558
3005
  # The ID of the payment attempt.
2559
3006
  sig { returns(String) }
2560
3007
  attr_accessor :id
@@ -2568,7 +3015,13 @@ module Orb
2568
3015
  attr_accessor :created_at
2569
3016
 
2570
3017
  # The payment provider that attempted to collect the payment.
2571
- sig { returns(T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol)) }
3018
+ sig do
3019
+ returns(
3020
+ T.nilable(
3021
+ Orb::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol
3022
+ )
3023
+ )
3024
+ end
2572
3025
  attr_accessor :payment_provider
2573
3026
 
2574
3027
  # The ID of the payment attempt in the payment provider.
@@ -2584,11 +3037,13 @@ module Orb
2584
3037
  id: String,
2585
3038
  amount: String,
2586
3039
  created_at: Time,
2587
- payment_provider: T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::OrSymbol),
3040
+ payment_provider:
3041
+ T.nilable(
3042
+ Orb::Invoice::PaymentAttempt::PaymentProvider::OrSymbol
3043
+ ),
2588
3044
  payment_provider_id: T.nilable(String),
2589
3045
  succeeded: T::Boolean
2590
- )
2591
- .returns(T.attached_class)
3046
+ ).returns(T.attached_class)
2592
3047
  end
2593
3048
  def self.new(
2594
3049
  # The ID of the payment attempt.
@@ -2603,37 +3058,58 @@ module Orb
2603
3058
  payment_provider_id:,
2604
3059
  # Whether the payment attempt succeeded.
2605
3060
  succeeded:
2606
- ); end
3061
+ )
3062
+ end
3063
+
2607
3064
  sig do
2608
- override
2609
- .returns(
2610
- {
2611
- id: String,
2612
- amount: String,
2613
- created_at: Time,
2614
- payment_provider: T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol),
2615
- payment_provider_id: T.nilable(String),
2616
- succeeded: T::Boolean
2617
- }
2618
- )
3065
+ override.returns(
3066
+ {
3067
+ id: String,
3068
+ amount: String,
3069
+ created_at: Time,
3070
+ payment_provider:
3071
+ T.nilable(
3072
+ Orb::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol
3073
+ ),
3074
+ payment_provider_id: T.nilable(String),
3075
+ succeeded: T::Boolean
3076
+ }
3077
+ )
3078
+ end
3079
+ def to_hash
2619
3080
  end
2620
- def to_hash; end
2621
3081
 
2622
3082
  # The payment provider that attempted to collect the payment.
2623
3083
  module PaymentProvider
2624
3084
  extend Orb::Internal::Type::Enum
2625
3085
 
2626
- TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::PaymentAttempt::PaymentProvider) }
3086
+ TaggedSymbol =
3087
+ T.type_alias do
3088
+ T.all(Symbol, Orb::Invoice::PaymentAttempt::PaymentProvider)
3089
+ end
2627
3090
  OrSymbol = T.type_alias { T.any(Symbol, String) }
2628
3091
 
2629
- STRIPE = T.let(:stripe, Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol)
3092
+ STRIPE =
3093
+ T.let(
3094
+ :stripe,
3095
+ Orb::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol
3096
+ )
2630
3097
 
2631
- sig { override.returns(T::Array[Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol]) }
2632
- def self.values; end
3098
+ sig do
3099
+ override.returns(
3100
+ T::Array[
3101
+ Orb::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol
3102
+ ]
3103
+ )
3104
+ end
3105
+ def self.values
3106
+ end
2633
3107
  end
2634
3108
  end
2635
3109
 
2636
3110
  class ShippingAddress < Orb::Internal::Type::BaseModel
3111
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3112
+
2637
3113
  sig { returns(T.nilable(String)) }
2638
3114
  attr_accessor :city
2639
3115
 
@@ -2660,52 +3136,57 @@ module Orb
2660
3136
  line2: T.nilable(String),
2661
3137
  postal_code: T.nilable(String),
2662
3138
  state: T.nilable(String)
2663
- )
2664
- .returns(T.attached_class)
3139
+ ).returns(T.attached_class)
3140
+ end
3141
+ def self.new(city:, country:, line1:, line2:, postal_code:, state:)
2665
3142
  end
2666
- def self.new(city:, country:, line1:, line2:, postal_code:, state:); end
2667
3143
 
2668
3144
  sig do
2669
- override
2670
- .returns(
2671
- {
2672
- city: T.nilable(String),
2673
- country: T.nilable(String),
2674
- line1: T.nilable(String),
2675
- line2: T.nilable(String),
2676
- postal_code: T.nilable(String),
2677
- state: T.nilable(String)
2678
- }
2679
- )
3145
+ override.returns(
3146
+ {
3147
+ city: T.nilable(String),
3148
+ country: T.nilable(String),
3149
+ line1: T.nilable(String),
3150
+ line2: T.nilable(String),
3151
+ postal_code: T.nilable(String),
3152
+ state: T.nilable(String)
3153
+ }
3154
+ )
3155
+ end
3156
+ def to_hash
2680
3157
  end
2681
- def to_hash; end
2682
3158
  end
2683
3159
 
2684
3160
  module Status
2685
3161
  extend Orb::Internal::Type::Enum
2686
3162
 
2687
- TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::Status) }
3163
+ TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Invoice::Status) }
2688
3164
  OrSymbol = T.type_alias { T.any(Symbol, String) }
2689
3165
 
2690
- ISSUED = T.let(:issued, Orb::Models::Invoice::Status::TaggedSymbol)
2691
- PAID = T.let(:paid, Orb::Models::Invoice::Status::TaggedSymbol)
2692
- SYNCED = T.let(:synced, Orb::Models::Invoice::Status::TaggedSymbol)
2693
- VOID = T.let(:void, Orb::Models::Invoice::Status::TaggedSymbol)
2694
- DRAFT = T.let(:draft, Orb::Models::Invoice::Status::TaggedSymbol)
3166
+ ISSUED = T.let(:issued, Orb::Invoice::Status::TaggedSymbol)
3167
+ PAID = T.let(:paid, Orb::Invoice::Status::TaggedSymbol)
3168
+ SYNCED = T.let(:synced, Orb::Invoice::Status::TaggedSymbol)
3169
+ VOID = T.let(:void, Orb::Invoice::Status::TaggedSymbol)
3170
+ DRAFT = T.let(:draft, Orb::Invoice::Status::TaggedSymbol)
2695
3171
 
2696
- sig { override.returns(T::Array[Orb::Models::Invoice::Status::TaggedSymbol]) }
2697
- def self.values; end
3172
+ sig { override.returns(T::Array[Orb::Invoice::Status::TaggedSymbol]) }
3173
+ def self.values
3174
+ end
2698
3175
  end
2699
3176
 
2700
3177
  class Subscription < Orb::Internal::Type::BaseModel
3178
+ OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
3179
+
2701
3180
  sig { returns(String) }
2702
3181
  attr_accessor :id
2703
3182
 
2704
3183
  sig { params(id: String).returns(T.attached_class) }
2705
- def self.new(id:); end
3184
+ def self.new(id:)
3185
+ end
2706
3186
 
2707
- sig { override.returns({id: String}) }
2708
- def to_hash; end
3187
+ sig { override.returns({ id: String }) }
3188
+ def to_hash
3189
+ end
2709
3190
  end
2710
3191
  end
2711
3192
  end