orb-billing 0.11.0 → 1.0.0

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 (746) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +1 -1
  4. data/lib/orb/internal/type/base_model.rb +5 -5
  5. data/lib/orb/internal/type/union.rb +3 -8
  6. data/lib/orb/internal/util.rb +8 -9
  7. data/lib/orb/models/accounting_provider_config.rb +21 -0
  8. data/lib/orb/models/address.rb +45 -0
  9. data/lib/orb/models/address_input.rb +45 -0
  10. data/lib/orb/models/adjustment_interval.rb +66 -0
  11. data/lib/orb/models/aggregated_cost.rb +45 -0
  12. data/lib/orb/models/alert.rb +9 -60
  13. data/lib/orb/models/alert_create_for_customer_params.rb +3 -24
  14. data/lib/orb/models/alert_create_for_external_customer_params.rb +3 -24
  15. data/lib/orb/models/alert_create_for_subscription_params.rb +3 -23
  16. data/lib/orb/models/alert_update_params.rb +3 -22
  17. data/lib/orb/models/allocation.rb +27 -0
  18. data/lib/orb/models/amount_discount.rb +9 -1
  19. data/lib/orb/models/amount_discount_interval.rb +65 -0
  20. data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +186 -17772
  21. data/lib/orb/models/beta_create_plan_version_params.rb +183 -17605
  22. data/lib/orb/models/billable_metric_tiny.rb +15 -0
  23. data/lib/orb/models/billing_cycle_anchor_configuration.rb +41 -0
  24. data/lib/orb/models/billing_cycle_configuration.rb +32 -0
  25. data/lib/orb/models/bps_config.rb +24 -0
  26. data/lib/orb/models/bps_tier.rb +40 -0
  27. data/lib/orb/models/bulk_bps_config.rb +20 -0
  28. data/lib/orb/models/bulk_bps_tier.rb +32 -0
  29. data/lib/orb/models/bulk_config.rb +16 -0
  30. data/lib/orb/models/bulk_tier.rb +24 -0
  31. data/lib/orb/models/changed_subscription_resources.rb +40 -0
  32. data/lib/orb/models/conversion_rate_tier.rb +32 -0
  33. data/lib/orb/models/conversion_rate_tiered_config.rb +16 -0
  34. data/lib/orb/models/conversion_rate_unit_config.rb +16 -0
  35. data/lib/orb/models/coupon_redemption.rb +27 -0
  36. data/lib/orb/models/credit_note.rb +6 -51
  37. data/lib/orb/models/credit_note_tiny.rb +16 -0
  38. data/lib/orb/models/custom_expiration.rb +32 -0
  39. data/lib/orb/models/customer.rb +15 -426
  40. data/lib/orb/models/customer_create_params.rb +24 -527
  41. data/lib/orb/models/customer_hierarchy_config.rb +29 -0
  42. data/lib/orb/models/customer_minified.rb +21 -0
  43. data/lib/orb/models/customer_tax_id.rb +300 -0
  44. data/lib/orb/models/customer_update_by_external_id_params.rb +24 -529
  45. data/lib/orb/models/customer_update_params.rb +24 -527
  46. data/lib/orb/models/customers/balance_transaction_create_response.rb +6 -32
  47. data/lib/orb/models/customers/balance_transaction_list_response.rb +6 -32
  48. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +3 -88
  49. data/lib/orb/models/customers/cost_list_response.rb +3 -87
  50. data/lib/orb/models/customers/credits/affected_block.rb +31 -0
  51. data/lib/orb/models/customers/credits/amendment_ledger_entry.rb +131 -0
  52. data/lib/orb/models/customers/credits/credit_block_expiry_ledger_entry.rb +137 -0
  53. data/lib/orb/models/customers/credits/decrement_ledger_entry.rb +152 -0
  54. data/lib/orb/models/customers/credits/expiration_change_ledger_entry.rb +141 -0
  55. data/lib/orb/models/customers/credits/increment_ledger_entry.rb +139 -0
  56. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +8 -1177
  57. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +8 -1169
  58. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +8 -1173
  59. data/lib/orb/models/customers/credits/ledger_list_response.rb +8 -1161
  60. data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +3 -52
  61. data/lib/orb/models/customers/credits/top_up_create_response.rb +3 -51
  62. data/lib/orb/models/customers/credits/top_up_invoice_settings.rb +53 -0
  63. data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +3 -52
  64. data/lib/orb/models/customers/credits/top_up_list_response.rb +3 -51
  65. data/lib/orb/models/customers/credits/void_initiated_ledger_entry.rb +152 -0
  66. data/lib/orb/models/customers/credits/void_ledger_entry.rb +145 -0
  67. data/lib/orb/models/dimensional_price_configuration.rb +21 -0
  68. data/lib/orb/models/discount_override.rb +56 -0
  69. data/lib/orb/models/fixed_fee_quantity_schedule_entry.rb +33 -0
  70. data/lib/orb/models/fixed_fee_quantity_transition.rb +27 -0
  71. data/lib/orb/models/invoice.rb +56 -1777
  72. data/lib/orb/models/invoice_create_params.rb +3 -15
  73. data/lib/orb/models/invoice_fetch_upcoming_response.rb +56 -1794
  74. data/lib/orb/models/invoice_line_item_create_response.rb +25 -1142
  75. data/lib/orb/models/invoice_tiny.rb +16 -0
  76. data/lib/orb/models/item_slim.rb +21 -0
  77. data/lib/orb/models/matrix_config.rb +32 -0
  78. data/lib/orb/models/matrix_sub_line_item.rb +61 -0
  79. data/lib/orb/models/matrix_value.rb +29 -0
  80. data/lib/orb/models/matrix_with_allocation_config.rb +40 -0
  81. data/lib/orb/models/maximum.rb +38 -0
  82. data/lib/orb/models/maximum_interval.rb +52 -0
  83. data/lib/orb/models/minimum.rb +38 -0
  84. data/lib/orb/models/minimum_interval.rb +52 -0
  85. data/lib/orb/models/monetary_amount_discount_adjustment.rb +87 -0
  86. data/lib/orb/models/monetary_maximum_adjustment.rb +87 -0
  87. data/lib/orb/models/monetary_minimum_adjustment.rb +95 -0
  88. data/lib/orb/models/monetary_percentage_discount_adjustment.rb +87 -0
  89. data/lib/orb/models/monetary_usage_discount_adjustment.rb +87 -0
  90. data/lib/orb/models/mutated_subscription.rb +302 -0
  91. data/lib/orb/models/new_accounting_sync_configuration.rb +23 -0
  92. data/lib/orb/models/new_allocation_price.rb +70 -0
  93. data/lib/orb/models/new_amount_discount.rb +120 -0
  94. data/lib/orb/models/new_avalara_tax_configuration.rb +37 -0
  95. data/lib/orb/models/new_billing_cycle_configuration.rb +37 -0
  96. data/lib/orb/models/new_dimensional_price_configuration.rb +36 -0
  97. data/lib/orb/models/new_floating_bps_price.rb +199 -0
  98. data/lib/orb/models/new_floating_bulk_bps_price.rb +197 -0
  99. data/lib/orb/models/new_floating_bulk_price.rb +197 -0
  100. data/lib/orb/models/new_floating_bulk_with_proration_price.rb +197 -0
  101. data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +197 -0
  102. data/lib/orb/models/new_floating_grouped_allocation_price.rb +197 -0
  103. data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +197 -0
  104. data/lib/orb/models/new_floating_grouped_tiered_price.rb +197 -0
  105. data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +197 -0
  106. data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +198 -0
  107. data/lib/orb/models/new_floating_matrix_price.rb +197 -0
  108. data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +197 -0
  109. data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +197 -0
  110. data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +197 -0
  111. data/lib/orb/models/new_floating_package_price.rb +197 -0
  112. data/lib/orb/models/new_floating_package_with_allocation_price.rb +197 -0
  113. data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +198 -0
  114. data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +198 -0
  115. data/lib/orb/models/new_floating_threshold_total_amount_price.rb +197 -0
  116. data/lib/orb/models/new_floating_tiered_bps_price.rb +197 -0
  117. data/lib/orb/models/new_floating_tiered_package_price.rb +197 -0
  118. data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +197 -0
  119. data/lib/orb/models/new_floating_tiered_price.rb +197 -0
  120. data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +197 -0
  121. data/lib/orb/models/new_floating_tiered_with_proration_price.rb +197 -0
  122. data/lib/orb/models/new_floating_unit_price.rb +197 -0
  123. data/lib/orb/models/new_floating_unit_with_percent_price.rb +197 -0
  124. data/lib/orb/models/new_floating_unit_with_proration_price.rb +197 -0
  125. data/lib/orb/models/new_maximum.rb +120 -0
  126. data/lib/orb/models/new_minimum.rb +128 -0
  127. data/lib/orb/models/new_percentage_discount.rb +120 -0
  128. data/lib/orb/models/new_plan_bps_price.rb +196 -0
  129. data/lib/orb/models/new_plan_bulk_bps_price.rb +200 -0
  130. data/lib/orb/models/new_plan_bulk_price.rb +196 -0
  131. data/lib/orb/models/new_plan_bulk_with_proration_price.rb +198 -0
  132. data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +198 -0
  133. data/lib/orb/models/new_plan_grouped_allocation_price.rb +198 -0
  134. data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +198 -0
  135. data/lib/orb/models/new_plan_grouped_tiered_price.rb +198 -0
  136. data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +198 -0
  137. data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +199 -0
  138. data/lib/orb/models/new_plan_matrix_price.rb +200 -0
  139. data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +198 -0
  140. data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +198 -0
  141. data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +198 -0
  142. data/lib/orb/models/new_plan_package_price.rb +200 -0
  143. data/lib/orb/models/new_plan_package_with_allocation_price.rb +198 -0
  144. data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +199 -0
  145. data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +199 -0
  146. data/lib/orb/models/new_plan_threshold_total_amount_price.rb +198 -0
  147. data/lib/orb/models/new_plan_tier_with_proration_price.rb +198 -0
  148. data/lib/orb/models/new_plan_tiered_bps_price.rb +198 -0
  149. data/lib/orb/models/new_plan_tiered_package_price.rb +198 -0
  150. data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +198 -0
  151. data/lib/orb/models/new_plan_tiered_price.rb +200 -0
  152. data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +198 -0
  153. data/lib/orb/models/new_plan_unit_price.rb +196 -0
  154. data/lib/orb/models/new_plan_unit_with_percent_price.rb +198 -0
  155. data/lib/orb/models/new_plan_unit_with_proration_price.rb +198 -0
  156. data/lib/orb/models/new_reporting_configuration.rb +15 -0
  157. data/lib/orb/models/new_sphere_configuration.rb +31 -0
  158. data/lib/orb/models/new_subscription_bps_price.rb +207 -0
  159. data/lib/orb/models/new_subscription_bulk_bps_price.rb +207 -0
  160. data/lib/orb/models/new_subscription_bulk_price.rb +207 -0
  161. data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +207 -0
  162. data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +207 -0
  163. data/lib/orb/models/new_subscription_grouped_allocation_price.rb +207 -0
  164. data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +207 -0
  165. data/lib/orb/models/new_subscription_grouped_tiered_price.rb +207 -0
  166. data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +207 -0
  167. data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +208 -0
  168. data/lib/orb/models/new_subscription_matrix_price.rb +207 -0
  169. data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +207 -0
  170. data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +207 -0
  171. data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +207 -0
  172. data/lib/orb/models/new_subscription_package_price.rb +207 -0
  173. data/lib/orb/models/new_subscription_package_with_allocation_price.rb +207 -0
  174. data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +209 -0
  175. data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +209 -0
  176. data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +207 -0
  177. data/lib/orb/models/new_subscription_tier_with_proration_price.rb +207 -0
  178. data/lib/orb/models/new_subscription_tiered_bps_price.rb +207 -0
  179. data/lib/orb/models/new_subscription_tiered_package_price.rb +207 -0
  180. data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +207 -0
  181. data/lib/orb/models/new_subscription_tiered_price.rb +207 -0
  182. data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +207 -0
  183. data/lib/orb/models/new_subscription_unit_price.rb +207 -0
  184. data/lib/orb/models/new_subscription_unit_with_percent_price.rb +207 -0
  185. data/lib/orb/models/new_subscription_unit_with_proration_price.rb +207 -0
  186. data/lib/orb/models/new_tax_jar_configuration.rb +31 -0
  187. data/lib/orb/models/new_usage_discount.rb +120 -0
  188. data/lib/orb/models/other_sub_line_item.rb +54 -0
  189. data/lib/orb/models/package_config.rb +28 -0
  190. data/lib/orb/models/per_price_cost.rb +48 -0
  191. data/lib/orb/models/percentage_discount.rb +9 -1
  192. data/lib/orb/models/percentage_discount_interval.rb +69 -0
  193. data/lib/orb/models/plan.rb +22 -1040
  194. data/lib/orb/models/plan_create_params.rb +31 -8145
  195. data/lib/orb/models/plan_phase_amount_discount_adjustment.rb +87 -0
  196. data/lib/orb/models/plan_phase_maximum_adjustment.rb +87 -0
  197. data/lib/orb/models/plan_phase_minimum_adjustment.rb +95 -0
  198. data/lib/orb/models/plan_phase_percentage_discount_adjustment.rb +87 -0
  199. data/lib/orb/models/plan_phase_usage_discount_adjustment.rb +87 -0
  200. data/lib/orb/models/plan_version.rb +10 -672
  201. data/lib/orb/models/price.rb +1225 -10817
  202. data/lib/orb/models/price_create_params.rb +53 -472
  203. data/lib/orb/models/price_evaluate_multiple_params.rb +32 -8479
  204. data/lib/orb/models/price_evaluate_preview_events_params.rb +236 -0
  205. data/lib/orb/models/price_evaluate_preview_events_response.rb +51 -0
  206. data/lib/orb/models/price_interval.rb +113 -0
  207. data/lib/orb/models/sub_line_item_grouping.rb +23 -0
  208. data/lib/orb/models/sub_line_item_matrix_config.rb +16 -0
  209. data/lib/orb/models/subscription.rb +33 -1581
  210. data/lib/orb/models/subscription_change_apply_response.rb +3 -1904
  211. data/lib/orb/models/subscription_change_cancel_response.rb +3 -1905
  212. data/lib/orb/models/subscription_change_minified.rb +15 -0
  213. data/lib/orb/models/subscription_change_retrieve_response.rb +3 -1906
  214. data/lib/orb/models/subscription_create_params.rb +232 -18278
  215. data/lib/orb/models/subscription_fetch_costs_response.rb +3 -87
  216. data/lib/orb/models/subscription_minified.rb +15 -0
  217. data/lib/orb/models/subscription_price_intervals_params.rb +86 -8758
  218. data/lib/orb/models/subscription_redeem_coupon_params.rb +17 -9
  219. data/lib/orb/models/subscription_schedule_plan_change_params.rb +238 -18372
  220. data/lib/orb/models/subscription_trial_info.rb +15 -0
  221. data/lib/orb/models/tax_amount.rb +32 -0
  222. data/lib/orb/models/threshold.rb +24 -0
  223. data/lib/orb/models/tier.rb +32 -0
  224. data/lib/orb/models/tier_config.rb +27 -0
  225. data/lib/orb/models/tier_sub_line_item.rb +61 -0
  226. data/lib/orb/models/tiered_bps_config.rb +20 -0
  227. data/lib/orb/models/tiered_config.rb +16 -0
  228. data/lib/orb/models/tiered_conversion_rate_config.rb +31 -0
  229. data/lib/orb/models/transform_price_filter.rb +61 -0
  230. data/lib/orb/models/trial_discount.rb +9 -1
  231. data/lib/orb/models/unit_config.rb +16 -0
  232. data/lib/orb/models/unit_conversion_rate_config.rb +31 -0
  233. data/lib/orb/models/usage_discount.rb +9 -1
  234. data/lib/orb/models/usage_discount_interval.rb +69 -0
  235. data/lib/orb/models.rb +348 -0
  236. data/lib/orb/resources/alerts.rb +4 -4
  237. data/lib/orb/resources/customers/credits/ledger.rb +4 -4
  238. data/lib/orb/resources/customers.rb +21 -21
  239. data/lib/orb/resources/plans.rb +1 -1
  240. data/lib/orb/resources/prices/external_price_id.rb +2 -2
  241. data/lib/orb/resources/prices.rb +82 -34
  242. data/lib/orb/resources/subscriptions.rb +29 -27
  243. data/lib/orb/version.rb +1 -1
  244. data/lib/orb.rb +181 -11
  245. data/rbi/orb/internal/util.rbi +2 -0
  246. data/rbi/orb/models/accounting_provider_config.rbi +34 -0
  247. data/rbi/orb/models/address.rbi +55 -0
  248. data/rbi/orb/models/address_input.rbi +62 -0
  249. data/rbi/orb/models/adjustment_interval.rbi +93 -0
  250. data/rbi/orb/models/aggregated_cost.rbi +61 -0
  251. data/rbi/orb/models/alert.rbi +11 -84
  252. data/rbi/orb/models/alert_create_for_customer_params.rbi +3 -42
  253. data/rbi/orb/models/alert_create_for_external_customer_params.rbi +3 -48
  254. data/rbi/orb/models/alert_create_for_subscription_params.rbi +3 -38
  255. data/rbi/orb/models/alert_update_params.rbi +3 -31
  256. data/rbi/orb/models/allocation.rbi +45 -0
  257. data/rbi/orb/models/amount_discount.rbi +8 -0
  258. data/rbi/orb/models/amount_discount_interval.rbi +100 -0
  259. data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +482 -32442
  260. data/rbi/orb/models/beta_create_plan_version_params.rbi +484 -32436
  261. data/rbi/orb/models/billable_metric_tiny.rbi +21 -0
  262. data/rbi/orb/models/billing_cycle_anchor_configuration.rbi +61 -0
  263. data/rbi/orb/models/billing_cycle_configuration.rbi +70 -0
  264. data/rbi/orb/models/bps_config.rbi +36 -0
  265. data/rbi/orb/models/bps_tier.rbi +58 -0
  266. data/rbi/orb/models/bulk_bps_config.rbi +31 -0
  267. data/rbi/orb/models/bulk_bps_tier.rbi +50 -0
  268. data/rbi/orb/models/bulk_config.rbi +26 -0
  269. data/rbi/orb/models/bulk_tier.rbi +38 -0
  270. data/rbi/orb/models/changed_subscription_resources.rbi +61 -0
  271. data/rbi/orb/models/conversion_rate_tier.rbi +51 -0
  272. data/rbi/orb/models/conversion_rate_tiered_config.rbi +31 -0
  273. data/rbi/orb/models/conversion_rate_unit_config.rbi +27 -0
  274. data/rbi/orb/models/coupon_redemption.rbi +37 -0
  275. data/rbi/orb/models/credit_note.rbi +7 -87
  276. data/rbi/orb/models/credit_note_tiny.rbi +25 -0
  277. data/rbi/orb/models/custom_expiration.rbi +55 -0
  278. data/rbi/orb/models/customer.rbi +19 -522
  279. data/rbi/orb/models/customer_create_params.rbi +36 -957
  280. data/rbi/orb/models/customer_hierarchy_config.rbi +52 -0
  281. data/rbi/orb/models/customer_minified.rbi +32 -0
  282. data/rbi/orb/models/customer_tax_id.rbi +324 -0
  283. data/rbi/orb/models/customer_update_by_external_id_params.rbi +36 -1436
  284. data/rbi/orb/models/customer_update_params.rbi +36 -957
  285. data/rbi/orb/models/customers/balance_transaction_create_response.rbi +8 -96
  286. data/rbi/orb/models/customers/balance_transaction_list_response.rbi +8 -96
  287. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +5 -191
  288. data/rbi/orb/models/customers/cost_list_response.rbi +5 -182
  289. data/rbi/orb/models/customers/credits/affected_block.rbi +50 -0
  290. data/rbi/orb/models/customers/credits/amendment_ledger_entry.rbi +207 -0
  291. data/rbi/orb/models/customers/credits/credit_block_expiry_ledger_entry.rbi +209 -0
  292. data/rbi/orb/models/customers/credits/decrement_ledger_entry.rbi +225 -0
  293. data/rbi/orb/models/customers/credits/expiration_change_ledger_entry.rbi +213 -0
  294. data/rbi/orb/models/customers/credits/increment_ledger_entry.rbi +215 -0
  295. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +7 -1854
  296. data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +7 -1854
  297. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +7 -1854
  298. data/rbi/orb/models/customers/credits/ledger_list_response.rbi +7 -1854
  299. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +4 -84
  300. data/rbi/orb/models/customers/credits/top_up_create_response.rbi +4 -84
  301. data/rbi/orb/models/customers/credits/top_up_invoice_settings.rbi +83 -0
  302. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +4 -84
  303. data/rbi/orb/models/customers/credits/top_up_list_response.rbi +4 -84
  304. data/rbi/orb/models/customers/credits/void_initiated_ledger_entry.rbi +225 -0
  305. data/rbi/orb/models/customers/credits/void_ledger_entry.rbi +219 -0
  306. data/rbi/orb/models/dimensional_price_configuration.rbi +38 -0
  307. data/rbi/orb/models/discount_override.rbi +83 -0
  308. data/rbi/orb/models/fixed_fee_quantity_schedule_entry.rbi +48 -0
  309. data/rbi/orb/models/fixed_fee_quantity_transition.rbi +39 -0
  310. data/rbi/orb/models/invoice.rbi +212 -3345
  311. data/rbi/orb/models/invoice_create_params.rbi +4 -33
  312. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +355 -4329
  313. data/rbi/orb/models/invoice_line_item_create_response.rbi +30 -2260
  314. data/rbi/orb/models/invoice_tiny.rbi +24 -0
  315. data/rbi/orb/models/item_slim.rbi +23 -0
  316. data/rbi/orb/models/matrix_config.rbi +50 -0
  317. data/rbi/orb/models/matrix_sub_line_item.rbi +87 -0
  318. data/rbi/orb/models/matrix_value.rbi +43 -0
  319. data/rbi/orb/models/matrix_with_allocation_config.rbi +61 -0
  320. data/rbi/orb/models/maximum.rbi +52 -0
  321. data/rbi/orb/models/maximum_interval.rbi +69 -0
  322. data/rbi/orb/models/minimum.rbi +52 -0
  323. data/rbi/orb/models/minimum_interval.rbi +69 -0
  324. data/rbi/orb/models/monetary_amount_discount_adjustment.rbi +125 -0
  325. data/rbi/orb/models/monetary_maximum_adjustment.rbi +123 -0
  326. data/rbi/orb/models/monetary_minimum_adjustment.rbi +131 -0
  327. data/rbi/orb/models/monetary_percentage_discount_adjustment.rbi +131 -0
  328. data/rbi/orb/models/monetary_usage_discount_adjustment.rbi +125 -0
  329. data/rbi/orb/models/mutated_subscription.rbi +412 -0
  330. data/rbi/orb/models/new_accounting_sync_configuration.rbi +40 -0
  331. data/rbi/orb/models/new_allocation_price.rbi +104 -0
  332. data/rbi/orb/models/new_amount_discount.rbi +179 -0
  333. data/rbi/orb/models/new_avalara_tax_configuration.rbi +68 -0
  334. data/rbi/orb/models/new_billing_cycle_configuration.rbi +79 -0
  335. data/rbi/orb/models/new_dimensional_price_configuration.rbi +55 -0
  336. data/rbi/orb/models/new_floating_bps_price.rbi +294 -0
  337. data/rbi/orb/models/new_floating_bulk_bps_price.rbi +309 -0
  338. data/rbi/orb/models/new_floating_bulk_price.rbi +298 -0
  339. data/rbi/orb/models/new_floating_bulk_with_proration_price.rbi +331 -0
  340. data/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi +338 -0
  341. data/rbi/orb/models/new_floating_grouped_allocation_price.rbi +331 -0
  342. data/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi +337 -0
  343. data/rbi/orb/models/new_floating_grouped_tiered_price.rbi +325 -0
  344. data/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi +348 -0
  345. data/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi +348 -0
  346. data/rbi/orb/models/new_floating_matrix_price.rbi +304 -0
  347. data/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi +345 -0
  348. data/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi +338 -0
  349. data/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi +338 -0
  350. data/rbi/orb/models/new_floating_package_price.rbi +306 -0
  351. data/rbi/orb/models/new_floating_package_with_allocation_price.rbi +338 -0
  352. data/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi +350 -0
  353. data/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi +349 -0
  354. data/rbi/orb/models/new_floating_threshold_total_amount_price.rbi +337 -0
  355. data/rbi/orb/models/new_floating_tiered_bps_price.rbi +317 -0
  356. data/rbi/orb/models/new_floating_tiered_package_price.rbi +325 -0
  357. data/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi +348 -0
  358. data/rbi/orb/models/new_floating_tiered_price.rbi +304 -0
  359. data/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi +331 -0
  360. data/rbi/orb/models/new_floating_tiered_with_proration_price.rbi +337 -0
  361. data/rbi/orb/models/new_floating_unit_price.rbi +298 -0
  362. data/rbi/orb/models/new_floating_unit_with_percent_price.rbi +328 -0
  363. data/rbi/orb/models/new_floating_unit_with_proration_price.rbi +331 -0
  364. data/rbi/orb/models/new_maximum.rbi +160 -0
  365. data/rbi/orb/models/new_minimum.rbi +168 -0
  366. data/rbi/orb/models/new_percentage_discount.rbi +193 -0
  367. data/rbi/orb/models/new_plan_bps_price.rbi +294 -0
  368. data/rbi/orb/models/new_plan_bulk_bps_price.rbi +297 -0
  369. data/rbi/orb/models/new_plan_bulk_price.rbi +295 -0
  370. data/rbi/orb/models/new_plan_bulk_with_proration_price.rbi +327 -0
  371. data/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi +333 -0
  372. data/rbi/orb/models/new_plan_grouped_allocation_price.rbi +327 -0
  373. data/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi +333 -0
  374. data/rbi/orb/models/new_plan_grouped_tiered_price.rbi +316 -0
  375. data/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi +340 -0
  376. data/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi +345 -0
  377. data/rbi/orb/models/new_plan_matrix_price.rbi +297 -0
  378. data/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi +341 -0
  379. data/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi +333 -0
  380. data/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi +333 -0
  381. data/rbi/orb/models/new_plan_package_price.rbi +297 -0
  382. data/rbi/orb/models/new_plan_package_with_allocation_price.rbi +333 -0
  383. data/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi +352 -0
  384. data/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +351 -0
  385. data/rbi/orb/models/new_plan_threshold_total_amount_price.rbi +333 -0
  386. data/rbi/orb/models/new_plan_tier_with_proration_price.rbi +327 -0
  387. data/rbi/orb/models/new_plan_tiered_bps_price.rbi +304 -0
  388. data/rbi/orb/models/new_plan_tiered_package_price.rbi +316 -0
  389. data/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi +339 -0
  390. data/rbi/orb/models/new_plan_tiered_price.rbi +297 -0
  391. data/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi +327 -0
  392. data/rbi/orb/models/new_plan_unit_price.rbi +295 -0
  393. data/rbi/orb/models/new_plan_unit_with_percent_price.rbi +325 -0
  394. data/rbi/orb/models/new_plan_unit_with_proration_price.rbi +327 -0
  395. data/rbi/orb/models/new_reporting_configuration.rbi +23 -0
  396. data/rbi/orb/models/new_sphere_configuration.rbi +59 -0
  397. data/rbi/orb/models/new_subscription_bps_price.rbi +317 -0
  398. data/rbi/orb/models/new_subscription_bulk_bps_price.rbi +338 -0
  399. data/rbi/orb/models/new_subscription_bulk_price.rbi +321 -0
  400. data/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi +350 -0
  401. data/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi +360 -0
  402. data/rbi/orb/models/new_subscription_grouped_allocation_price.rbi +350 -0
  403. data/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi +360 -0
  404. data/rbi/orb/models/new_subscription_grouped_tiered_price.rbi +343 -0
  405. data/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi +360 -0
  406. data/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi +360 -0
  407. data/rbi/orb/models/new_subscription_matrix_price.rbi +332 -0
  408. data/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi +368 -0
  409. data/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi +360 -0
  410. data/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi +360 -0
  411. data/rbi/orb/models/new_subscription_package_price.rbi +338 -0
  412. data/rbi/orb/models/new_subscription_package_with_allocation_price.rbi +360 -0
  413. data/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi +362 -0
  414. data/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi +361 -0
  415. data/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi +360 -0
  416. data/rbi/orb/models/new_subscription_tier_with_proration_price.rbi +350 -0
  417. data/rbi/orb/models/new_subscription_tiered_bps_price.rbi +340 -0
  418. data/rbi/orb/models/new_subscription_tiered_package_price.rbi +343 -0
  419. data/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi +360 -0
  420. data/rbi/orb/models/new_subscription_tiered_price.rbi +332 -0
  421. data/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi +350 -0
  422. data/rbi/orb/models/new_subscription_unit_price.rbi +321 -0
  423. data/rbi/orb/models/new_subscription_unit_with_percent_price.rbi +349 -0
  424. data/rbi/orb/models/new_subscription_unit_with_proration_price.rbi +350 -0
  425. data/rbi/orb/models/new_tax_jar_configuration.rbi +59 -0
  426. data/rbi/orb/models/new_usage_discount.rbi +177 -0
  427. data/rbi/orb/models/other_sub_line_item.rbi +78 -0
  428. data/rbi/orb/models/package_config.rbi +39 -0
  429. data/rbi/orb/models/per_price_cost.rbi +96 -0
  430. data/rbi/orb/models/percentage_discount.rbi +8 -0
  431. data/rbi/orb/models/percentage_discount_interval.rbi +107 -0
  432. data/rbi/orb/models/plan.rbi +29 -1937
  433. data/rbi/orb/models/plan_create_params.rbi +112 -15428
  434. data/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi +128 -0
  435. data/rbi/orb/models/plan_phase_maximum_adjustment.rbi +123 -0
  436. data/rbi/orb/models/plan_phase_minimum_adjustment.rbi +131 -0
  437. data/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi +131 -0
  438. data/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi +125 -0
  439. data/rbi/orb/models/plan_version.rbi +13 -1252
  440. data/rbi/orb/models/price.rbi +3518 -26097
  441. data/rbi/orb/models/price_create_params.rbi +81 -937
  442. data/rbi/orb/models/price_evaluate_multiple_params.rbi +112 -15566
  443. data/rbi/orb/models/price_evaluate_preview_events_params.rbi +411 -0
  444. data/rbi/orb/models/price_evaluate_preview_events_response.rbi +101 -0
  445. data/rbi/orb/models/price_interval.rbi +174 -0
  446. data/rbi/orb/models/sub_line_item_grouping.rbi +31 -0
  447. data/rbi/orb/models/sub_line_item_matrix_config.rbi +33 -0
  448. data/rbi/orb/models/subscription.rbi +51 -2939
  449. data/rbi/orb/models/subscription_change_apply_response.rbi +4 -3580
  450. data/rbi/orb/models/subscription_change_cancel_response.rbi +4 -3580
  451. data/rbi/orb/models/subscription_change_minified.rbi +23 -0
  452. data/rbi/orb/models/subscription_change_retrieve_response.rbi +4 -3582
  453. data/rbi/orb/models/subscription_create_params.rbi +541 -33368
  454. data/rbi/orb/models/subscription_fetch_costs_response.rbi +5 -182
  455. data/rbi/orb/models/subscription_minified.rbi +23 -0
  456. data/rbi/orb/models/subscription_price_intervals_params.rbi +224 -16144
  457. data/rbi/orb/models/subscription_redeem_coupon_params.rbi +16 -8
  458. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +549 -33384
  459. data/rbi/orb/models/subscription_trial_info.rbi +23 -0
  460. data/rbi/orb/models/tax_amount.rbi +50 -0
  461. data/rbi/orb/models/threshold.rbi +30 -0
  462. data/rbi/orb/models/tier.rbi +50 -0
  463. data/rbi/orb/models/tier_config.rbi +40 -0
  464. data/rbi/orb/models/tier_sub_line_item.rbi +87 -0
  465. data/rbi/orb/models/tiered_bps_config.rbi +29 -0
  466. data/rbi/orb/models/tiered_config.rbi +26 -0
  467. data/rbi/orb/models/tiered_conversion_rate_config.rbi +73 -0
  468. data/rbi/orb/models/transform_price_filter.rbi +106 -0
  469. data/rbi/orb/models/trial_discount.rbi +8 -0
  470. data/rbi/orb/models/unit_config.rbi +24 -0
  471. data/rbi/orb/models/unit_conversion_rate_config.rbi +71 -0
  472. data/rbi/orb/models/usage_discount.rbi +8 -0
  473. data/rbi/orb/models/usage_discount_interval.rbi +99 -0
  474. data/rbi/orb/models.rbi +398 -0
  475. data/rbi/orb/resources/alerts.rbi +4 -13
  476. data/rbi/orb/resources/customers.rbi +27 -51
  477. data/rbi/orb/resources/plans.rbi +28 -28
  478. data/rbi/orb/resources/prices.rbi +82 -36
  479. data/rbi/orb/resources/subscriptions.rbi +19 -22
  480. data/sig/orb/models/accounting_provider_config.rbs +19 -0
  481. data/sig/orb/models/address.rbs +45 -0
  482. data/sig/orb/models/address_input.rbs +45 -0
  483. data/sig/orb/models/adjustment_interval.rbs +53 -0
  484. data/sig/orb/models/aggregated_cost.rbs +40 -0
  485. data/sig/orb/models/alert.rbs +12 -44
  486. data/sig/orb/models/alert_create_for_customer_params.rbs +4 -14
  487. data/sig/orb/models/alert_create_for_external_customer_params.rbs +4 -14
  488. data/sig/orb/models/alert_create_for_subscription_params.rbs +4 -14
  489. data/sig/orb/models/alert_update_params.rbs +4 -14
  490. data/sig/orb/models/allocation.rbs +30 -0
  491. data/sig/orb/models/amount_discount.rbs +5 -0
  492. data/sig/orb/models/amount_discount_interval.rbs +55 -0
  493. data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +147 -12821
  494. data/sig/orb/models/beta_create_plan_version_params.rbs +144 -12802
  495. data/sig/orb/models/billable_metric_tiny.rbs +13 -0
  496. data/sig/orb/models/billing_cycle_anchor_configuration.rbs +18 -0
  497. data/sig/orb/models/billing_cycle_configuration.rbs +36 -0
  498. data/sig/orb/models/bps_config.rbs +15 -0
  499. data/sig/orb/models/bps_tier.rbs +35 -0
  500. data/sig/orb/models/bulk_bps_config.rbs +13 -0
  501. data/sig/orb/models/bulk_bps_tier.rbs +26 -0
  502. data/sig/orb/models/bulk_config.rbs +13 -0
  503. data/sig/orb/models/bulk_tier.rbs +15 -0
  504. data/sig/orb/models/changed_subscription_resources.rbs +35 -0
  505. data/sig/orb/models/conversion_rate_tier.rbs +26 -0
  506. data/sig/orb/models/conversion_rate_tiered_config.rbs +14 -0
  507. data/sig/orb/models/conversion_rate_unit_config.rbs +13 -0
  508. data/sig/orb/models/coupon_redemption.rbs +22 -0
  509. data/sig/orb/models/credit_note.rbs +8 -47
  510. data/sig/orb/models/credit_note_tiny.rbs +13 -0
  511. data/sig/orb/models/custom_expiration.rbs +36 -0
  512. data/sig/orb/models/customer.rbs +20 -471
  513. data/sig/orb/models/customer_create_params.rbs +27 -577
  514. data/sig/orb/models/customer_hierarchy_config.rbs +24 -0
  515. data/sig/orb/models/customer_minified.rbs +15 -0
  516. data/sig/orb/models/customer_tax_id.rbs +346 -0
  517. data/sig/orb/models/customer_update_by_external_id_params.rbs +27 -577
  518. data/sig/orb/models/customer_update_params.rbs +27 -577
  519. data/sig/orb/models/customers/balance_transaction_create_response.rbs +8 -28
  520. data/sig/orb/models/customers/balance_transaction_list_response.rbs +8 -28
  521. data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +4 -84
  522. data/sig/orb/models/customers/cost_list_response.rbs +4 -83
  523. data/sig/orb/models/customers/credits/affected_block.rbs +30 -0
  524. data/sig/orb/models/customers/credits/amendment_ledger_entry.rbs +105 -0
  525. data/sig/orb/models/customers/credits/credit_block_expiry_ledger_entry.rbs +107 -0
  526. data/sig/orb/models/customers/credits/decrement_ledger_entry.rbs +120 -0
  527. data/sig/orb/models/customers/credits/expiration_change_ledger_entry.rbs +110 -0
  528. data/sig/orb/models/customers/credits/increment_ledger_entry.rbs +110 -0
  529. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +7 -939
  530. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +7 -939
  531. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +7 -939
  532. data/sig/orb/models/customers/credits/ledger_list_response.rbs +7 -939
  533. data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +4 -38
  534. data/sig/orb/models/customers/credits/top_up_create_response.rbs +4 -38
  535. data/sig/orb/models/customers/credits/top_up_invoice_settings.rbs +41 -0
  536. data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +4 -38
  537. data/sig/orb/models/customers/credits/top_up_list_response.rbs +4 -38
  538. data/sig/orb/models/customers/credits/void_initiated_ledger_entry.rbs +120 -0
  539. data/sig/orb/models/customers/credits/void_ledger_entry.rbs +115 -0
  540. data/sig/orb/models/dimensional_price_configuration.rbs +22 -0
  541. data/sig/orb/models/discount_override.rbs +47 -0
  542. data/sig/orb/models/fixed_fee_quantity_schedule_entry.rbs +30 -0
  543. data/sig/orb/models/fixed_fee_quantity_transition.rbs +26 -0
  544. data/sig/orb/models/invoice.rbs +54 -1612
  545. data/sig/orb/models/invoice_create_params.rbs +4 -14
  546. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +54 -1612
  547. data/sig/orb/models/invoice_line_item_create_response.rbs +18 -927
  548. data/sig/orb/models/invoice_tiny.rbs +13 -0
  549. data/sig/orb/models/item_slim.rbs +15 -0
  550. data/sig/orb/models/matrix_config.rbs +30 -0
  551. data/sig/orb/models/matrix_sub_line_item.rbs +55 -0
  552. data/sig/orb/models/matrix_value.rbs +22 -0
  553. data/sig/orb/models/matrix_with_allocation_config.rbs +35 -0
  554. data/sig/orb/models/maximum.rbs +30 -0
  555. data/sig/orb/models/maximum_interval.rbs +40 -0
  556. data/sig/orb/models/minimum.rbs +30 -0
  557. data/sig/orb/models/minimum_interval.rbs +40 -0
  558. data/sig/orb/models/monetary_amount_discount_adjustment.rbs +65 -0
  559. data/sig/orb/models/monetary_maximum_adjustment.rbs +65 -0
  560. data/sig/orb/models/monetary_minimum_adjustment.rbs +70 -0
  561. data/sig/orb/models/monetary_percentage_discount_adjustment.rbs +65 -0
  562. data/sig/orb/models/monetary_usage_discount_adjustment.rbs +65 -0
  563. data/sig/orb/models/mutated_subscription.rbs +178 -0
  564. data/sig/orb/models/new_accounting_sync_configuration.rbs +25 -0
  565. data/sig/orb/models/new_allocation_price.rbs +56 -0
  566. data/sig/orb/models/new_amount_discount.rbs +97 -0
  567. data/sig/orb/models/new_avalara_tax_configuration.rbs +40 -0
  568. data/sig/orb/models/new_billing_cycle_configuration.rbs +36 -0
  569. data/sig/orb/models/new_dimensional_price_configuration.rbs +30 -0
  570. data/sig/orb/models/new_floating_bps_price.rbs +135 -0
  571. data/sig/orb/models/new_floating_bulk_bps_price.rbs +135 -0
  572. data/sig/orb/models/new_floating_bulk_price.rbs +135 -0
  573. data/sig/orb/models/new_floating_bulk_with_proration_price.rbs +135 -0
  574. data/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +135 -0
  575. data/sig/orb/models/new_floating_grouped_allocation_price.rbs +135 -0
  576. data/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +135 -0
  577. data/sig/orb/models/new_floating_grouped_tiered_price.rbs +135 -0
  578. data/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +135 -0
  579. data/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +135 -0
  580. data/sig/orb/models/new_floating_matrix_price.rbs +135 -0
  581. data/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +135 -0
  582. data/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +135 -0
  583. data/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +135 -0
  584. data/sig/orb/models/new_floating_package_price.rbs +135 -0
  585. data/sig/orb/models/new_floating_package_with_allocation_price.rbs +135 -0
  586. data/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +135 -0
  587. data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +135 -0
  588. data/sig/orb/models/new_floating_threshold_total_amount_price.rbs +135 -0
  589. data/sig/orb/models/new_floating_tiered_bps_price.rbs +135 -0
  590. data/sig/orb/models/new_floating_tiered_package_price.rbs +135 -0
  591. data/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +135 -0
  592. data/sig/orb/models/new_floating_tiered_price.rbs +135 -0
  593. data/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +135 -0
  594. data/sig/orb/models/new_floating_tiered_with_proration_price.rbs +135 -0
  595. data/sig/orb/models/new_floating_unit_price.rbs +135 -0
  596. data/sig/orb/models/new_floating_unit_with_percent_price.rbs +135 -0
  597. data/sig/orb/models/new_floating_unit_with_proration_price.rbs +135 -0
  598. data/sig/orb/models/new_maximum.rbs +97 -0
  599. data/sig/orb/models/new_minimum.rbs +102 -0
  600. data/sig/orb/models/new_percentage_discount.rbs +97 -0
  601. data/sig/orb/models/new_plan_bps_price.rbs +135 -0
  602. data/sig/orb/models/new_plan_bulk_bps_price.rbs +135 -0
  603. data/sig/orb/models/new_plan_bulk_price.rbs +135 -0
  604. data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +135 -0
  605. data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +135 -0
  606. data/sig/orb/models/new_plan_grouped_allocation_price.rbs +135 -0
  607. data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +135 -0
  608. data/sig/orb/models/new_plan_grouped_tiered_price.rbs +135 -0
  609. data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +135 -0
  610. data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +135 -0
  611. data/sig/orb/models/new_plan_matrix_price.rbs +135 -0
  612. data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +135 -0
  613. data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +135 -0
  614. data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +135 -0
  615. data/sig/orb/models/new_plan_package_price.rbs +135 -0
  616. data/sig/orb/models/new_plan_package_with_allocation_price.rbs +135 -0
  617. data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +135 -0
  618. data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +135 -0
  619. data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +135 -0
  620. data/sig/orb/models/new_plan_tier_with_proration_price.rbs +135 -0
  621. data/sig/orb/models/new_plan_tiered_bps_price.rbs +135 -0
  622. data/sig/orb/models/new_plan_tiered_package_price.rbs +135 -0
  623. data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +135 -0
  624. data/sig/orb/models/new_plan_tiered_price.rbs +135 -0
  625. data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +135 -0
  626. data/sig/orb/models/new_plan_unit_price.rbs +135 -0
  627. data/sig/orb/models/new_plan_unit_with_percent_price.rbs +135 -0
  628. data/sig/orb/models/new_plan_unit_with_proration_price.rbs +135 -0
  629. data/sig/orb/models/new_reporting_configuration.rbs +13 -0
  630. data/sig/orb/models/new_sphere_configuration.rbs +35 -0
  631. data/sig/orb/models/new_subscription_bps_price.rbs +140 -0
  632. data/sig/orb/models/new_subscription_bulk_bps_price.rbs +140 -0
  633. data/sig/orb/models/new_subscription_bulk_price.rbs +140 -0
  634. data/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +140 -0
  635. data/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +140 -0
  636. data/sig/orb/models/new_subscription_grouped_allocation_price.rbs +140 -0
  637. data/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +140 -0
  638. data/sig/orb/models/new_subscription_grouped_tiered_price.rbs +140 -0
  639. data/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +140 -0
  640. data/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +140 -0
  641. data/sig/orb/models/new_subscription_matrix_price.rbs +140 -0
  642. data/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +140 -0
  643. data/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +140 -0
  644. data/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +140 -0
  645. data/sig/orb/models/new_subscription_package_price.rbs +140 -0
  646. data/sig/orb/models/new_subscription_package_with_allocation_price.rbs +140 -0
  647. data/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +140 -0
  648. data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +140 -0
  649. data/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +140 -0
  650. data/sig/orb/models/new_subscription_tier_with_proration_price.rbs +140 -0
  651. data/sig/orb/models/new_subscription_tiered_bps_price.rbs +140 -0
  652. data/sig/orb/models/new_subscription_tiered_package_price.rbs +140 -0
  653. data/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +140 -0
  654. data/sig/orb/models/new_subscription_tiered_price.rbs +140 -0
  655. data/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +140 -0
  656. data/sig/orb/models/new_subscription_unit_price.rbs +140 -0
  657. data/sig/orb/models/new_subscription_unit_with_percent_price.rbs +140 -0
  658. data/sig/orb/models/new_subscription_unit_with_proration_price.rbs +140 -0
  659. data/sig/orb/models/new_tax_jar_configuration.rbs +35 -0
  660. data/sig/orb/models/new_usage_discount.rbs +97 -0
  661. data/sig/orb/models/other_sub_line_item.rbs +50 -0
  662. data/sig/orb/models/package_config.rbs +15 -0
  663. data/sig/orb/models/per_price_cost.rbs +40 -0
  664. data/sig/orb/models/percentage_discount.rbs +5 -0
  665. data/sig/orb/models/percentage_discount_interval.rbs +55 -0
  666. data/sig/orb/models/plan.rbs +21 -871
  667. data/sig/orb/models/plan_create_params.rbs +28 -5952
  668. data/sig/orb/models/plan_phase_amount_discount_adjustment.rbs +65 -0
  669. data/sig/orb/models/plan_phase_maximum_adjustment.rbs +65 -0
  670. data/sig/orb/models/plan_phase_minimum_adjustment.rbs +70 -0
  671. data/sig/orb/models/plan_phase_percentage_discount_adjustment.rbs +65 -0
  672. data/sig/orb/models/plan_phase_usage_discount_adjustment.rbs +65 -0
  673. data/sig/orb/models/plan_version.rbs +5 -535
  674. data/sig/orb/models/price.rbs +2164 -11297
  675. data/sig/orb/models/price_create_params.rbs +58 -418
  676. data/sig/orb/models/price_evaluate_multiple_params.rbs +28 -6138
  677. data/sig/orb/models/price_evaluate_preview_events_params.rbs +166 -0
  678. data/sig/orb/models/price_evaluate_preview_events_response.rbs +50 -0
  679. data/sig/orb/models/price_interval.rbs +65 -0
  680. data/sig/orb/models/sub_line_item_grouping.rbs +15 -0
  681. data/sig/orb/models/sub_line_item_matrix_config.rbs +13 -0
  682. data/sig/orb/models/subscription.rbs +39 -1274
  683. data/sig/orb/models/subscription_change_apply_response.rbs +4 -1467
  684. data/sig/orb/models/subscription_change_cancel_response.rbs +4 -1467
  685. data/sig/orb/models/subscription_change_minified.rbs +13 -0
  686. data/sig/orb/models/subscription_change_retrieve_response.rbs +4 -1467
  687. data/sig/orb/models/subscription_create_params.rbs +174 -13219
  688. data/sig/orb/models/subscription_fetch_costs_response.rbs +4 -82
  689. data/sig/orb/models/subscription_minified.rbs +13 -0
  690. data/sig/orb/models/subscription_price_intervals_params.rbs +61 -6390
  691. data/sig/orb/models/subscription_redeem_coupon_params.rbs +11 -6
  692. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +175 -13220
  693. data/sig/orb/models/subscription_trial_info.rbs +13 -0
  694. data/sig/orb/models/tax_amount.rbs +30 -0
  695. data/sig/orb/models/threshold.rbs +13 -0
  696. data/sig/orb/models/tier.rbs +25 -0
  697. data/sig/orb/models/tier_config.rbs +26 -0
  698. data/sig/orb/models/tier_sub_line_item.rbs +55 -0
  699. data/sig/orb/models/tiered_bps_config.rbs +13 -0
  700. data/sig/orb/models/tiered_config.rbs +13 -0
  701. data/sig/orb/models/tiered_conversion_rate_config.rbs +35 -0
  702. data/sig/orb/models/transform_price_filter.rbs +56 -0
  703. data/sig/orb/models/trial_discount.rbs +5 -0
  704. data/sig/orb/models/unit_config.rbs +13 -0
  705. data/sig/orb/models/unit_conversion_rate_config.rbs +35 -0
  706. data/sig/orb/models/usage_discount.rbs +5 -0
  707. data/sig/orb/models/usage_discount_interval.rbs +55 -0
  708. data/sig/orb/models.rbs +342 -0
  709. data/sig/orb/resources/alerts.rbs +4 -4
  710. data/sig/orb/resources/customers.rbs +18 -18
  711. data/sig/orb/resources/prices.rbs +23 -13
  712. data/sig/orb/resources/subscriptions.rbs +15 -14
  713. metadata +545 -35
  714. data/lib/orb/models/subscription_cancel_response.rb +0 -1873
  715. data/lib/orb/models/subscription_create_response.rb +0 -1873
  716. data/lib/orb/models/subscription_price_intervals_response.rb +0 -1888
  717. data/lib/orb/models/subscription_redeem_coupon_response.rb +0 -1883
  718. data/lib/orb/models/subscription_schedule_plan_change_response.rb +0 -1893
  719. data/lib/orb/models/subscription_trigger_phase_response.rb +0 -1883
  720. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +0 -1897
  721. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +0 -1912
  722. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +0 -1908
  723. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +0 -1897
  724. data/lib/orb/models/subscription_update_trial_response.rb +0 -1879
  725. data/rbi/orb/models/subscription_cancel_response.rbi +0 -3537
  726. data/rbi/orb/models/subscription_create_response.rbi +0 -3537
  727. data/rbi/orb/models/subscription_price_intervals_response.rbi +0 -3564
  728. data/rbi/orb/models/subscription_redeem_coupon_response.rbi +0 -3557
  729. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +0 -3564
  730. data/rbi/orb/models/subscription_trigger_phase_response.rbi +0 -3557
  731. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +0 -3566
  732. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +0 -3566
  733. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +0 -3566
  734. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +0 -3566
  735. data/rbi/orb/models/subscription_update_trial_response.rbi +0 -3556
  736. data/sig/orb/models/subscription_cancel_response.rbs +0 -1445
  737. data/sig/orb/models/subscription_create_response.rbs +0 -1445
  738. data/sig/orb/models/subscription_price_intervals_response.rbs +0 -1445
  739. data/sig/orb/models/subscription_redeem_coupon_response.rbs +0 -1445
  740. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +0 -1445
  741. data/sig/orb/models/subscription_trigger_phase_response.rbs +0 -1445
  742. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +0 -1445
  743. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +0 -1445
  744. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +0 -1445
  745. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +0 -1445
  746. data/sig/orb/models/subscription_update_trial_response.rbs +0 -1445
