orb-billing 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +5 -5
  4. data/lib/orb/errors.rb +9 -9
  5. data/lib/orb/internal/page.rb +3 -3
  6. data/lib/orb/internal/transport/base_client.rb +3 -3
  7. data/lib/orb/internal/type/base_model.rb +1 -9
  8. data/lib/orb/internal/type/boolean.rb +10 -11
  9. data/lib/orb/internal/type/enum.rb +10 -11
  10. data/lib/orb/internal/type/request_parameters.rb +2 -8
  11. data/lib/orb/internal/type/unknown.rb +10 -11
  12. data/lib/orb/internal/util.rb +20 -4
  13. data/lib/orb/models/coupon_create_params.rb +7 -7
  14. data/lib/orb/models/customer_create_params.rb +7 -7
  15. data/lib/orb/models/customer_update_by_external_id_params.rb +7 -9
  16. data/lib/orb/models/customer_update_params.rb +7 -7
  17. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +2 -2
  18. data/lib/orb/models/customers/cost_list_response.rb +2 -2
  19. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +106 -107
  20. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +111 -119
  21. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +110 -114
  22. data/lib/orb/models/customers/credits/ledger_list_response.rb +112 -124
  23. data/lib/orb/models/invoice.rb +50 -64
  24. data/lib/orb/models/invoice_fetch_upcoming_response.rb +51 -55
  25. data/lib/orb/models/invoice_line_item_create_response.rb +54 -57
  26. data/lib/orb/models/plan.rb +20 -23
  27. data/lib/orb/models/plan_create_params.rb +635 -670
  28. data/lib/orb/models/price.rb +1547 -1599
  29. data/lib/orb/models/subscription.rb +35 -41
  30. data/lib/orb/models/subscription_cancel_response.rb +33 -36
  31. data/lib/orb/models/subscription_change_apply_response.rb +31 -32
  32. data/lib/orb/models/subscription_change_cancel_response.rb +31 -31
  33. data/lib/orb/models/subscription_change_retrieve_response.rb +31 -31
  34. data/lib/orb/models/subscription_create_params.rb +1316 -1367
  35. data/lib/orb/models/subscription_create_response.rb +33 -36
  36. data/lib/orb/models/subscription_fetch_costs_response.rb +2 -2
  37. data/lib/orb/models/subscription_price_intervals_params.rb +748 -774
  38. data/lib/orb/models/subscription_price_intervals_response.rb +32 -35
  39. data/lib/orb/models/subscription_schedule_plan_change_params.rb +1299 -1354
  40. data/lib/orb/models/subscription_schedule_plan_change_response.rb +31 -33
  41. data/lib/orb/models/subscription_trigger_phase_response.rb +32 -35
  42. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +31 -33
  43. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +31 -31
  44. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +31 -31
  45. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +31 -33
  46. data/lib/orb/models/subscription_update_trial_response.rb +33 -36
  47. data/lib/orb/models.rb +220 -0
  48. data/lib/orb/request_options.rb +4 -5
  49. data/lib/orb/resources/coupons.rb +1 -1
  50. data/lib/orb/resources/customers/credits/ledger.rb +4 -4
  51. data/lib/orb/resources/customers.rb +3 -3
  52. data/lib/orb/resources/plans.rb +1 -1
  53. data/lib/orb/resources/prices/external_price_id.rb +2 -2
  54. data/lib/orb/resources/prices.rb +4 -4
  55. data/lib/orb/version.rb +1 -1
  56. data/rbi/{lib/orb → orb}/errors.rbi +1 -1
  57. data/rbi/{lib/orb → orb}/internal/transport/base_client.rbi +2 -2
  58. data/rbi/{lib/orb → orb}/internal/type/request_parameters.rbi +1 -1
  59. data/rbi/{lib/orb → orb}/internal/util.rbi +5 -1
  60. data/rbi/{lib/orb → orb}/models/coupon_create_params.rbi +9 -9
  61. data/rbi/{lib/orb → orb}/models/customer_create_params.rbi +9 -9
  62. data/rbi/{lib/orb → orb}/models/customer_update_by_external_id_params.rbi +9 -9
  63. data/rbi/{lib/orb → orb}/models/customer_update_params.rbi +9 -9
  64. data/rbi/{lib/orb → orb}/models/customers/cost_list_by_external_id_response.rbi +84 -84
  65. data/rbi/{lib/orb → orb}/models/customers/cost_list_response.rbi +84 -84
  66. data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_response.rbi → orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi} +122 -114
  67. data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi → orb/models/customers/credits/ledger_create_entry_response.rbi} +114 -216
  68. data/rbi/{lib/orb/models/customers/credits/ledger_list_response.rbi → orb/models/customers/credits/ledger_list_by_external_id_response.rbi} +114 -114
  69. data/rbi/{lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi → orb/models/customers/credits/ledger_list_response.rbi} +114 -271
  70. data/rbi/{lib/orb → orb}/models/invoice.rbi +138 -156
  71. data/rbi/{lib/orb → orb}/models/invoice_fetch_upcoming_response.rbi +138 -150
  72. data/rbi/{lib/orb → orb}/models/invoice_line_item_create_response.rbi +138 -162
  73. data/rbi/{lib/orb → orb}/models/plan.rbi +105 -105
  74. data/rbi/{lib/orb → orb}/models/plan_create_params.rbi +973 -1734
  75. data/rbi/{lib/orb → orb}/models/price.rbi +1875 -2267
  76. data/rbi/{lib/orb → orb}/models/subscription.rbi +118 -118
  77. data/rbi/{lib/orb → orb}/models/subscription_cancel_response.rbi +118 -118
  78. data/rbi/{lib/orb → orb}/models/subscription_change_apply_response.rbi +118 -118
  79. data/rbi/{lib/orb → orb}/models/subscription_change_cancel_response.rbi +118 -118
  80. data/rbi/{lib/orb → orb}/models/subscription_change_retrieve_response.rbi +118 -118
  81. data/rbi/{lib/orb → orb}/models/subscription_create_params.rbi +1988 -2733
  82. data/rbi/{lib/orb → orb}/models/subscription_create_response.rbi +118 -118
  83. data/rbi/{lib/orb → orb}/models/subscription_fetch_costs_response.rbi +84 -84
  84. data/rbi/{lib/orb → orb}/models/subscription_price_intervals_params.rbi +1125 -1455
  85. data/rbi/{lib/orb → orb}/models/subscription_price_intervals_response.rbi +118 -118
  86. data/rbi/{lib/orb → orb}/models/subscription_schedule_plan_change_params.rbi +1988 -2210
  87. data/rbi/{lib/orb → orb}/models/subscription_schedule_plan_change_response.rbi +118 -118
  88. data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_response.rbi +118 -118
  89. data/rbi/{lib/orb → orb}/models/subscription_unschedule_cancellation_response.rbi +118 -118
  90. data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +118 -118
  91. data/rbi/{lib/orb → orb}/models/subscription_unschedule_pending_plan_changes_response.rbi +118 -118
  92. data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_response.rbi +118 -118
  93. data/rbi/{lib/orb → orb}/models/subscription_update_trial_response.rbi +118 -118
  94. data/rbi/orb/models.rbi +220 -0
  95. data/rbi/{lib/orb → orb}/request_options.rbi +2 -0
  96. data/rbi/{lib/orb → orb}/resources/alerts.rbi +8 -14
  97. data/rbi/{lib/orb → orb}/resources/coupons/subscriptions.rbi +1 -1
  98. data/rbi/{lib/orb → orb}/resources/coupons.rbi +6 -18
  99. data/rbi/{lib/orb → orb}/resources/credit_notes.rbi +3 -9
  100. data/rbi/{lib/orb → orb}/resources/customers/balance_transactions.rbi +2 -2
  101. data/rbi/{lib/orb → orb}/resources/customers/costs.rbi +2 -2
  102. data/rbi/{lib/orb → orb}/resources/customers/credits/ledger.rbi +32 -32
  103. data/rbi/{lib/orb → orb}/resources/customers/credits/top_ups.rbi +6 -18
  104. data/rbi/{lib/orb → orb}/resources/customers/credits.rbi +2 -2
  105. data/rbi/{lib/orb → orb}/resources/customers.rbi +15 -45
  106. data/rbi/{lib/orb → orb}/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +1 -4
  107. data/rbi/{lib/orb → orb}/resources/dimensional_price_groups.rbi +3 -10
  108. data/rbi/{lib/orb → orb}/resources/events/backfills.rbi +5 -18
  109. data/rbi/{lib/orb → orb}/resources/events/volume.rbi +1 -1
  110. data/rbi/{lib/orb → orb}/resources/events.rbi +4 -10
  111. data/rbi/{lib/orb → orb}/resources/invoice_line_items.rbi +1 -1
  112. data/rbi/{lib/orb → orb}/resources/invoices.rbi +9 -34
  113. data/rbi/{lib/orb → orb}/resources/items.rbi +4 -17
  114. data/rbi/{lib/orb → orb}/resources/metrics.rbi +4 -10
  115. data/rbi/{lib/orb → orb}/resources/plans/external_plan_id.rbi +2 -8
  116. data/rbi/{lib/orb → orb}/resources/plans.rbi +29 -35
  117. data/rbi/orb/resources/prices/external_price_id.rbi +103 -0
  118. data/rbi/{lib/orb → orb}/resources/prices.rbi +117 -124
  119. data/rbi/{lib/orb → orb}/resources/subscription_changes.rbi +3 -9
  120. data/rbi/{lib/orb → orb}/resources/subscriptions.rbi +16 -32
  121. data/rbi/{lib/orb → orb}/resources/top_level.rbi +1 -4
  122. data/sig/orb/internal/util.rbs +2 -0
  123. data/sig/orb/models/coupon_create_params.rbs +9 -10
  124. data/sig/orb/models/customer_create_params.rbs +9 -10
  125. data/sig/orb/models/customer_update_by_external_id_params.rbs +9 -10
  126. data/sig/orb/models/customer_update_params.rbs +9 -10
  127. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +113 -113
  128. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +113 -113
  129. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +113 -113
  130. data/sig/orb/models/customers/credits/ledger_list_response.rbs +113 -113
  131. data/sig/orb/models/invoice.rbs +54 -54
  132. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +54 -54
  133. data/sig/orb/models/invoice_line_item_create_response.rbs +54 -54
  134. data/sig/orb/models/plan.rbs +21 -21
  135. data/sig/orb/models/plan_create_params.rbs +653 -653
  136. data/sig/orb/models/price.rbs +1517 -1521
  137. data/sig/orb/models/subscription.rbs +34 -34
  138. data/sig/orb/models/subscription_cancel_response.rbs +34 -34
  139. data/sig/orb/models/subscription_change_apply_response.rbs +34 -34
  140. data/sig/orb/models/subscription_change_cancel_response.rbs +34 -34
  141. data/sig/orb/models/subscription_change_retrieve_response.rbs +34 -34
  142. data/sig/orb/models/subscription_create_params.rbs +1348 -1348
  143. data/sig/orb/models/subscription_create_response.rbs +34 -34
  144. data/sig/orb/models/subscription_price_intervals_params.rbs +767 -769
  145. data/sig/orb/models/subscription_price_intervals_response.rbs +34 -34
  146. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1348 -1348
  147. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +34 -34
  148. data/sig/orb/models/subscription_trigger_phase_response.rbs +34 -34
  149. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +34 -34
  150. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +34 -34
  151. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +34 -34
  152. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +34 -34
  153. data/sig/orb/models/subscription_update_trial_response.rbs +34 -34
  154. data/sig/orb/models.rbs +215 -0
  155. metadata +226 -223
  156. data/rbi/lib/orb/resources/prices/external_price_id.rbi +0 -106
  157. data/rbi/{lib/orb → orb}/client.rbi +0 -0
  158. data/rbi/{lib/orb → orb}/file_part.rbi +0 -0
  159. data/rbi/{lib/orb → orb}/internal/page.rbi +0 -0
  160. data/rbi/{lib/orb → orb}/internal/transport/pooled_net_requester.rbi +0 -0
  161. data/rbi/{lib/orb → orb}/internal/type/array_of.rbi +0 -0
  162. data/rbi/{lib/orb → orb}/internal/type/base_model.rbi +0 -0
  163. data/rbi/{lib/orb → orb}/internal/type/base_page.rbi +0 -0
  164. data/rbi/{lib/orb → orb}/internal/type/boolean.rbi +0 -0
  165. data/rbi/{lib/orb → orb}/internal/type/converter.rbi +0 -0
  166. data/rbi/{lib/orb → orb}/internal/type/enum.rbi +0 -0
  167. data/rbi/{lib/orb → orb}/internal/type/file_input.rbi +0 -0
  168. data/rbi/{lib/orb → orb}/internal/type/hash_of.rbi +0 -0
  169. data/rbi/{lib/orb → orb}/internal/type/union.rbi +0 -0
  170. data/rbi/{lib/orb → orb}/internal/type/unknown.rbi +0 -0
  171. data/rbi/{lib/orb → orb}/internal.rbi +0 -0
  172. data/rbi/{lib/orb → orb}/models/alert.rbi +0 -0
  173. data/rbi/{lib/orb → orb}/models/alert_create_for_customer_params.rbi +0 -0
  174. data/rbi/{lib/orb → orb}/models/alert_create_for_external_customer_params.rbi +0 -0
  175. data/rbi/{lib/orb → orb}/models/alert_create_for_subscription_params.rbi +0 -0
  176. data/rbi/{lib/orb → orb}/models/alert_disable_params.rbi +0 -0
  177. data/rbi/{lib/orb → orb}/models/alert_enable_params.rbi +0 -0
  178. data/rbi/{lib/orb → orb}/models/alert_list_params.rbi +0 -0
  179. data/rbi/{lib/orb → orb}/models/alert_retrieve_params.rbi +0 -0
  180. data/rbi/{lib/orb → orb}/models/alert_update_params.rbi +0 -0
  181. data/rbi/{lib/orb → orb}/models/amount_discount.rbi +0 -0
  182. data/rbi/{lib/orb → orb}/models/billable_metric.rbi +0 -0
  183. data/rbi/{lib/orb → orb}/models/billing_cycle_relative_date.rbi +0 -0
  184. data/rbi/{lib/orb → orb}/models/coupon.rbi +0 -0
  185. data/rbi/{lib/orb → orb}/models/coupon_archive_params.rbi +0 -0
  186. data/rbi/{lib/orb → orb}/models/coupon_fetch_params.rbi +0 -0
  187. data/rbi/{lib/orb → orb}/models/coupon_list_params.rbi +0 -0
  188. data/rbi/{lib/orb → orb}/models/coupons/subscription_list_params.rbi +0 -0
  189. data/rbi/{lib/orb → orb}/models/credit_note.rbi +0 -0
  190. data/rbi/{lib/orb → orb}/models/credit_note_create_params.rbi +0 -0
  191. data/rbi/{lib/orb → orb}/models/credit_note_fetch_params.rbi +0 -0
  192. data/rbi/{lib/orb → orb}/models/credit_note_list_params.rbi +0 -0
  193. data/rbi/{lib/orb → orb}/models/customer.rbi +0 -0
  194. data/rbi/{lib/orb → orb}/models/customer_delete_params.rbi +0 -0
  195. data/rbi/{lib/orb → orb}/models/customer_fetch_by_external_id_params.rbi +0 -0
  196. data/rbi/{lib/orb → orb}/models/customer_fetch_params.rbi +0 -0
  197. data/rbi/{lib/orb → orb}/models/customer_list_params.rbi +0 -0
  198. data/rbi/{lib/orb → orb}/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +0 -0
  199. data/rbi/{lib/orb → orb}/models/customer_sync_payment_methods_from_gateway_params.rbi +0 -0
  200. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_create_params.rbi +0 -0
  201. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_create_response.rbi +0 -0
  202. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_list_params.rbi +0 -0
  203. data/rbi/{lib/orb → orb}/models/customers/balance_transaction_list_response.rbi +0 -0
  204. data/rbi/{lib/orb → orb}/models/customers/cost_list_by_external_id_params.rbi +0 -0
  205. data/rbi/{lib/orb → orb}/models/customers/cost_list_params.rbi +0 -0
  206. data/rbi/{lib/orb → orb}/models/customers/credit_list_by_external_id_params.rbi +0 -0
  207. data/rbi/{lib/orb → orb}/models/customers/credit_list_by_external_id_response.rbi +0 -0
  208. data/rbi/{lib/orb → orb}/models/customers/credit_list_params.rbi +0 -0
  209. data/rbi/{lib/orb → orb}/models/customers/credit_list_response.rbi +0 -0
  210. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +0 -0
  211. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_create_entry_params.rbi +0 -0
  212. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_by_external_id_params.rbi +0 -0
  213. data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_params.rbi +0 -0
  214. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_by_external_id_params.rbi +0 -0
  215. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_by_external_id_response.rbi +0 -0
  216. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_params.rbi +0 -0
  217. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_response.rbi +0 -0
  218. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_delete_by_external_id_params.rbi +0 -0
  219. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_delete_params.rbi +0 -0
  220. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_params.rbi +0 -0
  221. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_response.rbi +0 -0
  222. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_params.rbi +0 -0
  223. data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_response.rbi +0 -0
  224. data/rbi/{lib/orb → orb}/models/dimensional_price_group.rbi +0 -0
  225. data/rbi/{lib/orb → orb}/models/dimensional_price_group_create_params.rbi +0 -0
  226. data/rbi/{lib/orb → orb}/models/dimensional_price_group_list_params.rbi +0 -0
  227. data/rbi/{lib/orb → orb}/models/dimensional_price_group_retrieve_params.rbi +0 -0
  228. data/rbi/{lib/orb → orb}/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +0 -0
  229. data/rbi/{lib/orb → orb}/models/dimensional_price_groups.rbi +0 -0
  230. data/rbi/{lib/orb → orb}/models/discount.rbi +0 -0
  231. data/rbi/{lib/orb → orb}/models/evaluate_price_group.rbi +0 -0
  232. data/rbi/{lib/orb → orb}/models/event_deprecate_params.rbi +0 -0
  233. data/rbi/{lib/orb → orb}/models/event_deprecate_response.rbi +0 -0
  234. data/rbi/{lib/orb → orb}/models/event_ingest_params.rbi +0 -0
  235. data/rbi/{lib/orb → orb}/models/event_ingest_response.rbi +0 -0
  236. data/rbi/{lib/orb → orb}/models/event_search_params.rbi +0 -0
  237. data/rbi/{lib/orb → orb}/models/event_search_response.rbi +0 -0
  238. data/rbi/{lib/orb → orb}/models/event_update_params.rbi +0 -0
  239. data/rbi/{lib/orb → orb}/models/event_update_response.rbi +0 -0
  240. data/rbi/{lib/orb → orb}/models/events/backfill_close_params.rbi +0 -0
  241. data/rbi/{lib/orb → orb}/models/events/backfill_close_response.rbi +0 -0
  242. data/rbi/{lib/orb → orb}/models/events/backfill_create_params.rbi +0 -0
  243. data/rbi/{lib/orb → orb}/models/events/backfill_create_response.rbi +0 -0
  244. data/rbi/{lib/orb → orb}/models/events/backfill_fetch_params.rbi +0 -0
  245. data/rbi/{lib/orb → orb}/models/events/backfill_fetch_response.rbi +0 -0
  246. data/rbi/{lib/orb → orb}/models/events/backfill_list_params.rbi +0 -0
  247. data/rbi/{lib/orb → orb}/models/events/backfill_list_response.rbi +0 -0
  248. data/rbi/{lib/orb → orb}/models/events/backfill_revert_params.rbi +0 -0
  249. data/rbi/{lib/orb → orb}/models/events/backfill_revert_response.rbi +0 -0
  250. data/rbi/{lib/orb → orb}/models/events/event_volumes.rbi +2 -2
  251. /data/rbi/{lib/orb → orb}/models/events/volume_list_params.rbi +0 -0
  252. /data/rbi/{lib/orb → orb}/models/invoice_create_params.rbi +0 -0
  253. /data/rbi/{lib/orb → orb}/models/invoice_fetch_params.rbi +0 -0
  254. /data/rbi/{lib/orb → orb}/models/invoice_fetch_upcoming_params.rbi +0 -0
  255. /data/rbi/{lib/orb → orb}/models/invoice_issue_params.rbi +0 -0
  256. /data/rbi/{lib/orb → orb}/models/invoice_level_discount.rbi +0 -0
  257. /data/rbi/{lib/orb → orb}/models/invoice_line_item_create_params.rbi +0 -0
  258. /data/rbi/{lib/orb → orb}/models/invoice_list_params.rbi +0 -0
  259. /data/rbi/{lib/orb → orb}/models/invoice_mark_paid_params.rbi +0 -0
  260. /data/rbi/{lib/orb → orb}/models/invoice_pay_params.rbi +0 -0
  261. /data/rbi/{lib/orb → orb}/models/invoice_update_params.rbi +0 -0
  262. /data/rbi/{lib/orb → orb}/models/invoice_void_params.rbi +0 -0
  263. /data/rbi/{lib/orb → orb}/models/item.rbi +0 -0
  264. /data/rbi/{lib/orb → orb}/models/item_create_params.rbi +0 -0
  265. /data/rbi/{lib/orb → orb}/models/item_fetch_params.rbi +0 -0
  266. /data/rbi/{lib/orb → orb}/models/item_list_params.rbi +0 -0
  267. /data/rbi/{lib/orb → orb}/models/item_update_params.rbi +0 -0
  268. /data/rbi/{lib/orb → orb}/models/metric_create_params.rbi +0 -0
  269. /data/rbi/{lib/orb → orb}/models/metric_fetch_params.rbi +0 -0
  270. /data/rbi/{lib/orb → orb}/models/metric_list_params.rbi +0 -0
  271. /data/rbi/{lib/orb → orb}/models/metric_update_params.rbi +0 -0
  272. /data/rbi/{lib/orb → orb}/models/pagination_metadata.rbi +0 -0
  273. /data/rbi/{lib/orb → orb}/models/percentage_discount.rbi +0 -0
  274. /data/rbi/{lib/orb → orb}/models/plan_fetch_params.rbi +0 -0
  275. /data/rbi/{lib/orb → orb}/models/plan_list_params.rbi +0 -0
  276. /data/rbi/{lib/orb → orb}/models/plan_update_params.rbi +0 -0
  277. /data/rbi/{lib/orb → orb}/models/plans/external_plan_id_fetch_params.rbi +0 -0
  278. /data/rbi/{lib/orb → orb}/models/plans/external_plan_id_update_params.rbi +0 -0
  279. /data/rbi/{lib/orb → orb}/models/price_create_params.rbi +0 -0
  280. /data/rbi/{lib/orb → orb}/models/price_evaluate_params.rbi +0 -0
  281. /data/rbi/{lib/orb → orb}/models/price_evaluate_response.rbi +0 -0
  282. /data/rbi/{lib/orb → orb}/models/price_fetch_params.rbi +0 -0
  283. /data/rbi/{lib/orb → orb}/models/price_list_params.rbi +0 -0
  284. /data/rbi/{lib/orb → orb}/models/price_update_params.rbi +0 -0
  285. /data/rbi/{lib/orb → orb}/models/prices/external_price_id_fetch_params.rbi +0 -0
  286. /data/rbi/{lib/orb → orb}/models/prices/external_price_id_update_params.rbi +0 -0
  287. /data/rbi/{lib/orb → orb}/models/subscription_cancel_params.rbi +0 -0
  288. /data/rbi/{lib/orb → orb}/models/subscription_change_apply_params.rbi +0 -0
  289. /data/rbi/{lib/orb → orb}/models/subscription_change_cancel_params.rbi +0 -0
  290. /data/rbi/{lib/orb → orb}/models/subscription_change_retrieve_params.rbi +0 -0
  291. /data/rbi/{lib/orb → orb}/models/subscription_fetch_costs_params.rbi +0 -0
  292. /data/rbi/{lib/orb → orb}/models/subscription_fetch_params.rbi +0 -0
  293. /data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_params.rbi +0 -0
  294. /data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_response.rbi +0 -0
  295. /data/rbi/{lib/orb → orb}/models/subscription_fetch_usage_params.rbi +0 -0
  296. /data/rbi/{lib/orb → orb}/models/subscription_list_params.rbi +0 -0
  297. /data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_params.rbi +0 -0
  298. /data/rbi/{lib/orb → orb}/models/subscription_unschedule_cancellation_params.rbi +0 -0
  299. /data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +0 -0
  300. /data/rbi/{lib/orb → orb}/models/subscription_unschedule_pending_plan_changes_params.rbi +0 -0
  301. /data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_params.rbi +0 -0
  302. /data/rbi/{lib/orb → orb}/models/subscription_update_params.rbi +0 -0
  303. /data/rbi/{lib/orb → orb}/models/subscription_update_trial_params.rbi +0 -0
  304. /data/rbi/{lib/orb → orb}/models/subscription_usage.rbi +0 -0
  305. /data/rbi/{lib/orb → orb}/models/subscriptions.rbi +0 -0
  306. /data/rbi/{lib/orb → orb}/models/top_level_ping_params.rbi +0 -0
  307. /data/rbi/{lib/orb → orb}/models/top_level_ping_response.rbi +0 -0
  308. /data/rbi/{lib/orb → orb}/models/trial_discount.rbi +0 -0
  309. /data/rbi/{lib/orb → orb}/models/usage_discount.rbi +0 -0
  310. /data/rbi/{lib/orb → orb}/version.rbi +0 -0
