orb-billing 0.1.0.pre.alpha.33

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 (635) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +169 -0
  3. data/lib/orb/client.rb +129 -0
  4. data/lib/orb/errors.rb +317 -0
  5. data/lib/orb/models/alert.rb +225 -0
  6. data/lib/orb/models/alert_create_for_customer_params.rb +77 -0
  7. data/lib/orb/models/alert_create_for_external_customer_params.rb +77 -0
  8. data/lib/orb/models/alert_create_for_subscription_params.rb +74 -0
  9. data/lib/orb/models/alert_disable_params.rb +26 -0
  10. data/lib/orb/models/alert_enable_params.rb +26 -0
  11. data/lib/orb/models/alert_list_params.rb +97 -0
  12. data/lib/orb/models/alert_retrieve_params.rb +19 -0
  13. data/lib/orb/models/alert_update_params.rb +46 -0
  14. data/lib/orb/models/amount_discount.rb +53 -0
  15. data/lib/orb/models/billable_metric.rb +76 -0
  16. data/lib/orb/models/billing_cycle_relative_date.rb +18 -0
  17. data/lib/orb/models/coupon.rb +86 -0
  18. data/lib/orb/models/coupon_archive_params.rb +19 -0
  19. data/lib/orb/models/coupon_create_params.rb +102 -0
  20. data/lib/orb/models/coupon_fetch_params.rb +19 -0
  21. data/lib/orb/models/coupon_list_params.rb +53 -0
  22. data/lib/orb/models/coupons/subscription_list_params.rb +40 -0
  23. data/lib/orb/models/credit_note.rb +522 -0
  24. data/lib/orb/models/credit_note_create_params.rb +77 -0
  25. data/lib/orb/models/credit_note_fetch_params.rb +19 -0
  26. data/lib/orb/models/credit_note_list_params.rb +73 -0
  27. data/lib/orb/models/customer.rb +872 -0
  28. data/lib/orb/models/customer_create_params.rb +843 -0
  29. data/lib/orb/models/customer_delete_params.rb +19 -0
  30. data/lib/orb/models/customer_fetch_by_external_id_params.rb +19 -0
  31. data/lib/orb/models/customer_fetch_params.rb +19 -0
  32. data/lib/orb/models/customer_list_params.rb +73 -0
  33. data/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb +19 -0
  34. data/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb +19 -0
  35. data/lib/orb/models/customer_update_by_external_id_params.rb +848 -0
  36. data/lib/orb/models/customer_update_params.rb +838 -0
  37. data/lib/orb/models/customers/balance_transaction_create_params.rb +53 -0
  38. data/lib/orb/models/customers/balance_transaction_create_response.rb +167 -0
  39. data/lib/orb/models/customers/balance_transaction_list_params.rb +75 -0
  40. data/lib/orb/models/customers/balance_transaction_list_response.rb +167 -0
  41. data/lib/orb/models/customers/cost_list_by_external_id_params.rb +69 -0
  42. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +106 -0
  43. data/lib/orb/models/customers/cost_list_params.rb +69 -0
  44. data/lib/orb/models/customers/cost_list_response.rb +106 -0
  45. data/lib/orb/models/customers/credit_list_by_external_id_params.rb +59 -0
  46. data/lib/orb/models/customers/credit_list_by_external_id_response.rb +72 -0
  47. data/lib/orb/models/customers/credit_list_params.rb +59 -0
  48. data/lib/orb/models/customers/credit_list_response.rb +72 -0
  49. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +215 -0
  50. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +1311 -0
  51. data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +214 -0
  52. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +1310 -0
  53. data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +141 -0
  54. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +1310 -0
  55. data/lib/orb/models/customers/credits/ledger_list_params.rb +141 -0
  56. data/lib/orb/models/customers/credits/ledger_list_response.rb +1306 -0
  57. data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +159 -0
  58. data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +154 -0
  59. data/lib/orb/models/customers/credits/top_up_create_params.rb +158 -0
  60. data/lib/orb/models/customers/credits/top_up_create_response.rb +153 -0
  61. data/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb +29 -0
  62. data/lib/orb/models/customers/credits/top_up_delete_params.rb +29 -0
  63. data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +42 -0
  64. data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +154 -0
  65. data/lib/orb/models/customers/credits/top_up_list_params.rb +42 -0
  66. data/lib/orb/models/customers/credits/top_up_list_response.rb +153 -0
  67. data/lib/orb/models/dimensional_price_group.rb +64 -0
  68. data/lib/orb/models/dimensional_price_group_create_params.rb +63 -0
  69. data/lib/orb/models/dimensional_price_group_list_params.rb +38 -0
  70. data/lib/orb/models/dimensional_price_group_retrieve_params.rb +19 -0
  71. data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb +21 -0
  72. data/lib/orb/models/dimensional_price_groups.rb +25 -0
  73. data/lib/orb/models/discount.rb +23 -0
  74. data/lib/orb/models/evaluate_price_group.rb +48 -0
  75. data/lib/orb/models/event_deprecate_params.rb +19 -0
  76. data/lib/orb/models/event_deprecate_response.rb +21 -0
  77. data/lib/orb/models/event_ingest_params.rb +100 -0
  78. data/lib/orb/models/event_ingest_response.rb +77 -0
  79. data/lib/orb/models/event_search_params.rb +45 -0
  80. data/lib/orb/models/event_search_response.rb +87 -0
  81. data/lib/orb/models/event_update_params.rb +58 -0
  82. data/lib/orb/models/event_update_response.rb +21 -0
  83. data/lib/orb/models/events/backfill_close_params.rb +21 -0
  84. data/lib/orb/models/events/backfill_close_response.rb +131 -0
  85. data/lib/orb/models/events/backfill_create_params.rb +97 -0
  86. data/lib/orb/models/events/backfill_create_response.rb +131 -0
  87. data/lib/orb/models/events/backfill_fetch_params.rb +21 -0
  88. data/lib/orb/models/events/backfill_fetch_response.rb +131 -0
  89. data/lib/orb/models/events/backfill_list_params.rb +40 -0
  90. data/lib/orb/models/events/backfill_list_response.rb +131 -0
  91. data/lib/orb/models/events/backfill_revert_params.rb +21 -0
  92. data/lib/orb/models/events/backfill_revert_response.rb +131 -0
  93. data/lib/orb/models/events/event_volumes.rb +54 -0
  94. data/lib/orb/models/events/volume_list_params.rb +64 -0
  95. data/lib/orb/models/invoice.rb +2218 -0
  96. data/lib/orb/models/invoice_create_params.rb +200 -0
  97. data/lib/orb/models/invoice_fetch_params.rb +19 -0
  98. data/lib/orb/models/invoice_fetch_upcoming_params.rb +25 -0
  99. data/lib/orb/models/invoice_fetch_upcoming_response.rb +2226 -0
  100. data/lib/orb/models/invoice_issue_params.rb +34 -0
  101. data/lib/orb/models/invoice_level_discount.rb +21 -0
  102. data/lib/orb/models/invoice_line_item_create_params.rb +62 -0
  103. data/lib/orb/models/invoice_line_item_create_response.rb +929 -0
  104. data/lib/orb/models/invoice_list_params.rb +197 -0
  105. data/lib/orb/models/invoice_mark_paid_params.rb +40 -0
  106. data/lib/orb/models/invoice_pay_params.rb +19 -0
  107. data/lib/orb/models/invoice_update_params.rb +28 -0
  108. data/lib/orb/models/invoice_void_params.rb +19 -0
  109. data/lib/orb/models/item.rb +82 -0
  110. data/lib/orb/models/item_create_params.rb +26 -0
  111. data/lib/orb/models/item_fetch_params.rb +19 -0
  112. data/lib/orb/models/item_list_params.rb +38 -0
  113. data/lib/orb/models/item_update_params.rb +73 -0
  114. data/lib/orb/models/metric_create_params.rb +56 -0
  115. data/lib/orb/models/metric_fetch_params.rb +19 -0
  116. data/lib/orb/models/metric_list_params.rb +73 -0
  117. data/lib/orb/models/metric_update_params.rb +28 -0
  118. data/lib/orb/models/pagination_metadata.rb +25 -0
  119. data/lib/orb/models/percentage_discount.rb +54 -0
  120. data/lib/orb/models/plan.rb +894 -0
  121. data/lib/orb/models/plan_create_params.rb +6702 -0
  122. data/lib/orb/models/plan_fetch_params.rb +19 -0
  123. data/lib/orb/models/plan_list_params.rb +100 -0
  124. data/lib/orb/models/plan_update_params.rb +37 -0
  125. data/lib/orb/models/plans/external_plan_id_fetch_params.rb +21 -0
  126. data/lib/orb/models/plans/external_plan_id_update_params.rb +39 -0
  127. data/lib/orb/models/price.rb +12229 -0
  128. data/lib/orb/models/price_create_params.rb +808 -0
  129. data/lib/orb/models/price_evaluate_params.rb +80 -0
  130. data/lib/orb/models/price_evaluate_response.rb +20 -0
  131. data/lib/orb/models/price_fetch_params.rb +19 -0
  132. data/lib/orb/models/price_list_params.rb +38 -0
  133. data/lib/orb/models/price_update_params.rb +28 -0
  134. data/lib/orb/models/prices/external_price_id_fetch_params.rb +21 -0
  135. data/lib/orb/models/prices/external_price_id_update_params.rb +30 -0
  136. data/lib/orb/models/subscription.rb +1233 -0
  137. data/lib/orb/models/subscription_cancel_params.rb +58 -0
  138. data/lib/orb/models/subscription_cancel_response.rb +1217 -0
  139. data/lib/orb/models/subscription_create_params.rb +15065 -0
  140. data/lib/orb/models/subscription_create_response.rb +1217 -0
  141. data/lib/orb/models/subscription_fetch_costs_params.rb +67 -0
  142. data/lib/orb/models/subscription_fetch_costs_response.rb +104 -0
  143. data/lib/orb/models/subscription_fetch_params.rb +19 -0
  144. data/lib/orb/models/subscription_fetch_schedule_params.rb +73 -0
  145. data/lib/orb/models/subscription_fetch_schedule_response.rb +68 -0
  146. data/lib/orb/models/subscription_fetch_usage_params.rb +135 -0
  147. data/lib/orb/models/subscription_list_params.rb +108 -0
  148. data/lib/orb/models/subscription_price_intervals_params.rb +8358 -0
  149. data/lib/orb/models/subscription_price_intervals_response.rb +1224 -0
  150. data/lib/orb/models/subscription_schedule_plan_change_params.rb +15088 -0
  151. data/lib/orb/models/subscription_schedule_plan_change_response.rb +1224 -0
  152. data/lib/orb/models/subscription_trigger_phase_params.rb +36 -0
  153. data/lib/orb/models/subscription_trigger_phase_response.rb +1224 -0
  154. data/lib/orb/models/subscription_unschedule_cancellation_params.rb +19 -0
  155. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +1224 -0
  156. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb +26 -0
  157. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +1228 -0
  158. data/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb +19 -0
  159. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +1224 -0
  160. data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +90 -0
  161. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +1224 -0
  162. data/lib/orb/models/subscription_update_params.rb +74 -0
  163. data/lib/orb/models/subscription_update_trial_params.rb +59 -0
  164. data/lib/orb/models/subscription_update_trial_response.rb +1222 -0
  165. data/lib/orb/models/subscription_usage.rb +258 -0
  166. data/lib/orb/models/subscriptions.rb +25 -0
  167. data/lib/orb/models/top_level_ping_params.rb +19 -0
  168. data/lib/orb/models/top_level_ping_response.rb +20 -0
  169. data/lib/orb/models/trial_discount.rb +69 -0
  170. data/lib/orb/models/usage_discount.rb +54 -0
  171. data/lib/orb/page.rb +114 -0
  172. data/lib/orb/request_options.rb +75 -0
  173. data/lib/orb/resources/alerts.rb +239 -0
  174. data/lib/orb/resources/coupons/subscriptions.rb +43 -0
  175. data/lib/orb/resources/coupons.rb +115 -0
  176. data/lib/orb/resources/credit_notes.rb +87 -0
  177. data/lib/orb/resources/customers/balance_transactions.rb +96 -0
  178. data/lib/orb/resources/customers/costs.rb +298 -0
  179. data/lib/orb/resources/customers/credits/ledger.rb +527 -0
  180. data/lib/orb/resources/customers/credits/top_ups.rb +192 -0
  181. data/lib/orb/resources/customers/credits.rb +88 -0
  182. data/lib/orb/resources/customers.rb +321 -0
  183. data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +38 -0
  184. data/lib/orb/resources/dimensional_price_groups.rb +93 -0
  185. data/lib/orb/resources/events/backfills.rb +174 -0
  186. data/lib/orb/resources/events/volume.rb +52 -0
  187. data/lib/orb/resources/events.rb +415 -0
  188. data/lib/orb/resources/invoice_line_items.rb +41 -0
  189. data/lib/orb/resources/invoices.rb +266 -0
  190. data/lib/orb/resources/items.rb +95 -0
  191. data/lib/orb/resources/metrics.rb +114 -0
  192. data/lib/orb/resources/plans/external_plan_id.rb +76 -0
  193. data/lib/orb/resources/plans.rb +133 -0
  194. data/lib/orb/resources/prices/external_price_id.rb +61 -0
  195. data/lib/orb/resources/prices.rb +197 -0
  196. data/lib/orb/resources/subscriptions.rb +1278 -0
  197. data/lib/orb/resources/top_level.rb +37 -0
  198. data/lib/orb/transport/base_client.rb +459 -0
  199. data/lib/orb/transport/pooled_net_requester.rb +182 -0
  200. data/lib/orb/type/array_of.rb +112 -0
  201. data/lib/orb/type/base_model.rb +367 -0
  202. data/lib/orb/type/base_page.rb +61 -0
  203. data/lib/orb/type/boolean_model.rb +52 -0
  204. data/lib/orb/type/converter.rb +217 -0
  205. data/lib/orb/type/enum.rb +101 -0
  206. data/lib/orb/type/hash_of.rb +132 -0
  207. data/lib/orb/type/request_parameters.rb +38 -0
  208. data/lib/orb/type/union.rb +225 -0
  209. data/lib/orb/type/unknown.rb +56 -0
  210. data/lib/orb/type.rb +23 -0
  211. data/lib/orb/util.rb +722 -0
  212. data/lib/orb/version.rb +5 -0
  213. data/lib/orb.rb +247 -0
  214. data/manifest.yaml +15 -0
  215. data/rbi/lib/orb/client.rbi +90 -0
  216. data/rbi/lib/orb/errors.rbi +246 -0
  217. data/rbi/lib/orb/models/alert.rbi +239 -0
  218. data/rbi/lib/orb/models/alert_create_for_customer_params.rbi +86 -0
  219. data/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi +88 -0
  220. data/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +83 -0
  221. data/rbi/lib/orb/models/alert_disable_params.rbi +28 -0
  222. data/rbi/lib/orb/models/alert_enable_params.rbi +28 -0
  223. data/rbi/lib/orb/models/alert_list_params.rbi +95 -0
  224. data/rbi/lib/orb/models/alert_retrieve_params.rbi +20 -0
  225. data/rbi/lib/orb/models/alert_update_params.rbi +51 -0
  226. data/rbi/lib/orb/models/amount_discount.rbi +62 -0
  227. data/rbi/lib/orb/models/billable_metric.rbi +83 -0
  228. data/rbi/lib/orb/models/billing_cycle_relative_date.rbi +19 -0
  229. data/rbi/lib/orb/models/coupon.rbi +90 -0
  230. data/rbi/lib/orb/models/coupon_archive_params.rbi +20 -0
  231. data/rbi/lib/orb/models/coupon_create_params.rbi +120 -0
  232. data/rbi/lib/orb/models/coupon_fetch_params.rbi +20 -0
  233. data/rbi/lib/orb/models/coupon_list_params.rbi +59 -0
  234. data/rbi/lib/orb/models/coupons/subscription_list_params.rbi +41 -0
  235. data/rbi/lib/orb/models/credit_note.rbi +546 -0
  236. data/rbi/lib/orb/models/credit_note_create_params.rbi +84 -0
  237. data/rbi/lib/orb/models/credit_note_fetch_params.rbi +20 -0
  238. data/rbi/lib/orb/models/credit_note_list_params.rbi +74 -0
  239. data/rbi/lib/orb/models/customer.rbi +941 -0
  240. data/rbi/lib/orb/models/customer_create_params.rbi +923 -0
  241. data/rbi/lib/orb/models/customer_delete_params.rbi +20 -0
  242. data/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi +20 -0
  243. data/rbi/lib/orb/models/customer_fetch_params.rbi +20 -0
  244. data/rbi/lib/orb/models/customer_list_params.rbi +74 -0
  245. data/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +20 -0
  246. data/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +20 -0
  247. data/rbi/lib/orb/models/customer_update_by_external_id_params.rbi +945 -0
  248. data/rbi/lib/orb/models/customer_update_params.rbi +919 -0
  249. data/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +64 -0
  250. data/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +199 -0
  251. data/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +76 -0
  252. data/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +191 -0
  253. data/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi +86 -0
  254. data/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +214 -0
  255. data/rbi/lib/orb/models/customers/cost_list_params.rbi +84 -0
  256. data/rbi/lib/orb/models/customers/cost_list_response.rbi +212 -0
  257. data/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi +64 -0
  258. data/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi +87 -0
  259. data/rbi/lib/orb/models/customers/credit_list_params.rbi +64 -0
  260. data/rbi/lib/orb/models/customers/credit_list_response.rbi +86 -0
  261. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +270 -0
  262. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +1670 -0
  263. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi +238 -0
  264. data/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi +1626 -0
  265. data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +181 -0
  266. data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +1654 -0
  267. data/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +144 -0
  268. data/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +1588 -0
  269. data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +196 -0
  270. data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +198 -0
  271. data/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi +176 -0
  272. data/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi +175 -0
  273. data/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +31 -0
  274. data/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi +28 -0
  275. data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +49 -0
  276. data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +188 -0
  277. data/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi +49 -0
  278. data/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi +168 -0
  279. data/rbi/lib/orb/models/dimensional_price_group.rbi +75 -0
  280. data/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +66 -0
  281. data/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +39 -0
  282. data/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi +20 -0
  283. data/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +22 -0
  284. data/rbi/lib/orb/models/dimensional_price_groups.rbi +35 -0
  285. data/rbi/lib/orb/models/discount.rbi +18 -0
  286. data/rbi/lib/orb/models/evaluate_price_group.rbi +45 -0
  287. data/rbi/lib/orb/models/event_deprecate_params.rbi +20 -0
  288. data/rbi/lib/orb/models/event_deprecate_response.rbi +19 -0
  289. data/rbi/lib/orb/models/event_ingest_params.rbi +120 -0
  290. data/rbi/lib/orb/models/event_ingest_response.rbi +79 -0
  291. data/rbi/lib/orb/models/event_search_params.rbi +53 -0
  292. data/rbi/lib/orb/models/event_search_response.rbi +100 -0
  293. data/rbi/lib/orb/models/event_update_params.rbi +71 -0
  294. data/rbi/lib/orb/models/event_update_response.rbi +19 -0
  295. data/rbi/lib/orb/models/events/backfill_close_params.rbi +22 -0
  296. data/rbi/lib/orb/models/events/backfill_close_response.rbi +127 -0
  297. data/rbi/lib/orb/models/events/backfill_create_params.rbi +97 -0
  298. data/rbi/lib/orb/models/events/backfill_create_response.rbi +128 -0
  299. data/rbi/lib/orb/models/events/backfill_fetch_params.rbi +22 -0
  300. data/rbi/lib/orb/models/events/backfill_fetch_response.rbi +127 -0
  301. data/rbi/lib/orb/models/events/backfill_list_params.rbi +41 -0
  302. data/rbi/lib/orb/models/events/backfill_list_response.rbi +127 -0
  303. data/rbi/lib/orb/models/events/backfill_revert_params.rbi +22 -0
  304. data/rbi/lib/orb/models/events/backfill_revert_response.rbi +128 -0
  305. data/rbi/lib/orb/models/events/event_volumes.rbi +47 -0
  306. data/rbi/lib/orb/models/events/volume_list_params.rbi +69 -0
  307. data/rbi/lib/orb/models/invoice.rbi +2466 -0
  308. data/rbi/lib/orb/models/invoice_create_params.rbi +230 -0
  309. data/rbi/lib/orb/models/invoice_fetch_params.rbi +20 -0
  310. data/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi +24 -0
  311. data/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +2646 -0
  312. data/rbi/lib/orb/models/invoice_issue_params.rbi +32 -0
  313. data/rbi/lib/orb/models/invoice_level_discount.rbi +16 -0
  314. data/rbi/lib/orb/models/invoice_line_item_create_params.rbi +67 -0
  315. data/rbi/lib/orb/models/invoice_line_item_create_response.rbi +1164 -0
  316. data/rbi/lib/orb/models/invoice_list_params.rbi +187 -0
  317. data/rbi/lib/orb/models/invoice_mark_paid_params.rbi +48 -0
  318. data/rbi/lib/orb/models/invoice_pay_params.rbi +20 -0
  319. data/rbi/lib/orb/models/invoice_update_params.rbi +36 -0
  320. data/rbi/lib/orb/models/invoice_void_params.rbi +20 -0
  321. data/rbi/lib/orb/models/item.rbi +101 -0
  322. data/rbi/lib/orb/models/item_create_params.rbi +25 -0
  323. data/rbi/lib/orb/models/item_fetch_params.rbi +20 -0
  324. data/rbi/lib/orb/models/item_list_params.rbi +39 -0
  325. data/rbi/lib/orb/models/item_update_params.rbi +113 -0
  326. data/rbi/lib/orb/models/metric_create_params.rbi +62 -0
  327. data/rbi/lib/orb/models/metric_fetch_params.rbi +20 -0
  328. data/rbi/lib/orb/models/metric_list_params.rbi +74 -0
  329. data/rbi/lib/orb/models/metric_update_params.rbi +36 -0
  330. data/rbi/lib/orb/models/pagination_metadata.rbi +21 -0
  331. data/rbi/lib/orb/models/percentage_discount.rbi +63 -0
  332. data/rbi/lib/orb/models/plan.rbi +1071 -0
  333. data/rbi/lib/orb/models/plan_create_params.rbi +10069 -0
  334. data/rbi/lib/orb/models/plan_fetch_params.rbi +20 -0
  335. data/rbi/lib/orb/models/plan_list_params.rbi +100 -0
  336. data/rbi/lib/orb/models/plan_update_params.rbi +46 -0
  337. data/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi +22 -0
  338. data/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi +48 -0
  339. data/rbi/lib/orb/models/price.rbi +15341 -0
  340. data/rbi/lib/orb/models/price_create_params.rbi +885 -0
  341. data/rbi/lib/orb/models/price_evaluate_params.rbi +81 -0
  342. data/rbi/lib/orb/models/price_evaluate_response.rbi +21 -0
  343. data/rbi/lib/orb/models/price_fetch_params.rbi +20 -0
  344. data/rbi/lib/orb/models/price_list_params.rbi +39 -0
  345. data/rbi/lib/orb/models/price_update_params.rbi +36 -0
  346. data/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi +22 -0
  347. data/rbi/lib/orb/models/prices/external_price_id_update_params.rbi +38 -0
  348. data/rbi/lib/orb/models/subscription.rbi +1381 -0
  349. data/rbi/lib/orb/models/subscription_cancel_params.rbi +75 -0
  350. data/rbi/lib/orb/models/subscription_cancel_response.rbi +1374 -0
  351. data/rbi/lib/orb/models/subscription_create_params.rbi +23422 -0
  352. data/rbi/lib/orb/models/subscription_create_response.rbi +1374 -0
  353. data/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +82 -0
  354. data/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +210 -0
  355. data/rbi/lib/orb/models/subscription_fetch_params.rbi +20 -0
  356. data/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +74 -0
  357. data/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +81 -0
  358. data/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +137 -0
  359. data/rbi/lib/orb/models/subscription_list_params.rbi +108 -0
  360. data/rbi/lib/orb/models/subscription_price_intervals_params.rbi +12991 -0
  361. data/rbi/lib/orb/models/subscription_price_intervals_response.rbi +1387 -0
  362. data/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +23589 -0
  363. data/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +1390 -0
  364. data/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +45 -0
  365. data/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +1381 -0
  366. data/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi +20 -0
  367. data/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +1400 -0
  368. data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +25 -0
  369. data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +1451 -0
  370. data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +20 -0
  371. data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +1410 -0
  372. data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi +104 -0
  373. data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +1400 -0
  374. data/rbi/lib/orb/models/subscription_update_params.rbi +77 -0
  375. data/rbi/lib/orb/models/subscription_update_trial_params.rbi +63 -0
  376. data/rbi/lib/orb/models/subscription_update_trial_response.rbi +1378 -0
  377. data/rbi/lib/orb/models/subscription_usage.rbi +323 -0
  378. data/rbi/lib/orb/models/subscriptions.rbi +33 -0
  379. data/rbi/lib/orb/models/top_level_ping_params.rbi +20 -0
  380. data/rbi/lib/orb/models/top_level_ping_response.rbi +18 -0
  381. data/rbi/lib/orb/models/trial_discount.rbi +73 -0
  382. data/rbi/lib/orb/models/usage_discount.rbi +62 -0
  383. data/rbi/lib/orb/page.rbi +35 -0
  384. data/rbi/lib/orb/request_options.rbi +48 -0
  385. data/rbi/lib/orb/resources/alerts.rbi +216 -0
  386. data/rbi/lib/orb/resources/coupons/subscriptions.rbi +38 -0
  387. data/rbi/lib/orb/resources/coupons.rbi +96 -0
  388. data/rbi/lib/orb/resources/credit_notes.rbi +74 -0
  389. data/rbi/lib/orb/resources/customers/balance_transactions.rbi +92 -0
  390. data/rbi/lib/orb/resources/customers/costs.rbi +304 -0
  391. data/rbi/lib/orb/resources/customers/credits/ledger.rbi +645 -0
  392. data/rbi/lib/orb/resources/customers/credits/top_ups.rbi +180 -0
  393. data/rbi/lib/orb/resources/customers/credits.rbi +88 -0
  394. data/rbi/lib/orb/resources/customers.rbi +714 -0
  395. data/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +25 -0
  396. data/rbi/lib/orb/resources/dimensional_price_groups.rbi +78 -0
  397. data/rbi/lib/orb/resources/events/backfills.rbi +161 -0
  398. data/rbi/lib/orb/resources/events/volume.rbi +57 -0
  399. data/rbi/lib/orb/resources/events.rbi +408 -0
  400. data/rbi/lib/orb/resources/invoice_line_items.rbi +44 -0
  401. data/rbi/lib/orb/resources/invoices.rbi +262 -0
  402. data/rbi/lib/orb/resources/items.rbi +65 -0
  403. data/rbi/lib/orb/resources/metrics.rbi +102 -0
  404. data/rbi/lib/orb/resources/plans/external_plan_id.rbi +67 -0
  405. data/rbi/lib/orb/resources/plans.rbi +170 -0
  406. data/rbi/lib/orb/resources/prices/external_price_id.rbi +110 -0
  407. data/rbi/lib/orb/resources/prices.rbi +371 -0
  408. data/rbi/lib/orb/resources/subscriptions.rbi +1469 -0
  409. data/rbi/lib/orb/resources/top_level.rbi +25 -0
  410. data/rbi/lib/orb/transport/base_client.rbi +205 -0
  411. data/rbi/lib/orb/transport/pooled_net_requester.rbi +64 -0
  412. data/rbi/lib/orb/type/array_of.rbi +82 -0
  413. data/rbi/lib/orb/type/base_model.rbi +197 -0
  414. data/rbi/lib/orb/type/base_page.rbi +38 -0
  415. data/rbi/lib/orb/type/boolean_model.rbi +41 -0
  416. data/rbi/lib/orb/type/converter.rbi +95 -0
  417. data/rbi/lib/orb/type/enum.rbi +58 -0
  418. data/rbi/lib/orb/type/hash_of.rbi +86 -0
  419. data/rbi/lib/orb/type/request_parameters.rbi +20 -0
  420. data/rbi/lib/orb/type/union.rbi +66 -0
  421. data/rbi/lib/orb/type/unknown.rbi +37 -0
  422. data/rbi/lib/orb/type.rbi +23 -0
  423. data/rbi/lib/orb/util.rbi +278 -0
  424. data/rbi/lib/orb/version.rbi +5 -0
  425. data/sig/orb/client.rbs +53 -0
  426. data/sig/orb/errors.rbs +201 -0
  427. data/sig/orb/models/alert.rbs +142 -0
  428. data/sig/orb/models/alert_create_for_customer_params.rbs +56 -0
  429. data/sig/orb/models/alert_create_for_external_customer_params.rbs +56 -0
  430. data/sig/orb/models/alert_create_for_subscription_params.rbs +52 -0
  431. data/sig/orb/models/alert_disable_params.rbs +20 -0
  432. data/sig/orb/models/alert_enable_params.rbs +20 -0
  433. data/sig/orb/models/alert_list_params.rbs +57 -0
  434. data/sig/orb/models/alert_retrieve_params.rbs +14 -0
  435. data/sig/orb/models/alert_update_params.rbs +31 -0
  436. data/sig/orb/models/amount_discount.rbs +40 -0
  437. data/sig/orb/models/billable_metric.rbs +50 -0
  438. data/sig/orb/models/billing_cycle_relative_date.rbs +14 -0
  439. data/sig/orb/models/coupon.rbs +51 -0
  440. data/sig/orb/models/coupon_archive_params.rbs +14 -0
  441. data/sig/orb/models/coupon_create_params.rbs +77 -0
  442. data/sig/orb/models/coupon_fetch_params.rbs +14 -0
  443. data/sig/orb/models/coupon_list_params.rbs +37 -0
  444. data/sig/orb/models/coupons/subscription_list_params.rbs +27 -0
  445. data/sig/orb/models/credit_note.rbs +345 -0
  446. data/sig/orb/models/credit_note_create_params.rbs +57 -0
  447. data/sig/orb/models/credit_note_fetch_params.rbs +14 -0
  448. data/sig/orb/models/credit_note_list_params.rbs +45 -0
  449. data/sig/orb/models/customer.rbs +628 -0
  450. data/sig/orb/models/customer_create_params.rbs +624 -0
  451. data/sig/orb/models/customer_delete_params.rbs +14 -0
  452. data/sig/orb/models/customer_fetch_by_external_id_params.rbs +14 -0
  453. data/sig/orb/models/customer_fetch_params.rbs +14 -0
  454. data/sig/orb/models/customer_list_params.rbs +45 -0
  455. data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +15 -0
  456. data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +15 -0
  457. data/sig/orb/models/customer_update_by_external_id_params.rbs +620 -0
  458. data/sig/orb/models/customer_update_params.rbs +620 -0
  459. data/sig/orb/models/customers/balance_transaction_create_params.rbs +44 -0
  460. data/sig/orb/models/customers/balance_transaction_create_response.rbs +114 -0
  461. data/sig/orb/models/customers/balance_transaction_list_params.rbs +47 -0
  462. data/sig/orb/models/customers/balance_transaction_list_response.rbs +114 -0
  463. data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +48 -0
  464. data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +82 -0
  465. data/sig/orb/models/customers/cost_list_params.rbs +48 -0
  466. data/sig/orb/models/customers/cost_list_response.rbs +80 -0
  467. data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +41 -0
  468. data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +55 -0
  469. data/sig/orb/models/customers/credit_list_params.rbs +41 -0
  470. data/sig/orb/models/customers/credit_list_response.rbs +55 -0
  471. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +120 -0
  472. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +814 -0
  473. data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +120 -0
  474. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +814 -0
  475. data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +99 -0
  476. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +814 -0
  477. data/sig/orb/models/customers/credits/ledger_list_params.rbs +99 -0
  478. data/sig/orb/models/customers/credits/ledger_list_response.rbs +814 -0
  479. data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +95 -0
  480. data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +90 -0
  481. data/sig/orb/models/customers/credits/top_up_create_params.rbs +95 -0
  482. data/sig/orb/models/customers/credits/top_up_create_response.rbs +90 -0
  483. data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +24 -0
  484. data/sig/orb/models/customers/credits/top_up_delete_params.rbs +24 -0
  485. data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +29 -0
  486. data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +90 -0
  487. data/sig/orb/models/customers/credits/top_up_list_params.rbs +29 -0
  488. data/sig/orb/models/customers/credits/top_up_list_response.rbs +90 -0
  489. data/sig/orb/models/dimensional_price_group.rbs +38 -0
  490. data/sig/orb/models/dimensional_price_group_create_params.rbs +39 -0
  491. data/sig/orb/models/dimensional_price_group_list_params.rbs +25 -0
  492. data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +15 -0
  493. data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +17 -0
  494. data/sig/orb/models/dimensional_price_groups.rbs +22 -0
  495. data/sig/orb/models/discount.rbs +15 -0
  496. data/sig/orb/models/evaluate_price_group.rbs +34 -0
  497. data/sig/orb/models/event_deprecate_params.rbs +14 -0
  498. data/sig/orb/models/event_deprecate_response.rbs +13 -0
  499. data/sig/orb/models/event_ingest_params.rbs +68 -0
  500. data/sig/orb/models/event_ingest_response.rbs +53 -0
  501. data/sig/orb/models/event_search_params.rbs +31 -0
  502. data/sig/orb/models/event_search_response.rbs +55 -0
  503. data/sig/orb/models/event_update_params.rbs +39 -0
  504. data/sig/orb/models/event_update_response.rbs +13 -0
  505. data/sig/orb/models/events/backfill_close_params.rbs +16 -0
  506. data/sig/orb/models/events/backfill_close_response.rbs +73 -0
  507. data/sig/orb/models/events/backfill_create_params.rbs +51 -0
  508. data/sig/orb/models/events/backfill_create_response.rbs +73 -0
  509. data/sig/orb/models/events/backfill_fetch_params.rbs +16 -0
  510. data/sig/orb/models/events/backfill_fetch_response.rbs +73 -0
  511. data/sig/orb/models/events/backfill_list_params.rbs +27 -0
  512. data/sig/orb/models/events/backfill_list_response.rbs +73 -0
  513. data/sig/orb/models/events/backfill_revert_params.rbs +16 -0
  514. data/sig/orb/models/events/backfill_revert_response.rbs +73 -0
  515. data/sig/orb/models/events/event_volumes.rbs +39 -0
  516. data/sig/orb/models/events/volume_list_params.rbs +41 -0
  517. data/sig/orb/models/invoice.rbs +1430 -0
  518. data/sig/orb/models/invoice_create_params.rbs +120 -0
  519. data/sig/orb/models/invoice_fetch_params.rbs +14 -0
  520. data/sig/orb/models/invoice_fetch_upcoming_params.rbs +20 -0
  521. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +1430 -0
  522. data/sig/orb/models/invoice_issue_params.rbs +21 -0
  523. data/sig/orb/models/invoice_level_discount.rbs +14 -0
  524. data/sig/orb/models/invoice_line_item_create_params.rbs +43 -0
  525. data/sig/orb/models/invoice_line_item_create_response.rbs +546 -0
  526. data/sig/orb/models/invoice_list_params.rbs +122 -0
  527. data/sig/orb/models/invoice_mark_paid_params.rbs +27 -0
  528. data/sig/orb/models/invoice_pay_params.rbs +14 -0
  529. data/sig/orb/models/invoice_update_params.rbs +20 -0
  530. data/sig/orb/models/invoice_void_params.rbs +14 -0
  531. data/sig/orb/models/item.rbs +72 -0
  532. data/sig/orb/models/item_create_params.rbs +19 -0
  533. data/sig/orb/models/item_fetch_params.rbs +14 -0
  534. data/sig/orb/models/item_list_params.rbs +25 -0
  535. data/sig/orb/models/item_update_params.rbs +69 -0
  536. data/sig/orb/models/metric_create_params.rbs +39 -0
  537. data/sig/orb/models/metric_fetch_params.rbs +14 -0
  538. data/sig/orb/models/metric_list_params.rbs +45 -0
  539. data/sig/orb/models/metric_update_params.rbs +20 -0
  540. data/sig/orb/models/pagination_metadata.rbs +15 -0
  541. data/sig/orb/models/percentage_discount.rbs +40 -0
  542. data/sig/orb/models/plan.rbs +529 -0
  543. data/sig/orb/models/plan_create_params.rbs +3991 -0
  544. data/sig/orb/models/plan_fetch_params.rbs +14 -0
  545. data/sig/orb/models/plan_list_params.rbs +65 -0
  546. data/sig/orb/models/plan_update_params.rbs +24 -0
  547. data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +16 -0
  548. data/sig/orb/models/plans/external_plan_id_update_params.rbs +26 -0
  549. data/sig/orb/models/price.rbs +8108 -0
  550. data/sig/orb/models/price_create_params.rbs +520 -0
  551. data/sig/orb/models/price_evaluate_params.rbs +45 -0
  552. data/sig/orb/models/price_evaluate_response.rbs +14 -0
  553. data/sig/orb/models/price_fetch_params.rbs +14 -0
  554. data/sig/orb/models/price_list_params.rbs +25 -0
  555. data/sig/orb/models/price_update_params.rbs +20 -0
  556. data/sig/orb/models/prices/external_price_id_fetch_params.rbs +16 -0
  557. data/sig/orb/models/prices/external_price_id_update_params.rbs +22 -0
  558. data/sig/orb/models/subscription.rbs +687 -0
  559. data/sig/orb/models/subscription_cancel_params.rbs +44 -0
  560. data/sig/orb/models/subscription_cancel_response.rbs +687 -0
  561. data/sig/orb/models/subscription_create_params.rbs +9141 -0
  562. data/sig/orb/models/subscription_create_response.rbs +687 -0
  563. data/sig/orb/models/subscription_fetch_costs_params.rbs +46 -0
  564. data/sig/orb/models/subscription_fetch_costs_response.rbs +78 -0
  565. data/sig/orb/models/subscription_fetch_params.rbs +14 -0
  566. data/sig/orb/models/subscription_fetch_schedule_params.rbs +45 -0
  567. data/sig/orb/models/subscription_fetch_schedule_response.rbs +48 -0
  568. data/sig/orb/models/subscription_fetch_usage_params.rbs +80 -0
  569. data/sig/orb/models/subscription_list_params.rbs +69 -0
  570. data/sig/orb/models/subscription_price_intervals_params.rbs +5117 -0
  571. data/sig/orb/models/subscription_price_intervals_response.rbs +687 -0
  572. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +9133 -0
  573. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +687 -0
  574. data/sig/orb/models/subscription_trigger_phase_params.rbs +24 -0
  575. data/sig/orb/models/subscription_trigger_phase_response.rbs +687 -0
  576. data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +15 -0
  577. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +687 -0
  578. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +20 -0
  579. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +687 -0
  580. data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +15 -0
  581. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +687 -0
  582. data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +55 -0
  583. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +687 -0
  584. data/sig/orb/models/subscription_update_params.rbs +39 -0
  585. data/sig/orb/models/subscription_update_trial_params.rbs +39 -0
  586. data/sig/orb/models/subscription_update_trial_response.rbs +687 -0
  587. data/sig/orb/models/subscription_usage.rbs +196 -0
  588. data/sig/orb/models/subscriptions.rbs +22 -0
  589. data/sig/orb/models/top_level_ping_params.rbs +14 -0
  590. data/sig/orb/models/top_level_ping_response.rbs +13 -0
  591. data/sig/orb/models/trial_discount.rbs +44 -0
  592. data/sig/orb/models/usage_discount.rbs +40 -0
  593. data/sig/orb/page.rbs +22 -0
  594. data/sig/orb/request_options.rbs +32 -0
  595. data/sig/orb/resources/alerts.rbs +67 -0
  596. data/sig/orb/resources/coupons/subscriptions.rbs +16 -0
  597. data/sig/orb/resources/coupons.rbs +35 -0
  598. data/sig/orb/resources/credit_notes.rbs +29 -0
  599. data/sig/orb/resources/customers/balance_transactions.rbs +28 -0
  600. data/sig/orb/resources/customers/costs.rbs +27 -0
  601. data/sig/orb/resources/customers/credits/ledger.rbs +75 -0
  602. data/sig/orb/resources/customers/credits/top_ups.rbs +63 -0
  603. data/sig/orb/resources/customers/credits.rbs +31 -0
  604. data/sig/orb/resources/customers.rbs +114 -0
  605. data/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs +14 -0
  606. data/sig/orb/resources/dimensional_price_groups.rbs +29 -0
  607. data/sig/orb/resources/events/backfills.rbs +41 -0
  608. data/sig/orb/resources/events/volume.rbs +17 -0
  609. data/sig/orb/resources/events.rbs +40 -0
  610. data/sig/orb/resources/invoice_line_items.rbs +17 -0
  611. data/sig/orb/resources/invoices.rbs +84 -0
  612. data/sig/orb/resources/items.rbs +30 -0
  613. data/sig/orb/resources/metrics.rbs +37 -0
  614. data/sig/orb/resources/plans/external_plan_id.rbs +21 -0
  615. data/sig/orb/resources/plans.rbs +44 -0
  616. data/sig/orb/resources/prices/external_price_id.rbs +20 -0
  617. data/sig/orb/resources/prices.rbs +83 -0
  618. data/sig/orb/resources/subscriptions.rbs +194 -0
  619. data/sig/orb/resources/top_level.rbs +11 -0
  620. data/sig/orb/transport/base_client.rbs +110 -0
  621. data/sig/orb/transport/pooled_net_requester.rbs +39 -0
  622. data/sig/orb/type/array_of.rbs +36 -0
  623. data/sig/orb/type/base_model.rbs +77 -0
  624. data/sig/orb/type/base_page.rbs +22 -0
  625. data/sig/orb/type/boolean_model.rbs +18 -0
  626. data/sig/orb/type/converter.rbs +36 -0
  627. data/sig/orb/type/enum.rbs +22 -0
  628. data/sig/orb/type/hash_of.rbs +36 -0
  629. data/sig/orb/type/request_parameters.rbs +13 -0
  630. data/sig/orb/type/union.rbs +37 -0
  631. data/sig/orb/type/unknown.rbs +15 -0
  632. data/sig/orb/type.rbs +22 -0
  633. data/sig/orb/util.rbs +132 -0
  634. data/sig/orb/version.rbs +3 -0
  635. metadata +692 -0