@@ -5,7 +5,7 @@ module Orb
5
5
  id: String,
6
6
  expiration_time: Time,
7
7
  status: Orb::Models::SubscriptionChangeApplyResponse::status,
8
- subscription: Orb::Models::SubscriptionChangeApplyResponse::Subscription?,
8
+ subscription: Orb::MutatedSubscription?,
9
9
  applied_at: Time?,
10
10
  cancelled_at: Time?
11
11
  }
@@ -17,7 +17,7 @@ module Orb
17
17
 
18
18
  attr_accessor status: Orb::Models::SubscriptionChangeApplyResponse::status
19
19
 
20
- attr_accessor subscription: Orb::Models::SubscriptionChangeApplyResponse::Subscription?
20
+ attr_accessor subscription: Orb::MutatedSubscription?
21
21
 
22
22
  attr_accessor applied_at: Time?
23
23
 
@@ -27,7 +27,7 @@ module Orb
27
27
  id: String,
28
28
  expiration_time: Time,
29
29
  status: Orb::Models::SubscriptionChangeApplyResponse::status,
30
- subscription: Orb::Models::SubscriptionChangeApplyResponse::Subscription?,
30
+ subscription: Orb::MutatedSubscription?,
31
31
  ?applied_at: Time?,
32
32
  ?cancelled_at: Time?