@@ -145,16 +145,16 @@ module Orb
145
145
  def to_hash: -> Orb::Models::Subscription::adjustment_interval
146
146
 
147
147
  type adjustment =
148
- Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment
149
- | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment
150
- | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment
151
- | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment
152
- | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment
148
+ Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount
149
+ | Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount
150
+ | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount
151
+ | Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum
152
+ | Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum
153
153
 
154
154
  module Adjustment
155
155
  extend Orb::Internal::Type::Union
156
156
 
157
- type plan_phase_usage_discount_adjustment =
157
+ type usage_discount =
158
158
  {
159
159
  id: String,
160
160
  adjustment_type: :usage_discount,
@@ -165,7 +165,7 @@ module Orb
165
165
  usage_discount: Float
166
166
  }
167
167
 
168
- class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel
168
+ class UsageDiscount < Orb::Internal::Type::BaseModel
169
169
  attr_accessor id: String
170
170
 
171
171
  attr_accessor adjustment_type: :usage_discount
@@ -190,10 +190,10 @@ module Orb
190
190
  ?adjustment_type: :usage_discount
191
191
  ) -> void
192
192
 
193
- def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment
193
+ def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::usage_discount
194
194
  end
195
195
 
196
- type plan_phase_amount_discount_adjustment =
196
+ type amount_discount =
197
197
  {
198
198
  id: String,
199
199
  adjustment_type: :amount_discount,
@@ -204,7 +204,7 @@ module Orb
204
204
  reason: String?
205
205
  }