@@ -0,0 +1,2226 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Orb
4
+ module Models
5
+ # @see Orb::Resources::Invoices#fetch_upcoming
6
+ class InvoiceFetchUpcomingResponse < Orb::BaseModel
7
+ # @!attribute id
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute amount_due
13
+ # This is the final amount required to be charged to the customer and reflects the
14
+ # application of the customer balance to the `total` of the invoice.
15
+ #
16
+ # @return [String]
17
+ required :amount_due, String
18
+
19
+ # @!attribute auto_collection
20
+ #
21
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection]
22
+ required :auto_collection, -> { Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection }
23
+
24
+ # @!attribute billing_address
25
+ #
26
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress, nil]
27
+ required :billing_address, -> { Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress }, nil?: true
28
+
29
+ # @!attribute created_at
30
+ # The creation time of the resource in Orb.
31
+ #
32
+ # @return [Time]
33
+ required :created_at, Time
34
+
35
+ # @!attribute credit_notes
36
+ # A list of credit notes associated with the invoice
37
+ #
38
+ # @return [Array<Orb::Models::InvoiceFetchUpcomingResponse::CreditNote>]
39
+ required :credit_notes, -> { Orb::ArrayOf[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote] }
40
+
41
+ # @!attribute currency
42
+ # An ISO 4217 currency string or `credits`
43
+ #
44
+ # @return [String]
45
+ required :currency, String
46
+
47
+ # @!attribute customer
48
+ #
49
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::Customer]
50
+ required :customer, -> { Orb::Models::InvoiceFetchUpcomingResponse::Customer }
51
+
52
+ # @!attribute customer_balance_transactions
53
+ #
54
+ # @return [Array<Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction>]
55
+ required :customer_balance_transactions,
56
+ -> { Orb::ArrayOf[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction] }
57
+
58
+ # @!attribute customer_tax_id
59
+ # Tax IDs are commonly required to be displayed on customer invoices, which are
60
+ # added to the headers of invoices.
61
+ #
62
+ # ### Supported Tax ID Countries and Types
63
+ #
64
+ # | Country | Type | Description |
65
+ # | -------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
66
+ # | Andorra | `ad_nrt` | Andorran NRT Number |
67
+ # | Argentina | `ar_cuit` | Argentinian Tax ID Number |
68
+ # | Australia | `au_abn` | Australian Business Number (AU ABN) |
69
+ # | Australia | `au_arn` | Australian Taxation Office Reference Number |
70
+ # | Austria | `eu_vat` | European VAT Number |
71
+ # | Bahrain | `bh_vat` | Bahraini VAT Number |
72
+ # | Belgium | `eu_vat` | European VAT Number |
73
+ # | Bolivia | `bo_tin` | Bolivian Tax ID |
74
+ # | Brazil | `br_cnpj` | Brazilian CNPJ Number |
75
+ # | Brazil | `br_cpf` | Brazilian CPF Number |
76
+ # | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
77
+ # | Bulgaria | `eu_vat` | European VAT Number |
78
+ # | Canada | `ca_bn` | Canadian BN |
79
+ # | Canada | `ca_gst_hst` | Canadian GST/HST Number |
80
+ # | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
81
+ # | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
82
+ # | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
83
+ # | Canada | `ca_qst` | Canadian QST Number (Québec) |
84
+ # | Chile | `cl_tin` | Chilean TIN |
85
+ # | China | `cn_tin` | Chinese Tax ID |
86
+ # | Colombia | `co_nit` | Colombian NIT Number |
87
+ # | Costa Rica | `cr_tin` | Costa Rican Tax ID |
88
+ # | Croatia | `eu_vat` | European VAT Number |
89
+ # | Cyprus | `eu_vat` | European VAT Number |
90
+ # | Czech Republic | `eu_vat` | European VAT Number |
91
+ # | Denmark | `eu_vat` | European VAT Number |
92
+ # | Dominican Republic | `do_rcn` | Dominican RCN Number |
93
+ # | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
94
+ # | Egypt | `eg_tin` | Egyptian Tax Identification Number |
95
+ # | El Salvador | `sv_nit` | El Salvadorian NIT Number |
96
+ # | Estonia | `eu_vat` | European VAT Number |
97
+ # | EU | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
98
+ # | Finland | `eu_vat` | European VAT Number |
99
+ # | France | `eu_vat` | European VAT Number |
100
+ # | Georgia | `ge_vat` | Georgian VAT |
101
+ # | Germany | `eu_vat` | European VAT Number |
102
+ # | Greece | `eu_vat` | European VAT Number |
103
+ # | Hong Kong | `hk_br` | Hong Kong BR Number |
104
+ # | Hungary | `eu_vat` | European VAT Number |
105
+ # | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
106
+ # | Iceland | `is_vat` | Icelandic VAT |
107
+ # | India | `in_gst` | Indian GST Number |
108
+ # | Indonesia | `id_npwp` | Indonesian NPWP Number |
109
+ # | Ireland | `eu_vat` | European VAT Number |
110
+ # | Israel | `il_vat` | Israel VAT |
111
+ # | Italy | `eu_vat` | European VAT Number |
112
+ # | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
113
+ # | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
114
+ # | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
115
+ # | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
116
+ # | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
117
+ # | Latvia | `eu_vat` | European VAT Number |
118
+ # | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
119
+ # | Lithuania | `eu_vat` | European VAT Number |
120
+ # | Luxembourg | `eu_vat` | European VAT Number |
121
+ # | Malaysia | `my_frp` | Malaysian FRP Number |
122
+ # | Malaysia | `my_itn` | Malaysian ITN |
123
+ # | Malaysia | `my_sst` | Malaysian SST Number |
124
+ # | Malta | `eu_vat ` | European VAT Number |
125
+ # | Mexico | `mx_rfc` | Mexican RFC Number |
126
+ # | Netherlands | `eu_vat` | European VAT Number |
127
+ # | New Zealand | `nz_gst` | New Zealand GST Number |
128
+ # | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
129
+ # | Norway | `no_vat` | Norwegian VAT Number |
130
+ # | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
131
+ # | Oman | `om_vat` | Omani VAT Number |
132
+ # | Peru | `pe_ruc` | Peruvian RUC Number |
133
+ # | Philippines | `ph_tin ` | Philippines Tax Identification Number |
134
+ # | Poland | `eu_vat` | European VAT Number |
135
+ # | Portugal | `eu_vat` | European VAT Number |
136
+ # | Romania | `eu_vat` | European VAT Number |
137
+ # | Romania | `ro_tin` | Romanian Tax ID Number |
138
+ # | Russia | `ru_inn` | Russian INN |
139
+ # | Russia | `ru_kpp` | Russian KPP |
140
+ # | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
141
+ # | Serbia | `rs_pib` | Serbian PIB Number |
142
+ # | Singapore | `sg_gst` | Singaporean GST |
143
+ # | Singapore | `sg_uen` | Singaporean UEN |
144
+ # | Slovakia | `eu_vat` | European VAT Number |
145
+ # | Slovenia | `eu_vat` | European VAT Number |
146
+ # | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
147
+ # | South Africa | `za_vat` | South African VAT Number |
148
+ # | South Korea | `kr_brn` | Korean BRN |
149
+ # | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
150
+ # | Spain | `eu_vat` | European VAT Number |
151
+ # | Sweden | `eu_vat` | European VAT Number |
152
+ # | Switzerland | `ch_vat` | Switzerland VAT Number |
153
+ # | Taiwan | `tw_vat` | Taiwanese VAT |
154
+ # | Thailand | `th_vat` | Thai VAT |
155
+ # | Turkey | `tr_tin` | Turkish Tax Identification Number |
156
+ # | Ukraine | `ua_vat` | Ukrainian VAT |
157
+ # | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
158
+ # | United Kingdom | `eu_vat` | Northern Ireland VAT Number |
159
+ # | United Kingdom | `gb_vat` | United Kingdom VAT Number |
160
+ # | United States | `us_ein` | United States EIN |
161
+ # | Uruguay | `uy_ruc` | Uruguayan RUC Number |
162
+ # | Venezuela | `ve_rif` | Venezuelan RIF Number |
163
+ # | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
164
+ #
165
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID, nil]
166
+ required :customer_tax_id, -> { Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID }, nil?: true
167
+
168
+ # @!attribute discount
169
+ # This field is deprecated in favor of `discounts`. If a `discounts` list is
170
+ # provided, the first discount in the list will be returned. If the list is empty,
171
+ # `None` will be returned.
172
+ #
173
+ # @return [Object]
174
+ required :discount, Orb::Unknown
175
+
176
+ # @!attribute discounts
177
+ #
178
+ # @return [Array<Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount>]
179
+ required :discounts, -> { Orb::ArrayOf[union: Orb::Models::InvoiceLevelDiscount] }
180
+
181
+ # @!attribute due_date
182
+ # When the invoice payment is due. The due date is null if the invoice is not yet
183
+ # finalized.
184
+ #
185
+ # @return [Time, nil]
186
+ required :due_date, Time, nil?: true
187
+
188
+ # @!attribute eligible_to_issue_at
189
+ # If the invoice has a status of `draft`, this will be the time that the invoice
190
+ # will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is
191
+ # true, the invoice will automatically begin issuing at this time.
192
+ #
193
+ # @return [Time, nil]
194
+ required :eligible_to_issue_at, Time, nil?: true
195
+
196
+ # @!attribute hosted_invoice_url
197
+ # A URL for the customer-facing invoice portal. This URL expires 30 days after the
198
+ # invoice's due date, or 60 days after being re-generated through the UI.
199
+ #
200
+ # @return [String, nil]
201
+ required :hosted_invoice_url, String, nil?: true
202
+
203
+ # @!attribute invoice_number
204
+ # Automatically generated invoice number to help track and reconcile invoices.
205
+ # Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per
206
+ # account or customer.
207
+ #
208
+ # @return [String]
209
+ required :invoice_number, String
210
+
211
+ # @!attribute invoice_pdf
212
+ # The link to download the PDF representation of the `Invoice`.
213
+ #
214
+ # @return [String, nil]
215
+ required :invoice_pdf, String, nil?: true
216
+
217
+ # @!attribute invoice_source
218
+ #
219
+ # @return [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource]
220
+ required :invoice_source, enum: -> { Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource }
221
+
222
+ # @!attribute issue_failed_at
223
+ # If the invoice failed to issue, this will be the last time it failed to issue
224
+ # (even if it is now in a different state.)
225
+ #
226
+ # @return [Time, nil]
227
+ required :issue_failed_at, Time, nil?: true
228
+
229
+ # @!attribute issued_at
230
+ # If the invoice has been issued, this will be the time it transitioned to
231
+ # `issued` (even if it is now in a different state.)
232
+ #
233
+ # @return [Time, nil]
234
+ required :issued_at, Time, nil?: true
235
+
236
+ # @!attribute line_items
237
+ # The breakdown of prices in this invoice.
238
+ #
239
+ # @return [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem>]
240
+ required :line_items, -> { Orb::ArrayOf[Orb::Models::InvoiceFetchUpcomingResponse::LineItem] }
241
+
242
+ # @!attribute maximum
243
+ #
244
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::Maximum, nil]
245
+ required :maximum, -> { Orb::Models::InvoiceFetchUpcomingResponse::Maximum }, nil?: true
246
+
247
+ # @!attribute maximum_amount
248
+ #
249
+ # @return [String, nil]
250
+ required :maximum_amount, String, nil?: true
251
+
252
+ # @!attribute memo
253
+ # Free-form text which is available on the invoice PDF and the Orb invoice portal.
254
+ #
255
+ # @return [String, nil]
256
+ required :memo, String, nil?: true
257
+
258
+ # @!attribute metadata
259
+ # User specified key-value pairs for the resource. If not present, this defaults
260
+ # to an empty dictionary. Individual keys can be removed by setting the value to
261
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
262
+ # `null`.
263
+ #
264
+ # @return [Hash{Symbol=>String}]
265
+ required :metadata, Orb::HashOf[String]
266
+
267
+ # @!attribute minimum
268
+ #
269
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::Minimum, nil]
270
+ required :minimum, -> { Orb::Models::InvoiceFetchUpcomingResponse::Minimum }, nil?: true
271
+
272
+ # @!attribute minimum_amount
273
+ #
274
+ # @return [String, nil]
275
+ required :minimum_amount, String, nil?: true
276
+
277
+ # @!attribute paid_at
278
+ # If the invoice has a status of `paid`, this gives a timestamp when the invoice
279
+ # was paid.
280
+ #
281
+ # @return [Time, nil]
282
+ required :paid_at, Time, nil?: true
283
+
284
+ # @!attribute payment_attempts
285
+ # A list of payment attempts associated with the invoice
286
+ #
287
+ # @return [Array<Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt>]
288
+ required :payment_attempts, -> { Orb::ArrayOf[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt] }
289
+
290
+ # @!attribute payment_failed_at
291
+ # If payment was attempted on this invoice but failed, this will be the time of
292
+ # the most recent attempt.
293
+ #
294
+ # @return [Time, nil]
295
+ required :payment_failed_at, Time, nil?: true
296
+
297
+ # @!attribute payment_started_at
298
+ # If payment was attempted on this invoice, this will be the start time of the
299
+ # most recent attempt. This field is especially useful for delayed-notification
300
+ # payment mechanisms (like bank transfers), where payment can take 3 days or more.
301
+ #
302
+ # @return [Time, nil]
303
+ required :payment_started_at, Time, nil?: true
304
+
305
+ # @!attribute scheduled_issue_at
306
+ # If the invoice is in draft, this timestamp will reflect when the invoice is
307
+ # scheduled to be issued.
308
+ #
309
+ # @return [Time, nil]
310
+ required :scheduled_issue_at, Time, nil?: true
311
+
312
+ # @!attribute shipping_address
313
+ #
314
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress, nil]
315
+ required :shipping_address, -> { Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress }, nil?: true
316
+
317
+ # @!attribute status
318
+ #
319
+ # @return [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::Status]
320
+ required :status, enum: -> { Orb::Models::InvoiceFetchUpcomingResponse::Status }
321
+
322
+ # @!attribute subscription
323
+ #
324
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::Subscription, nil]
325
+ required :subscription, -> { Orb::Models::InvoiceFetchUpcomingResponse::Subscription }, nil?: true
326
+
327
+ # @!attribute subtotal
328
+ # The total before any discounts and minimums are applied.
329
+ #
330
+ # @return [String]
331
+ required :subtotal, String
332
+
333
+ # @!attribute sync_failed_at
334
+ # If the invoice failed to sync, this will be the last time an external invoicing
335
+ # provider sync was attempted. This field will always be `null` for invoices using
336
+ # Orb Invoicing.
337
+ #
338
+ # @return [Time, nil]
339
+ required :sync_failed_at, Time, nil?: true
340
+
341
+ # @!attribute target_date
342
+ # The scheduled date of the invoice
343
+ #
344
+ # @return [Time]
345
+ required :target_date, Time
346
+
347
+ # @!attribute total
348
+ # The total after any minimums and discounts have been applied.
349
+ #
350
+ # @return [String]
351
+ required :total, String
352
+
353
+ # @!attribute voided_at
354
+ # If the invoice has a status of `void`, this gives a timestamp when the invoice
355
+ # was voided.
356
+ #
357
+ # @return [Time, nil]
358
+ required :voided_at, Time, nil?: true
359
+
360
+ # @!attribute will_auto_issue
361
+ # This is true if the invoice will be automatically issued in the future, and
362
+ # false otherwise.
363
+ #
364
+ # @return [Boolean]
365
+ required :will_auto_issue, Orb::BooleanModel
366
+
367
+ # @!parse
368
+ # # @param id [String]
369
+ # # @param amount_due [String]
370
+ # # @param auto_collection [Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection]
371
+ # # @param billing_address [Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress, nil]
372
+ # # @param created_at [Time]
373
+ # # @param credit_notes [Array<Orb::Models::InvoiceFetchUpcomingResponse::CreditNote>]
374
+ # # @param currency [String]
375
+ # # @param customer [Orb::Models::InvoiceFetchUpcomingResponse::Customer]
376
+ # # @param customer_balance_transactions [Array<Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction>]
377
+ # # @param customer_tax_id [Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID, nil]
378
+ # # @param discount [Object]
379
+ # # @param discounts [Array<Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount>]
380
+ # # @param due_date [Time, nil]
381
+ # # @param eligible_to_issue_at [Time, nil]
382
+ # # @param hosted_invoice_url [String, nil]
383
+ # # @param invoice_number [String]
384
+ # # @param invoice_pdf [String, nil]
385
+ # # @param invoice_source [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource]
386
+ # # @param issue_failed_at [Time, nil]
387
+ # # @param issued_at [Time, nil]
388
+ # # @param line_items [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem>]
389
+ # # @param maximum [Orb::Models::InvoiceFetchUpcomingResponse::Maximum, nil]
390
+ # # @param maximum_amount [String, nil]
391
+ # # @param memo [String, nil]
392
+ # # @param metadata [Hash{Symbol=>String}]
393
+ # # @param minimum [Orb::Models::InvoiceFetchUpcomingResponse::Minimum, nil]
394
+ # # @param minimum_amount [String, nil]
395
+ # # @param paid_at [Time, nil]
396
+ # # @param payment_attempts [Array<Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt>]
397
+ # # @param payment_failed_at [Time, nil]
398
+ # # @param payment_started_at [Time, nil]
399
+ # # @param scheduled_issue_at [Time, nil]
400
+ # # @param shipping_address [Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress, nil]
401
+ # # @param status [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::Status]
402
+ # # @param subscription [Orb::Models::InvoiceFetchUpcomingResponse::Subscription, nil]
403
+ # # @param subtotal [String]
404
+ # # @param sync_failed_at [Time, nil]
405
+ # # @param target_date [Time]
406
+ # # @param total [String]
407
+ # # @param voided_at [Time, nil]
408
+ # # @param will_auto_issue [Boolean]
409
+ # #
410
+ # def initialize(
411
+ # id:,
412
+ # amount_due:,
413
+ # auto_collection:,
414
+ # billing_address:,
415
+ # created_at:,
416
+ # credit_notes:,
417
+ # currency:,
418
+ # customer:,
419
+ # customer_balance_transactions:,
420
+ # customer_tax_id:,
421
+ # discount:,
422
+ # discounts:,
423
+ # due_date:,
424
+ # eligible_to_issue_at:,
425
+ # hosted_invoice_url:,
426
+ # invoice_number:,
427
+ # invoice_pdf:,
428
+ # invoice_source:,
429
+ # issue_failed_at:,
430
+ # issued_at:,
431
+ # line_items:,
432
+ # maximum:,
433
+ # maximum_amount:,
434
+ # memo:,
435
+ # metadata:,
436
+ # minimum:,
437
+ # minimum_amount:,
438
+ # paid_at:,
439
+ # payment_attempts:,
440
+ # payment_failed_at:,
441
+ # payment_started_at:,
442
+ # scheduled_issue_at:,
443
+ # shipping_address:,
444
+ # status:,
445
+ # subscription:,
446
+ # subtotal:,
447
+ # sync_failed_at:,
448
+ # target_date:,
449
+ # total:,
450
+ # voided_at:,
451
+ # will_auto_issue:,
452
+ # **
453
+ # )
454
+ # super
455
+ # end
456
+
457
+ # def initialize: (Hash | Orb::BaseModel) -> void
458
+
459
+ # @see Orb::Models::InvoiceFetchUpcomingResponse#auto_collection
460
+ class AutoCollection < Orb::BaseModel
461
+ # @!attribute enabled
462
+ # True only if auto-collection is enabled for this invoice.
463
+ #
464
+ # @return [Boolean, nil]
465
+ required :enabled, Orb::BooleanModel, nil?: true
466
+
467
+ # @!attribute next_attempt_at
468
+ # If the invoice is scheduled for auto-collection, this field will reflect when
469
+ # the next attempt will occur. If dunning has been exhausted, or auto-collection
470
+ # is not enabled for this invoice, this field will be `null`.
471
+ #
472
+ # @return [Time, nil]
473
+ required :next_attempt_at, Time, nil?: true
474
+
475
+ # @!attribute num_attempts
476
+ # Number of auto-collection payment attempts.
477
+ #
478
+ # @return [Integer, nil]
479
+ required :num_attempts, Integer, nil?: true
480
+
481
+ # @!attribute previously_attempted_at
482
+ # If Orb has ever attempted payment auto-collection for this invoice, this field
483
+ # will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
484
+ # this can be used to tell whether the invoice is currently in dunning (that is,
485
+ # `previously_attempted_at` is non-null, and `next_attempt_time` is non-null), or
486
+ # if dunning has been exhausted (`previously_attempted_at` is non-null, but
487
+ # `next_attempt_time` is null).
488
+ #
489
+ # @return [Time, nil]
490
+ required :previously_attempted_at, Time, nil?: true
491
+
492
+ # @!parse
493
+ # # @param enabled [Boolean, nil]
494
+ # # @param next_attempt_at [Time, nil]
495
+ # # @param num_attempts [Integer, nil]
496
+ # # @param previously_attempted_at [Time, nil]
497
+ # #
498
+ # def initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:, **) = super
499
+
500
+ # def initialize: (Hash | Orb::BaseModel) -> void
501
+ end
502
+
503
+ # @see Orb::Models::InvoiceFetchUpcomingResponse#billing_address
504
+ class BillingAddress < Orb::BaseModel
505
+ # @!attribute city
506
+ #
507
+ # @return [String, nil]
508
+ required :city, String, nil?: true
509
+
510
+ # @!attribute country
511
+ #
512
+ # @return [String, nil]
513
+ required :country, String, nil?: true
514
+
515
+ # @!attribute line1
516
+ #
517
+ # @return [String, nil]
518
+ required :line1, String, nil?: true
519
+
520
+ # @!attribute line2
521
+ #
522
+ # @return [String, nil]
523
+ required :line2, String, nil?: true
524
+
525
+ # @!attribute postal_code
526
+ #
527
+ # @return [String, nil]
528
+ required :postal_code, String, nil?: true
529
+
530
+ # @!attribute state
531
+ #
532
+ # @return [String, nil]
533
+ required :state, String, nil?: true
534
+
535
+ # @!parse
536
+ # # @param city [String, nil]
537
+ # # @param country [String, nil]
538
+ # # @param line1 [String, nil]
539
+ # # @param line2 [String, nil]
540
+ # # @param postal_code [String, nil]
541
+ # # @param state [String, nil]
542
+ # #
543
+ # def initialize(city:, country:, line1:, line2:, postal_code:, state:, **) = super
544
+
545
+ # def initialize: (Hash | Orb::BaseModel) -> void
546
+ end
547
+
548
+ class CreditNote < Orb::BaseModel
549
+ # @!attribute id
550
+ #
551
+ # @return [String]
552
+ required :id, String
553
+
554
+ # @!attribute credit_note_number
555
+ #
556
+ # @return [String]
557
+ required :credit_note_number, String
558
+
559
+ # @!attribute memo
560
+ # An optional memo supplied on the credit note.
561
+ #
562
+ # @return [String, nil]
563
+ required :memo, String, nil?: true
564
+
565
+ # @!attribute reason
566
+ #
567
+ # @return [String]
568
+ required :reason, String
569
+
570
+ # @!attribute total
571
+ #
572
+ # @return [String]
573
+ required :total, String
574
+
575
+ # @!attribute type
576
+ #
577
+ # @return [String]
578
+ required :type, String
579
+
580
+ # @!attribute voided_at
581
+ # If the credit note has a status of `void`, this gives a timestamp when the
582
+ # credit note was voided.
583
+ #
584
+ # @return [Time, nil]
585
+ required :voided_at, Time, nil?: true
586
+
587
+ # @!parse
588
+ # # @param id [String]
589
+ # # @param credit_note_number [String]
590
+ # # @param memo [String, nil]
591
+ # # @param reason [String]
592
+ # # @param total [String]
593
+ # # @param type [String]
594
+ # # @param voided_at [Time, nil]
595
+ # #
596
+ # def initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:, **) = super
597
+
598
+ # def initialize: (Hash | Orb::BaseModel) -> void
599
+ end
600
+
601
+ # @see Orb::Models::InvoiceFetchUpcomingResponse#customer
602
+ class Customer < Orb::BaseModel
603
+ # @!attribute id
604
+ #
605
+ # @return [String]
606
+ required :id, String
607
+
608
+ # @!attribute external_customer_id
609
+ #
610
+ # @return [String, nil]
611
+ required :external_customer_id, String, nil?: true
612
+
613
+ # @!parse
614
+ # # @param id [String]
615
+ # # @param external_customer_id [String, nil]
616
+ # #
617
+ # def initialize(id:, external_customer_id:, **) = super
618
+
619
+ # def initialize: (Hash | Orb::BaseModel) -> void
620
+ end
621
+
622
+ class CustomerBalanceTransaction < Orb::BaseModel
623
+ # @!attribute id
624
+ # A unique id for this transaction.
625
+ #
626
+ # @return [String]
627
+ required :id, String
628
+
629
+ # @!attribute action
630
+ #
631
+ # @return [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action]
632
+ required :action,
633
+ enum: -> { Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action }
634
+
635
+ # @!attribute amount
636
+ # The value of the amount changed in the transaction.
637
+ #
638
+ # @return [String]
639
+ required :amount, String
640
+
641
+ # @!attribute created_at
642
+ # The creation time of this transaction.
643
+ #
644
+ # @return [Time]
645
+ required :created_at, Time
646
+
647
+ # @!attribute credit_note
648
+ #
649
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote, nil]
650
+ required :credit_note,
651
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote },
652
+ nil?: true
653
+
654
+ # @!attribute description
655
+ # An optional description provided for manual customer balance adjustments.
656
+ #
657
+ # @return [String, nil]
658
+ required :description, String, nil?: true
659
+
660
+ # @!attribute ending_balance
661
+ # The new value of the customer's balance prior to the transaction, in the
662
+ # customer's currency.
663
+ #
664
+ # @return [String]
665
+ required :ending_balance, String
666
+
667
+ # @!attribute invoice
668
+ #
669
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice, nil]
670
+ required :invoice,
671
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice },
672
+ nil?: true
673
+
674
+ # @!attribute starting_balance
675
+ # The original value of the customer's balance prior to the transaction, in the
676
+ # customer's currency.
677
+ #
678
+ # @return [String]
679
+ required :starting_balance, String
680
+
681
+ # @!attribute type
682
+ #
683
+ # @return [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type]
684
+ required :type, enum: -> { Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type }
685
+
686
+ # @!parse
687
+ # # @param id [String]
688
+ # # @param action [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action]
689
+ # # @param amount [String]
690
+ # # @param created_at [Time]
691
+ # # @param credit_note [Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote, nil]
692
+ # # @param description [String, nil]
693
+ # # @param ending_balance [String]
694
+ # # @param invoice [Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice, nil]
695
+ # # @param starting_balance [String]
696
+ # # @param type [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type]
697
+ # #
698
+ # def initialize(
699
+ # id:,
700
+ # action:,
701
+ # amount:,
702
+ # created_at:,
703
+ # credit_note:,
704
+ # description:,
705
+ # ending_balance:,
706
+ # invoice:,
707
+ # starting_balance:,
708
+ # type:,
709
+ # **
710
+ # )
711
+ # super
712
+ # end
713
+
714
+ # def initialize: (Hash | Orb::BaseModel) -> void
715
+
716
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction#action
717
+ module Action
718
+ extend Orb::Enum
719
+
720
+ APPLIED_TO_INVOICE = :applied_to_invoice
721
+ MANUAL_ADJUSTMENT = :manual_adjustment
722
+ PRORATED_REFUND = :prorated_refund
723
+ REVERT_PRORATED_REFUND = :revert_prorated_refund
724
+ RETURN_FROM_VOIDING = :return_from_voiding
725
+ CREDIT_NOTE_APPLIED = :credit_note_applied
726
+ CREDIT_NOTE_VOIDED = :credit_note_voided
727
+ OVERPAYMENT_REFUND = :overpayment_refund
728
+ EXTERNAL_PAYMENT = :external_payment
729
+
730
+ finalize!
731
+
732
+ # @!parse
733
+ # # @return [Array<Symbol>]
734
+ # def self.values; end
735
+ end
736
+
737
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction#credit_note
738
+ class CreditNote < Orb::BaseModel
739
+ # @!attribute id
740
+ # The id of the Credit note
741
+ #
742
+ # @return [String]
743
+ required :id, String
744
+
745
+ # @!parse
746
+ # # @param id [String]
747
+ # #
748
+ # def initialize(id:, **) = super
749
+
750
+ # def initialize: (Hash | Orb::BaseModel) -> void
751
+ end
752
+
753
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction#invoice
754
+ class Invoice < Orb::BaseModel
755
+ # @!attribute id
756
+ # The Invoice id
757
+ #
758
+ # @return [String]
759
+ required :id, String
760
+
761
+ # @!parse
762
+ # # @param id [String]
763
+ # #
764
+ # def initialize(id:, **) = super
765
+
766
+ # def initialize: (Hash | Orb::BaseModel) -> void
767
+ end
768
+
769
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction#type
770
+ module Type
771
+ extend Orb::Enum
772
+
773
+ INCREMENT = :increment
774
+ DECREMENT = :decrement
775
+
776
+ finalize!
777
+
778
+ # @!parse
779
+ # # @return [Array<Symbol>]
780
+ # def self.values; end
781
+ end
782
+ end
783
+
784
+ # @see Orb::Models::InvoiceFetchUpcomingResponse#customer_tax_id
785
+ class CustomerTaxID < Orb::BaseModel
786
+ # @!attribute country
787
+ #
788
+ # @return [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country]
789
+ required :country, enum: -> { Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country }
790
+
791
+ # @!attribute type
792
+ #
793
+ # @return [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type]
794
+ required :type, enum: -> { Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type }
795
+
796
+ # @!attribute value
797
+ #
798
+ # @return [String]
799
+ required :value, String
800
+
801
+ # @!parse
802
+ # # Tax IDs are commonly required to be displayed on customer invoices, which are
803
+ # # added to the headers of invoices.
804
+ # #
805
+ # # ### Supported Tax ID Countries and Types
806
+ # #
807
+ # # | Country | Type | Description |
808
+ # # | -------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
809
+ # # | Andorra | `ad_nrt` | Andorran NRT Number |
810
+ # # | Argentina | `ar_cuit` | Argentinian Tax ID Number |
811
+ # # | Australia | `au_abn` | Australian Business Number (AU ABN) |
812
+ # # | Australia | `au_arn` | Australian Taxation Office Reference Number |
813
+ # # | Austria | `eu_vat` | European VAT Number |
814
+ # # | Bahrain | `bh_vat` | Bahraini VAT Number |
815
+ # # | Belgium | `eu_vat` | European VAT Number |
816
+ # # | Bolivia | `bo_tin` | Bolivian Tax ID |
817
+ # # | Brazil | `br_cnpj` | Brazilian CNPJ Number |
818
+ # # | Brazil | `br_cpf` | Brazilian CPF Number |
819
+ # # | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
820
+ # # | Bulgaria | `eu_vat` | European VAT Number |
821
+ # # | Canada | `ca_bn` | Canadian BN |
822
+ # # | Canada | `ca_gst_hst` | Canadian GST/HST Number |
823
+ # # | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
824
+ # # | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
825
+ # # | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
826
+ # # | Canada | `ca_qst` | Canadian QST Number (Québec) |
827
+ # # | Chile | `cl_tin` | Chilean TIN |
828
+ # # | China | `cn_tin` | Chinese Tax ID |
829
+ # # | Colombia | `co_nit` | Colombian NIT Number |
830
+ # # | Costa Rica | `cr_tin` | Costa Rican Tax ID |
831
+ # # | Croatia | `eu_vat` | European VAT Number |
832
+ # # | Cyprus | `eu_vat` | European VAT Number |
833
+ # # | Czech Republic | `eu_vat` | European VAT Number |
834
+ # # | Denmark | `eu_vat` | European VAT Number |
835
+ # # | Dominican Republic | `do_rcn` | Dominican RCN Number |
836
+ # # | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
837
+ # # | Egypt | `eg_tin` | Egyptian Tax Identification Number |
838
+ # # | El Salvador | `sv_nit` | El Salvadorian NIT Number |
839
+ # # | Estonia | `eu_vat` | European VAT Number |
840
+ # # | EU | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
841
+ # # | Finland | `eu_vat` | European VAT Number |
842
+ # # | France | `eu_vat` | European VAT Number |
843
+ # # | Georgia | `ge_vat` | Georgian VAT |
844
+ # # | Germany | `eu_vat` | European VAT Number |
845
+ # # | Greece | `eu_vat` | European VAT Number |
846
+ # # | Hong Kong | `hk_br` | Hong Kong BR Number |
847
+ # # | Hungary | `eu_vat` | European VAT Number |
848
+ # # | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
849
+ # # | Iceland | `is_vat` | Icelandic VAT |
850
+ # # | India | `in_gst` | Indian GST Number |
851
+ # # | Indonesia | `id_npwp` | Indonesian NPWP Number |
852
+ # # | Ireland | `eu_vat` | European VAT Number |
853
+ # # | Israel | `il_vat` | Israel VAT |
854
+ # # | Italy | `eu_vat` | European VAT Number |
855
+ # # | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
856
+ # # | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
857
+ # # | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
858
+ # # | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
859
+ # # | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
860
+ # # | Latvia | `eu_vat` | European VAT Number |
861
+ # # | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
862
+ # # | Lithuania | `eu_vat` | European VAT Number |
863
+ # # | Luxembourg | `eu_vat` | European VAT Number |
864
+ # # | Malaysia | `my_frp` | Malaysian FRP Number |
865
+ # # | Malaysia | `my_itn` | Malaysian ITN |
866
+ # # | Malaysia | `my_sst` | Malaysian SST Number |
867
+ # # | Malta | `eu_vat ` | European VAT Number |
868
+ # # | Mexico | `mx_rfc` | Mexican RFC Number |
869
+ # # | Netherlands | `eu_vat` | European VAT Number |
870
+ # # | New Zealand | `nz_gst` | New Zealand GST Number |
871
+ # # | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
872
+ # # | Norway | `no_vat` | Norwegian VAT Number |
873
+ # # | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
874
+ # # | Oman | `om_vat` | Omani VAT Number |
875
+ # # | Peru | `pe_ruc` | Peruvian RUC Number |
876
+ # # | Philippines | `ph_tin ` | Philippines Tax Identification Number |
877
+ # # | Poland | `eu_vat` | European VAT Number |
878
+ # # | Portugal | `eu_vat` | European VAT Number |
879
+ # # | Romania | `eu_vat` | European VAT Number |
880
+ # # | Romania | `ro_tin` | Romanian Tax ID Number |
881
+ # # | Russia | `ru_inn` | Russian INN |
882
+ # # | Russia | `ru_kpp` | Russian KPP |
883
+ # # | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
884
+ # # | Serbia | `rs_pib` | Serbian PIB Number |
885
+ # # | Singapore | `sg_gst` | Singaporean GST |
886
+ # # | Singapore | `sg_uen` | Singaporean UEN |
887
+ # # | Slovakia | `eu_vat` | European VAT Number |
888
+ # # | Slovenia | `eu_vat` | European VAT Number |
889
+ # # | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
890
+ # # | South Africa | `za_vat` | South African VAT Number |
891
+ # # | South Korea | `kr_brn` | Korean BRN |
892
+ # # | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
893
+ # # | Spain | `eu_vat` | European VAT Number |
894
+ # # | Sweden | `eu_vat` | European VAT Number |
895
+ # # | Switzerland | `ch_vat` | Switzerland VAT Number |
896
+ # # | Taiwan | `tw_vat` | Taiwanese VAT |
897
+ # # | Thailand | `th_vat` | Thai VAT |
898
+ # # | Turkey | `tr_tin` | Turkish Tax Identification Number |
899
+ # # | Ukraine | `ua_vat` | Ukrainian VAT |
900
+ # # | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
901
+ # # | United Kingdom | `eu_vat` | Northern Ireland VAT Number |
902
+ # # | United Kingdom | `gb_vat` | United Kingdom VAT Number |
903
+ # # | United States | `us_ein` | United States EIN |
904
+ # # | Uruguay | `uy_ruc` | Uruguayan RUC Number |
905
+ # # | Venezuela | `ve_rif` | Venezuelan RIF Number |
906
+ # # | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
907
+ # #
908
+ # # @param country [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country]
909
+ # # @param type [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type]
910
+ # # @param value [String]
911
+ # #
912
+ # def initialize(country:, type:, value:, **) = super
913
+
914
+ # def initialize: (Hash | Orb::BaseModel) -> void
915
+
916
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID#country
917
+ module Country
918
+ extend Orb::Enum
919
+
920
+ AD = :AD
921
+ AE = :AE
922
+ AR = :AR
923
+ AT = :AT
924
+ AU = :AU
925
+ BE = :BE
926
+ BG = :BG
927
+ BH = :BH
928
+ BO = :BO
929
+ BR = :BR
930
+ CA = :CA
931
+ CH = :CH
932
+ CL = :CL
933
+ CN = :CN
934
+ CO = :CO
935
+ CR = :CR
936
+ CY = :CY
937
+ CZ = :CZ
938
+ DE = :DE
939
+ DK = :DK
940
+ EE = :EE
941
+ DO = :DO
942
+ EC = :EC
943
+ EG = :EG
944
+ ES = :ES
945
+ EU = :EU
946
+ FI = :FI
947
+ FR = :FR
948
+ GB = :GB
949
+ GE = :GE
950
+ GR = :GR
951
+ HK = :HK
952
+ HR = :HR
953
+ HU = :HU
954
+ ID = :ID
955
+ IE = :IE
956
+ IL = :IL
957
+ IN = :IN
958
+ IS = :IS
959
+ IT = :IT
960
+ JP = :JP
961
+ KE = :KE
962
+ KR = :KR
963
+ KZ = :KZ
964
+ LI = :LI
965
+ LT = :LT
966
+ LU = :LU
967
+ LV = :LV
968
+ MT = :MT
969
+ MX = :MX
970
+ MY = :MY
971
+ NG = :NG
972
+ NL = :NL
973
+ NO = :NO
974
+ NZ = :NZ
975
+ OM = :OM
976
+ PE = :PE
977
+ PH = :PH
978
+ PL = :PL
979
+ PT = :PT
980
+ RO = :RO
981
+ RS = :RS
982
+ RU = :RU
983
+ SA = :SA
984
+ SE = :SE
985
+ SG = :SG
986
+ SI = :SI
987
+ SK = :SK
988
+ SV = :SV
989
+ TH = :TH
990
+ TR = :TR
991
+ TW = :TW
992
+ UA = :UA
993
+ US = :US
994
+ UY = :UY
995
+ VE = :VE
996
+ VN = :VN
997
+ ZA = :ZA
998
+
999
+ finalize!
1000
+
1001
+ # @!parse
1002
+ # # @return [Array<Symbol>]
1003
+ # def self.values; end
1004
+ end
1005
+
1006
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID#type
1007
+ module Type
1008
+ extend Orb::Enum
1009
+
1010
+ AD_NRT = :ad_nrt
1011
+ AE_TRN = :ae_trn
1012
+ AR_CUIT = :ar_cuit
1013
+ EU_VAT = :eu_vat
1014
+ AU_ABN = :au_abn
1015
+ AU_ARN = :au_arn
1016
+ BG_UIC = :bg_uic
1017
+ BH_VAT = :bh_vat
1018
+ BO_TIN = :bo_tin
1019
+ BR_CNPJ = :br_cnpj
1020
+ BR_CPF = :br_cpf
1021
+ CA_BN = :ca_bn
1022
+ CA_GST_HST = :ca_gst_hst
1023
+ CA_PST_BC = :ca_pst_bc
1024
+ CA_PST_MB = :ca_pst_mb
1025
+ CA_PST_SK = :ca_pst_sk
1026
+ CA_QST = :ca_qst
1027
+ CH_VAT = :ch_vat
1028
+ CL_TIN = :cl_tin
1029
+ CN_TIN = :cn_tin
1030
+ CO_NIT = :co_nit
1031
+ CR_TIN = :cr_tin
1032
+ DO_RCN = :do_rcn
1033
+ EC_RUC = :ec_ruc
1034
+ EG_TIN = :eg_tin
1035
+ ES_CIF = :es_cif
1036
+ EU_OSS_VAT = :eu_oss_vat
1037
+ GB_VAT = :gb_vat
1038
+ GE_VAT = :ge_vat
1039
+ HK_BR = :hk_br
1040
+ HU_TIN = :hu_tin
1041
+ ID_NPWP = :id_npwp
1042
+ IL_VAT = :il_vat
1043
+ IN_GST = :in_gst
1044
+ IS_VAT = :is_vat
1045
+ JP_CN = :jp_cn
1046
+ JP_RN = :jp_rn
1047
+ JP_TRN = :jp_trn
1048
+ KE_PIN = :ke_pin
1049
+ KR_BRN = :kr_brn
1050
+ KZ_BIN = :kz_bin
1051
+ LI_UID = :li_uid
1052
+ MX_RFC = :mx_rfc
1053
+ MY_FRP = :my_frp
1054
+ MY_ITN = :my_itn
1055
+ MY_SST = :my_sst
1056
+ NG_TIN = :ng_tin
1057
+ NO_VAT = :no_vat
1058
+ NO_VOEC = :no_voec
1059
+ NZ_GST = :nz_gst
1060
+ OM_VAT = :om_vat
1061
+ PE_RUC = :pe_ruc
1062
+ PH_TIN = :ph_tin
1063
+ RO_TIN = :ro_tin
1064
+ RS_PIB = :rs_pib
1065
+ RU_INN = :ru_inn
1066
+ RU_KPP = :ru_kpp
1067
+ SA_VAT = :sa_vat
1068
+ SG_GST = :sg_gst
1069
+ SG_UEN = :sg_uen
1070
+ SI_TIN = :si_tin
1071
+ SV_NIT = :sv_nit
1072
+ TH_VAT = :th_vat
1073
+ TR_TIN = :tr_tin
1074
+ TW_VAT = :tw_vat
1075
+ UA_VAT = :ua_vat
1076
+ US_EIN = :us_ein
1077
+ UY_RUC = :uy_ruc
1078
+ VE_RIF = :ve_rif
1079
+ VN_TIN = :vn_tin
1080
+ ZA_VAT = :za_vat
1081
+
1082
+ finalize!
1083
+
1084
+ # @!parse
1085
+ # # @return [Array<Symbol>]
1086
+ # def self.values; end
1087
+ end
1088
+ end
1089
+
1090
+ # @see Orb::Models::InvoiceFetchUpcomingResponse#invoice_source
1091
+ module InvoiceSource
1092
+ extend Orb::Enum
1093
+
1094
+ SUBSCRIPTION = :subscription
1095
+ PARTIAL = :partial
1096
+ ONE_OFF = :one_off
1097
+
1098
+ finalize!
1099
+
1100
+ # @!parse
1101
+ # # @return [Array<Symbol>]
1102
+ # def self.values; end
1103
+ end
1104
+
1105
+ class LineItem < Orb::BaseModel
1106
+ # @!attribute id
1107
+ # A unique ID for this line item.
1108
+ #
1109
+ # @return [String]
1110
+ required :id, String
1111
+
1112
+ # @!attribute adjusted_subtotal
1113
+ # The line amount after any adjustments and before overage conversion, credits and
1114
+ # partial invoicing.
1115
+ #
1116
+ # @return [String]
1117
+ required :adjusted_subtotal, String
1118
+
1119
+ # @!attribute adjustments
1120
+ # All adjustments applied to the line item in the order they were applied based on
1121
+ # invoice calculations (ie. usage discounts -> amount discounts -> percentage
1122
+ # discounts -> minimums -> maximums).
1123
+ #
1124
+ # @return [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment>]
1125
+ required :adjustments,
1126
+ -> { Orb::ArrayOf[union: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment] }
1127
+
1128
+ # @!attribute amount
1129
+ # The final amount for a line item after all adjustments and pre paid credits have
1130
+ # been applied.
1131
+ #
1132
+ # @return [String]
1133
+ required :amount, String
1134
+
1135
+ # @!attribute credits_applied
1136
+ # The number of prepaid credits applied.
1137
+ #
1138
+ # @return [String]
1139
+ required :credits_applied, String
1140
+
1141
+ # @!attribute discount
1142
+ #
1143
+ # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
1144
+ required :discount, union: -> { Orb::Models::Discount }, nil?: true
1145
+
1146
+ # @!attribute end_date
1147
+ # The end date of the range of time applied for this line item's price.
1148
+ #
1149
+ # @return [Time]
1150
+ required :end_date, Time
1151
+
1152
+ # @!attribute filter
1153
+ # An additional filter that was used to calculate the usage for this line item.
1154
+ #
1155
+ # @return [String, nil]
1156
+ required :filter, String, nil?: true
1157
+
1158
+ # @!attribute grouping
1159
+ # [DEPRECATED] For configured prices that are split by a grouping key, this will
1160
+ # be populated with the key and a value. The `amount` and `subtotal` will be the
1161
+ # values for this particular grouping.
1162
+ #
1163
+ # @return [String, nil]
1164
+ required :grouping, String, nil?: true
1165
+
1166
+ # @!attribute maximum
1167
+ # This field is deprecated in favor of `adjustments`.
1168
+ #
1169
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum, nil]
1170
+ required :maximum, -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum }, nil?: true
1171
+
1172
+ # @!attribute maximum_amount
1173
+ # This field is deprecated in favor of `adjustments`.
1174
+ #
1175
+ # @return [String, nil]
1176
+ required :maximum_amount, String, nil?: true
1177
+
1178
+ # @!attribute minimum
1179
+ # This field is deprecated in favor of `adjustments`.
1180
+ #
1181
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum, nil]
1182
+ required :minimum, -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum }, nil?: true
1183
+
1184
+ # @!attribute minimum_amount
1185
+ # This field is deprecated in favor of `adjustments`.
1186
+ #
1187
+ # @return [String, nil]
1188
+ required :minimum_amount, String, nil?: true
1189
+
1190
+ # @!attribute name
1191
+ # The name of the price associated with this line item.
1192
+ #
1193
+ # @return [String]
1194
+ required :name, String
1195
+
1196
+ # @!attribute partially_invoiced_amount
1197
+ # Any amount applied from a partial invoice
1198
+ #
1199
+ # @return [String]
1200
+ required :partially_invoiced_amount, String
1201
+
1202
+ # @!attribute price
1203
+ # The Price resource represents a price that can be billed on a subscription,
1204
+ # resulting in a charge on an invoice in the form of an invoice line item. Prices
1205
+ # take a quantity and determine an amount to bill.
1206
+ #
1207
+ # Orb supports a few different pricing models out of the box. Each of these models
1208
+ # is serialized differently in a given Price object. The model_type field
1209
+ # determines the key for the configuration object that is present.
1210
+ #
1211
+ # For more on the types of prices, see
1212
+ # [the core concepts documentation](/core-concepts#plan-and-price)
1213
+ #
1214
+ # @return [Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, Orb::Models::Price::TieredBpsPrice, Orb::Models::Price::BpsPrice, Orb::Models::Price::BulkBpsPrice, Orb::Models::Price::BulkPrice, Orb::Models::Price::ThresholdTotalAmountPrice, Orb::Models::Price::TieredPackagePrice, Orb::Models::Price::GroupedTieredPrice, Orb::Models::Price::TieredWithMinimumPrice, Orb::Models::Price::TieredPackageWithMinimumPrice, Orb::Models::Price::PackageWithAllocationPrice, Orb::Models::Price::UnitWithPercentPrice, Orb::Models::Price::MatrixWithAllocationPrice, Orb::Models::Price::TieredWithProrationPrice, Orb::Models::Price::UnitWithProrationPrice, Orb::Models::Price::GroupedAllocationPrice, Orb::Models::Price::GroupedWithProratedMinimumPrice, Orb::Models::Price::GroupedWithMeteredMinimumPrice, Orb::Models::Price::MatrixWithDisplayNamePrice, Orb::Models::Price::BulkWithProrationPrice, Orb::Models::Price::GroupedTieredPackagePrice, Orb::Models::Price::MaxGroupTieredPackagePrice, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice, nil]
1215
+ required :price, union: -> { Orb::Models::Price }, nil?: true
1216
+
1217
+ # @!attribute quantity
1218
+ # Either the fixed fee quantity or the usage during the service period.
1219
+ #
1220
+ # @return [Float]
1221
+ required :quantity, Float
1222
+
1223
+ # @!attribute start_date
1224
+ # The start date of the range of time applied for this line item's price.
1225
+ #
1226
+ # @return [Time]
1227
+ required :start_date, Time
1228
+
1229
+ # @!attribute sub_line_items
1230
+ # For complex pricing structures, the line item can be broken down further in
1231
+ # `sub_line_items`.
1232
+ #
1233
+ # @return [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem>]
1234
+ required :sub_line_items,
1235
+ -> { Orb::ArrayOf[union: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem] }
1236
+
1237
+ # @!attribute subtotal
1238
+ # The line amount before before any adjustments.
1239
+ #
1240
+ # @return [String]
1241
+ required :subtotal, String
1242
+
1243
+ # @!attribute tax_amounts
1244
+ # An array of tax rates and their incurred tax amounts. Empty if no tax
1245
+ # integration is configured.
1246
+ #
1247
+ # @return [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount>]
1248
+ required :tax_amounts, -> { Orb::ArrayOf[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] }
1249
+
1250
+ # @!attribute usage_customer_ids
1251
+ # A list of customer ids that were used to calculate the usage for this line item.
1252
+ #
1253
+ # @return [Array<String>, nil]
1254
+ required :usage_customer_ids, Orb::ArrayOf[String], nil?: true
1255
+
1256
+ # @!parse
1257
+ # # @param id [String]
1258
+ # # @param adjusted_subtotal [String]
1259
+ # # @param adjustments [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment>]
1260
+ # # @param amount [String]
1261
+ # # @param credits_applied [String]
1262
+ # # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil]
1263
+ # # @param end_date [Time]
1264
+ # # @param filter [String, nil]
1265
+ # # @param grouping [String, nil]
1266
+ # # @param maximum [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum, nil]
1267
+ # # @param maximum_amount [String, nil]
1268
+ # # @param minimum [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum, nil]
1269
+ # # @param minimum_amount [String, nil]
1270
+ # # @param name [String]
1271
+ # # @param partially_invoiced_amount [String]
1272
+ # # @param price [Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, Orb::Models::Price::TieredBpsPrice, Orb::Models::Price::BpsPrice, Orb::Models::Price::BulkBpsPrice, Orb::Models::Price::BulkPrice, Orb::Models::Price::ThresholdTotalAmountPrice, Orb::Models::Price::TieredPackagePrice, Orb::Models::Price::GroupedTieredPrice, Orb::Models::Price::TieredWithMinimumPrice, Orb::Models::Price::TieredPackageWithMinimumPrice, Orb::Models::Price::PackageWithAllocationPrice, Orb::Models::Price::UnitWithPercentPrice, Orb::Models::Price::MatrixWithAllocationPrice, Orb::Models::Price::TieredWithProrationPrice, Orb::Models::Price::UnitWithProrationPrice, Orb::Models::Price::GroupedAllocationPrice, Orb::Models::Price::GroupedWithProratedMinimumPrice, Orb::Models::Price::GroupedWithMeteredMinimumPrice, Orb::Models::Price::MatrixWithDisplayNamePrice, Orb::Models::Price::BulkWithProrationPrice, Orb::Models::Price::GroupedTieredPackagePrice, Orb::Models::Price::MaxGroupTieredPackagePrice, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice, nil]
1273
+ # # @param quantity [Float]
1274
+ # # @param start_date [Time]
1275
+ # # @param sub_line_items [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem>]
1276
+ # # @param subtotal [String]
1277
+ # # @param tax_amounts [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount>]
1278
+ # # @param usage_customer_ids [Array<String>, nil]
1279
+ # #
1280
+ # def initialize(
1281
+ # id:,
1282
+ # adjusted_subtotal:,
1283
+ # adjustments:,
1284
+ # amount:,
1285
+ # credits_applied:,
1286
+ # discount:,
1287
+ # end_date:,
1288
+ # filter:,
1289
+ # grouping:,
1290
+ # maximum:,
1291
+ # maximum_amount:,
1292
+ # minimum:,
1293
+ # minimum_amount:,
1294
+ # name:,
1295
+ # partially_invoiced_amount:,
1296
+ # price:,
1297
+ # quantity:,
1298
+ # start_date:,
1299
+ # sub_line_items:,
1300
+ # subtotal:,
1301
+ # tax_amounts:,
1302
+ # usage_customer_ids:,
1303
+ # **
1304
+ # )
1305
+ # super
1306
+ # end
1307
+
1308
+ # def initialize: (Hash | Orb::BaseModel) -> void
1309
+
1310
+ module Adjustment
1311
+ extend Orb::Union
1312
+
1313
+ discriminator :adjustment_type
1314
+
1315
+ variant :usage_discount,
1316
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment }
1317
+
1318
+ variant :amount_discount,
1319
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment }
1320
+
1321
+ variant :percentage_discount,
1322
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment }
1323
+
1324
+ variant :minimum,
1325
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment }
1326
+
1327
+ variant :maximum,
1328
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment }
1329
+
1330
+ class MonetaryUsageDiscountAdjustment < Orb::BaseModel
1331
+ # @!attribute id
1332
+ #
1333
+ # @return [String]
1334
+ required :id, String
1335
+
1336
+ # @!attribute adjustment_type
1337
+ #
1338
+ # @return [Symbol, :usage_discount]
1339
+ required :adjustment_type, const: :usage_discount
1340
+
1341
+ # @!attribute amount
1342
+ # The value applied by an adjustment.
1343
+ #
1344
+ # @return [String]
1345
+ required :amount, String
1346
+
1347
+ # @!attribute applies_to_price_ids
1348
+ # The price IDs that this adjustment applies to.
1349
+ #
1350
+ # @return [Array<String>]
1351
+ required :applies_to_price_ids, Orb::ArrayOf[String]
1352
+
1353
+ # @!attribute is_invoice_level
1354
+ # True for adjustments that apply to an entire invocice, false for adjustments
1355
+ # that apply to only one price.
1356
+ #
1357
+ # @return [Boolean]
1358
+ required :is_invoice_level, Orb::BooleanModel
1359
+
1360
+ # @!attribute reason
1361
+ # The reason for the adjustment.
1362
+ #
1363
+ # @return [String, nil]
1364
+ required :reason, String, nil?: true
1365
+
1366
+ # @!attribute usage_discount
1367
+ # The number of usage units by which to discount the price this adjustment applies
1368
+ # to in a given billing period.
1369
+ #
1370
+ # @return [Float]
1371
+ required :usage_discount, Float
1372
+
1373
+ # @!parse
1374
+ # # @param id [String]
1375
+ # # @param amount [String]
1376
+ # # @param applies_to_price_ids [Array<String>]
1377
+ # # @param is_invoice_level [Boolean]
1378
+ # # @param reason [String, nil]
1379
+ # # @param usage_discount [Float]
1380
+ # # @param adjustment_type [Symbol, :usage_discount]
1381
+ # #
1382
+ # def initialize(
1383
+ # id:,
1384
+ # amount:,
1385
+ # applies_to_price_ids:,
1386
+ # is_invoice_level:,
1387
+ # reason:,
1388
+ # usage_discount:,
1389
+ # adjustment_type: :usage_discount,
1390
+ # **
1391
+ # )
1392
+ # super
1393
+ # end
1394
+
1395
+ # def initialize: (Hash | Orb::BaseModel) -> void
1396
+ end
1397
+
1398
+ class MonetaryAmountDiscountAdjustment < Orb::BaseModel
1399
+ # @!attribute id
1400
+ #
1401
+ # @return [String]
1402
+ required :id, String
1403
+
1404
+ # @!attribute adjustment_type
1405
+ #
1406
+ # @return [Symbol, :amount_discount]
1407
+ required :adjustment_type, const: :amount_discount
1408
+
1409
+ # @!attribute amount
1410
+ # The value applied by an adjustment.
1411
+ #
1412
+ # @return [String]
1413
+ required :amount, String
1414
+
1415
+ # @!attribute amount_discount
1416
+ # The amount by which to discount the prices this adjustment applies to in a given
1417
+ # billing period.
1418
+ #
1419
+ # @return [String]
1420
+ required :amount_discount, String
1421
+
1422
+ # @!attribute applies_to_price_ids
1423
+ # The price IDs that this adjustment applies to.
1424
+ #
1425
+ # @return [Array<String>]
1426
+ required :applies_to_price_ids, Orb::ArrayOf[String]
1427
+
1428
+ # @!attribute is_invoice_level
1429
+ # True for adjustments that apply to an entire invocice, false for adjustments
1430
+ # that apply to only one price.
1431
+ #
1432
+ # @return [Boolean]
1433
+ required :is_invoice_level, Orb::BooleanModel
1434
+
1435
+ # @!attribute reason
1436
+ # The reason for the adjustment.
1437
+ #
1438
+ # @return [String, nil]
1439
+ required :reason, String, nil?: true
1440
+
1441
+ # @!parse
1442
+ # # @param id [String]
1443
+ # # @param amount [String]
1444
+ # # @param amount_discount [String]
1445
+ # # @param applies_to_price_ids [Array<String>]
1446
+ # # @param is_invoice_level [Boolean]
1447
+ # # @param reason [String, nil]
1448
+ # # @param adjustment_type [Symbol, :amount_discount]
1449
+ # #
1450
+ # def initialize(
1451
+ # id:,
1452
+ # amount:,
1453
+ # amount_discount:,
1454
+ # applies_to_price_ids:,
1455
+ # is_invoice_level:,
1456
+ # reason:,
1457
+ # adjustment_type: :amount_discount,
1458
+ # **
1459
+ # )
1460
+ # super
1461
+ # end
1462
+
1463
+ # def initialize: (Hash | Orb::BaseModel) -> void
1464
+ end
1465
+
1466
+ class MonetaryPercentageDiscountAdjustment < Orb::BaseModel
1467
+ # @!attribute id
1468
+ #
1469
+ # @return [String]
1470
+ required :id, String
1471
+
1472
+ # @!attribute adjustment_type
1473
+ #
1474
+ # @return [Symbol, :percentage_discount]
1475
+ required :adjustment_type, const: :percentage_discount
1476
+
1477
+ # @!attribute amount
1478
+ # The value applied by an adjustment.
1479
+ #
1480
+ # @return [String]
1481
+ required :amount, String
1482
+
1483
+ # @!attribute applies_to_price_ids
1484
+ # The price IDs that this adjustment applies to.
1485
+ #
1486
+ # @return [Array<String>]
1487
+ required :applies_to_price_ids, Orb::ArrayOf[String]
1488
+
1489
+ # @!attribute is_invoice_level
1490
+ # True for adjustments that apply to an entire invocice, false for adjustments
1491
+ # that apply to only one price.
1492
+ #
1493
+ # @return [Boolean]
1494
+ required :is_invoice_level, Orb::BooleanModel
1495
+
1496
+ # @!attribute percentage_discount
1497
+ # The percentage (as a value between 0 and 1) by which to discount the price
1498
+ # intervals this adjustment applies to in a given billing period.
1499
+ #
1500
+ # @return [Float]
1501
+ required :percentage_discount, Float
1502
+
1503
+ # @!attribute reason
1504
+ # The reason for the adjustment.
1505
+ #
1506
+ # @return [String, nil]
1507
+ required :reason, String, nil?: true
1508
+
1509
+ # @!parse
1510
+ # # @param id [String]
1511
+ # # @param amount [String]
1512
+ # # @param applies_to_price_ids [Array<String>]
1513
+ # # @param is_invoice_level [Boolean]
1514
+ # # @param percentage_discount [Float]
1515
+ # # @param reason [String, nil]
1516
+ # # @param adjustment_type [Symbol, :percentage_discount]
1517
+ # #
1518
+ # def initialize(
1519
+ # id:,
1520
+ # amount:,
1521
+ # applies_to_price_ids:,
1522
+ # is_invoice_level:,
1523
+ # percentage_discount:,
1524
+ # reason:,
1525
+ # adjustment_type: :percentage_discount,
1526
+ # **
1527
+ # )
1528
+ # super
1529
+ # end
1530
+
1531
+ # def initialize: (Hash | Orb::BaseModel) -> void
1532
+ end
1533
+
1534
+ class MonetaryMinimumAdjustment < Orb::BaseModel
1535
+ # @!attribute id
1536
+ #
1537
+ # @return [String]
1538
+ required :id, String
1539
+
1540
+ # @!attribute adjustment_type
1541
+ #
1542
+ # @return [Symbol, :minimum]
1543
+ required :adjustment_type, const: :minimum
1544
+
1545
+ # @!attribute amount
1546
+ # The value applied by an adjustment.
1547
+ #
1548
+ # @return [String]
1549
+ required :amount, String
1550
+
1551
+ # @!attribute applies_to_price_ids
1552
+ # The price IDs that this adjustment applies to.
1553
+ #
1554
+ # @return [Array<String>]
1555
+ required :applies_to_price_ids, Orb::ArrayOf[String]
1556
+
1557
+ # @!attribute is_invoice_level
1558
+ # True for adjustments that apply to an entire invocice, false for adjustments
1559
+ # that apply to only one price.
1560
+ #
1561
+ # @return [Boolean]
1562
+ required :is_invoice_level, Orb::BooleanModel
1563
+
1564
+ # @!attribute item_id
1565
+ # The item ID that revenue from this minimum will be attributed to.
1566
+ #
1567
+ # @return [String]
1568
+ required :item_id, String
1569
+
1570
+ # @!attribute minimum_amount
1571
+ # The minimum amount to charge in a given billing period for the prices this
1572
+ # adjustment applies to.
1573
+ #
1574
+ # @return [String]
1575
+ required :minimum_amount, String
1576
+
1577
+ # @!attribute reason
1578
+ # The reason for the adjustment.
1579
+ #
1580
+ # @return [String, nil]
1581
+ required :reason, String, nil?: true
1582
+
1583
+ # @!parse
1584
+ # # @param id [String]
1585
+ # # @param amount [String]
1586
+ # # @param applies_to_price_ids [Array<String>]
1587
+ # # @param is_invoice_level [Boolean]
1588
+ # # @param item_id [String]
1589
+ # # @param minimum_amount [String]
1590
+ # # @param reason [String, nil]
1591
+ # # @param adjustment_type [Symbol, :minimum]
1592
+ # #
1593
+ # def initialize(
1594
+ # id:,
1595
+ # amount:,
1596
+ # applies_to_price_ids:,
1597
+ # is_invoice_level:,
1598
+ # item_id:,
1599
+ # minimum_amount:,
1600
+ # reason:,
1601
+ # adjustment_type: :minimum,
1602
+ # **
1603
+ # )
1604
+ # super
1605
+ # end
1606
+
1607
+ # def initialize: (Hash | Orb::BaseModel) -> void
1608
+ end
1609
+
1610
+ class MonetaryMaximumAdjustment < Orb::BaseModel
1611
+ # @!attribute id
1612
+ #
1613
+ # @return [String]
1614
+ required :id, String
1615
+
1616
+ # @!attribute adjustment_type
1617
+ #
1618
+ # @return [Symbol, :maximum]
1619
+ required :adjustment_type, const: :maximum
1620
+
1621
+ # @!attribute amount
1622
+ # The value applied by an adjustment.
1623
+ #
1624
+ # @return [String]
1625
+ required :amount, String
1626
+
1627
+ # @!attribute applies_to_price_ids
1628
+ # The price IDs that this adjustment applies to.
1629
+ #
1630
+ # @return [Array<String>]
1631
+ required :applies_to_price_ids, Orb::ArrayOf[String]
1632
+
1633
+ # @!attribute is_invoice_level
1634
+ # True for adjustments that apply to an entire invocice, false for adjustments
1635
+ # that apply to only one price.
1636
+ #
1637
+ # @return [Boolean]
1638
+ required :is_invoice_level, Orb::BooleanModel
1639
+
1640
+ # @!attribute maximum_amount
1641
+ # The maximum amount to charge in a given billing period for the prices this
1642
+ # adjustment applies to.
1643
+ #
1644
+ # @return [String]
1645
+ required :maximum_amount, String
1646
+
1647
+ # @!attribute reason
1648
+ # The reason for the adjustment.
1649
+ #
1650
+ # @return [String, nil]
1651
+ required :reason, String, nil?: true
1652
+
1653
+ # @!parse
1654
+ # # @param id [String]
1655
+ # # @param amount [String]
1656
+ # # @param applies_to_price_ids [Array<String>]
1657
+ # # @param is_invoice_level [Boolean]
1658
+ # # @param maximum_amount [String]
1659
+ # # @param reason [String, nil]
1660
+ # # @param adjustment_type [Symbol, :maximum]
1661
+ # #
1662
+ # def initialize(
1663
+ # id:,
1664
+ # amount:,
1665
+ # applies_to_price_ids:,
1666
+ # is_invoice_level:,
1667
+ # maximum_amount:,
1668
+ # reason:,
1669
+ # adjustment_type: :maximum,
1670
+ # **
1671
+ # )
1672
+ # super
1673
+ # end
1674
+
1675
+ # def initialize: (Hash | Orb::BaseModel) -> void
1676
+ end
1677
+
1678
+ # @!parse
1679
+ # # @return [Array(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment)]
1680
+ # def self.variants; end
1681
+ end
1682
+
1683
+ # @deprecated
1684
+ #
1685
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::LineItem#maximum
1686
+ class Maximum < Orb::BaseModel
1687
+ # @!attribute applies_to_price_ids
1688
+ # List of price_ids that this maximum amount applies to. For plan/plan phase
1689
+ # maximums, this can be a subset of prices.
1690
+ #
1691
+ # @return [Array<String>]
1692
+ required :applies_to_price_ids, Orb::ArrayOf[String]
1693
+
1694
+ # @!attribute maximum_amount
1695
+ # Maximum amount applied
1696
+ #
1697
+ # @return [String]
1698
+ required :maximum_amount, String
1699
+
1700
+ # @!parse
1701
+ # # This field is deprecated in favor of `adjustments`.
1702
+ # #
1703
+ # # @param applies_to_price_ids [Array<String>]
1704
+ # # @param maximum_amount [String]
1705
+ # #
1706
+ # def initialize(applies_to_price_ids:, maximum_amount:, **) = super
1707
+
1708
+ # def initialize: (Hash | Orb::BaseModel) -> void
1709
+ end
1710
+
1711
+ # @deprecated
1712
+ #
1713
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::LineItem#minimum
1714
+ class Minimum < Orb::BaseModel
1715
+ # @!attribute applies_to_price_ids
1716
+ # List of price_ids that this minimum amount applies to. For plan/plan phase
1717
+ # minimums, this can be a subset of prices.
1718
+ #
1719
+ # @return [Array<String>]
1720
+ required :applies_to_price_ids, Orb::ArrayOf[String]
1721
+
1722
+ # @!attribute minimum_amount
1723
+ # Minimum amount applied
1724
+ #
1725
+ # @return [String]
1726
+ required :minimum_amount, String
1727
+
1728
+ # @!parse
1729
+ # # This field is deprecated in favor of `adjustments`.
1730
+ # #
1731
+ # # @param applies_to_price_ids [Array<String>]
1732
+ # # @param minimum_amount [String]
1733
+ # #
1734
+ # def initialize(applies_to_price_ids:, minimum_amount:, **) = super
1735
+
1736
+ # def initialize: (Hash | Orb::BaseModel) -> void
1737
+ end
1738
+
1739
+ module SubLineItem
1740
+ extend Orb::Union
1741
+
1742
+ discriminator :type
1743
+
1744
+ variant :matrix,
1745
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem }
1746
+
1747
+ variant :tier, -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem }
1748
+
1749
+ variant :"'null'",
1750
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem }
1751
+
1752
+ class MatrixSubLineItem < Orb::BaseModel
1753
+ # @!attribute amount
1754
+ # The total amount for this sub line item.
1755
+ #
1756
+ # @return [String]
1757
+ required :amount, String
1758
+
1759
+ # @!attribute grouping
1760
+ #
1761
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping, nil]
1762
+ required :grouping,
1763
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping },
1764
+ nil?: true
1765
+
1766
+ # @!attribute matrix_config
1767
+ #
1768
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig]
1769
+ required :matrix_config,
1770
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig }
1771
+
1772
+ # @!attribute name
1773
+ #
1774
+ # @return [String]
1775
+ required :name, String
1776
+
1777
+ # @!attribute quantity
1778
+ #
1779
+ # @return [Float]
1780
+ required :quantity, Float
1781
+
1782
+ # @!attribute type
1783
+ #
1784
+ # @return [Symbol, :matrix]
1785
+ required :type, const: :matrix
1786
+
1787
+ # @!parse
1788
+ # # @param amount [String]
1789
+ # # @param grouping [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping, nil]
1790
+ # # @param matrix_config [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig]
1791
+ # # @param name [String]
1792
+ # # @param quantity [Float]
1793
+ # # @param type [Symbol, :matrix]
1794
+ # #
1795
+ # def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix, **) = super
1796
+
1797
+ # def initialize: (Hash | Orb::BaseModel) -> void
1798
+
1799
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem#grouping
1800
+ class Grouping < Orb::BaseModel
1801
+ # @!attribute key
1802
+ #
1803
+ # @return [String]
1804
+ required :key, String
1805
+
1806
+ # @!attribute value
1807
+ # No value indicates the default group
1808
+ #
1809
+ # @return [String, nil]
1810
+ required :value, String, nil?: true
1811
+
1812
+ # @!parse
1813
+ # # @param key [String]
1814
+ # # @param value [String, nil]
1815
+ # #
1816
+ # def initialize(key:, value:, **) = super
1817
+
1818
+ # def initialize: (Hash | Orb::BaseModel) -> void
1819
+ end
1820
+
1821
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem#matrix_config
1822
+ class MatrixConfig < Orb::BaseModel
1823
+ # @!attribute dimension_values
1824
+ # The ordered dimension values for this line item.
1825
+ #
1826
+ # @return [Array<String, nil>]
1827
+ required :dimension_values, Orb::ArrayOf[String, nil?: true]
1828
+
1829
+ # @!parse
1830
+ # # @param dimension_values [Array<String, nil>]
1831
+ # #
1832
+ # def initialize(dimension_values:, **) = super
1833
+
1834
+ # def initialize: (Hash | Orb::BaseModel) -> void
1835
+ end
1836
+ end
1837
+
1838
+ class TierSubLineItem < Orb::BaseModel
1839
+ # @!attribute amount
1840
+ # The total amount for this sub line item.
1841
+ #
1842
+ # @return [String]
1843
+ required :amount, String
1844
+
1845
+ # @!attribute grouping
1846
+ #
1847
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping, nil]
1848
+ required :grouping,
1849
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping },
1850
+ nil?: true
1851
+
1852
+ # @!attribute name
1853
+ #
1854
+ # @return [String]
1855
+ required :name, String
1856
+
1857
+ # @!attribute quantity
1858
+ #
1859
+ # @return [Float]
1860
+ required :quantity, Float
1861
+
1862
+ # @!attribute tier_config
1863
+ #
1864
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig]
1865
+ required :tier_config,
1866
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig }
1867
+
1868
+ # @!attribute type
1869
+ #
1870
+ # @return [Symbol, :tier]
1871
+ required :type, const: :tier
1872
+
1873
+ # @!parse
1874
+ # # @param amount [String]
1875
+ # # @param grouping [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping, nil]
1876
+ # # @param name [String]
1877
+ # # @param quantity [Float]
1878
+ # # @param tier_config [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig]
1879
+ # # @param type [Symbol, :tier]
1880
+ # #
1881
+ # def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier, **) = super
1882
+
1883
+ # def initialize: (Hash | Orb::BaseModel) -> void
1884
+
1885
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem#grouping
1886
+ class Grouping < Orb::BaseModel
1887
+ # @!attribute key
1888
+ #
1889
+ # @return [String]
1890
+ required :key, String
1891
+
1892
+ # @!attribute value
1893
+ # No value indicates the default group
1894
+ #
1895
+ # @return [String, nil]
1896
+ required :value, String, nil?: true
1897
+
1898
+ # @!parse
1899
+ # # @param key [String]
1900
+ # # @param value [String, nil]
1901
+ # #
1902
+ # def initialize(key:, value:, **) = super
1903
+
1904
+ # def initialize: (Hash | Orb::BaseModel) -> void
1905
+ end
1906
+
1907
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem#tier_config
1908
+ class TierConfig < Orb::BaseModel
1909
+ # @!attribute first_unit
1910
+ #
1911
+ # @return [Float]
1912
+ required :first_unit, Float
1913
+
1914
+ # @!attribute last_unit
1915
+ #
1916
+ # @return [Float, nil]
1917
+ required :last_unit, Float, nil?: true
1918
+
1919
+ # @!attribute unit_amount
1920
+ #
1921
+ # @return [String]
1922
+ required :unit_amount, String
1923
+
1924
+ # @!parse
1925
+ # # @param first_unit [Float]
1926
+ # # @param last_unit [Float, nil]
1927
+ # # @param unit_amount [String]
1928
+ # #
1929
+ # def initialize(first_unit:, last_unit:, unit_amount:, **) = super
1930
+
1931
+ # def initialize: (Hash | Orb::BaseModel) -> void
1932
+ end
1933
+ end
1934
+
1935
+ class OtherSubLineItem < Orb::BaseModel
1936
+ # @!attribute amount
1937
+ # The total amount for this sub line item.
1938
+ #
1939
+ # @return [String]
1940
+ required :amount, String
1941
+
1942
+ # @!attribute grouping
1943
+ #
1944
+ # @return [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping, nil]
1945
+ required :grouping,
1946
+ -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping },
1947
+ nil?: true
1948
+
1949
+ # @!attribute name
1950
+ #
1951
+ # @return [String]
1952
+ required :name, String
1953
+
1954
+ # @!attribute quantity
1955
+ #
1956
+ # @return [Float]
1957
+ required :quantity, Float
1958
+
1959
+ # @!attribute type
1960
+ #
1961
+ # @return [Symbol, :"'null'"]
1962
+ required :type, const: :"'null'"
1963
+
1964
+ # @!parse
1965
+ # # @param amount [String]
1966
+ # # @param grouping [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping, nil]
1967
+ # # @param name [String]
1968
+ # # @param quantity [Float]
1969
+ # # @param type [Symbol, :"'null'"]
1970
+ # #
1971
+ # def initialize(amount:, grouping:, name:, quantity:, type: :"'null'", **) = super
1972
+
1973
+ # def initialize: (Hash | Orb::BaseModel) -> void
1974
+
1975
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem#grouping
1976
+ class Grouping < Orb::BaseModel
1977
+ # @!attribute key
1978
+ #
1979
+ # @return [String]
1980
+ required :key, String
1981
+
1982
+ # @!attribute value
1983
+ # No value indicates the default group
1984
+ #
1985
+ # @return [String, nil]
1986
+ required :value, String, nil?: true
1987
+
1988
+ # @!parse
1989
+ # # @param key [String]
1990
+ # # @param value [String, nil]
1991
+ # #
1992
+ # def initialize(key:, value:, **) = super
1993
+
1994
+ # def initialize: (Hash | Orb::BaseModel) -> void
1995
+ end
1996
+ end
1997
+
1998
+ # @!parse
1999
+ # # @return [Array(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem)]
2000
+ # def self.variants; end
2001
+ end
2002
+
2003
+ class TaxAmount < Orb::BaseModel
2004
+ # @!attribute amount
2005
+ # The amount of additional tax incurred by this tax rate.
2006
+ #
2007
+ # @return [String]
2008
+ required :amount, String
2009
+
2010
+ # @!attribute tax_rate_description
2011
+ # The human-readable description of the applied tax rate.
2012
+ #
2013
+ # @return [String]
2014
+ required :tax_rate_description, String
2015
+
2016
+ # @!attribute tax_rate_percentage
2017
+ # The tax rate percentage, out of 100.
2018
+ #
2019
+ # @return [String, nil]
2020
+ required :tax_rate_percentage, String, nil?: true
2021
+
2022
+ # @!parse
2023
+ # # @param amount [String]
2024
+ # # @param tax_rate_description [String]
2025
+ # # @param tax_rate_percentage [String, nil]
2026
+ # #
2027
+ # def initialize(amount:, tax_rate_description:, tax_rate_percentage:, **) = super
2028
+
2029
+ # def initialize: (Hash | Orb::BaseModel) -> void
2030
+ end
2031
+ end
2032
+
2033
+ # @see Orb::Models::InvoiceFetchUpcomingResponse#maximum
2034
+ class Maximum < Orb::BaseModel
2035
+ # @!attribute applies_to_price_ids
2036
+ # List of price_ids that this maximum amount applies to. For plan/plan phase
2037
+ # maximums, this can be a subset of prices.
2038
+ #
2039
+ # @return [Array<String>]
2040
+ required :applies_to_price_ids, Orb::ArrayOf[String]
2041
+
2042
+ # @!attribute maximum_amount
2043
+ # Maximum amount applied
2044
+ #
2045
+ # @return [String]
2046
+ required :maximum_amount, String
2047
+
2048
+ # @!parse
2049
+ # # @param applies_to_price_ids [Array<String>]
2050
+ # # @param maximum_amount [String]
2051
+ # #
2052
+ # def initialize(applies_to_price_ids:, maximum_amount:, **) = super
2053
+
2054
+ # def initialize: (Hash | Orb::BaseModel) -> void
2055
+ end
2056
+
2057
+ # @see Orb::Models::InvoiceFetchUpcomingResponse#minimum
2058
+ class Minimum < Orb::BaseModel
2059
+ # @!attribute applies_to_price_ids
2060
+ # List of price_ids that this minimum amount applies to. For plan/plan phase
2061
+ # minimums, this can be a subset of prices.
2062
+ #
2063
+ # @return [Array<String>]
2064
+ required :applies_to_price_ids, Orb::ArrayOf[String]
2065
+
2066
+ # @!attribute minimum_amount
2067
+ # Minimum amount applied
2068
+ #
2069
+ # @return [String]
2070
+ required :minimum_amount, String
2071
+
2072
+ # @!parse
2073
+ # # @param applies_to_price_ids [Array<String>]
2074
+ # # @param minimum_amount [String]
2075
+ # #
2076
+ # def initialize(applies_to_price_ids:, minimum_amount:, **) = super
2077
+
2078
+ # def initialize: (Hash | Orb::BaseModel) -> void
2079
+ end
2080
+
2081
+ class PaymentAttempt < Orb::BaseModel
2082
+ # @!attribute id
2083
+ # The ID of the payment attempt.
2084
+ #
2085
+ # @return [String]
2086
+ required :id, String
2087
+
2088
+ # @!attribute amount
2089
+ # The amount of the payment attempt.
2090
+ #
2091
+ # @return [String]
2092
+ required :amount, String
2093
+
2094
+ # @!attribute created_at
2095
+ # The time at which the payment attempt was created.
2096
+ #
2097
+ # @return [Time]
2098
+ required :created_at, Time
2099
+
2100
+ # @!attribute payment_provider
2101
+ # The payment provider that attempted to collect the payment.
2102
+ #
2103
+ # @return [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider, nil]
2104
+ required :payment_provider,
2105
+ enum: -> { Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider },
2106
+ nil?: true
2107
+
2108
+ # @!attribute payment_provider_id
2109
+ # The ID of the payment attempt in the payment provider.
2110
+ #
2111
+ # @return [String, nil]
2112
+ required :payment_provider_id, String, nil?: true
2113
+
2114
+ # @!attribute succeeded
2115
+ # Whether the payment attempt succeeded.
2116
+ #
2117
+ # @return [Boolean]
2118
+ required :succeeded, Orb::BooleanModel
2119
+
2120
+ # @!parse
2121
+ # # @param id [String]
2122
+ # # @param amount [String]
2123
+ # # @param created_at [Time]
2124
+ # # @param payment_provider [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider, nil]
2125
+ # # @param payment_provider_id [String, nil]
2126
+ # # @param succeeded [Boolean]
2127
+ # #
2128
+ # def initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:, **) = super
2129
+
2130
+ # def initialize: (Hash | Orb::BaseModel) -> void
2131
+
2132
+ # The payment provider that attempted to collect the payment.
2133
+ #
2134
+ # @see Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt#payment_provider
2135
+ module PaymentProvider
2136
+ extend Orb::Enum
2137
+
2138
+ STRIPE = :stripe
2139
+
2140
+ finalize!
2141
+
2142
+ # @!parse
2143
+ # # @return [Array<Symbol>]
2144
+ # def self.values; end
2145
+ end
2146
+ end
2147
+
2148
+ # @see Orb::Models::InvoiceFetchUpcomingResponse#shipping_address
2149
+ class ShippingAddress < Orb::BaseModel
2150
+ # @!attribute city
2151
+ #
2152
+ # @return [String, nil]
2153
+ required :city, String, nil?: true
2154
+
2155
+ # @!attribute country
2156
+ #
2157
+ # @return [String, nil]
2158
+ required :country, String, nil?: true
2159
+
2160
+ # @!attribute line1
2161
+ #
2162
+ # @return [String, nil]
2163
+ required :line1, String, nil?: true
2164
+
2165
+ # @!attribute line2
2166
+ #
2167
+ # @return [String, nil]
2168
+ required :line2, String, nil?: true
2169
+
2170
+ # @!attribute postal_code
2171
+ #
2172
+ # @return [String, nil]
2173
+ required :postal_code, String, nil?: true
2174
+
2175
+ # @!attribute state
2176
+ #
2177
+ # @return [String, nil]
2178
+ required :state, String, nil?: true
2179
+
2180
+ # @!parse
2181
+ # # @param city [String, nil]
2182
+ # # @param country [String, nil]
2183
+ # # @param line1 [String, nil]
2184
+ # # @param line2 [String, nil]
2185
+ # # @param postal_code [String, nil]
2186
+ # # @param state [String, nil]
2187
+ # #
2188
+ # def initialize(city:, country:, line1:, line2:, postal_code:, state:, **) = super
2189
+
2190
+ # def initialize: (Hash | Orb::BaseModel) -> void
2191
+ end
2192
+
2193
+ # @see Orb::Models::InvoiceFetchUpcomingResponse#status
2194
+ module Status
2195
+ extend Orb::Enum
2196
+
2197
+ ISSUED = :issued
2198
+ PAID = :paid
2199
+ SYNCED = :synced
2200
+ VOID = :void
2201
+ DRAFT = :draft
2202
+
2203
+ finalize!
2204
+
2205
+ # @!parse
2206
+ # # @return [Array<Symbol>]
2207
+ # def self.values; end
2208
+ end
2209
+
2210
+ # @see Orb::Models::InvoiceFetchUpcomingResponse#subscription
2211
+ class Subscription < Orb::BaseModel
2212
+ # @!attribute id
2213
+ #
2214
+ # @return [String]
2215
+ required :id, String
2216
+
2217
+ # @!parse
2218
+ # # @param id [String]
2219
+ # #
2220
+ # def initialize(id:, **) = super
2221
+
2222
+ # def initialize: (Hash | Orb::BaseModel) -> void
2223
+ end
2224
+ end
2225
+ end
2226
+ end