33
33
  ) -> void
@@ -36,7 +36,7 @@ module Orb
36
36
  id: String,
37
37
  expiration_time: Time,
38
38
  status: Orb::Models::SubscriptionChangeApplyResponse::status,
39
- subscription: Orb::Models::SubscriptionChangeApplyResponse::Subscription?,
39
+ subscription: Orb::MutatedSubscription?,
40
40
  applied_at: Time?,
41
41
  cancelled_at: Time?
42
42
  }
@@ -52,1469 +52,6 @@ module Orb
52
52
 
53
53
  def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::status]
54
54
  end
55
-
56
- type subscription =
57
- {
58
- id: String,
59
- active_plan_phase_order: Integer?,
60
- adjustment_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval],
61
- auto_collection: bool?,
62
- billing_cycle_anchor_configuration: Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration,
63
- billing_cycle_day: Integer,
64
- created_at: Time,
65
- current_billing_period_end_date: Time?,
66
- current_billing_period_start_date: Time?,
67
- customer: Orb::Customer,
68
- default_invoice_memo: String?,
69
- discount_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::discount_interval],
70
- end_date: Time?,
71
- fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule],
72
- invoicing_threshold: String?,
73
- maximum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval],
74
- metadata: ::Hash[Symbol, String],
75
- minimum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval],
76
- name: String,
77
- net_terms: Integer,
78
- pending_subscription_change: Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange?,
79
- plan: Orb::Plan?,
80
- price_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval],
81
- redeemed_coupon: Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon?,
82
- start_date: Time,
83
- status: Orb::Models::SubscriptionChangeApplyResponse::Subscription::status,
84
- trial_info: Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo,
85
- changed_resources: Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources?
86
- }
87
-
88
- class Subscription < Orb::Internal::Type::BaseModel
89
- attr_accessor id: String
90
-
91
- attr_accessor active_plan_phase_order: Integer?
92
-
93
- attr_accessor adjustment_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval]
94
-
95
- attr_accessor auto_collection: bool?
96
-
97
- attr_accessor billing_cycle_anchor_configuration: Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration
98
-
99
- attr_accessor billing_cycle_day: Integer
100
-
101
- attr_accessor created_at: Time
102
-
103
- attr_accessor current_billing_period_end_date: Time?
104
-
105
- attr_accessor current_billing_period_start_date: Time?
106
-
107
- attr_accessor customer: Orb::Customer
108
-
109
- attr_accessor default_invoice_memo: String?
110
-
111
- attr_accessor discount_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::discount_interval]
112
-
113
- attr_accessor end_date: Time?
114
-
115
- attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule]
116
-
117
- attr_accessor invoicing_threshold: String?
118
-
119
- attr_accessor maximum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval]
120
-
121
- attr_accessor metadata: ::Hash[Symbol, String]
122
-
123
- attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval]
124
-
125
- attr_accessor name: String
126
-
127
- attr_accessor net_terms: Integer
128
-
129
- attr_accessor pending_subscription_change: Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange?
130
-
131
- attr_accessor plan: Orb::Plan?
132
-
133
- attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval]
134
-
135
- attr_accessor redeemed_coupon: Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon?
136
-
137
- attr_accessor start_date: Time
138
-
139
- attr_accessor status: Orb::Models::SubscriptionChangeApplyResponse::Subscription::status
140
-
141
- attr_accessor trial_info: Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo
142
-
143
- attr_accessor changed_resources: Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources?
144
-
145
- def initialize: (
146
- id: String,
147
- active_plan_phase_order: Integer?,
148
- adjustment_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval],
149
- auto_collection: bool?,
150
- billing_cycle_anchor_configuration: Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration,
151
- billing_cycle_day: Integer,
152
- created_at: Time,
153
- current_billing_period_end_date: Time?,
154
- current_billing_period_start_date: Time?,
155
- customer: Orb::Customer,
156
- default_invoice_memo: String?,
157
- discount_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::discount_interval],
158
- end_date: Time?,
159
- fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule],
160
- invoicing_threshold: String?,
161
- maximum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval],
162
- metadata: ::Hash[Symbol, String],
163
- minimum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval],
164
- name: String,
165
- net_terms: Integer,
166
- pending_subscription_change: Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange?,
167
- plan: Orb::Plan?,
168
- price_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval],
169
- redeemed_coupon: Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon?,
170
- start_date: Time,
171
- status: Orb::Models::SubscriptionChangeApplyResponse::Subscription::status,
172
- trial_info: Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo,
173
- ?changed_resources: Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources?
174
- ) -> void
175
-
176
- def to_hash: -> {
177
- id: String,
178
- active_plan_phase_order: Integer?,
179
- adjustment_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval],
180
- auto_collection: bool?,
181
- billing_cycle_anchor_configuration: Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration,
182
- billing_cycle_day: Integer,
183
- created_at: Time,
184
- current_billing_period_end_date: Time?,
185
- current_billing_period_start_date: Time?,
186
- customer: Orb::Customer,
187
- default_invoice_memo: String?,
188
- discount_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::discount_interval],
189
- end_date: Time?,
190
- fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule],
191
- invoicing_threshold: String?,
192
- maximum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval],
193
- metadata: ::Hash[Symbol, String],
194
- minimum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval],
195
- name: String,
196
- net_terms: Integer,
197
- pending_subscription_change: Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange?,
198
- plan: Orb::Plan?,
199
- price_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval],
200
- redeemed_coupon: Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon?,
201
- start_date: Time,
202
- status: Orb::Models::SubscriptionChangeApplyResponse::Subscription::status,
203
- trial_info: Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo,
204
- changed_resources: Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources?
205
- }
206
-
207
- type adjustment_interval =
208
- {
209
- id: String,
210
- adjustment: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::adjustment,
211
- applies_to_price_interval_ids: ::Array[String],
212
- end_date: Time?,
213
- start_date: Time
214
- }
215
-
216
- class AdjustmentInterval < Orb::Internal::Type::BaseModel
217
- attr_accessor id: String
218
-
219
- attr_accessor adjustment: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::adjustment
220
-
221
- attr_accessor applies_to_price_interval_ids: ::Array[String]
222
-
223
- attr_accessor end_date: Time?
224
-
225
- attr_accessor start_date: Time
226
-
227
- def initialize: (
228
- id: String,
229
- adjustment: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::adjustment,
230
- applies_to_price_interval_ids: ::Array[String],
231
- end_date: Time?,
232
- start_date: Time
233
- ) -> void
234
-
235
- def to_hash: -> {
236
- id: String,
237
- adjustment: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::adjustment,
238
- applies_to_price_interval_ids: ::Array[String],
239
- end_date: Time?,
240
- start_date: Time
241
- }
242
-
243
- type adjustment =
244
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount
245
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount
246
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount
247
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum
248
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum
249
-
250
- module Adjustment
251
- extend Orb::Internal::Type::Union
252
-
253
- type usage_discount =
254
- {
255
- id: String,
256
- adjustment_type: :usage_discount,
257
- applies_to_price_ids: ::Array[String],
258
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter],
259
- is_invoice_level: bool,
260
- plan_phase_order: Integer?,
261
- reason: String?,
262
- usage_discount: Float
263
- }
264
-
265
- class UsageDiscount < Orb::Internal::Type::BaseModel
266
- attr_accessor id: String
267
-
268
- attr_accessor adjustment_type: :usage_discount
269
-
270
- attr_accessor applies_to_price_ids: ::Array[String]
271
-
272
- attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter]
273
-
274
- attr_accessor is_invoice_level: bool
275
-
276
- attr_accessor plan_phase_order: Integer?
277
-
278
- attr_accessor reason: String?
279
-
280
- attr_accessor usage_discount: Float
281
-
282
- def initialize: (
283
- id: String,
284
- applies_to_price_ids: ::Array[String],
285
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter],
286
- is_invoice_level: bool,
287
- plan_phase_order: Integer?,
288
- reason: String?,
289
- usage_discount: Float,
290
- ?adjustment_type: :usage_discount
291
- ) -> void
292
-
293
- def to_hash: -> {
294
- id: String,
295
- adjustment_type: :usage_discount,
296
- applies_to_price_ids: ::Array[String],
297
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter],
298
- is_invoice_level: bool,
299
- plan_phase_order: Integer?,
300
- reason: String?,
301
- usage_discount: Float
302
- }
303
-
304
- type filter =
305
- {
306
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field,
307
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator,
308
- values: ::Array[String]
309
- }
310
-
311
- class Filter < Orb::Internal::Type::BaseModel
312
- attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field
313
-
314
- attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator
315
-
316
- attr_accessor values: ::Array[String]
317
-
318
- def initialize: (
319
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field,
320
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator,
321
- values: ::Array[String]
322
- ) -> void
323
-
324
- def to_hash: -> {
325
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field,
326
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator,
327
- values: ::Array[String]
328
- }
329
-
330
- type field =
331
- :price_id
332
- | :item_id
333
- | :price_type
334
- | :currency
335
- | :pricing_unit_id
336
-
337
- module Field
338
- extend Orb::Internal::Type::Enum
339
-
340
- PRICE_ID: :price_id
341
- ITEM_ID: :item_id
342
- PRICE_TYPE: :price_type
343
- CURRENCY: :currency
344
- PRICING_UNIT_ID: :pricing_unit_id
345
-
346
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field]
347
- end
348
-
349
- type operator = :includes | :excludes
350
-
351
- module Operator
352
- extend Orb::Internal::Type::Enum
353
-
354
- INCLUDES: :includes
355
- EXCLUDES: :excludes
356
-
357
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator]
358
- end
359
- end
360
- end
361
-
362
- type amount_discount =
363
- {
364
- id: String,
365
- adjustment_type: :amount_discount,
366
- amount_discount: String,
367
- applies_to_price_ids: ::Array[String],
368
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter],
369
- is_invoice_level: bool,
370
- plan_phase_order: Integer?,
371
- reason: String?
372
- }
373
-
374
- class AmountDiscount < Orb::Internal::Type::BaseModel
375
- attr_accessor id: String
376
-
377
- attr_accessor adjustment_type: :amount_discount
378
-
379
- attr_accessor amount_discount: String
380
-
381
- attr_accessor applies_to_price_ids: ::Array[String]
382
-
383
- attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter]
384
-
385
- attr_accessor is_invoice_level: bool
386
-
387
- attr_accessor plan_phase_order: Integer?
388
-
389
- attr_accessor reason: String?
390
-
391
- def initialize: (
392
- id: String,
393
- amount_discount: String,
394
- applies_to_price_ids: ::Array[String],
395
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter],
396
- is_invoice_level: bool,
397
- plan_phase_order: Integer?,
398
- reason: String?,
399
- ?adjustment_type: :amount_discount
400
- ) -> void
401
-
402
- def to_hash: -> {
403
- id: String,
404
- adjustment_type: :amount_discount,
405
- amount_discount: String,
406
- applies_to_price_ids: ::Array[String],
407
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter],
408
- is_invoice_level: bool,
409
- plan_phase_order: Integer?,
410
- reason: String?
411
- }
412
-
413
- type filter =
414
- {
415
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field,
416
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator,
417
- values: ::Array[String]
418
- }
419
-
420
- class Filter < Orb::Internal::Type::BaseModel
421
- attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field
422
-
423
- attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator
424
-
425
- attr_accessor values: ::Array[String]
426
-
427
- def initialize: (
428
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field,
429
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator,
430
- values: ::Array[String]
431
- ) -> void
432
-
433
- def to_hash: -> {
434
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field,
435
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator,
436
- values: ::Array[String]
437
- }
438
-
439
- type field =
440
- :price_id
441
- | :item_id
442
- | :price_type
443
- | :currency
444
- | :pricing_unit_id
445
-
446
- module Field
447
- extend Orb::Internal::Type::Enum
448
-
449
- PRICE_ID: :price_id
450
- ITEM_ID: :item_id
451
- PRICE_TYPE: :price_type
452
- CURRENCY: :currency
453
- PRICING_UNIT_ID: :pricing_unit_id
454
-
455
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field]
456
- end
457
-
458
- type operator = :includes | :excludes
459
-
460
- module Operator
461
- extend Orb::Internal::Type::Enum
462
-
463
- INCLUDES: :includes
464
- EXCLUDES: :excludes
465
-
466
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator]
467
- end
468
- end
469
- end
470
-
471
- type percentage_discount =
472
- {
473
- id: String,
474
- adjustment_type: :percentage_discount,
475
- applies_to_price_ids: ::Array[String],
476
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter],
477
- is_invoice_level: bool,
478
- percentage_discount: Float,
479
- plan_phase_order: Integer?,
480
- reason: String?
481
- }
482
-
483
- class PercentageDiscount < Orb::Internal::Type::BaseModel
484
- attr_accessor id: String
485
-
486
- attr_accessor adjustment_type: :percentage_discount
487
-
488
- attr_accessor applies_to_price_ids: ::Array[String]
489
-
490
- attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter]
491
-
492
- attr_accessor is_invoice_level: bool
493
-
494
- attr_accessor percentage_discount: Float
495
-
496
- attr_accessor plan_phase_order: Integer?
497
-
498
- attr_accessor reason: String?
499
-
500
- def initialize: (
501
- id: String,
502
- applies_to_price_ids: ::Array[String],
503
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter],
504
- is_invoice_level: bool,
505
- percentage_discount: Float,
506
- plan_phase_order: Integer?,
507
- reason: String?,
508
- ?adjustment_type: :percentage_discount
509
- ) -> void
510
-
511
- def to_hash: -> {
512
- id: String,
513
- adjustment_type: :percentage_discount,
514
- applies_to_price_ids: ::Array[String],
515
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter],
516
- is_invoice_level: bool,
517
- percentage_discount: Float,
518
- plan_phase_order: Integer?,
519
- reason: String?
520
- }
521
-
522
- type filter =
523
- {
524
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field,
525
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator,
526
- values: ::Array[String]
527
- }
528
-
529
- class Filter < Orb::Internal::Type::BaseModel
530
- attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field
531
-
532
- attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator
533
-
534
- attr_accessor values: ::Array[String]
535
-
536
- def initialize: (
537
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field,
538
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator,
539
- values: ::Array[String]
540
- ) -> void
541
-
542
- def to_hash: -> {
543
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field,
544
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator,
545
- values: ::Array[String]
546
- }
547
-
548
- type field =
549
- :price_id
550
- | :item_id
551
- | :price_type
552
- | :currency
553
- | :pricing_unit_id
554
-
555
- module Field
556
- extend Orb::Internal::Type::Enum
557
-
558
- PRICE_ID: :price_id
559
- ITEM_ID: :item_id
560
- PRICE_TYPE: :price_type
561
- CURRENCY: :currency
562
- PRICING_UNIT_ID: :pricing_unit_id
563
-
564
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field]
565
- end
566
-
567
- type operator = :includes | :excludes
568
-
569
- module Operator
570
- extend Orb::Internal::Type::Enum
571
-
572
- INCLUDES: :includes
573
- EXCLUDES: :excludes
574
-
575
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator]
576
- end
577
- end
578
- end
579
-
580
- type minimum =
581
- {
582
- id: String,
583
- adjustment_type: :minimum,
584
- applies_to_price_ids: ::Array[String],
585
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter],
586
- is_invoice_level: bool,
587
- item_id: String,
588
- minimum_amount: String,
589
- plan_phase_order: Integer?,
590
- reason: String?
591
- }
592
-
593
- class Minimum < Orb::Internal::Type::BaseModel
594
- attr_accessor id: String
595
-
596
- attr_accessor adjustment_type: :minimum
597
-
598
- attr_accessor applies_to_price_ids: ::Array[String]
599
-
600
- attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter]
601
-
602
- attr_accessor is_invoice_level: bool
603
-
604
- attr_accessor item_id: String
605
-
606
- attr_accessor minimum_amount: String
607
-
608
- attr_accessor plan_phase_order: Integer?
609
-
610
- attr_accessor reason: String?
611
-
612
- def initialize: (
613
- id: String,
614
- applies_to_price_ids: ::Array[String],
615
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter],
616
- is_invoice_level: bool,
617
- item_id: String,
618
- minimum_amount: String,
619
- plan_phase_order: Integer?,
620
- reason: String?,
621
- ?adjustment_type: :minimum
622
- ) -> void
623
-
624
- def to_hash: -> {
625
- id: String,
626
- adjustment_type: :minimum,
627
- applies_to_price_ids: ::Array[String],
628
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter],
629
- is_invoice_level: bool,
630
- item_id: String,
631
- minimum_amount: String,
632
- plan_phase_order: Integer?,
633
- reason: String?
634
- }
635
-
636
- type filter =
637
- {
638
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::field,
639
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::operator,
640
- values: ::Array[String]
641
- }
642
-
643
- class Filter < Orb::Internal::Type::BaseModel
644
- attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::field
645
-
646
- attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::operator
647
-
648
- attr_accessor values: ::Array[String]
649
-
650
- def initialize: (
651
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::field,
652
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::operator,
653
- values: ::Array[String]
654
- ) -> void
655
-
656
- def to_hash: -> {
657
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::field,
658
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::operator,
659
- values: ::Array[String]
660
- }
661
-
662
- type field =
663
- :price_id
664
- | :item_id
665
- | :price_type
666
- | :currency
667
- | :pricing_unit_id
668
-
669
- module Field
670
- extend Orb::Internal::Type::Enum
671
-
672
- PRICE_ID: :price_id
673
- ITEM_ID: :item_id
674
- PRICE_TYPE: :price_type
675
- CURRENCY: :currency
676
- PRICING_UNIT_ID: :pricing_unit_id
677
-
678
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::field]
679
- end
680
-
681
- type operator = :includes | :excludes
682
-
683
- module Operator
684
- extend Orb::Internal::Type::Enum
685
-
686
- INCLUDES: :includes
687
- EXCLUDES: :excludes
688
-
689
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::operator]
690
- end
691
- end
692
- end
693
-
694
- type maximum =
695
- {
696
- id: String,
697
- adjustment_type: :maximum,
698
- applies_to_price_ids: ::Array[String],
699
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter],
700
- is_invoice_level: bool,
701
- maximum_amount: String,
702
- plan_phase_order: Integer?,
703
- reason: String?
704
- }
705
-
706
- class Maximum < Orb::Internal::Type::BaseModel
707
- attr_accessor id: String
708
-
709
- attr_accessor adjustment_type: :maximum
710
-
711
- attr_accessor applies_to_price_ids: ::Array[String]
712
-
713
- attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter]
714
-
715
- attr_accessor is_invoice_level: bool
716
-
717
- attr_accessor maximum_amount: String
718
-
719
- attr_accessor plan_phase_order: Integer?
720
-
721
- attr_accessor reason: String?
722
-
723
- def initialize: (
724
- id: String,
725
- applies_to_price_ids: ::Array[String],
726
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter],
727
- is_invoice_level: bool,
728
- maximum_amount: String,
729
- plan_phase_order: Integer?,
730
- reason: String?,
731
- ?adjustment_type: :maximum
732
- ) -> void
733
-
734
- def to_hash: -> {
735
- id: String,
736
- adjustment_type: :maximum,
737
- applies_to_price_ids: ::Array[String],
738
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter],
739
- is_invoice_level: bool,
740
- maximum_amount: String,
741
- plan_phase_order: Integer?,
742
- reason: String?
743
- }
744
-
745
- type filter =
746
- {
747
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::field,
748
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::operator,
749
- values: ::Array[String]
750
- }
751
-
752
- class Filter < Orb::Internal::Type::BaseModel
753
- attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::field
754
-
755
- attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::operator
756
-
757
- attr_accessor values: ::Array[String]
758
-
759
- def initialize: (
760
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::field,
761
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::operator,
762
- values: ::Array[String]
763
- ) -> void
764
-
765
- def to_hash: -> {
766
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::field,
767
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::operator,
768
- values: ::Array[String]
769
- }
770
-
771
- type field =
772
- :price_id
773
- | :item_id
774
- | :price_type
775
- | :currency
776
- | :pricing_unit_id
777
-
778
- module Field
779
- extend Orb::Internal::Type::Enum
780
-
781
- PRICE_ID: :price_id
782
- ITEM_ID: :item_id
783
- PRICE_TYPE: :price_type
784
- CURRENCY: :currency
785
- PRICING_UNIT_ID: :pricing_unit_id
786
-
787
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::field]
788
- end
789
-
790
- type operator = :includes | :excludes
791
-
792
- module Operator
793
- extend Orb::Internal::Type::Enum
794
-
795
- INCLUDES: :includes
796
- EXCLUDES: :excludes
797
-
798
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::operator]
799
- end
800
- end
801
- end
802
-
803
- def self?.variants: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::adjustment]
804
- end
805
- end
806
-
807
- type billing_cycle_anchor_configuration =
808
- { day: Integer, month: Integer?, year: Integer? }
809
-
810
- class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel
811
- attr_accessor day: Integer
812
-
813
- attr_accessor month: Integer?
814
-
815
- attr_accessor year: Integer?
816
-
817
- def initialize: (
818
- day: Integer,
819
- ?month: Integer?,
820
- ?year: Integer?
821
- ) -> void
822
-
823
- def to_hash: -> { day: Integer, month: Integer?, year: Integer? }
824
- end
825
-
826
- type discount_interval =
827
- Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount
828
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage
829
- | Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage
830
-
831
- module DiscountInterval
832
- extend Orb::Internal::Type::Union
833
-
834
- type amount =
835
- {
836
- amount_discount: String,
837
- applies_to_price_interval_ids: ::Array[String],
838
- discount_type: :amount,
839
- end_date: Time?,
840
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter],
841
- start_date: Time
842
- }
843
-
844
- class Amount < Orb::Internal::Type::BaseModel
845
- attr_accessor amount_discount: String
846
-
847
- attr_accessor applies_to_price_interval_ids: ::Array[String]
848
-
849
- attr_accessor discount_type: :amount
850
-
851
- attr_accessor end_date: Time?
852
-
853
- attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter]
854
-
855
- attr_accessor start_date: Time
856
-
857
- def initialize: (
858
- amount_discount: String,
859
- applies_to_price_interval_ids: ::Array[String],
860
- end_date: Time?,
861
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter],
862
- start_date: Time,
863
- ?discount_type: :amount
864
- ) -> void
865
-
866
- def to_hash: -> {
867
- amount_discount: String,
868
- applies_to_price_interval_ids: ::Array[String],
869
- discount_type: :amount,
870
- end_date: Time?,
871
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter],
872
- start_date: Time
873
- }
874
-
875
- type filter =
876
- {
877
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::field,
878
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::operator,
879
- values: ::Array[String]
880
- }
881
-
882
- class Filter < Orb::Internal::Type::BaseModel
883
- attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::field
884
-
885
- attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::operator
886
-
887
- attr_accessor values: ::Array[String]
888
-
889
- def initialize: (
890
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::field,
891
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::operator,
892
- values: ::Array[String]
893
- ) -> void
894
-
895
- def to_hash: -> {
896
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::field,
897
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::operator,
898
- values: ::Array[String]
899
- }
900
-
901
- type field =
902
- :price_id
903
- | :item_id
904
- | :price_type
905
- | :currency
906
- | :pricing_unit_id
907
-
908
- module Field
909
- extend Orb::Internal::Type::Enum
910
-
911
- PRICE_ID: :price_id
912
- ITEM_ID: :item_id
913
- PRICE_TYPE: :price_type
914
- CURRENCY: :currency
915
- PRICING_UNIT_ID: :pricing_unit_id
916
-
917
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::field]
918
- end
919
-
920
- type operator = :includes | :excludes
921
-
922
- module Operator
923
- extend Orb::Internal::Type::Enum
924
-
925
- INCLUDES: :includes
926
- EXCLUDES: :excludes
927
-
928
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::operator]
929
- end
930
- end
931
- end
932
-
933
- type percentage =
934
- {
935
- applies_to_price_interval_ids: ::Array[String],
936
- discount_type: :percentage,
937
- end_date: Time?,
938
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter],
939
- percentage_discount: Float,
940
- start_date: Time
941
- }
942
-
943
- class Percentage < Orb::Internal::Type::BaseModel
944
- attr_accessor applies_to_price_interval_ids: ::Array[String]
945
-
946
- attr_accessor discount_type: :percentage
947
-
948
- attr_accessor end_date: Time?
949
-
950
- attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter]
951
-
952
- attr_accessor percentage_discount: Float
953
-
954
- attr_accessor start_date: Time
955
-
956
- def initialize: (
957
- applies_to_price_interval_ids: ::Array[String],
958
- end_date: Time?,
959
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter],
960
- percentage_discount: Float,
961
- start_date: Time,
962
- ?discount_type: :percentage
963
- ) -> void
964
-
965
- def to_hash: -> {
966
- applies_to_price_interval_ids: ::Array[String],
967
- discount_type: :percentage,
968
- end_date: Time?,
969
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter],
970
- percentage_discount: Float,
971
- start_date: Time
972
- }
973
-
974
- type filter =
975
- {
976
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::field,
977
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::operator,
978
- values: ::Array[String]
979
- }
980
-
981
- class Filter < Orb::Internal::Type::BaseModel
982
- attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::field
983
-
984
- attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::operator
985
-
986
- attr_accessor values: ::Array[String]
987
-
988
- def initialize: (
989
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::field,
990
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::operator,
991
- values: ::Array[String]
992
- ) -> void
993
-
994
- def to_hash: -> {
995
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::field,
996
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::operator,
997
- values: ::Array[String]
998
- }
999
-
1000
- type field =
1001
- :price_id
1002
- | :item_id
1003
- | :price_type
1004
- | :currency
1005
- | :pricing_unit_id
1006
-
1007
- module Field
1008
- extend Orb::Internal::Type::Enum
1009
-
1010
- PRICE_ID: :price_id
1011
- ITEM_ID: :item_id
1012
- PRICE_TYPE: :price_type
1013
- CURRENCY: :currency
1014
- PRICING_UNIT_ID: :pricing_unit_id
1015
-
1016
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::field]
1017
- end
1018
-
1019
- type operator = :includes | :excludes
1020
-
1021
- module Operator
1022
- extend Orb::Internal::Type::Enum
1023
-
1024
- INCLUDES: :includes
1025
- EXCLUDES: :excludes
1026
-
1027
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::operator]
1028
- end
1029
- end
1030
- end
1031
-
1032
- type usage =
1033
- {
1034
- applies_to_price_interval_ids: ::Array[String],
1035
- discount_type: :usage,
1036
- end_date: Time?,
1037
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter],
1038
- start_date: Time,
1039
- usage_discount: Float
1040
- }
1041
-
1042
- class Usage < Orb::Internal::Type::BaseModel
1043
- attr_accessor applies_to_price_interval_ids: ::Array[String]
1044
-
1045
- attr_accessor discount_type: :usage
1046
-
1047
- attr_accessor end_date: Time?
1048
-
1049
- attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter]
1050
-
1051
- attr_accessor start_date: Time
1052
-
1053
- attr_accessor usage_discount: Float
1054
-
1055
- def initialize: (
1056
- applies_to_price_interval_ids: ::Array[String],
1057
- end_date: Time?,
1058
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter],
1059
- start_date: Time,
1060
- usage_discount: Float,
1061
- ?discount_type: :usage
1062
- ) -> void
1063
-
1064
- def to_hash: -> {
1065
- applies_to_price_interval_ids: ::Array[String],
1066
- discount_type: :usage,
1067
- end_date: Time?,
1068
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter],
1069
- start_date: Time,
1070
- usage_discount: Float
1071
- }
1072
-
1073
- type filter =
1074
- {
1075
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::field,
1076
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::operator,
1077
- values: ::Array[String]
1078
- }
1079
-
1080
- class Filter < Orb::Internal::Type::BaseModel
1081
- attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::field
1082
-
1083
- attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::operator
1084
-
1085
- attr_accessor values: ::Array[String]
1086
-
1087
- def initialize: (
1088
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::field,
1089
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::operator,
1090
- values: ::Array[String]
1091
- ) -> void
1092
-
1093
- def to_hash: -> {
1094
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::field,
1095
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::operator,
1096
- values: ::Array[String]
1097
- }
1098
-
1099
- type field =
1100
- :price_id
1101
- | :item_id
1102
- | :price_type
1103
- | :currency
1104
- | :pricing_unit_id
1105
-
1106
- module Field
1107
- extend Orb::Internal::Type::Enum
1108
-
1109
- PRICE_ID: :price_id
1110
- ITEM_ID: :item_id
1111
- PRICE_TYPE: :price_type
1112
- CURRENCY: :currency
1113
- PRICING_UNIT_ID: :pricing_unit_id
1114
-
1115
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::field]
1116
- end
1117
-
1118
- type operator = :includes | :excludes
1119
-
1120
- module Operator
1121
- extend Orb::Internal::Type::Enum
1122
-
1123
- INCLUDES: :includes
1124
- EXCLUDES: :excludes
1125
-
1126
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::operator]
1127
- end
1128
- end
1129
- end
1130
-
1131
- def self?.variants: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::discount_interval]
1132
- end
1133
-
1134
- type fixed_fee_quantity_schedule =
1135
- {
1136
- end_date: Time?,
1137
- price_id: String,
1138
- quantity: Float,
1139
- start_date: Time
1140
- }
1141
-
1142
- class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
1143
- attr_accessor end_date: Time?
1144
-
1145
- attr_accessor price_id: String
1146
-
1147
- attr_accessor quantity: Float
1148
-
1149
- attr_accessor start_date: Time
1150
-
1151
- def initialize: (
1152
- end_date: Time?,
1153
- price_id: String,
1154
- quantity: Float,
1155
- start_date: Time
1156
- ) -> void
1157
-
1158
- def to_hash: -> {
1159
- end_date: Time?,
1160
- price_id: String,
1161
- quantity: Float,
1162
- start_date: Time
1163
- }
1164
- end
1165
-
1166
- type maximum_interval =
1167
- {
1168
- applies_to_price_interval_ids: ::Array[String],
1169
- end_date: Time?,
1170
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter],
1171
- maximum_amount: String,
1172
- start_date: Time
1173
- }
1174
-
1175
- class MaximumInterval < Orb::Internal::Type::BaseModel
1176
- attr_accessor applies_to_price_interval_ids: ::Array[String]
1177
-
1178
- attr_accessor end_date: Time?
1179
-
1180
- attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter]
1181
-
1182
- attr_accessor maximum_amount: String
1183
-
1184
- attr_accessor start_date: Time
1185
-
1186
- def initialize: (
1187
- applies_to_price_interval_ids: ::Array[String],
1188
- end_date: Time?,
1189
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter],
1190
- maximum_amount: String,
1191
- start_date: Time
1192
- ) -> void
1193
-
1194
- def to_hash: -> {
1195
- applies_to_price_interval_ids: ::Array[String],
1196
- end_date: Time?,
1197
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter],
1198
- maximum_amount: String,
1199
- start_date: Time
1200
- }
1201
-
1202
- type filter =
1203
- {
1204
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::field,
1205
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::operator,
1206
- values: ::Array[String]
1207
- }
1208
-
1209
- class Filter < Orb::Internal::Type::BaseModel
1210
- attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::field
1211
-
1212
- attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::operator
1213
-
1214
- attr_accessor values: ::Array[String]
1215
-
1216
- def initialize: (
1217
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::field,
1218
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::operator,
1219
- values: ::Array[String]
1220
- ) -> void
1221
-
1222
- def to_hash: -> {
1223
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::field,
1224
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::operator,
1225
- values: ::Array[String]
1226
- }
1227
-
1228
- type field =
1229
- :price_id | :item_id | :price_type | :currency | :pricing_unit_id
1230
-
1231
- module Field
1232
- extend Orb::Internal::Type::Enum
1233
-
1234
- PRICE_ID: :price_id
1235
- ITEM_ID: :item_id
1236
- PRICE_TYPE: :price_type
1237
- CURRENCY: :currency
1238
- PRICING_UNIT_ID: :pricing_unit_id
1239
-
1240
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::field]
1241
- end
1242
-
1243
- type operator = :includes | :excludes
1244
-
1245
- module Operator
1246
- extend Orb::Internal::Type::Enum
1247
-
1248
- INCLUDES: :includes
1249
- EXCLUDES: :excludes
1250
-
1251
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::operator]
1252
- end
1253
- end
1254
- end
1255
-
1256
- type minimum_interval =
1257
- {
1258
- applies_to_price_interval_ids: ::Array[String],
1259
- end_date: Time?,
1260
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter],
1261
- minimum_amount: String,
1262
- start_date: Time
1263
- }
1264
-
1265
- class MinimumInterval < Orb::Internal::Type::BaseModel
1266
- attr_accessor applies_to_price_interval_ids: ::Array[String]
1267
-
1268
- attr_accessor end_date: Time?
1269
-
1270
- attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter]
1271
-
1272
- attr_accessor minimum_amount: String
1273
-
1274
- attr_accessor start_date: Time
1275
-
1276
- def initialize: (
1277
- applies_to_price_interval_ids: ::Array[String],
1278
- end_date: Time?,
1279
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter],
1280
- minimum_amount: String,
1281
- start_date: Time
1282
- ) -> void
1283
-
1284
- def to_hash: -> {
1285
- applies_to_price_interval_ids: ::Array[String],
1286
- end_date: Time?,
1287
- filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter],
1288
- minimum_amount: String,
1289
- start_date: Time
1290
- }
1291
-
1292
- type filter =
1293
- {
1294
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::field,
1295
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::operator,
1296
- values: ::Array[String]
1297
- }
1298
-
1299
- class Filter < Orb::Internal::Type::BaseModel
1300
- attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::field
1301
-
1302
- attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::operator
1303
-
1304
- attr_accessor values: ::Array[String]
1305
-
1306
- def initialize: (
1307
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::field,
1308
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::operator,
1309
- values: ::Array[String]
1310
- ) -> void
1311
-
1312
- def to_hash: -> {
1313
- field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::field,
1314
- operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::operator,
1315
- values: ::Array[String]
1316
- }
1317
-
1318
- type field =
1319
- :price_id | :item_id | :price_type | :currency | :pricing_unit_id
1320
-
1321
- module Field
1322
- extend Orb::Internal::Type::Enum
1323
-
1324
- PRICE_ID: :price_id
1325
- ITEM_ID: :item_id
1326
- PRICE_TYPE: :price_type
1327
- CURRENCY: :currency
1328
- PRICING_UNIT_ID: :pricing_unit_id
1329
-
1330
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::field]
1331
- end
1332
-
1333
- type operator = :includes | :excludes
1334
-
1335
- module Operator
1336
- extend Orb::Internal::Type::Enum
1337
-
1338
- INCLUDES: :includes
1339
- EXCLUDES: :excludes
1340
-
1341
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::operator]
1342
- end
1343
- end
1344
- end
1345
-
1346
- type pending_subscription_change = { id: String }
1347
-
1348
- class PendingSubscriptionChange < Orb::Internal::Type::BaseModel
1349
- attr_accessor id: String
1350
-
1351
- def initialize: (id: String) -> void
1352
-
1353
- def to_hash: -> { id: String }
1354
- end
1355
-
1356
- type price_interval =
1357
- {
1358
- id: String,
1359
- billing_cycle_day: Integer,
1360
- current_billing_period_end_date: Time?,
1361
- current_billing_period_start_date: Time?,
1362
- end_date: Time?,
1363
- filter: String?,
1364
- fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition]?,
1365
- price: Orb::Models::price,
1366
- start_date: Time,
1367
- usage_customer_ids: ::Array[String]?
1368
- }
1369
-
1370
- class PriceInterval < Orb::Internal::Type::BaseModel
1371
- attr_accessor id: String
1372
-
1373
- attr_accessor billing_cycle_day: Integer
1374
-
1375
- attr_accessor current_billing_period_end_date: Time?
1376
-
1377
- attr_accessor current_billing_period_start_date: Time?
1378
-
1379
- attr_accessor end_date: Time?
1380
-
1381
- attr_accessor filter: String?
1382
-
1383
- attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition]?
1384
-
1385
- attr_accessor price: Orb::Models::price
1386
-
1387
- attr_accessor start_date: Time
1388
-
1389
- attr_accessor usage_customer_ids: ::Array[String]?
1390
-
1391
- def initialize: (
1392
- id: String,
1393
- billing_cycle_day: Integer,
1394
- current_billing_period_end_date: Time?,
1395
- current_billing_period_start_date: Time?,
1396
- end_date: Time?,
1397
- filter: String?,
1398
- fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition]?,
1399
- price: Orb::Models::price,
1400
- start_date: Time,
1401
- usage_customer_ids: ::Array[String]?
1402
- ) -> void
1403
-
1404
- def to_hash: -> {
1405
- id: String,
1406
- billing_cycle_day: Integer,
1407
- current_billing_period_end_date: Time?,
1408
- current_billing_period_start_date: Time?,
1409
- end_date: Time?,
1410
- filter: String?,
1411
- fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition]?,
1412
- price: Orb::Models::price,
1413
- start_date: Time,
1414
- usage_customer_ids: ::Array[String]?
1415
- }
1416
-
1417
- type fixed_fee_quantity_transition =
1418
- { effective_date: Time, price_id: String, quantity: Integer }
1419
-
1420
- class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
1421
- attr_accessor effective_date: Time
1422
-
1423
- attr_accessor price_id: String
1424
-
1425
- attr_accessor quantity: Integer
1426
-
1427
- def initialize: (
1428
- effective_date: Time,
1429
- price_id: String,
1430
- quantity: Integer
1431
- ) -> void
1432
-
1433
- def to_hash: -> {
1434
- effective_date: Time,
1435
- price_id: String,
1436
- quantity: Integer
1437
- }
1438
- end
1439
- end
1440
-
1441
- type redeemed_coupon =
1442
- { coupon_id: String, end_date: Time?, start_date: Time }
1443
-
1444
- class RedeemedCoupon < Orb::Internal::Type::BaseModel
1445
- attr_accessor coupon_id: String
1446
-
1447
- attr_accessor end_date: Time?
1448
-
1449
- attr_accessor start_date: Time
1450
-
1451
- def initialize: (
1452
- coupon_id: String,
1453
- end_date: Time?,
1454
- start_date: Time
1455
- ) -> void
1456
-
1457
- def to_hash: -> {
1458
- coupon_id: String,
1459
- end_date: Time?,
1460
- start_date: Time
1461
- }
1462
- end
1463
-
1464
- type status = :active | :ended | :upcoming
1465
-
1466
- module Status
1467
- extend Orb::Internal::Type::Enum
1468
-
1469
- ACTIVE: :active
1470
- ENDED: :ended
1471
- UPCOMING: :upcoming
1472
-
1473
- def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::status]
1474
- end
1475
-
1476
- type trial_info = { end_date: Time? }
1477
-
1478
- class TrialInfo < Orb::Internal::Type::BaseModel
1479
- attr_accessor end_date: Time?
1480
-
1481
- def initialize: (end_date: Time?) -> void
1482
-
1483
- def to_hash: -> { end_date: Time? }
1484
- end
1485
-
1486
- type changed_resources =
1487
- {
1488
- created_credit_notes: ::Array[Orb::CreditNote],
1489
- created_invoices: ::Array[Orb::Invoice],
1490
- voided_credit_notes: ::Array[Orb::CreditNote],
1491
- voided_invoices: ::Array[Orb::Invoice]
1492
- }
1493
-
1494
- class ChangedResources < Orb::Internal::Type::BaseModel
1495
- attr_accessor created_credit_notes: ::Array[Orb::CreditNote]
1496
-
1497
- attr_accessor created_invoices: ::Array[Orb::Invoice]
1498
-
1499
- attr_accessor voided_credit_notes: ::Array[Orb::CreditNote]
1500
-
1501
- attr_accessor voided_invoices: ::Array[Orb::Invoice]
1502
-
1503
- def initialize: (
1504
- created_credit_notes: ::Array[Orb::CreditNote],
1505
- created_invoices: ::Array[Orb::Invoice],
1506
- voided_credit_notes: ::Array[Orb::CreditNote],
1507
- voided_invoices: ::Array[Orb::Invoice]
1508
- ) -> void
1509
-
1510
- def to_hash: -> {
1511
- created_credit_notes: ::Array[Orb::CreditNote],
1512
- created_invoices: ::Array[Orb::Invoice],
1513
- voided_credit_notes: ::Array[Orb::CreditNote],
1514
- voided_invoices: ::Array[Orb::Invoice]
1515
- }
1516
- end
1517
- end
1518
55
  end
1519
56
  end
1520
57
  end