206
206
 
207
- class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel
207
+ class AmountDiscount < Orb::Internal::Type::BaseModel
208
208
  attr_accessor id: String
209
209
 
210
210
  attr_accessor adjustment_type: :amount_discount
@@ -229,10 +229,10 @@ module Orb
229
229
  ?adjustment_type: :amount_discount
230
230
  ) -> void
231
231
 
232
- def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment
232
+ def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::amount_discount
233
233
  end
234
234
 
235
- type plan_phase_percentage_discount_adjustment =
235
+ type percentage_discount =
236
236
  {
237
237
  id: String,
238
238
  adjustment_type: :percentage_discount,
@@ -243,7 +243,7 @@ module Orb
243
243
  reason: String?
244
244
  }
245
245
 
246
- class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel
246
+ class PercentageDiscount < Orb::Internal::Type::BaseModel
247
247
  attr_accessor id: String
248
248
 
249
249
  attr_accessor adjustment_type: :percentage_discount
@@ -268,10 +268,10 @@ module Orb
268
268
  ?adjustment_type: :percentage_discount
269
269
  ) -> void
270
270
 
271
- def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment
271
+ def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::percentage_discount
272
272
  end
273
273
 
274
- type plan_phase_minimum_adjustment =
274
+ type minimum =
275
275
  {
276
276
  id: String,
277
277
  adjustment_type: :minimum,
@@ -283,7 +283,7 @@ module Orb
283
283
  reason: String?
284
284
  }
285
285
 
286
- class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel
286
+ class Minimum < Orb::Internal::Type::BaseModel
287
287
  attr_accessor id: String
288
288
 
289
289
  attr_accessor adjustment_type: :minimum
@@ -311,10 +311,10 @@ module Orb
311
311
  ?adjustment_type: :minimum
312
312
  ) -> void
313
313
 
314
- def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment
314
+ def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::minimum
315
315
  end
316
316
 
317
- type plan_phase_maximum_adjustment =
317
+ type maximum =
318
318
  {
319
319
  id: String,
320
320
  adjustment_type: :maximum,
@@ -325,7 +325,7 @@ module Orb
325
325
  reason: String?
326
326
  }
327
327
 
328
- class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel
328
+ class Maximum < Orb::Internal::Type::BaseModel
329
329
  attr_accessor id: String
330
330
 
331
331
  attr_accessor adjustment_type: :maximum
@@ -350,10 +350,10 @@ module Orb
350
350
  ?adjustment_type: :maximum
351
351
  ) -> void
352
352
 
353
- def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment
353
+ def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::maximum
354
354
  end
355
355
 
356
- def self?.variants: -> [Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]
356
+ def self?.variants: -> [Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum]
357
357
  end
358
358
  end
359
359
 
@@ -377,14 +377,14 @@ module Orb
377
377
  end
378
378
 
379
379
  type discount_interval =
380
- Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval
381
- | Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval
382
- | Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval
380
+ Orb::Models::Subscription::DiscountInterval::Amount
381
+ | Orb::Models::Subscription::DiscountInterval::Percentage
382
+ | Orb::Models::Subscription::DiscountInterval::Usage
383
383
 
384
384
  module DiscountInterval
385
385
  extend Orb::Internal::Type::Union
386
386
 
387
- type amount_discount_interval =
387
+ type amount =
388
388
  {
389
389
  amount_discount: String,
390
390
  applies_to_price_ids: ::Array[String],
@@ -394,7 +394,7 @@ module Orb
394
394
  start_date: Time
395
395
  }
396
396
 
397
- class AmountDiscountInterval < Orb::Internal::Type::BaseModel
397
+ class Amount < Orb::Internal::Type::BaseModel
398
398
  attr_accessor amount_discount: String
399
399
 
400
400
  attr_accessor applies_to_price_ids: ::Array[String]
@@ -416,10 +416,10 @@ module Orb
416
416
  ?discount_type: :amount
417
417
  ) -> void
418
418
 
419
- def to_hash: -> Orb::Models::Subscription::DiscountInterval::amount_discount_interval
419
+ def to_hash: -> Orb::Models::Subscription::DiscountInterval::amount
420
420
  end
421
421
 
422
- type percentage_discount_interval =
422
+ type percentage =
423
423
  {
424
424
  applies_to_price_ids: ::Array[String],
425
425
  applies_to_price_interval_ids: ::Array[String],
@@ -429,7 +429,7 @@ module Orb
429
429
  start_date: Time
430
430
  }
431
431
 
432
- class PercentageDiscountInterval < Orb::Internal::Type::BaseModel
432
+ class Percentage < Orb::Internal::Type::BaseModel
433
433
  attr_accessor applies_to_price_ids: ::Array[String]
434
434
 
435
435
  attr_accessor applies_to_price_interval_ids: ::Array[String]
@@ -451,10 +451,10 @@ module Orb
451
451
  ?discount_type: :percentage
452
452
  ) -> void
453
453
 
454
- def to_hash: -> Orb::Models::Subscription::DiscountInterval::percentage_discount_interval
454
+ def to_hash: -> Orb::Models::Subscription::DiscountInterval::percentage
455
455
  end
456
456
 
457
- type usage_discount_interval =
457
+ type usage =
458
458
  {
459
459
  applies_to_price_ids: ::Array[String],
460
460
  applies_to_price_interval_ids: ::Array[String],
@@ -464,7 +464,7 @@ module Orb
464
464
  usage_discount: Float
465
465
  }
466
466
 
467
- class UsageDiscountInterval < Orb::Internal::Type::BaseModel
467
+ class Usage < Orb::Internal::Type::BaseModel
468
468
  attr_accessor applies_to_price_ids: ::Array[String]
469
469
 
470
470
  attr_accessor applies_to_price_interval_ids: ::Array[String]
@@ -486,10 +486,10 @@ module Orb
486
486
  ?discount_type: :usage
487
487
  ) -> void
488
488
 
489
- def to_hash: -> Orb::Models::Subscription::DiscountInterval::usage_discount_interval
489
+ def to_hash: -> Orb::Models::Subscription::DiscountInterval::usage
490
490
  end
491
491
 
492
- def self?.variants: -> [Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval]
492
+ def self?.variants: -> [Orb::Models::Subscription::DiscountInterval::Amount, Orb::Models::Subscription::DiscountInterval::Percentage, Orb::Models::Subscription::DiscountInterval::Usage]
493
493
  end
494
494
 
495
495
  type fixed_fee_quantity_schedule =
@@ -149,16 +149,16 @@ module Orb
149
149
  def to_hash: -> Orb::Models::SubscriptionCancelResponse::adjustment_interval
150
150
 
151
151
  type adjustment =
152
- Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment
153
- | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment
154
- | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment
155
- | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment
156
- | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment
152
+ Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount
153
+ | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount
154
+ | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount
155
+ | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum
156
+ | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum
157
157
 
158
158
  module Adjustment
159
159
  extend Orb::Internal::Type::Union
160
160
 
161
- type plan_phase_usage_discount_adjustment =
161
+ type usage_discount =
162
162
  {
163
163
  id: String,
164
164
  adjustment_type: :usage_discount,
@@ -169,7 +169,7 @@ module Orb
169
169
  usage_discount: Float
170
170
  }
171
171
 
172
- class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel
172
+ class UsageDiscount < Orb::Internal::Type::BaseModel
173
173
  attr_accessor id: String
174
174
 
175
175
  attr_accessor adjustment_type: :usage_discount
@@ -194,10 +194,10 @@ module Orb
194
194
  ?adjustment_type: :usage_discount
195
195
  ) -> void
196
196
 
197
- def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment
197
+ def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::usage_discount
198
198
  end
199
199
 
200
- type plan_phase_amount_discount_adjustment =
200
+ type amount_discount =
201
201
  {
202
202
  id: String,
203
203
  adjustment_type: :amount_discount,
@@ -208,7 +208,7 @@ module Orb
208
208
  reason: String?
209
209
  }
210
210
 
211
- class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel
211
+ class AmountDiscount < Orb::Internal::Type::BaseModel
212
212
  attr_accessor id: String
213
213
 
214
214
  attr_accessor adjustment_type: :amount_discount
@@ -233,10 +233,10 @@ module Orb
233
233
  ?adjustment_type: :amount_discount
234
234
  ) -> void
235
235
 
236
- def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment
236
+ def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::amount_discount
237
237
  end
238
238
 
239
- type plan_phase_percentage_discount_adjustment =
239
+ type percentage_discount =
240
240
  {
241
241
  id: String,
242
242
  adjustment_type: :percentage_discount,
@@ -247,7 +247,7 @@ module Orb
247
247
  reason: String?
248
248
  }
249
249
 
250
- class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel
250
+ class PercentageDiscount < Orb::Internal::Type::BaseModel
251
251
  attr_accessor id: String
252
252
 
253
253
  attr_accessor adjustment_type: :percentage_discount
@@ -272,10 +272,10 @@ module Orb
272
272
  ?adjustment_type: :percentage_discount
273
273
  ) -> void
274
274
 
275
- def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment
275
+ def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::percentage_discount
276
276
  end
277
277
 
278
- type plan_phase_minimum_adjustment =
278
+ type minimum =
279
279
  {
280
280
  id: String,
281
281
  adjustment_type: :minimum,
@@ -287,7 +287,7 @@ module Orb
287
287
  reason: String?
288
288
  }
289
289
 
290
- class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel
290
+ class Minimum < Orb::Internal::Type::BaseModel
291
291
  attr_accessor id: String
292
292
 
293
293
  attr_accessor adjustment_type: :minimum
@@ -315,10 +315,10 @@ module Orb
315
315
  ?adjustment_type: :minimum
316
316
  ) -> void
317
317
 
318
- def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment
318
+ def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::minimum
319
319
  end
320
320
 
321
- type plan_phase_maximum_adjustment =
321
+ type maximum =
322
322
  {
323
323
  id: String,
324
324
  adjustment_type: :maximum,
@@ -329,7 +329,7 @@ module Orb
329
329
  reason: String?
330
330
  }
331
331
 
332
- class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel
332
+ class Maximum < Orb::Internal::Type::BaseModel
333
333
  attr_accessor id: String
334
334
 
335
335
  attr_accessor adjustment_type: :maximum
@@ -354,10 +354,10 @@ module Orb
354
354
  ?adjustment_type: :maximum
355
355
  ) -> void
356
356
 
357
- def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment
357
+ def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::maximum
358
358
  end
359
359
 
360
- def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]
360
+ def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum]
361
361
  end
362
362
  end
363
363
 
@@ -381,14 +381,14 @@ module Orb
381
381
  end
382
382
 
383
383
  type discount_interval =
384
- Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval
385
- | Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval
386
- | Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval
384
+ Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount
385
+ | Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage
386
+ | Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage
387
387
 
388
388
  module DiscountInterval
389
389
  extend Orb::Internal::Type::Union
390
390
 
391
- type amount_discount_interval =
391
+ type amount =
392
392
  {
393
393
  amount_discount: String,
394
394
  applies_to_price_ids: ::Array[String],
@@ -398,7 +398,7 @@ module Orb
398
398
  start_date: Time
399
399
  }
400
400
 
401
- class AmountDiscountInterval < Orb::Internal::Type::BaseModel
401
+ class Amount < Orb::Internal::Type::BaseModel
402
402
  attr_accessor amount_discount: String
403
403
 
404
404
  attr_accessor applies_to_price_ids: ::Array[String]
@@ -420,10 +420,10 @@ module Orb
420
420
  ?discount_type: :amount
421
421
  ) -> void
422
422
 
423
- def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::amount_discount_interval
423
+ def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::amount
424
424
  end
425
425
 
426
- type percentage_discount_interval =
426
+ type percentage =
427
427
  {
428
428
  applies_to_price_ids: ::Array[String],
429
429
  applies_to_price_interval_ids: ::Array[String],
@@ -433,7 +433,7 @@ module Orb
433
433
  start_date: Time
434
434
  }
435
435
 
436
- class PercentageDiscountInterval < Orb::Internal::Type::BaseModel
436
+ class Percentage < Orb::Internal::Type::BaseModel
437
437
  attr_accessor applies_to_price_ids: ::Array[String]
438
438
 
439
439
  attr_accessor applies_to_price_interval_ids: ::Array[String]
@@ -455,10 +455,10 @@ module Orb
455
455
  ?discount_type: :percentage
456
456
  ) -> void
457
457
 
458
- def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::percentage_discount_interval
458
+ def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::percentage
459
459
  end
460
460
 
461
- type usage_discount_interval =
461
+ type usage =
462
462
  {
463
463
  applies_to_price_ids: ::Array[String],
464
464
  applies_to_price_interval_ids: ::Array[String],
@@ -468,7 +468,7 @@ module Orb
468
468
  usage_discount: Float
469
469
  }
470
470
 
471
- class UsageDiscountInterval < Orb::Internal::Type::BaseModel
471
+ class Usage < Orb::Internal::Type::BaseModel
472
472
  attr_accessor applies_to_price_ids: ::Array[String]
473
473
 
474
474
  attr_accessor applies_to_price_interval_ids: ::Array[String]
@@ -490,10 +490,10 @@ module Orb
490
490
  ?discount_type: :usage
491
491
  ) -> void
492
492
 
493
- def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::usage_discount_interval
493
+ def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::usage
494
494
  end
495
495
 
496
- def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval]
496
+ def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage]
497
497
  end
498
498
 
499
499
  type fixed_fee_quantity_schedule =
@@ -195,16 +195,16 @@ module Orb
195
195
  def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::adjustment_interval
196
196
 
197
197
  type adjustment =
198
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment
199
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment
200
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment
201
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment
202
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment
198
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount
199
+ | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount
200
+ | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount
201
+ | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum
202
+ | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
203
203
 
204
204
  module Adjustment
205
205
  extend Orb::Internal::Type::Union
206
206
 
207
- type plan_phase_usage_discount_adjustment =
207
+ type usage_discount =
208
208
  {
209
209
  id: String,
210
210
  adjustment_type: :usage_discount,
@@ -215,7 +215,7 @@ module Orb
215
215
  usage_discount: Float
216
216
  }
217
217
 
218
- class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel
218
+ class UsageDiscount < Orb::Internal::Type::BaseModel
219
219
  attr_accessor id: String
220
220
 
221
221
  attr_accessor adjustment_type: :usage_discount
@@ -240,10 +240,10 @@ module Orb
240
240
  ?adjustment_type: :usage_discount
241
241
  ) -> void
242
242
 
243
- def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment
243
+ def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::usage_discount
244
244
  end
245
245
 
246
- type plan_phase_amount_discount_adjustment =
246
+ type amount_discount =
247
247
  {
248
248
  id: String,
249
249
  adjustment_type: :amount_discount,
@@ -254,7 +254,7 @@ module Orb
254
254
  reason: String?
255
255
  }
256
256
 
257
- class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel
257
+ class AmountDiscount < Orb::Internal::Type::BaseModel
258
258
  attr_accessor id: String
259
259
 
260
260
  attr_accessor adjustment_type: :amount_discount
@@ -279,10 +279,10 @@ module Orb
279
279
  ?adjustment_type: :amount_discount
280
280
  ) -> void
281
281
 
282
- def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment
282
+ def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::amount_discount
283
283
  end
284
284
 
285
- type plan_phase_percentage_discount_adjustment =
285
+ type percentage_discount =
286
286
  {
287
287
  id: String,
288
288
  adjustment_type: :percentage_discount,
@@ -293,7 +293,7 @@ module Orb
293
293
  reason: String?
294
294
  }
295
295
 
296
- class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel
296
+ class PercentageDiscount < Orb::Internal::Type::BaseModel
297
297
  attr_accessor id: String
298
298
 
299
299
  attr_accessor adjustment_type: :percentage_discount
@@ -318,10 +318,10 @@ module Orb
318
318
  ?adjustment_type: :percentage_discount
319
319
  ) -> void
320
320
 
321
- def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment
321
+ def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::percentage_discount
322
322
  end
323
323
 
324
- type plan_phase_minimum_adjustment =
324
+ type minimum =
325
325
  {
326
326
  id: String,
327
327
  adjustment_type: :minimum,
@@ -333,7 +333,7 @@ module Orb
333
333
  reason: String?
334
334
  }
335
335
 
336
- class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel
336
+ class Minimum < Orb::Internal::Type::BaseModel
337
337
  attr_accessor id: String
338
338
 
339
339
  attr_accessor adjustment_type: :minimum
@@ -361,10 +361,10 @@ module Orb
361
361
  ?adjustment_type: :minimum
362
362
  ) -> void
363
363
 
364
- def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment
364
+ def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::minimum
365
365
  end
366
366
 
367
- type plan_phase_maximum_adjustment =
367
+ type maximum =
368
368
  {
369
369
  id: String,
370
370
  adjustment_type: :maximum,
@@ -375,7 +375,7 @@ module Orb
375
375
  reason: String?
376
376
  }
377
377
 
378
- class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel
378
+ class Maximum < Orb::Internal::Type::BaseModel
379
379
  attr_accessor id: String
380
380
 
381
381
  attr_accessor adjustment_type: :maximum
@@ -400,10 +400,10 @@ module Orb
400
400
  ?adjustment_type: :maximum
401
401
  ) -> void
402
402
 
403
- def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment
403
+ def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::maximum
404
404
  end
405
405
 
406
- def self?.variants: -> [Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]
406
+ def self?.variants: -> [Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum]
407
407
  end
408
408
  end
409
409
 
@@ -427,14 +427,14 @@ module Orb
427
427
  end
428
428
 
429
429
  type discount_interval =
430
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::AmountDiscountInterval
431
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::PercentageDiscountInterval
432
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::UsageDiscountInterval
430
+ Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount
431
+ | Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage
432
+ | Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage
433
433
 
434
434
  module DiscountInterval
435
435
  extend Orb::Internal::Type::Union
436
436
 
437
- type amount_discount_interval =
437
+ type amount =
438
438
  {
439
439
  amount_discount: String,
440
440
  applies_to_price_ids: ::Array[String],
@@ -444,7 +444,7 @@ module Orb
444
444
  start_date: Time
445
445
  }
446
446
 
447
- class AmountDiscountInterval < Orb::Internal::Type::BaseModel
447
+ class Amount < Orb::Internal::Type::BaseModel
448
448
  attr_accessor amount_discount: String
449
449
 
450
450
  attr_accessor applies_to_price_ids: ::Array[String]
@@ -466,10 +466,10 @@ module Orb
466
466
  ?discount_type: :amount
467
467
  ) -> void
468
468
 
469
- def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::amount_discount_interval
469
+ def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::amount
470
470
  end
471
471
 
472
- type percentage_discount_interval =
472
+ type percentage =
473
473
  {
474
474
  applies_to_price_ids: ::Array[String],
475
475
  applies_to_price_interval_ids: ::Array[String],
@@ -479,7 +479,7 @@ module Orb
479
479
  start_date: Time
480
480
  }
481
481
 
482
- class PercentageDiscountInterval < Orb::Internal::Type::BaseModel
482
+ class Percentage < Orb::Internal::Type::BaseModel
483
483
  attr_accessor applies_to_price_ids: ::Array[String]
484
484
 
485
485
  attr_accessor applies_to_price_interval_ids: ::Array[String]
@@ -501,10 +501,10 @@ module Orb
501
501
  ?discount_type: :percentage
502
502
  ) -> void
503
503
 
504
- def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::percentage_discount_interval
504
+ def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::percentage
505
505
  end
506
506
 
507
- type usage_discount_interval =
507
+ type usage =
508
508
  {
509
509
  applies_to_price_ids: ::Array[String],
510
510
  applies_to_price_interval_ids: ::Array[String],
@@ -514,7 +514,7 @@ module Orb
514
514
  usage_discount: Float
515
515
  }
516
516
 
517
- class UsageDiscountInterval < Orb::Internal::Type::BaseModel
517
+ class Usage < Orb::Internal::Type::BaseModel
518
518
  attr_accessor applies_to_price_ids: ::Array[String]
519
519
 
520
520
  attr_accessor applies_to_price_interval_ids: ::Array[String]
@@ -536,10 +536,10 @@ module Orb
536
536
  ?discount_type: :usage
537
537
  ) -> void
538
538
 
539
- def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::usage_discount_interval
539
+ def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::usage
540
540
  end
541
541
 
542
- def self?.variants: -> [Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::UsageDiscountInterval]
542
+ def self?.variants: -> [Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage]
543
543
  end
544
544
 
545
545
  type fixed_fee_quantity_schedule =