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
@@ -1,3566 +0,0 @@
1
- # typed: strong
2
-
3
- module Orb
4
- module Models
5
- class SubscriptionUnschedulePendingPlanChangesResponse < Orb::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(
9
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse,
10
- Orb::Internal::AnyHash
11
- )
12
- end
13
-
14
- sig { returns(String) }
15
- attr_accessor :id
16
-
17
- # The current plan phase that is active, only if the subscription's plan has
18
- # phases.
19
- sig { returns(T.nilable(Integer)) }
20
- attr_accessor :active_plan_phase_order
21
-
22
- # The adjustment intervals for this subscription sorted by the start_date of the
23
- # adjustment interval.
24
- sig do
25
- returns(
26
- T::Array[
27
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval
28
- ]
29
- )
30
- end
31
- attr_accessor :adjustment_intervals
32
-
33
- # Determines whether issued invoices for this subscription will automatically be
34
- # charged with the saved payment method on the due date. This property defaults to
35
- # the plan's behavior. If null, defaults to the customer's setting.
36
- sig { returns(T.nilable(T::Boolean)) }
37
- attr_accessor :auto_collection
38
-
39
- sig do
40
- returns(
41
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration
42
- )
43
- end
44
- attr_reader :billing_cycle_anchor_configuration
45
-
46
- sig do
47
- params(
48
- billing_cycle_anchor_configuration:
49
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration::OrHash
50
- ).void
51
- end
52
- attr_writer :billing_cycle_anchor_configuration
53
-
54
- # The day of the month on which the billing cycle is anchored. If the maximum
55
- # number of days in a month is greater than this value, the last day of the month
56
- # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
57
- # period begins on the 30th.
58
- sig { returns(Integer) }
59
- attr_accessor :billing_cycle_day
60
-
61
- sig { returns(Time) }
62
- attr_accessor :created_at
63
-
64
- # The end of the current billing period. This is an exclusive timestamp, such that
65
- # the instant returned is not part of the billing period. Set to null for
66
- # subscriptions that are not currently active.
67
- sig { returns(T.nilable(Time)) }
68
- attr_accessor :current_billing_period_end_date
69
-
70
- # The start date of the current billing period. This is an inclusive timestamp;
71
- # the instant returned is exactly the beginning of the billing period. Set to null
72
- # if the subscription is not currently active.
73
- sig { returns(T.nilable(Time)) }
74
- attr_accessor :current_billing_period_start_date
75
-
76
- # A customer is a buyer of your products, and the other party to the billing
77
- # relationship.
78
- #
79
- # In Orb, customers are assigned system generated identifiers automatically, but
80
- # it's often desirable to have these match existing identifiers in your system. To
81
- # avoid having to denormalize Orb ID information, you can pass in an
82
- # `external_customer_id` with your own identifier. See
83
- # [Customer ID Aliases](/events-and-metrics/customer-aliases) for further
84
- # information about how these aliases work in Orb.
85
- #
86
- # In addition to having an identifier in your system, a customer may exist in a
87
- # payment provider solution like Stripe. Use the `payment_provider_id` and the
88
- # `payment_provider` enum field to express this mapping.
89
- #
90
- # A customer also has a timezone (from the standard
91
- # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
92
- # your account's timezone. See [Timezone localization](/essentials/timezones) for
93
- # information on what this timezone parameter influences within Orb.
94
- sig { returns(Orb::Customer) }
95
- attr_reader :customer
96
-
97
- sig { params(customer: Orb::Customer::OrHash).void }
98
- attr_writer :customer
99
-
100
- # Determines the default memo on this subscriptions' invoices. Note that if this
101
- # is not provided, it is determined by the plan configuration.
102
- sig { returns(T.nilable(String)) }
103
- attr_accessor :default_invoice_memo
104
-
105
- # The discount intervals for this subscription sorted by the start_date.
106
- sig do
107
- returns(
108
- T::Array[
109
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Variants
110
- ]
111
- )
112
- end
113
- attr_accessor :discount_intervals
114
-
115
- # The date Orb stops billing for this subscription.
116
- sig { returns(T.nilable(Time)) }
117
- attr_accessor :end_date
118
-
119
- sig do
120
- returns(
121
- T::Array[
122
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule
123
- ]
124
- )
125
- end
126
- attr_accessor :fixed_fee_quantity_schedule
127
-
128
- sig { returns(T.nilable(String)) }
129
- attr_accessor :invoicing_threshold
130
-
131
- # The maximum intervals for this subscription sorted by the start_date.
132
- sig do
133
- returns(
134
- T::Array[
135
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval
136
- ]
137
- )
138
- end
139
- attr_accessor :maximum_intervals
140
-
141
- # User specified key-value pairs for the resource. If not present, this defaults
142
- # to an empty dictionary. Individual keys can be removed by setting the value to
143
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
144
- # `null`.
145
- sig { returns(T::Hash[Symbol, String]) }
146
- attr_accessor :metadata
147
-
148
- # The minimum intervals for this subscription sorted by the start_date.
149
- sig do
150
- returns(
151
- T::Array[
152
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval
153
- ]
154
- )
155
- end
156
- attr_accessor :minimum_intervals
157
-
158
- # The name of the subscription.
159
- sig { returns(String) }
160
- attr_accessor :name
161
-
162
- # Determines the difference between the invoice issue date for subscription
163
- # invoices as the date that they are due. A value of `0` here represents that the
164
- # invoice is due on issue, whereas a value of `30` represents that the customer
165
- # has a month to pay the invoice.
166
- sig { returns(Integer) }
167
- attr_accessor :net_terms
168
-
169
- # A pending subscription change if one exists on this subscription.
170
- sig do
171
- returns(
172
- T.nilable(
173
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange
174
- )
175
- )
176
- end
177
- attr_reader :pending_subscription_change
178
-
179
- sig do
180
- params(
181
- pending_subscription_change:
182
- T.nilable(
183
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange::OrHash
184
- )
185
- ).void
186
- end
187
- attr_writer :pending_subscription_change
188
-
189
- # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
190
- # subscribed to by a customer. Plans define the billing behavior of the
191
- # subscription. You can see more about how to configure prices in the
192
- # [Price resource](/reference/price).
193
- sig { returns(T.nilable(Orb::Plan)) }
194
- attr_reader :plan
195
-
196
- sig { params(plan: T.nilable(Orb::Plan::OrHash)).void }
197
- attr_writer :plan
198
-
199
- # The price intervals for this subscription.
200
- sig do
201
- returns(
202
- T::Array[
203
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval
204
- ]
205
- )
206
- end
207
- attr_accessor :price_intervals
208
-
209
- sig do
210
- returns(
211
- T.nilable(
212
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon
213
- )
214
- )
215
- end
216
- attr_reader :redeemed_coupon
217
-
218
- sig do
219
- params(
220
- redeemed_coupon:
221
- T.nilable(
222
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon::OrHash
223
- )
224
- ).void
225
- end
226
- attr_writer :redeemed_coupon
227
-
228
- # The date Orb starts billing for this subscription.
229
- sig { returns(Time) }
230
- attr_accessor :start_date
231
-
232
- sig do
233
- returns(
234
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol
235
- )
236
- end
237
- attr_accessor :status
238
-
239
- sig do
240
- returns(
241
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo
242
- )
243
- end
244
- attr_reader :trial_info
245
-
246
- sig do
247
- params(
248
- trial_info:
249
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo::OrHash
250
- ).void
251
- end
252
- attr_writer :trial_info
253
-
254
- # The resources that were changed as part of this operation. Only present when
255
- # fetched through the subscription changes API or if the
256
- # `include_changed_resources` parameter was passed in the request.
257
- sig do
258
- returns(
259
- T.nilable(
260
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources
261
- )
262
- )
263
- end
264
- attr_reader :changed_resources
265
-
266
- sig do
267
- params(
268
- changed_resources:
269
- T.nilable(
270
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources::OrHash
271
- )
272
- ).void
273
- end
274
- attr_writer :changed_resources
275
-
276
- sig do
277
- params(
278
- id: String,
279
- active_plan_phase_order: T.nilable(Integer),
280
- adjustment_intervals:
281
- T::Array[
282
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::OrHash
283
- ],
284
- auto_collection: T.nilable(T::Boolean),
285
- billing_cycle_anchor_configuration:
286
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration::OrHash,
287
- billing_cycle_day: Integer,
288
- created_at: Time,
289
- current_billing_period_end_date: T.nilable(Time),
290
- current_billing_period_start_date: T.nilable(Time),
291
- customer: Orb::Customer::OrHash,
292
- default_invoice_memo: T.nilable(String),
293
- discount_intervals:
294
- T::Array[
295
- T.any(
296
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::OrHash,
297
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::OrHash,
298
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::OrHash
299
- )
300
- ],
301
- end_date: T.nilable(Time),
302
- fixed_fee_quantity_schedule:
303
- T::Array[
304
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule::OrHash
305
- ],
306
- invoicing_threshold: T.nilable(String),
307
- maximum_intervals:
308
- T::Array[
309
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::OrHash
310
- ],
311
- metadata: T::Hash[Symbol, String],
312
- minimum_intervals:
313
- T::Array[
314
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::OrHash
315
- ],
316
- name: String,
317
- net_terms: Integer,
318
- pending_subscription_change:
319
- T.nilable(
320
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange::OrHash
321
- ),
322
- plan: T.nilable(Orb::Plan::OrHash),
323
- price_intervals:
324
- T::Array[
325
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::OrHash
326
- ],
327
- redeemed_coupon:
328
- T.nilable(
329
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon::OrHash
330
- ),
331
- start_date: Time,
332
- status:
333
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::OrSymbol,
334
- trial_info:
335
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo::OrHash,
336
- changed_resources:
337
- T.nilable(
338
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources::OrHash
339
- )
340
- ).returns(T.attached_class)
341
- end
342
- def self.new(
343
- id:,
344
- # The current plan phase that is active, only if the subscription's plan has
345
- # phases.
346
- active_plan_phase_order:,
347
- # The adjustment intervals for this subscription sorted by the start_date of the
348
- # adjustment interval.
349
- adjustment_intervals:,
350
- # Determines whether issued invoices for this subscription will automatically be
351
- # charged with the saved payment method on the due date. This property defaults to
352
- # the plan's behavior. If null, defaults to the customer's setting.
353
- auto_collection:,
354
- billing_cycle_anchor_configuration:,
355
- # The day of the month on which the billing cycle is anchored. If the maximum
356
- # number of days in a month is greater than this value, the last day of the month
357
- # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
358
- # period begins on the 30th.
359
- billing_cycle_day:,
360
- created_at:,
361
- # The end of the current billing period. This is an exclusive timestamp, such that
362
- # the instant returned is not part of the billing period. Set to null for
363
- # subscriptions that are not currently active.
364
- current_billing_period_end_date:,
365
- # The start date of the current billing period. This is an inclusive timestamp;
366
- # the instant returned is exactly the beginning of the billing period. Set to null
367
- # if the subscription is not currently active.
368
- current_billing_period_start_date:,
369
- # A customer is a buyer of your products, and the other party to the billing
370
- # relationship.
371
- #
372
- # In Orb, customers are assigned system generated identifiers automatically, but
373
- # it's often desirable to have these match existing identifiers in your system. To
374
- # avoid having to denormalize Orb ID information, you can pass in an
375
- # `external_customer_id` with your own identifier. See
376
- # [Customer ID Aliases](/events-and-metrics/customer-aliases) for further
377
- # information about how these aliases work in Orb.
378
- #
379
- # In addition to having an identifier in your system, a customer may exist in a
380
- # payment provider solution like Stripe. Use the `payment_provider_id` and the
381
- # `payment_provider` enum field to express this mapping.
382
- #
383
- # A customer also has a timezone (from the standard
384
- # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
385
- # your account's timezone. See [Timezone localization](/essentials/timezones) for
386
- # information on what this timezone parameter influences within Orb.
387
- customer:,
388
- # Determines the default memo on this subscriptions' invoices. Note that if this
389
- # is not provided, it is determined by the plan configuration.
390
- default_invoice_memo:,
391
- # The discount intervals for this subscription sorted by the start_date.
392
- discount_intervals:,
393
- # The date Orb stops billing for this subscription.
394
- end_date:,
395
- fixed_fee_quantity_schedule:,
396
- invoicing_threshold:,
397
- # The maximum intervals for this subscription sorted by the start_date.
398
- maximum_intervals:,
399
- # User specified key-value pairs for the resource. If not present, this defaults
400
- # to an empty dictionary. Individual keys can be removed by setting the value to
401
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
402
- # `null`.
403
- metadata:,
404
- # The minimum intervals for this subscription sorted by the start_date.
405
- minimum_intervals:,
406
- # The name of the subscription.
407
- name:,
408
- # Determines the difference between the invoice issue date for subscription
409
- # invoices as the date that they are due. A value of `0` here represents that the
410
- # invoice is due on issue, whereas a value of `30` represents that the customer
411
- # has a month to pay the invoice.
412
- net_terms:,
413
- # A pending subscription change if one exists on this subscription.
414
- pending_subscription_change:,
415
- # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
416
- # subscribed to by a customer. Plans define the billing behavior of the
417
- # subscription. You can see more about how to configure prices in the
418
- # [Price resource](/reference/price).
419
- plan:,
420
- # The price intervals for this subscription.
421
- price_intervals:,
422
- redeemed_coupon:,
423
- # The date Orb starts billing for this subscription.
424
- start_date:,
425
- status:,
426
- trial_info:,
427
- # The resources that were changed as part of this operation. Only present when
428
- # fetched through the subscription changes API or if the
429
- # `include_changed_resources` parameter was passed in the request.
430
- changed_resources: nil
431
- )
432
- end
433
-
434
- sig do
435
- override.returns(
436
- {
437
- id: String,
438
- active_plan_phase_order: T.nilable(Integer),
439
- adjustment_intervals:
440
- T::Array[
441
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval
442
- ],
443
- auto_collection: T.nilable(T::Boolean),
444
- billing_cycle_anchor_configuration:
445
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration,
446
- billing_cycle_day: Integer,
447
- created_at: Time,
448
- current_billing_period_end_date: T.nilable(Time),
449
- current_billing_period_start_date: T.nilable(Time),
450
- customer: Orb::Customer,
451
- default_invoice_memo: T.nilable(String),
452
- discount_intervals:
453
- T::Array[
454
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Variants
455
- ],
456
- end_date: T.nilable(Time),
457
- fixed_fee_quantity_schedule:
458
- T::Array[
459
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule
460
- ],
461
- invoicing_threshold: T.nilable(String),
462
- maximum_intervals:
463
- T::Array[
464
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval
465
- ],
466
- metadata: T::Hash[Symbol, String],
467
- minimum_intervals:
468
- T::Array[
469
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval
470
- ],
471
- name: String,
472
- net_terms: Integer,
473
- pending_subscription_change:
474
- T.nilable(
475
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange
476
- ),
477
- plan: T.nilable(Orb::Plan),
478
- price_intervals:
479
- T::Array[
480
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval
481
- ],
482
- redeemed_coupon:
483
- T.nilable(
484
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon
485
- ),
486
- start_date: Time,
487
- status:
488
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol,
489
- trial_info:
490
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo,
491
- changed_resources:
492
- T.nilable(
493
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources
494
- )
495
- }
496
- )
497
- end
498
- def to_hash
499
- end
500
-
501
- class AdjustmentInterval < Orb::Internal::Type::BaseModel
502
- OrHash =
503
- T.type_alias do
504
- T.any(
505
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval,
506
- Orb::Internal::AnyHash
507
- )
508
- end
509
-
510
- sig { returns(String) }
511
- attr_accessor :id
512
-
513
- sig do
514
- returns(
515
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Variants
516
- )
517
- end
518
- attr_accessor :adjustment
519
-
520
- # The price interval IDs that this adjustment applies to.
521
- sig { returns(T::Array[String]) }
522
- attr_accessor :applies_to_price_interval_ids
523
-
524
- # The end date of the adjustment interval.
525
- sig { returns(T.nilable(Time)) }
526
- attr_accessor :end_date
527
-
528
- # The start date of the adjustment interval.
529
- sig { returns(Time) }
530
- attr_accessor :start_date
531
-
532
- sig do
533
- params(
534
- id: String,
535
- adjustment:
536
- T.any(
537
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash,
538
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash,
539
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash,
540
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::OrHash,
541
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::OrHash
542
- ),
543
- applies_to_price_interval_ids: T::Array[String],
544
- end_date: T.nilable(Time),
545
- start_date: Time
546
- ).returns(T.attached_class)
547
- end
548
- def self.new(
549
- id:,
550
- adjustment:,
551
- # The price interval IDs that this adjustment applies to.
552
- applies_to_price_interval_ids:,
553
- # The end date of the adjustment interval.
554
- end_date:,
555
- # The start date of the adjustment interval.
556
- start_date:
557
- )
558
- end
559
-
560
- sig do
561
- override.returns(
562
- {
563
- id: String,
564
- adjustment:
565
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Variants,
566
- applies_to_price_interval_ids: T::Array[String],
567
- end_date: T.nilable(Time),
568
- start_date: Time
569
- }
570
- )
571
- end
572
- def to_hash
573
- end
574
-
575
- module Adjustment
576
- extend Orb::Internal::Type::Union
577
-
578
- Variants =
579
- T.type_alias do
580
- T.any(
581
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount,
582
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount,
583
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
584
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum,
585
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum
586
- )
587
- end
588
-
589
- class UsageDiscount < Orb::Internal::Type::BaseModel
590
- OrHash =
591
- T.type_alias do
592
- T.any(
593
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount,
594
- Orb::Internal::AnyHash
595
- )
596
- end
597
-
598
- sig { returns(String) }
599
- attr_accessor :id
600
-
601
- sig { returns(Symbol) }
602
- attr_accessor :adjustment_type
603
-
604
- # The price IDs that this adjustment applies to.
605
- sig { returns(T::Array[String]) }
606
- attr_accessor :applies_to_price_ids
607
-
608
- # The filters that determine which prices to apply this adjustment to.
609
- sig do
610
- returns(
611
- T::Array[
612
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter
613
- ]
614
- )
615
- end
616
- attr_accessor :filters
617
-
618
- # True for adjustments that apply to an entire invocice, false for adjustments
619
- # that apply to only one price.
620
- sig { returns(T::Boolean) }
621
- attr_accessor :is_invoice_level
622
-
623
- # The plan phase in which this adjustment is active.
624
- sig { returns(T.nilable(Integer)) }
625
- attr_accessor :plan_phase_order
626
-
627
- # The reason for the adjustment.
628
- sig { returns(T.nilable(String)) }
629
- attr_accessor :reason
630
-
631
- # The number of usage units by which to discount the price this adjustment applies
632
- # to in a given billing period.
633
- sig { returns(Float) }
634
- attr_accessor :usage_discount
635
-
636
- sig do
637
- params(
638
- id: String,
639
- applies_to_price_ids: T::Array[String],
640
- filters:
641
- T::Array[
642
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::OrHash
643
- ],
644
- is_invoice_level: T::Boolean,
645
- plan_phase_order: T.nilable(Integer),
646
- reason: T.nilable(String),
647
- usage_discount: Float,
648
- adjustment_type: Symbol
649
- ).returns(T.attached_class)
650
- end
651
- def self.new(
652
- id:,
653
- # The price IDs that this adjustment applies to.
654
- applies_to_price_ids:,
655
- # The filters that determine which prices to apply this adjustment to.
656
- filters:,
657
- # True for adjustments that apply to an entire invocice, false for adjustments
658
- # that apply to only one price.
659
- is_invoice_level:,
660
- # The plan phase in which this adjustment is active.
661
- plan_phase_order:,
662
- # The reason for the adjustment.
663
- reason:,
664
- # The number of usage units by which to discount the price this adjustment applies
665
- # to in a given billing period.
666
- usage_discount:,
667
- adjustment_type: :usage_discount
668
- )
669
- end
670
-
671
- sig do
672
- override.returns(
673
- {
674
- id: String,
675
- adjustment_type: Symbol,
676
- applies_to_price_ids: T::Array[String],
677
- filters:
678
- T::Array[
679
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter
680
- ],
681
- is_invoice_level: T::Boolean,
682
- plan_phase_order: T.nilable(Integer),
683
- reason: T.nilable(String),
684
- usage_discount: Float
685
- }
686
- )
687
- end
688
- def to_hash
689
- end
690
-
691
- class Filter < Orb::Internal::Type::BaseModel
692
- OrHash =
693
- T.type_alias do
694
- T.any(
695
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter,
696
- Orb::Internal::AnyHash
697
- )
698
- end
699
-
700
- # The property of the price to filter on.
701
- sig do
702
- returns(
703
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
704
- )
705
- end
706
- attr_accessor :field
707
-
708
- # Should prices that match the filter be included or excluded.
709
- sig do
710
- returns(
711
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
712
- )
713
- end
714
- attr_accessor :operator
715
-
716
- # The IDs or values that match this filter.
717
- sig { returns(T::Array[String]) }
718
- attr_accessor :values
719
-
720
- sig do
721
- params(
722
- field:
723
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Field::OrSymbol,
724
- operator:
725
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Operator::OrSymbol,
726
- values: T::Array[String]
727
- ).returns(T.attached_class)
728
- end
729
- def self.new(
730
- # The property of the price to filter on.
731
- field:,
732
- # Should prices that match the filter be included or excluded.
733
- operator:,
734
- # The IDs or values that match this filter.
735
- values:
736
- )
737
- end
738
-
739
- sig do
740
- override.returns(
741
- {
742
- field:
743
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol,
744
- operator:
745
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol,
746
- values: T::Array[String]
747
- }
748
- )
749
- end
750
- def to_hash
751
- end
752
-
753
- # The property of the price to filter on.
754
- module Field
755
- extend Orb::Internal::Type::Enum
756
-
757
- TaggedSymbol =
758
- T.type_alias do
759
- T.all(
760
- Symbol,
761
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Field
762
- )
763
- end
764
- OrSymbol = T.type_alias { T.any(Symbol, String) }
765
-
766
- PRICE_ID =
767
- T.let(
768
- :price_id,
769
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
770
- )
771
- ITEM_ID =
772
- T.let(
773
- :item_id,
774
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
775
- )
776
- PRICE_TYPE =
777
- T.let(
778
- :price_type,
779
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
780
- )
781
- CURRENCY =
782
- T.let(
783
- :currency,
784
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
785
- )
786
- PRICING_UNIT_ID =
787
- T.let(
788
- :pricing_unit_id,
789
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
790
- )
791
-
792
- sig do
793
- override.returns(
794
- T::Array[
795
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
796
- ]
797
- )
798
- end
799
- def self.values
800
- end
801
- end
802
-
803
- # Should prices that match the filter be included or excluded.
804
- module Operator
805
- extend Orb::Internal::Type::Enum
806
-
807
- TaggedSymbol =
808
- T.type_alias do
809
- T.all(
810
- Symbol,
811
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Operator
812
- )
813
- end
814
- OrSymbol = T.type_alias { T.any(Symbol, String) }
815
-
816
- INCLUDES =
817
- T.let(
818
- :includes,
819
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
820
- )
821
- EXCLUDES =
822
- T.let(
823
- :excludes,
824
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
825
- )
826
-
827
- sig do
828
- override.returns(
829
- T::Array[
830
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
831
- ]
832
- )
833
- end
834
- def self.values
835
- end
836
- end
837
- end
838
- end
839
-
840
- class AmountDiscount < Orb::Internal::Type::BaseModel
841
- OrHash =
842
- T.type_alias do
843
- T.any(
844
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount,
845
- Orb::Internal::AnyHash
846
- )
847
- end
848
-
849
- sig { returns(String) }
850
- attr_accessor :id
851
-
852
- sig { returns(Symbol) }
853
- attr_accessor :adjustment_type
854
-
855
- # The amount by which to discount the prices this adjustment applies to in a given
856
- # billing period.
857
- sig { returns(String) }
858
- attr_accessor :amount_discount
859
-
860
- # The price IDs that this adjustment applies to.
861
- sig { returns(T::Array[String]) }
862
- attr_accessor :applies_to_price_ids
863
-
864
- # The filters that determine which prices to apply this adjustment to.
865
- sig do
866
- returns(
867
- T::Array[
868
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter
869
- ]
870
- )
871
- end
872
- attr_accessor :filters
873
-
874
- # True for adjustments that apply to an entire invocice, false for adjustments
875
- # that apply to only one price.
876
- sig { returns(T::Boolean) }
877
- attr_accessor :is_invoice_level
878
-
879
- # The plan phase in which this adjustment is active.
880
- sig { returns(T.nilable(Integer)) }
881
- attr_accessor :plan_phase_order
882
-
883
- # The reason for the adjustment.
884
- sig { returns(T.nilable(String)) }
885
- attr_accessor :reason
886
-
887
- sig do
888
- params(
889
- id: String,
890
- amount_discount: String,
891
- applies_to_price_ids: T::Array[String],
892
- filters:
893
- T::Array[
894
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::OrHash
895
- ],
896
- is_invoice_level: T::Boolean,
897
- plan_phase_order: T.nilable(Integer),
898
- reason: T.nilable(String),
899
- adjustment_type: Symbol
900
- ).returns(T.attached_class)
901
- end
902
- def self.new(
903
- id:,
904
- # The amount by which to discount the prices this adjustment applies to in a given
905
- # billing period.
906
- amount_discount:,
907
- # The price IDs that this adjustment applies to.
908
- applies_to_price_ids:,
909
- # The filters that determine which prices to apply this adjustment to.
910
- filters:,
911
- # True for adjustments that apply to an entire invocice, false for adjustments
912
- # that apply to only one price.
913
- is_invoice_level:,
914
- # The plan phase in which this adjustment is active.
915
- plan_phase_order:,
916
- # The reason for the adjustment.
917
- reason:,
918
- adjustment_type: :amount_discount
919
- )
920
- end
921
-
922
- sig do
923
- override.returns(
924
- {
925
- id: String,
926
- adjustment_type: Symbol,
927
- amount_discount: String,
928
- applies_to_price_ids: T::Array[String],
929
- filters:
930
- T::Array[
931
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter
932
- ],
933
- is_invoice_level: T::Boolean,
934
- plan_phase_order: T.nilable(Integer),
935
- reason: T.nilable(String)
936
- }
937
- )
938
- end
939
- def to_hash
940
- end
941
-
942
- class Filter < Orb::Internal::Type::BaseModel
943
- OrHash =
944
- T.type_alias do
945
- T.any(
946
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter,
947
- Orb::Internal::AnyHash
948
- )
949
- end
950
-
951
- # The property of the price to filter on.
952
- sig do
953
- returns(
954
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
955
- )
956
- end
957
- attr_accessor :field
958
-
959
- # Should prices that match the filter be included or excluded.
960
- sig do
961
- returns(
962
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
963
- )
964
- end
965
- attr_accessor :operator
966
-
967
- # The IDs or values that match this filter.
968
- sig { returns(T::Array[String]) }
969
- attr_accessor :values
970
-
971
- sig do
972
- params(
973
- field:
974
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Field::OrSymbol,
975
- operator:
976
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Operator::OrSymbol,
977
- values: T::Array[String]
978
- ).returns(T.attached_class)
979
- end
980
- def self.new(
981
- # The property of the price to filter on.
982
- field:,
983
- # Should prices that match the filter be included or excluded.
984
- operator:,
985
- # The IDs or values that match this filter.
986
- values:
987
- )
988
- end
989
-
990
- sig do
991
- override.returns(
992
- {
993
- field:
994
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol,
995
- operator:
996
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol,
997
- values: T::Array[String]
998
- }
999
- )
1000
- end
1001
- def to_hash
1002
- end
1003
-
1004
- # The property of the price to filter on.
1005
- module Field
1006
- extend Orb::Internal::Type::Enum
1007
-
1008
- TaggedSymbol =
1009
- T.type_alias do
1010
- T.all(
1011
- Symbol,
1012
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Field
1013
- )
1014
- end
1015
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1016
-
1017
- PRICE_ID =
1018
- T.let(
1019
- :price_id,
1020
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
1021
- )
1022
- ITEM_ID =
1023
- T.let(
1024
- :item_id,
1025
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
1026
- )
1027
- PRICE_TYPE =
1028
- T.let(
1029
- :price_type,
1030
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
1031
- )
1032
- CURRENCY =
1033
- T.let(
1034
- :currency,
1035
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
1036
- )
1037
- PRICING_UNIT_ID =
1038
- T.let(
1039
- :pricing_unit_id,
1040
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
1041
- )
1042
-
1043
- sig do
1044
- override.returns(
1045
- T::Array[
1046
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
1047
- ]
1048
- )
1049
- end
1050
- def self.values
1051
- end
1052
- end
1053
-
1054
- # Should prices that match the filter be included or excluded.
1055
- module Operator
1056
- extend Orb::Internal::Type::Enum
1057
-
1058
- TaggedSymbol =
1059
- T.type_alias do
1060
- T.all(
1061
- Symbol,
1062
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Operator
1063
- )
1064
- end
1065
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1066
-
1067
- INCLUDES =
1068
- T.let(
1069
- :includes,
1070
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
1071
- )
1072
- EXCLUDES =
1073
- T.let(
1074
- :excludes,
1075
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
1076
- )
1077
-
1078
- sig do
1079
- override.returns(
1080
- T::Array[
1081
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
1082
- ]
1083
- )
1084
- end
1085
- def self.values
1086
- end
1087
- end
1088
- end
1089
- end
1090
-
1091
- class PercentageDiscount < Orb::Internal::Type::BaseModel
1092
- OrHash =
1093
- T.type_alias do
1094
- T.any(
1095
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
1096
- Orb::Internal::AnyHash
1097
- )
1098
- end
1099
-
1100
- sig { returns(String) }
1101
- attr_accessor :id
1102
-
1103
- sig { returns(Symbol) }
1104
- attr_accessor :adjustment_type
1105
-
1106
- # The price IDs that this adjustment applies to.
1107
- sig { returns(T::Array[String]) }
1108
- attr_accessor :applies_to_price_ids
1109
-
1110
- # The filters that determine which prices to apply this adjustment to.
1111
- sig do
1112
- returns(
1113
- T::Array[
1114
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter
1115
- ]
1116
- )
1117
- end
1118
- attr_accessor :filters
1119
-
1120
- # True for adjustments that apply to an entire invocice, false for adjustments
1121
- # that apply to only one price.
1122
- sig { returns(T::Boolean) }
1123
- attr_accessor :is_invoice_level
1124
-
1125
- # The percentage (as a value between 0 and 1) by which to discount the price
1126
- # intervals this adjustment applies to in a given billing period.
1127
- sig { returns(Float) }
1128
- attr_accessor :percentage_discount
1129
-
1130
- # The plan phase in which this adjustment is active.
1131
- sig { returns(T.nilable(Integer)) }
1132
- attr_accessor :plan_phase_order
1133
-
1134
- # The reason for the adjustment.
1135
- sig { returns(T.nilable(String)) }
1136
- attr_accessor :reason
1137
-
1138
- sig do
1139
- params(
1140
- id: String,
1141
- applies_to_price_ids: T::Array[String],
1142
- filters:
1143
- T::Array[
1144
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::OrHash
1145
- ],
1146
- is_invoice_level: T::Boolean,
1147
- percentage_discount: Float,
1148
- plan_phase_order: T.nilable(Integer),
1149
- reason: T.nilable(String),
1150
- adjustment_type: Symbol
1151
- ).returns(T.attached_class)
1152
- end
1153
- def self.new(
1154
- id:,
1155
- # The price IDs that this adjustment applies to.
1156
- applies_to_price_ids:,
1157
- # The filters that determine which prices to apply this adjustment to.
1158
- filters:,
1159
- # True for adjustments that apply to an entire invocice, false for adjustments
1160
- # that apply to only one price.
1161
- is_invoice_level:,
1162
- # The percentage (as a value between 0 and 1) by which to discount the price
1163
- # intervals this adjustment applies to in a given billing period.
1164
- percentage_discount:,
1165
- # The plan phase in which this adjustment is active.
1166
- plan_phase_order:,
1167
- # The reason for the adjustment.
1168
- reason:,
1169
- adjustment_type: :percentage_discount
1170
- )
1171
- end
1172
-
1173
- sig do
1174
- override.returns(
1175
- {
1176
- id: String,
1177
- adjustment_type: Symbol,
1178
- applies_to_price_ids: T::Array[String],
1179
- filters:
1180
- T::Array[
1181
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter
1182
- ],
1183
- is_invoice_level: T::Boolean,
1184
- percentage_discount: Float,
1185
- plan_phase_order: T.nilable(Integer),
1186
- reason: T.nilable(String)
1187
- }
1188
- )
1189
- end
1190
- def to_hash
1191
- end
1192
-
1193
- class Filter < Orb::Internal::Type::BaseModel
1194
- OrHash =
1195
- T.type_alias do
1196
- T.any(
1197
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter,
1198
- Orb::Internal::AnyHash
1199
- )
1200
- end
1201
-
1202
- # The property of the price to filter on.
1203
- sig do
1204
- returns(
1205
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1206
- )
1207
- end
1208
- attr_accessor :field
1209
-
1210
- # Should prices that match the filter be included or excluded.
1211
- sig do
1212
- returns(
1213
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
1214
- )
1215
- end
1216
- attr_accessor :operator
1217
-
1218
- # The IDs or values that match this filter.
1219
- sig { returns(T::Array[String]) }
1220
- attr_accessor :values
1221
-
1222
- sig do
1223
- params(
1224
- field:
1225
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Field::OrSymbol,
1226
- operator:
1227
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Operator::OrSymbol,
1228
- values: T::Array[String]
1229
- ).returns(T.attached_class)
1230
- end
1231
- def self.new(
1232
- # The property of the price to filter on.
1233
- field:,
1234
- # Should prices that match the filter be included or excluded.
1235
- operator:,
1236
- # The IDs or values that match this filter.
1237
- values:
1238
- )
1239
- end
1240
-
1241
- sig do
1242
- override.returns(
1243
- {
1244
- field:
1245
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol,
1246
- operator:
1247
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol,
1248
- values: T::Array[String]
1249
- }
1250
- )
1251
- end
1252
- def to_hash
1253
- end
1254
-
1255
- # The property of the price to filter on.
1256
- module Field
1257
- extend Orb::Internal::Type::Enum
1258
-
1259
- TaggedSymbol =
1260
- T.type_alias do
1261
- T.all(
1262
- Symbol,
1263
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Field
1264
- )
1265
- end
1266
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1267
-
1268
- PRICE_ID =
1269
- T.let(
1270
- :price_id,
1271
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1272
- )
1273
- ITEM_ID =
1274
- T.let(
1275
- :item_id,
1276
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1277
- )
1278
- PRICE_TYPE =
1279
- T.let(
1280
- :price_type,
1281
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1282
- )
1283
- CURRENCY =
1284
- T.let(
1285
- :currency,
1286
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1287
- )
1288
- PRICING_UNIT_ID =
1289
- T.let(
1290
- :pricing_unit_id,
1291
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1292
- )
1293
-
1294
- sig do
1295
- override.returns(
1296
- T::Array[
1297
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1298
- ]
1299
- )
1300
- end
1301
- def self.values
1302
- end
1303
- end
1304
-
1305
- # Should prices that match the filter be included or excluded.
1306
- module Operator
1307
- extend Orb::Internal::Type::Enum
1308
-
1309
- TaggedSymbol =
1310
- T.type_alias do
1311
- T.all(
1312
- Symbol,
1313
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Operator
1314
- )
1315
- end
1316
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1317
-
1318
- INCLUDES =
1319
- T.let(
1320
- :includes,
1321
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
1322
- )
1323
- EXCLUDES =
1324
- T.let(
1325
- :excludes,
1326
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
1327
- )
1328
-
1329
- sig do
1330
- override.returns(
1331
- T::Array[
1332
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
1333
- ]
1334
- )
1335
- end
1336
- def self.values
1337
- end
1338
- end
1339
- end
1340
- end
1341
-
1342
- class Minimum < Orb::Internal::Type::BaseModel
1343
- OrHash =
1344
- T.type_alias do
1345
- T.any(
1346
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum,
1347
- Orb::Internal::AnyHash
1348
- )
1349
- end
1350
-
1351
- sig { returns(String) }
1352
- attr_accessor :id
1353
-
1354
- sig { returns(Symbol) }
1355
- attr_accessor :adjustment_type
1356
-
1357
- # The price IDs that this adjustment applies to.
1358
- sig { returns(T::Array[String]) }
1359
- attr_accessor :applies_to_price_ids
1360
-
1361
- # The filters that determine which prices to apply this adjustment to.
1362
- sig do
1363
- returns(
1364
- T::Array[
1365
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter
1366
- ]
1367
- )
1368
- end
1369
- attr_accessor :filters
1370
-
1371
- # True for adjustments that apply to an entire invocice, false for adjustments
1372
- # that apply to only one price.
1373
- sig { returns(T::Boolean) }
1374
- attr_accessor :is_invoice_level
1375
-
1376
- # The item ID that revenue from this minimum will be attributed to.
1377
- sig { returns(String) }
1378
- attr_accessor :item_id
1379
-
1380
- # The minimum amount to charge in a given billing period for the prices this
1381
- # adjustment applies to.
1382
- sig { returns(String) }
1383
- attr_accessor :minimum_amount
1384
-
1385
- # The plan phase in which this adjustment is active.
1386
- sig { returns(T.nilable(Integer)) }
1387
- attr_accessor :plan_phase_order
1388
-
1389
- # The reason for the adjustment.
1390
- sig { returns(T.nilable(String)) }
1391
- attr_accessor :reason
1392
-
1393
- sig do
1394
- params(
1395
- id: String,
1396
- applies_to_price_ids: T::Array[String],
1397
- filters:
1398
- T::Array[
1399
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::OrHash
1400
- ],
1401
- is_invoice_level: T::Boolean,
1402
- item_id: String,
1403
- minimum_amount: String,
1404
- plan_phase_order: T.nilable(Integer),
1405
- reason: T.nilable(String),
1406
- adjustment_type: Symbol
1407
- ).returns(T.attached_class)
1408
- end
1409
- def self.new(
1410
- id:,
1411
- # The price IDs that this adjustment applies to.
1412
- applies_to_price_ids:,
1413
- # The filters that determine which prices to apply this adjustment to.
1414
- filters:,
1415
- # True for adjustments that apply to an entire invocice, false for adjustments
1416
- # that apply to only one price.
1417
- is_invoice_level:,
1418
- # The item ID that revenue from this minimum will be attributed to.
1419
- item_id:,
1420
- # The minimum amount to charge in a given billing period for the prices this
1421
- # adjustment applies to.
1422
- minimum_amount:,
1423
- # The plan phase in which this adjustment is active.
1424
- plan_phase_order:,
1425
- # The reason for the adjustment.
1426
- reason:,
1427
- adjustment_type: :minimum
1428
- )
1429
- end
1430
-
1431
- sig do
1432
- override.returns(
1433
- {
1434
- id: String,
1435
- adjustment_type: Symbol,
1436
- applies_to_price_ids: T::Array[String],
1437
- filters:
1438
- T::Array[
1439
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter
1440
- ],
1441
- is_invoice_level: T::Boolean,
1442
- item_id: String,
1443
- minimum_amount: String,
1444
- plan_phase_order: T.nilable(Integer),
1445
- reason: T.nilable(String)
1446
- }
1447
- )
1448
- end
1449
- def to_hash
1450
- end
1451
-
1452
- class Filter < Orb::Internal::Type::BaseModel
1453
- OrHash =
1454
- T.type_alias do
1455
- T.any(
1456
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter,
1457
- Orb::Internal::AnyHash
1458
- )
1459
- end
1460
-
1461
- # The property of the price to filter on.
1462
- sig do
1463
- returns(
1464
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Field::TaggedSymbol
1465
- )
1466
- end
1467
- attr_accessor :field
1468
-
1469
- # Should prices that match the filter be included or excluded.
1470
- sig do
1471
- returns(
1472
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Operator::TaggedSymbol
1473
- )
1474
- end
1475
- attr_accessor :operator
1476
-
1477
- # The IDs or values that match this filter.
1478
- sig { returns(T::Array[String]) }
1479
- attr_accessor :values
1480
-
1481
- sig do
1482
- params(
1483
- field:
1484
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Field::OrSymbol,
1485
- operator:
1486
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Operator::OrSymbol,
1487
- values: T::Array[String]
1488
- ).returns(T.attached_class)
1489
- end
1490
- def self.new(
1491
- # The property of the price to filter on.
1492
- field:,
1493
- # Should prices that match the filter be included or excluded.
1494
- operator:,
1495
- # The IDs or values that match this filter.
1496
- values:
1497
- )
1498
- end
1499
-
1500
- sig do
1501
- override.returns(
1502
- {
1503
- field:
1504
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Field::TaggedSymbol,
1505
- operator:
1506
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Operator::TaggedSymbol,
1507
- values: T::Array[String]
1508
- }
1509
- )
1510
- end
1511
- def to_hash
1512
- end
1513
-
1514
- # The property of the price to filter on.
1515
- module Field
1516
- extend Orb::Internal::Type::Enum
1517
-
1518
- TaggedSymbol =
1519
- T.type_alias do
1520
- T.all(
1521
- Symbol,
1522
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Field
1523
- )
1524
- end
1525
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1526
-
1527
- PRICE_ID =
1528
- T.let(
1529
- :price_id,
1530
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Field::TaggedSymbol
1531
- )
1532
- ITEM_ID =
1533
- T.let(
1534
- :item_id,
1535
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Field::TaggedSymbol
1536
- )
1537
- PRICE_TYPE =
1538
- T.let(
1539
- :price_type,
1540
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Field::TaggedSymbol
1541
- )
1542
- CURRENCY =
1543
- T.let(
1544
- :currency,
1545
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Field::TaggedSymbol
1546
- )
1547
- PRICING_UNIT_ID =
1548
- T.let(
1549
- :pricing_unit_id,
1550
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Field::TaggedSymbol
1551
- )
1552
-
1553
- sig do
1554
- override.returns(
1555
- T::Array[
1556
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Field::TaggedSymbol
1557
- ]
1558
- )
1559
- end
1560
- def self.values
1561
- end
1562
- end
1563
-
1564
- # Should prices that match the filter be included or excluded.
1565
- module Operator
1566
- extend Orb::Internal::Type::Enum
1567
-
1568
- TaggedSymbol =
1569
- T.type_alias do
1570
- T.all(
1571
- Symbol,
1572
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Operator
1573
- )
1574
- end
1575
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1576
-
1577
- INCLUDES =
1578
- T.let(
1579
- :includes,
1580
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Operator::TaggedSymbol
1581
- )
1582
- EXCLUDES =
1583
- T.let(
1584
- :excludes,
1585
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Operator::TaggedSymbol
1586
- )
1587
-
1588
- sig do
1589
- override.returns(
1590
- T::Array[
1591
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::Filter::Operator::TaggedSymbol
1592
- ]
1593
- )
1594
- end
1595
- def self.values
1596
- end
1597
- end
1598
- end
1599
- end
1600
-
1601
- class Maximum < Orb::Internal::Type::BaseModel
1602
- OrHash =
1603
- T.type_alias do
1604
- T.any(
1605
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum,
1606
- Orb::Internal::AnyHash
1607
- )
1608
- end
1609
-
1610
- sig { returns(String) }
1611
- attr_accessor :id
1612
-
1613
- sig { returns(Symbol) }
1614
- attr_accessor :adjustment_type
1615
-
1616
- # The price IDs that this adjustment applies to.
1617
- sig { returns(T::Array[String]) }
1618
- attr_accessor :applies_to_price_ids
1619
-
1620
- # The filters that determine which prices to apply this adjustment to.
1621
- sig do
1622
- returns(
1623
- T::Array[
1624
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter
1625
- ]
1626
- )
1627
- end
1628
- attr_accessor :filters
1629
-
1630
- # True for adjustments that apply to an entire invocice, false for adjustments
1631
- # that apply to only one price.
1632
- sig { returns(T::Boolean) }
1633
- attr_accessor :is_invoice_level
1634
-
1635
- # The maximum amount to charge in a given billing period for the prices this
1636
- # adjustment applies to.
1637
- sig { returns(String) }
1638
- attr_accessor :maximum_amount
1639
-
1640
- # The plan phase in which this adjustment is active.
1641
- sig { returns(T.nilable(Integer)) }
1642
- attr_accessor :plan_phase_order
1643
-
1644
- # The reason for the adjustment.
1645
- sig { returns(T.nilable(String)) }
1646
- attr_accessor :reason
1647
-
1648
- sig do
1649
- params(
1650
- id: String,
1651
- applies_to_price_ids: T::Array[String],
1652
- filters:
1653
- T::Array[
1654
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::OrHash
1655
- ],
1656
- is_invoice_level: T::Boolean,
1657
- maximum_amount: String,
1658
- plan_phase_order: T.nilable(Integer),
1659
- reason: T.nilable(String),
1660
- adjustment_type: Symbol
1661
- ).returns(T.attached_class)
1662
- end
1663
- def self.new(
1664
- id:,
1665
- # The price IDs that this adjustment applies to.
1666
- applies_to_price_ids:,
1667
- # The filters that determine which prices to apply this adjustment to.
1668
- filters:,
1669
- # True for adjustments that apply to an entire invocice, false for adjustments
1670
- # that apply to only one price.
1671
- is_invoice_level:,
1672
- # The maximum amount to charge in a given billing period for the prices this
1673
- # adjustment applies to.
1674
- maximum_amount:,
1675
- # The plan phase in which this adjustment is active.
1676
- plan_phase_order:,
1677
- # The reason for the adjustment.
1678
- reason:,
1679
- adjustment_type: :maximum
1680
- )
1681
- end
1682
-
1683
- sig do
1684
- override.returns(
1685
- {
1686
- id: String,
1687
- adjustment_type: Symbol,
1688
- applies_to_price_ids: T::Array[String],
1689
- filters:
1690
- T::Array[
1691
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter
1692
- ],
1693
- is_invoice_level: T::Boolean,
1694
- maximum_amount: String,
1695
- plan_phase_order: T.nilable(Integer),
1696
- reason: T.nilable(String)
1697
- }
1698
- )
1699
- end
1700
- def to_hash
1701
- end
1702
-
1703
- class Filter < Orb::Internal::Type::BaseModel
1704
- OrHash =
1705
- T.type_alias do
1706
- T.any(
1707
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter,
1708
- Orb::Internal::AnyHash
1709
- )
1710
- end
1711
-
1712
- # The property of the price to filter on.
1713
- sig do
1714
- returns(
1715
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Field::TaggedSymbol
1716
- )
1717
- end
1718
- attr_accessor :field
1719
-
1720
- # Should prices that match the filter be included or excluded.
1721
- sig do
1722
- returns(
1723
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Operator::TaggedSymbol
1724
- )
1725
- end
1726
- attr_accessor :operator
1727
-
1728
- # The IDs or values that match this filter.
1729
- sig { returns(T::Array[String]) }
1730
- attr_accessor :values
1731
-
1732
- sig do
1733
- params(
1734
- field:
1735
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Field::OrSymbol,
1736
- operator:
1737
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Operator::OrSymbol,
1738
- values: T::Array[String]
1739
- ).returns(T.attached_class)
1740
- end
1741
- def self.new(
1742
- # The property of the price to filter on.
1743
- field:,
1744
- # Should prices that match the filter be included or excluded.
1745
- operator:,
1746
- # The IDs or values that match this filter.
1747
- values:
1748
- )
1749
- end
1750
-
1751
- sig do
1752
- override.returns(
1753
- {
1754
- field:
1755
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Field::TaggedSymbol,
1756
- operator:
1757
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Operator::TaggedSymbol,
1758
- values: T::Array[String]
1759
- }
1760
- )
1761
- end
1762
- def to_hash
1763
- end
1764
-
1765
- # The property of the price to filter on.
1766
- module Field
1767
- extend Orb::Internal::Type::Enum
1768
-
1769
- TaggedSymbol =
1770
- T.type_alias do
1771
- T.all(
1772
- Symbol,
1773
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Field
1774
- )
1775
- end
1776
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1777
-
1778
- PRICE_ID =
1779
- T.let(
1780
- :price_id,
1781
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Field::TaggedSymbol
1782
- )
1783
- ITEM_ID =
1784
- T.let(
1785
- :item_id,
1786
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Field::TaggedSymbol
1787
- )
1788
- PRICE_TYPE =
1789
- T.let(
1790
- :price_type,
1791
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Field::TaggedSymbol
1792
- )
1793
- CURRENCY =
1794
- T.let(
1795
- :currency,
1796
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Field::TaggedSymbol
1797
- )
1798
- PRICING_UNIT_ID =
1799
- T.let(
1800
- :pricing_unit_id,
1801
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Field::TaggedSymbol
1802
- )
1803
-
1804
- sig do
1805
- override.returns(
1806
- T::Array[
1807
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Field::TaggedSymbol
1808
- ]
1809
- )
1810
- end
1811
- def self.values
1812
- end
1813
- end
1814
-
1815
- # Should prices that match the filter be included or excluded.
1816
- module Operator
1817
- extend Orb::Internal::Type::Enum
1818
-
1819
- TaggedSymbol =
1820
- T.type_alias do
1821
- T.all(
1822
- Symbol,
1823
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Operator
1824
- )
1825
- end
1826
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1827
-
1828
- INCLUDES =
1829
- T.let(
1830
- :includes,
1831
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Operator::TaggedSymbol
1832
- )
1833
- EXCLUDES =
1834
- T.let(
1835
- :excludes,
1836
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Operator::TaggedSymbol
1837
- )
1838
-
1839
- sig do
1840
- override.returns(
1841
- T::Array[
1842
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::Filter::Operator::TaggedSymbol
1843
- ]
1844
- )
1845
- end
1846
- def self.values
1847
- end
1848
- end
1849
- end
1850
- end
1851
-
1852
- sig do
1853
- override.returns(
1854
- T::Array[
1855
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Variants
1856
- ]
1857
- )
1858
- end
1859
- def self.variants
1860
- end
1861
- end
1862
- end
1863
-
1864
- class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel
1865
- OrHash =
1866
- T.type_alias do
1867
- T.any(
1868
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration,
1869
- Orb::Internal::AnyHash
1870
- )
1871
- end
1872
-
1873
- # The day of the month on which the billing cycle is anchored. If the maximum
1874
- # number of days in a month is greater than this value, the last day of the month
1875
- # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
1876
- # period begins on the 30th.
1877
- sig { returns(Integer) }
1878
- attr_accessor :day
1879
-
1880
- # The month on which the billing cycle is anchored (e.g. a quarterly price
1881
- # anchored in February would have cycles starting February, May, August, and
1882
- # November).
1883
- sig { returns(T.nilable(Integer)) }
1884
- attr_accessor :month
1885
-
1886
- # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
1887
- # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
1888
- sig { returns(T.nilable(Integer)) }
1889
- attr_accessor :year
1890
-
1891
- sig do
1892
- params(
1893
- day: Integer,
1894
- month: T.nilable(Integer),
1895
- year: T.nilable(Integer)
1896
- ).returns(T.attached_class)
1897
- end
1898
- def self.new(
1899
- # The day of the month on which the billing cycle is anchored. If the maximum
1900
- # number of days in a month is greater than this value, the last day of the month
1901
- # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
1902
- # period begins on the 30th.
1903
- day:,
1904
- # The month on which the billing cycle is anchored (e.g. a quarterly price
1905
- # anchored in February would have cycles starting February, May, August, and
1906
- # November).
1907
- month: nil,
1908
- # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
1909
- # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
1910
- year: nil
1911
- )
1912
- end
1913
-
1914
- sig do
1915
- override.returns(
1916
- {
1917
- day: Integer,
1918
- month: T.nilable(Integer),
1919
- year: T.nilable(Integer)
1920
- }
1921
- )
1922
- end
1923
- def to_hash
1924
- end
1925
- end
1926
-
1927
- module DiscountInterval
1928
- extend Orb::Internal::Type::Union
1929
-
1930
- Variants =
1931
- T.type_alias do
1932
- T.any(
1933
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount,
1934
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage,
1935
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage
1936
- )
1937
- end
1938
-
1939
- class Amount < Orb::Internal::Type::BaseModel
1940
- OrHash =
1941
- T.type_alias do
1942
- T.any(
1943
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount,
1944
- Orb::Internal::AnyHash
1945
- )
1946
- end
1947
-
1948
- # Only available if discount_type is `amount`.
1949
- sig { returns(String) }
1950
- attr_accessor :amount_discount
1951
-
1952
- # The price interval ids that this discount interval applies to.
1953
- sig { returns(T::Array[String]) }
1954
- attr_accessor :applies_to_price_interval_ids
1955
-
1956
- sig { returns(Symbol) }
1957
- attr_accessor :discount_type
1958
-
1959
- # The end date of the discount interval.
1960
- sig { returns(T.nilable(Time)) }
1961
- attr_accessor :end_date
1962
-
1963
- # The filters that determine which prices this discount interval applies to.
1964
- sig do
1965
- returns(
1966
- T::Array[
1967
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter
1968
- ]
1969
- )
1970
- end
1971
- attr_accessor :filters
1972
-
1973
- # The start date of the discount interval.
1974
- sig { returns(Time) }
1975
- attr_accessor :start_date
1976
-
1977
- sig do
1978
- params(
1979
- amount_discount: String,
1980
- applies_to_price_interval_ids: T::Array[String],
1981
- end_date: T.nilable(Time),
1982
- filters:
1983
- T::Array[
1984
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::OrHash
1985
- ],
1986
- start_date: Time,
1987
- discount_type: Symbol
1988
- ).returns(T.attached_class)
1989
- end
1990
- def self.new(
1991
- # Only available if discount_type is `amount`.
1992
- amount_discount:,
1993
- # The price interval ids that this discount interval applies to.
1994
- applies_to_price_interval_ids:,
1995
- # The end date of the discount interval.
1996
- end_date:,
1997
- # The filters that determine which prices this discount interval applies to.
1998
- filters:,
1999
- # The start date of the discount interval.
2000
- start_date:,
2001
- discount_type: :amount
2002
- )
2003
- end
2004
-
2005
- sig do
2006
- override.returns(
2007
- {
2008
- amount_discount: String,
2009
- applies_to_price_interval_ids: T::Array[String],
2010
- discount_type: Symbol,
2011
- end_date: T.nilable(Time),
2012
- filters:
2013
- T::Array[
2014
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter
2015
- ],
2016
- start_date: Time
2017
- }
2018
- )
2019
- end
2020
- def to_hash
2021
- end
2022
-
2023
- class Filter < Orb::Internal::Type::BaseModel
2024
- OrHash =
2025
- T.type_alias do
2026
- T.any(
2027
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter,
2028
- Orb::Internal::AnyHash
2029
- )
2030
- end
2031
-
2032
- # The property of the price to filter on.
2033
- sig do
2034
- returns(
2035
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Field::TaggedSymbol
2036
- )
2037
- end
2038
- attr_accessor :field
2039
-
2040
- # Should prices that match the filter be included or excluded.
2041
- sig do
2042
- returns(
2043
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Operator::TaggedSymbol
2044
- )
2045
- end
2046
- attr_accessor :operator
2047
-
2048
- # The IDs or values that match this filter.
2049
- sig { returns(T::Array[String]) }
2050
- attr_accessor :values
2051
-
2052
- sig do
2053
- params(
2054
- field:
2055
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Field::OrSymbol,
2056
- operator:
2057
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Operator::OrSymbol,
2058
- values: T::Array[String]
2059
- ).returns(T.attached_class)
2060
- end
2061
- def self.new(
2062
- # The property of the price to filter on.
2063
- field:,
2064
- # Should prices that match the filter be included or excluded.
2065
- operator:,
2066
- # The IDs or values that match this filter.
2067
- values:
2068
- )
2069
- end
2070
-
2071
- sig do
2072
- override.returns(
2073
- {
2074
- field:
2075
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Field::TaggedSymbol,
2076
- operator:
2077
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Operator::TaggedSymbol,
2078
- values: T::Array[String]
2079
- }
2080
- )
2081
- end
2082
- def to_hash
2083
- end
2084
-
2085
- # The property of the price to filter on.
2086
- module Field
2087
- extend Orb::Internal::Type::Enum
2088
-
2089
- TaggedSymbol =
2090
- T.type_alias do
2091
- T.all(
2092
- Symbol,
2093
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Field
2094
- )
2095
- end
2096
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2097
-
2098
- PRICE_ID =
2099
- T.let(
2100
- :price_id,
2101
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Field::TaggedSymbol
2102
- )
2103
- ITEM_ID =
2104
- T.let(
2105
- :item_id,
2106
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Field::TaggedSymbol
2107
- )
2108
- PRICE_TYPE =
2109
- T.let(
2110
- :price_type,
2111
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Field::TaggedSymbol
2112
- )
2113
- CURRENCY =
2114
- T.let(
2115
- :currency,
2116
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Field::TaggedSymbol
2117
- )
2118
- PRICING_UNIT_ID =
2119
- T.let(
2120
- :pricing_unit_id,
2121
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Field::TaggedSymbol
2122
- )
2123
-
2124
- sig do
2125
- override.returns(
2126
- T::Array[
2127
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Field::TaggedSymbol
2128
- ]
2129
- )
2130
- end
2131
- def self.values
2132
- end
2133
- end
2134
-
2135
- # Should prices that match the filter be included or excluded.
2136
- module Operator
2137
- extend Orb::Internal::Type::Enum
2138
-
2139
- TaggedSymbol =
2140
- T.type_alias do
2141
- T.all(
2142
- Symbol,
2143
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Operator
2144
- )
2145
- end
2146
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2147
-
2148
- INCLUDES =
2149
- T.let(
2150
- :includes,
2151
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Operator::TaggedSymbol
2152
- )
2153
- EXCLUDES =
2154
- T.let(
2155
- :excludes,
2156
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Operator::TaggedSymbol
2157
- )
2158
-
2159
- sig do
2160
- override.returns(
2161
- T::Array[
2162
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::Filter::Operator::TaggedSymbol
2163
- ]
2164
- )
2165
- end
2166
- def self.values
2167
- end
2168
- end
2169
- end
2170
- end
2171
-
2172
- class Percentage < Orb::Internal::Type::BaseModel
2173
- OrHash =
2174
- T.type_alias do
2175
- T.any(
2176
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage,
2177
- Orb::Internal::AnyHash
2178
- )
2179
- end
2180
-
2181
- # The price interval ids that this discount interval applies to.
2182
- sig { returns(T::Array[String]) }
2183
- attr_accessor :applies_to_price_interval_ids
2184
-
2185
- sig { returns(Symbol) }
2186
- attr_accessor :discount_type
2187
-
2188
- # The end date of the discount interval.
2189
- sig { returns(T.nilable(Time)) }
2190
- attr_accessor :end_date
2191
-
2192
- # The filters that determine which prices this discount interval applies to.
2193
- sig do
2194
- returns(
2195
- T::Array[
2196
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter
2197
- ]
2198
- )
2199
- end
2200
- attr_accessor :filters
2201
-
2202
- # Only available if discount_type is `percentage`.This is a number between 0
2203
- # and 1.
2204
- sig { returns(Float) }
2205
- attr_accessor :percentage_discount
2206
-
2207
- # The start date of the discount interval.
2208
- sig { returns(Time) }
2209
- attr_accessor :start_date
2210
-
2211
- sig do
2212
- params(
2213
- applies_to_price_interval_ids: T::Array[String],
2214
- end_date: T.nilable(Time),
2215
- filters:
2216
- T::Array[
2217
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::OrHash
2218
- ],
2219
- percentage_discount: Float,
2220
- start_date: Time,
2221
- discount_type: Symbol
2222
- ).returns(T.attached_class)
2223
- end
2224
- def self.new(
2225
- # The price interval ids that this discount interval applies to.
2226
- applies_to_price_interval_ids:,
2227
- # The end date of the discount interval.
2228
- end_date:,
2229
- # The filters that determine which prices this discount interval applies to.
2230
- filters:,
2231
- # Only available if discount_type is `percentage`.This is a number between 0
2232
- # and 1.
2233
- percentage_discount:,
2234
- # The start date of the discount interval.
2235
- start_date:,
2236
- discount_type: :percentage
2237
- )
2238
- end
2239
-
2240
- sig do
2241
- override.returns(
2242
- {
2243
- applies_to_price_interval_ids: T::Array[String],
2244
- discount_type: Symbol,
2245
- end_date: T.nilable(Time),
2246
- filters:
2247
- T::Array[
2248
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter
2249
- ],
2250
- percentage_discount: Float,
2251
- start_date: Time
2252
- }
2253
- )
2254
- end
2255
- def to_hash
2256
- end
2257
-
2258
- class Filter < Orb::Internal::Type::BaseModel
2259
- OrHash =
2260
- T.type_alias do
2261
- T.any(
2262
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter,
2263
- Orb::Internal::AnyHash
2264
- )
2265
- end
2266
-
2267
- # The property of the price to filter on.
2268
- sig do
2269
- returns(
2270
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Field::TaggedSymbol
2271
- )
2272
- end
2273
- attr_accessor :field
2274
-
2275
- # Should prices that match the filter be included or excluded.
2276
- sig do
2277
- returns(
2278
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Operator::TaggedSymbol
2279
- )
2280
- end
2281
- attr_accessor :operator
2282
-
2283
- # The IDs or values that match this filter.
2284
- sig { returns(T::Array[String]) }
2285
- attr_accessor :values
2286
-
2287
- sig do
2288
- params(
2289
- field:
2290
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Field::OrSymbol,
2291
- operator:
2292
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Operator::OrSymbol,
2293
- values: T::Array[String]
2294
- ).returns(T.attached_class)
2295
- end
2296
- def self.new(
2297
- # The property of the price to filter on.
2298
- field:,
2299
- # Should prices that match the filter be included or excluded.
2300
- operator:,
2301
- # The IDs or values that match this filter.
2302
- values:
2303
- )
2304
- end
2305
-
2306
- sig do
2307
- override.returns(
2308
- {
2309
- field:
2310
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Field::TaggedSymbol,
2311
- operator:
2312
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Operator::TaggedSymbol,
2313
- values: T::Array[String]
2314
- }
2315
- )
2316
- end
2317
- def to_hash
2318
- end
2319
-
2320
- # The property of the price to filter on.
2321
- module Field
2322
- extend Orb::Internal::Type::Enum
2323
-
2324
- TaggedSymbol =
2325
- T.type_alias do
2326
- T.all(
2327
- Symbol,
2328
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Field
2329
- )
2330
- end
2331
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2332
-
2333
- PRICE_ID =
2334
- T.let(
2335
- :price_id,
2336
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Field::TaggedSymbol
2337
- )
2338
- ITEM_ID =
2339
- T.let(
2340
- :item_id,
2341
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Field::TaggedSymbol
2342
- )
2343
- PRICE_TYPE =
2344
- T.let(
2345
- :price_type,
2346
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Field::TaggedSymbol
2347
- )
2348
- CURRENCY =
2349
- T.let(
2350
- :currency,
2351
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Field::TaggedSymbol
2352
- )
2353
- PRICING_UNIT_ID =
2354
- T.let(
2355
- :pricing_unit_id,
2356
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Field::TaggedSymbol
2357
- )
2358
-
2359
- sig do
2360
- override.returns(
2361
- T::Array[
2362
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Field::TaggedSymbol
2363
- ]
2364
- )
2365
- end
2366
- def self.values
2367
- end
2368
- end
2369
-
2370
- # Should prices that match the filter be included or excluded.
2371
- module Operator
2372
- extend Orb::Internal::Type::Enum
2373
-
2374
- TaggedSymbol =
2375
- T.type_alias do
2376
- T.all(
2377
- Symbol,
2378
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Operator
2379
- )
2380
- end
2381
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2382
-
2383
- INCLUDES =
2384
- T.let(
2385
- :includes,
2386
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Operator::TaggedSymbol
2387
- )
2388
- EXCLUDES =
2389
- T.let(
2390
- :excludes,
2391
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Operator::TaggedSymbol
2392
- )
2393
-
2394
- sig do
2395
- override.returns(
2396
- T::Array[
2397
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::Filter::Operator::TaggedSymbol
2398
- ]
2399
- )
2400
- end
2401
- def self.values
2402
- end
2403
- end
2404
- end
2405
- end
2406
-
2407
- class Usage < Orb::Internal::Type::BaseModel
2408
- OrHash =
2409
- T.type_alias do
2410
- T.any(
2411
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage,
2412
- Orb::Internal::AnyHash
2413
- )
2414
- end
2415
-
2416
- # The price interval ids that this discount interval applies to.
2417
- sig { returns(T::Array[String]) }
2418
- attr_accessor :applies_to_price_interval_ids
2419
-
2420
- sig { returns(Symbol) }
2421
- attr_accessor :discount_type
2422
-
2423
- # The end date of the discount interval.
2424
- sig { returns(T.nilable(Time)) }
2425
- attr_accessor :end_date
2426
-
2427
- # The filters that determine which prices this discount interval applies to.
2428
- sig do
2429
- returns(
2430
- T::Array[
2431
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter
2432
- ]
2433
- )
2434
- end
2435
- attr_accessor :filters
2436
-
2437
- # The start date of the discount interval.
2438
- sig { returns(Time) }
2439
- attr_accessor :start_date
2440
-
2441
- # Only available if discount_type is `usage`. Number of usage units that this
2442
- # discount is for
2443
- sig { returns(Float) }
2444
- attr_accessor :usage_discount
2445
-
2446
- sig do
2447
- params(
2448
- applies_to_price_interval_ids: T::Array[String],
2449
- end_date: T.nilable(Time),
2450
- filters:
2451
- T::Array[
2452
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::OrHash
2453
- ],
2454
- start_date: Time,
2455
- usage_discount: Float,
2456
- discount_type: Symbol
2457
- ).returns(T.attached_class)
2458
- end
2459
- def self.new(
2460
- # The price interval ids that this discount interval applies to.
2461
- applies_to_price_interval_ids:,
2462
- # The end date of the discount interval.
2463
- end_date:,
2464
- # The filters that determine which prices this discount interval applies to.
2465
- filters:,
2466
- # The start date of the discount interval.
2467
- start_date:,
2468
- # Only available if discount_type is `usage`. Number of usage units that this
2469
- # discount is for
2470
- usage_discount:,
2471
- discount_type: :usage
2472
- )
2473
- end
2474
-
2475
- sig do
2476
- override.returns(
2477
- {
2478
- applies_to_price_interval_ids: T::Array[String],
2479
- discount_type: Symbol,
2480
- end_date: T.nilable(Time),
2481
- filters:
2482
- T::Array[
2483
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter
2484
- ],
2485
- start_date: Time,
2486
- usage_discount: Float
2487
- }
2488
- )
2489
- end
2490
- def to_hash
2491
- end
2492
-
2493
- class Filter < Orb::Internal::Type::BaseModel
2494
- OrHash =
2495
- T.type_alias do
2496
- T.any(
2497
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter,
2498
- Orb::Internal::AnyHash
2499
- )
2500
- end
2501
-
2502
- # The property of the price to filter on.
2503
- sig do
2504
- returns(
2505
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Field::TaggedSymbol
2506
- )
2507
- end
2508
- attr_accessor :field
2509
-
2510
- # Should prices that match the filter be included or excluded.
2511
- sig do
2512
- returns(
2513
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Operator::TaggedSymbol
2514
- )
2515
- end
2516
- attr_accessor :operator
2517
-
2518
- # The IDs or values that match this filter.
2519
- sig { returns(T::Array[String]) }
2520
- attr_accessor :values
2521
-
2522
- sig do
2523
- params(
2524
- field:
2525
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Field::OrSymbol,
2526
- operator:
2527
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Operator::OrSymbol,
2528
- values: T::Array[String]
2529
- ).returns(T.attached_class)
2530
- end
2531
- def self.new(
2532
- # The property of the price to filter on.
2533
- field:,
2534
- # Should prices that match the filter be included or excluded.
2535
- operator:,
2536
- # The IDs or values that match this filter.
2537
- values:
2538
- )
2539
- end
2540
-
2541
- sig do
2542
- override.returns(
2543
- {
2544
- field:
2545
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Field::TaggedSymbol,
2546
- operator:
2547
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Operator::TaggedSymbol,
2548
- values: T::Array[String]
2549
- }
2550
- )
2551
- end
2552
- def to_hash
2553
- end
2554
-
2555
- # The property of the price to filter on.
2556
- module Field
2557
- extend Orb::Internal::Type::Enum
2558
-
2559
- TaggedSymbol =
2560
- T.type_alias do
2561
- T.all(
2562
- Symbol,
2563
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Field
2564
- )
2565
- end
2566
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2567
-
2568
- PRICE_ID =
2569
- T.let(
2570
- :price_id,
2571
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Field::TaggedSymbol
2572
- )
2573
- ITEM_ID =
2574
- T.let(
2575
- :item_id,
2576
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Field::TaggedSymbol
2577
- )
2578
- PRICE_TYPE =
2579
- T.let(
2580
- :price_type,
2581
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Field::TaggedSymbol
2582
- )
2583
- CURRENCY =
2584
- T.let(
2585
- :currency,
2586
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Field::TaggedSymbol
2587
- )
2588
- PRICING_UNIT_ID =
2589
- T.let(
2590
- :pricing_unit_id,
2591
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Field::TaggedSymbol
2592
- )
2593
-
2594
- sig do
2595
- override.returns(
2596
- T::Array[
2597
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Field::TaggedSymbol
2598
- ]
2599
- )
2600
- end
2601
- def self.values
2602
- end
2603
- end
2604
-
2605
- # Should prices that match the filter be included or excluded.
2606
- module Operator
2607
- extend Orb::Internal::Type::Enum
2608
-
2609
- TaggedSymbol =
2610
- T.type_alias do
2611
- T.all(
2612
- Symbol,
2613
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Operator
2614
- )
2615
- end
2616
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2617
-
2618
- INCLUDES =
2619
- T.let(
2620
- :includes,
2621
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Operator::TaggedSymbol
2622
- )
2623
- EXCLUDES =
2624
- T.let(
2625
- :excludes,
2626
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Operator::TaggedSymbol
2627
- )
2628
-
2629
- sig do
2630
- override.returns(
2631
- T::Array[
2632
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::Filter::Operator::TaggedSymbol
2633
- ]
2634
- )
2635
- end
2636
- def self.values
2637
- end
2638
- end
2639
- end
2640
- end
2641
-
2642
- sig do
2643
- override.returns(
2644
- T::Array[
2645
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Variants
2646
- ]
2647
- )
2648
- end
2649
- def self.variants
2650
- end
2651
- end
2652
-
2653
- class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
2654
- OrHash =
2655
- T.type_alias do
2656
- T.any(
2657
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule,
2658
- Orb::Internal::AnyHash
2659
- )
2660
- end
2661
-
2662
- sig { returns(T.nilable(Time)) }
2663
- attr_accessor :end_date
2664
-
2665
- sig { returns(String) }
2666
- attr_accessor :price_id
2667
-
2668
- sig { returns(Float) }
2669
- attr_accessor :quantity
2670
-
2671
- sig { returns(Time) }
2672
- attr_accessor :start_date
2673
-
2674
- sig do
2675
- params(
2676
- end_date: T.nilable(Time),
2677
- price_id: String,
2678
- quantity: Float,
2679
- start_date: Time
2680
- ).returns(T.attached_class)
2681
- end
2682
- def self.new(end_date:, price_id:, quantity:, start_date:)
2683
- end
2684
-
2685
- sig do
2686
- override.returns(
2687
- {
2688
- end_date: T.nilable(Time),
2689
- price_id: String,
2690
- quantity: Float,
2691
- start_date: Time
2692
- }
2693
- )
2694
- end
2695
- def to_hash
2696
- end
2697
- end
2698
-
2699
- class MaximumInterval < Orb::Internal::Type::BaseModel
2700
- OrHash =
2701
- T.type_alias do
2702
- T.any(
2703
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval,
2704
- Orb::Internal::AnyHash
2705
- )
2706
- end
2707
-
2708
- # The price interval ids that this maximum interval applies to.
2709
- sig { returns(T::Array[String]) }
2710
- attr_accessor :applies_to_price_interval_ids
2711
-
2712
- # The end date of the maximum interval.
2713
- sig { returns(T.nilable(Time)) }
2714
- attr_accessor :end_date
2715
-
2716
- # The filters that determine which prices this maximum interval applies to.
2717
- sig do
2718
- returns(
2719
- T::Array[
2720
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter
2721
- ]
2722
- )
2723
- end
2724
- attr_accessor :filters
2725
-
2726
- # The maximum amount to charge in a given billing period for the price intervals
2727
- # this transform applies to.
2728
- sig { returns(String) }
2729
- attr_accessor :maximum_amount
2730
-
2731
- # The start date of the maximum interval.
2732
- sig { returns(Time) }
2733
- attr_accessor :start_date
2734
-
2735
- sig do
2736
- params(
2737
- applies_to_price_interval_ids: T::Array[String],
2738
- end_date: T.nilable(Time),
2739
- filters:
2740
- T::Array[
2741
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::OrHash
2742
- ],
2743
- maximum_amount: String,
2744
- start_date: Time
2745
- ).returns(T.attached_class)
2746
- end
2747
- def self.new(
2748
- # The price interval ids that this maximum interval applies to.
2749
- applies_to_price_interval_ids:,
2750
- # The end date of the maximum interval.
2751
- end_date:,
2752
- # The filters that determine which prices this maximum interval applies to.
2753
- filters:,
2754
- # The maximum amount to charge in a given billing period for the price intervals
2755
- # this transform applies to.
2756
- maximum_amount:,
2757
- # The start date of the maximum interval.
2758
- start_date:
2759
- )
2760
- end
2761
-
2762
- sig do
2763
- override.returns(
2764
- {
2765
- applies_to_price_interval_ids: T::Array[String],
2766
- end_date: T.nilable(Time),
2767
- filters:
2768
- T::Array[
2769
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter
2770
- ],
2771
- maximum_amount: String,
2772
- start_date: Time
2773
- }
2774
- )
2775
- end
2776
- def to_hash
2777
- end
2778
-
2779
- class Filter < Orb::Internal::Type::BaseModel
2780
- OrHash =
2781
- T.type_alias do
2782
- T.any(
2783
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter,
2784
- Orb::Internal::AnyHash
2785
- )
2786
- end
2787
-
2788
- # The property of the price to filter on.
2789
- sig do
2790
- returns(
2791
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Field::TaggedSymbol
2792
- )
2793
- end
2794
- attr_accessor :field
2795
-
2796
- # Should prices that match the filter be included or excluded.
2797
- sig do
2798
- returns(
2799
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Operator::TaggedSymbol
2800
- )
2801
- end
2802
- attr_accessor :operator
2803
-
2804
- # The IDs or values that match this filter.
2805
- sig { returns(T::Array[String]) }
2806
- attr_accessor :values
2807
-
2808
- sig do
2809
- params(
2810
- field:
2811
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Field::OrSymbol,
2812
- operator:
2813
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Operator::OrSymbol,
2814
- values: T::Array[String]
2815
- ).returns(T.attached_class)
2816
- end
2817
- def self.new(
2818
- # The property of the price to filter on.
2819
- field:,
2820
- # Should prices that match the filter be included or excluded.
2821
- operator:,
2822
- # The IDs or values that match this filter.
2823
- values:
2824
- )
2825
- end
2826
-
2827
- sig do
2828
- override.returns(
2829
- {
2830
- field:
2831
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Field::TaggedSymbol,
2832
- operator:
2833
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Operator::TaggedSymbol,
2834
- values: T::Array[String]
2835
- }
2836
- )
2837
- end
2838
- def to_hash
2839
- end
2840
-
2841
- # The property of the price to filter on.
2842
- module Field
2843
- extend Orb::Internal::Type::Enum
2844
-
2845
- TaggedSymbol =
2846
- T.type_alias do
2847
- T.all(
2848
- Symbol,
2849
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Field
2850
- )
2851
- end
2852
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2853
-
2854
- PRICE_ID =
2855
- T.let(
2856
- :price_id,
2857
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Field::TaggedSymbol
2858
- )
2859
- ITEM_ID =
2860
- T.let(
2861
- :item_id,
2862
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Field::TaggedSymbol
2863
- )
2864
- PRICE_TYPE =
2865
- T.let(
2866
- :price_type,
2867
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Field::TaggedSymbol
2868
- )
2869
- CURRENCY =
2870
- T.let(
2871
- :currency,
2872
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Field::TaggedSymbol
2873
- )
2874
- PRICING_UNIT_ID =
2875
- T.let(
2876
- :pricing_unit_id,
2877
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Field::TaggedSymbol
2878
- )
2879
-
2880
- sig do
2881
- override.returns(
2882
- T::Array[
2883
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Field::TaggedSymbol
2884
- ]
2885
- )
2886
- end
2887
- def self.values
2888
- end
2889
- end
2890
-
2891
- # Should prices that match the filter be included or excluded.
2892
- module Operator
2893
- extend Orb::Internal::Type::Enum
2894
-
2895
- TaggedSymbol =
2896
- T.type_alias do
2897
- T.all(
2898
- Symbol,
2899
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Operator
2900
- )
2901
- end
2902
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2903
-
2904
- INCLUDES =
2905
- T.let(
2906
- :includes,
2907
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Operator::TaggedSymbol
2908
- )
2909
- EXCLUDES =
2910
- T.let(
2911
- :excludes,
2912
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Operator::TaggedSymbol
2913
- )
2914
-
2915
- sig do
2916
- override.returns(
2917
- T::Array[
2918
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Filter::Operator::TaggedSymbol
2919
- ]
2920
- )
2921
- end
2922
- def self.values
2923
- end
2924
- end
2925
- end
2926
- end
2927
-
2928
- class MinimumInterval < Orb::Internal::Type::BaseModel
2929
- OrHash =
2930
- T.type_alias do
2931
- T.any(
2932
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval,
2933
- Orb::Internal::AnyHash
2934
- )
2935
- end
2936
-
2937
- # The price interval ids that this minimum interval applies to.
2938
- sig { returns(T::Array[String]) }
2939
- attr_accessor :applies_to_price_interval_ids
2940
-
2941
- # The end date of the minimum interval.
2942
- sig { returns(T.nilable(Time)) }
2943
- attr_accessor :end_date
2944
-
2945
- # The filters that determine which prices this minimum interval applies to.
2946
- sig do
2947
- returns(
2948
- T::Array[
2949
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter
2950
- ]
2951
- )
2952
- end
2953
- attr_accessor :filters
2954
-
2955
- # The minimum amount to charge in a given billing period for the price intervals
2956
- # this minimum applies to.
2957
- sig { returns(String) }
2958
- attr_accessor :minimum_amount
2959
-
2960
- # The start date of the minimum interval.
2961
- sig { returns(Time) }
2962
- attr_accessor :start_date
2963
-
2964
- sig do
2965
- params(
2966
- applies_to_price_interval_ids: T::Array[String],
2967
- end_date: T.nilable(Time),
2968
- filters:
2969
- T::Array[
2970
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::OrHash
2971
- ],
2972
- minimum_amount: String,
2973
- start_date: Time
2974
- ).returns(T.attached_class)
2975
- end
2976
- def self.new(
2977
- # The price interval ids that this minimum interval applies to.
2978
- applies_to_price_interval_ids:,
2979
- # The end date of the minimum interval.
2980
- end_date:,
2981
- # The filters that determine which prices this minimum interval applies to.
2982
- filters:,
2983
- # The minimum amount to charge in a given billing period for the price intervals
2984
- # this minimum applies to.
2985
- minimum_amount:,
2986
- # The start date of the minimum interval.
2987
- start_date:
2988
- )
2989
- end
2990
-
2991
- sig do
2992
- override.returns(
2993
- {
2994
- applies_to_price_interval_ids: T::Array[String],
2995
- end_date: T.nilable(Time),
2996
- filters:
2997
- T::Array[
2998
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter
2999
- ],
3000
- minimum_amount: String,
3001
- start_date: Time
3002
- }
3003
- )
3004
- end
3005
- def to_hash
3006
- end
3007
-
3008
- class Filter < Orb::Internal::Type::BaseModel
3009
- OrHash =
3010
- T.type_alias do
3011
- T.any(
3012
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter,
3013
- Orb::Internal::AnyHash
3014
- )
3015
- end
3016
-
3017
- # The property of the price to filter on.
3018
- sig do
3019
- returns(
3020
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Field::TaggedSymbol
3021
- )
3022
- end
3023
- attr_accessor :field
3024
-
3025
- # Should prices that match the filter be included or excluded.
3026
- sig do
3027
- returns(
3028
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Operator::TaggedSymbol
3029
- )
3030
- end
3031
- attr_accessor :operator
3032
-
3033
- # The IDs or values that match this filter.
3034
- sig { returns(T::Array[String]) }
3035
- attr_accessor :values
3036
-
3037
- sig do
3038
- params(
3039
- field:
3040
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Field::OrSymbol,
3041
- operator:
3042
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Operator::OrSymbol,
3043
- values: T::Array[String]
3044
- ).returns(T.attached_class)
3045
- end
3046
- def self.new(
3047
- # The property of the price to filter on.
3048
- field:,
3049
- # Should prices that match the filter be included or excluded.
3050
- operator:,
3051
- # The IDs or values that match this filter.
3052
- values:
3053
- )
3054
- end
3055
-
3056
- sig do
3057
- override.returns(
3058
- {
3059
- field:
3060
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Field::TaggedSymbol,
3061
- operator:
3062
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Operator::TaggedSymbol,
3063
- values: T::Array[String]
3064
- }
3065
- )
3066
- end
3067
- def to_hash
3068
- end
3069
-
3070
- # The property of the price to filter on.
3071
- module Field
3072
- extend Orb::Internal::Type::Enum
3073
-
3074
- TaggedSymbol =
3075
- T.type_alias do
3076
- T.all(
3077
- Symbol,
3078
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Field
3079
- )
3080
- end
3081
- OrSymbol = T.type_alias { T.any(Symbol, String) }
3082
-
3083
- PRICE_ID =
3084
- T.let(
3085
- :price_id,
3086
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Field::TaggedSymbol
3087
- )
3088
- ITEM_ID =
3089
- T.let(
3090
- :item_id,
3091
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Field::TaggedSymbol
3092
- )
3093
- PRICE_TYPE =
3094
- T.let(
3095
- :price_type,
3096
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Field::TaggedSymbol
3097
- )
3098
- CURRENCY =
3099
- T.let(
3100
- :currency,
3101
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Field::TaggedSymbol
3102
- )
3103
- PRICING_UNIT_ID =
3104
- T.let(
3105
- :pricing_unit_id,
3106
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Field::TaggedSymbol
3107
- )
3108
-
3109
- sig do
3110
- override.returns(
3111
- T::Array[
3112
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Field::TaggedSymbol
3113
- ]
3114
- )
3115
- end
3116
- def self.values
3117
- end
3118
- end
3119
-
3120
- # Should prices that match the filter be included or excluded.
3121
- module Operator
3122
- extend Orb::Internal::Type::Enum
3123
-
3124
- TaggedSymbol =
3125
- T.type_alias do
3126
- T.all(
3127
- Symbol,
3128
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Operator
3129
- )
3130
- end
3131
- OrSymbol = T.type_alias { T.any(Symbol, String) }
3132
-
3133
- INCLUDES =
3134
- T.let(
3135
- :includes,
3136
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Operator::TaggedSymbol
3137
- )
3138
- EXCLUDES =
3139
- T.let(
3140
- :excludes,
3141
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Operator::TaggedSymbol
3142
- )
3143
-
3144
- sig do
3145
- override.returns(
3146
- T::Array[
3147
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Filter::Operator::TaggedSymbol
3148
- ]
3149
- )
3150
- end
3151
- def self.values
3152
- end
3153
- end
3154
- end
3155
- end
3156
-
3157
- class PendingSubscriptionChange < Orb::Internal::Type::BaseModel
3158
- OrHash =
3159
- T.type_alias do
3160
- T.any(
3161
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange,
3162
- Orb::Internal::AnyHash
3163
- )
3164
- end
3165
-
3166
- sig { returns(String) }
3167
- attr_accessor :id
3168
-
3169
- # A pending subscription change if one exists on this subscription.
3170
- sig { params(id: String).returns(T.attached_class) }
3171
- def self.new(id:)
3172
- end
3173
-
3174
- sig { override.returns({ id: String }) }
3175
- def to_hash
3176
- end
3177
- end
3178
-
3179
- class PriceInterval < Orb::Internal::Type::BaseModel
3180
- OrHash =
3181
- T.type_alias do
3182
- T.any(
3183
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval,
3184
- Orb::Internal::AnyHash
3185
- )
3186
- end
3187
-
3188
- sig { returns(String) }
3189
- attr_accessor :id
3190
-
3191
- # The day of the month that Orb bills for this price
3192
- sig { returns(Integer) }
3193
- attr_accessor :billing_cycle_day
3194
-
3195
- # The end of the current billing period. This is an exclusive timestamp, such that
3196
- # the instant returned is exactly the end of the billing period. Set to null if
3197
- # this price interval is not currently active.
3198
- sig { returns(T.nilable(Time)) }
3199
- attr_accessor :current_billing_period_end_date
3200
-
3201
- # The start date of the current billing period. This is an inclusive timestamp;
3202
- # the instant returned is exactly the beginning of the billing period. Set to null
3203
- # if this price interval is not currently active.
3204
- sig { returns(T.nilable(Time)) }
3205
- attr_accessor :current_billing_period_start_date
3206
-
3207
- # The end date of the price interval. This is the date that Orb stops billing for
3208
- # this price.
3209
- sig { returns(T.nilable(Time)) }
3210
- attr_accessor :end_date
3211
-
3212
- # An additional filter to apply to usage queries.
3213
- sig { returns(T.nilable(String)) }
3214
- attr_accessor :filter
3215
-
3216
- # The fixed fee quantity transitions for this price interval. This is only
3217
- # relevant for fixed fees.
3218
- sig do
3219
- returns(
3220
- T.nilable(
3221
- T::Array[
3222
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition
3223
- ]
3224
- )
3225
- )
3226
- end
3227
- attr_accessor :fixed_fee_quantity_transitions
3228
-
3229
- # The Price resource represents a price that can be billed on a subscription,
3230
- # resulting in a charge on an invoice in the form of an invoice line item. Prices
3231
- # take a quantity and determine an amount to bill.
3232
- #
3233
- # Orb supports a few different pricing models out of the box. Each of these models
3234
- # is serialized differently in a given Price object. The model_type field
3235
- # determines the key for the configuration object that is present.
3236
- #
3237
- # For more on the types of prices, see
3238
- # [the core concepts documentation](/core-concepts#plan-and-price)
3239
- sig { returns(Orb::Price::Variants) }
3240
- attr_accessor :price
3241
-
3242
- # The start date of the price interval. This is the date that Orb starts billing
3243
- # for this price.
3244
- sig { returns(Time) }
3245
- attr_accessor :start_date
3246
-
3247
- # A list of customer IDs whose usage events will be aggregated and billed under
3248
- # this price interval.
3249
- sig { returns(T.nilable(T::Array[String])) }
3250
- attr_accessor :usage_customer_ids
3251
-
3252
- # The Price Interval resource represents a period of time for which a price will
3253
- # bill on a subscription. A subscription’s price intervals define its billing
3254
- # behavior.
3255
- sig do
3256
- params(
3257
- id: String,
3258
- billing_cycle_day: Integer,
3259
- current_billing_period_end_date: T.nilable(Time),
3260
- current_billing_period_start_date: T.nilable(Time),
3261
- end_date: T.nilable(Time),
3262
- filter: T.nilable(String),
3263
- fixed_fee_quantity_transitions:
3264
- T.nilable(
3265
- T::Array[
3266
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition::OrHash
3267
- ]
3268
- ),
3269
- price:
3270
- T.any(
3271
- Orb::Price::Unit::OrHash,
3272
- Orb::Price::Package::OrHash,
3273
- Orb::Price::Matrix::OrHash,
3274
- Orb::Price::Tiered::OrHash,
3275
- Orb::Price::TieredBps::OrHash,
3276
- Orb::Price::Bps::OrHash,
3277
- Orb::Price::BulkBps::OrHash,
3278
- Orb::Price::Bulk::OrHash,
3279
- Orb::Price::ThresholdTotalAmount::OrHash,
3280
- Orb::Price::TieredPackage::OrHash,
3281
- Orb::Price::GroupedTiered::OrHash,
3282
- Orb::Price::TieredWithMinimum::OrHash,
3283
- Orb::Price::TieredPackageWithMinimum::OrHash,
3284
- Orb::Price::PackageWithAllocation::OrHash,
3285
- Orb::Price::UnitWithPercent::OrHash,
3286
- Orb::Price::MatrixWithAllocation::OrHash,
3287
- Orb::Price::TieredWithProration::OrHash,
3288
- Orb::Price::UnitWithProration::OrHash,
3289
- Orb::Price::GroupedAllocation::OrHash,
3290
- Orb::Price::GroupedWithProratedMinimum::OrHash,
3291
- Orb::Price::GroupedWithMeteredMinimum::OrHash,
3292
- Orb::Price::MatrixWithDisplayName::OrHash,
3293
- Orb::Price::BulkWithProration::OrHash,
3294
- Orb::Price::GroupedTieredPackage::OrHash,
3295
- Orb::Price::MaxGroupTieredPackage::OrHash,
3296
- Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
3297
- Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
3298
- Orb::Price::CumulativeGroupedBulk::OrHash
3299
- ),
3300
- start_date: Time,
3301
- usage_customer_ids: T.nilable(T::Array[String])
3302
- ).returns(T.attached_class)
3303
- end
3304
- def self.new(
3305
- id:,
3306
- # The day of the month that Orb bills for this price
3307
- billing_cycle_day:,
3308
- # The end of the current billing period. This is an exclusive timestamp, such that
3309
- # the instant returned is exactly the end of the billing period. Set to null if
3310
- # this price interval is not currently active.
3311
- current_billing_period_end_date:,
3312
- # The start date of the current billing period. This is an inclusive timestamp;
3313
- # the instant returned is exactly the beginning of the billing period. Set to null
3314
- # if this price interval is not currently active.
3315
- current_billing_period_start_date:,
3316
- # The end date of the price interval. This is the date that Orb stops billing for
3317
- # this price.
3318
- end_date:,
3319
- # An additional filter to apply to usage queries.
3320
- filter:,
3321
- # The fixed fee quantity transitions for this price interval. This is only
3322
- # relevant for fixed fees.
3323
- fixed_fee_quantity_transitions:,
3324
- # The Price resource represents a price that can be billed on a subscription,
3325
- # resulting in a charge on an invoice in the form of an invoice line item. Prices
3326
- # take a quantity and determine an amount to bill.
3327
- #
3328
- # Orb supports a few different pricing models out of the box. Each of these models
3329
- # is serialized differently in a given Price object. The model_type field
3330
- # determines the key for the configuration object that is present.
3331
- #
3332
- # For more on the types of prices, see
3333
- # [the core concepts documentation](/core-concepts#plan-and-price)
3334
- price:,
3335
- # The start date of the price interval. This is the date that Orb starts billing
3336
- # for this price.
3337
- start_date:,
3338
- # A list of customer IDs whose usage events will be aggregated and billed under
3339
- # this price interval.
3340
- usage_customer_ids:
3341
- )
3342
- end
3343
-
3344
- sig do
3345
- override.returns(
3346
- {
3347
- id: String,
3348
- billing_cycle_day: Integer,
3349
- current_billing_period_end_date: T.nilable(Time),
3350
- current_billing_period_start_date: T.nilable(Time),
3351
- end_date: T.nilable(Time),
3352
- filter: T.nilable(String),
3353
- fixed_fee_quantity_transitions:
3354
- T.nilable(
3355
- T::Array[
3356
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition
3357
- ]
3358
- ),
3359
- price: Orb::Price::Variants,
3360
- start_date: Time,
3361
- usage_customer_ids: T.nilable(T::Array[String])
3362
- }
3363
- )
3364
- end
3365
- def to_hash
3366
- end
3367
-
3368
- class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
3369
- OrHash =
3370
- T.type_alias do
3371
- T.any(
3372
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition,
3373
- Orb::Internal::AnyHash
3374
- )
3375
- end
3376
-
3377
- sig { returns(Time) }
3378
- attr_accessor :effective_date
3379
-
3380
- sig { returns(String) }
3381
- attr_accessor :price_id
3382
-
3383
- sig { returns(Integer) }
3384
- attr_accessor :quantity
3385
-
3386
- sig do
3387
- params(
3388
- effective_date: Time,
3389
- price_id: String,
3390
- quantity: Integer
3391
- ).returns(T.attached_class)
3392
- end
3393
- def self.new(effective_date:, price_id:, quantity:)
3394
- end
3395
-
3396
- sig do
3397
- override.returns(
3398
- { effective_date: Time, price_id: String, quantity: Integer }
3399
- )
3400
- end
3401
- def to_hash
3402
- end
3403
- end
3404
- end
3405
-
3406
- class RedeemedCoupon < Orb::Internal::Type::BaseModel
3407
- OrHash =
3408
- T.type_alias do
3409
- T.any(
3410
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon,
3411
- Orb::Internal::AnyHash
3412
- )
3413
- end
3414
-
3415
- sig { returns(String) }
3416
- attr_accessor :coupon_id
3417
-
3418
- sig { returns(T.nilable(Time)) }
3419
- attr_accessor :end_date
3420
-
3421
- sig { returns(Time) }
3422
- attr_accessor :start_date
3423
-
3424
- sig do
3425
- params(
3426
- coupon_id: String,
3427
- end_date: T.nilable(Time),
3428
- start_date: Time
3429
- ).returns(T.attached_class)
3430
- end
3431
- def self.new(coupon_id:, end_date:, start_date:)
3432
- end
3433
-
3434
- sig do
3435
- override.returns(
3436
- { coupon_id: String, end_date: T.nilable(Time), start_date: Time }
3437
- )
3438
- end
3439
- def to_hash
3440
- end
3441
- end
3442
-
3443
- module Status
3444
- extend Orb::Internal::Type::Enum
3445
-
3446
- TaggedSymbol =
3447
- T.type_alias do
3448
- T.all(
3449
- Symbol,
3450
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status
3451
- )
3452
- end
3453
- OrSymbol = T.type_alias { T.any(Symbol, String) }
3454
-
3455
- ACTIVE =
3456
- T.let(
3457
- :active,
3458
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol
3459
- )
3460
- ENDED =
3461
- T.let(
3462
- :ended,
3463
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol
3464
- )
3465
- UPCOMING =
3466
- T.let(
3467
- :upcoming,
3468
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol
3469
- )
3470
-
3471
- sig do
3472
- override.returns(
3473
- T::Array[
3474
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol
3475
- ]
3476
- )
3477
- end
3478
- def self.values
3479
- end
3480
- end
3481
-
3482
- class TrialInfo < Orb::Internal::Type::BaseModel
3483
- OrHash =
3484
- T.type_alias do
3485
- T.any(
3486
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo,
3487
- Orb::Internal::AnyHash
3488
- )
3489
- end
3490
-
3491
- sig { returns(T.nilable(Time)) }
3492
- attr_accessor :end_date
3493
-
3494
- sig { params(end_date: T.nilable(Time)).returns(T.attached_class) }
3495
- def self.new(end_date:)
3496
- end
3497
-
3498
- sig { override.returns({ end_date: T.nilable(Time) }) }
3499
- def to_hash
3500
- end
3501
- end
3502
-
3503
- class ChangedResources < Orb::Internal::Type::BaseModel
3504
- OrHash =
3505
- T.type_alias do
3506
- T.any(
3507
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources,
3508
- Orb::Internal::AnyHash
3509
- )
3510
- end
3511
-
3512
- # The credit notes that were created as part of this operation.
3513
- sig { returns(T::Array[Orb::CreditNote]) }
3514
- attr_accessor :created_credit_notes
3515
-
3516
- # The invoices that were created as part of this operation.
3517
- sig { returns(T::Array[Orb::Invoice]) }
3518
- attr_accessor :created_invoices
3519
-
3520
- # The credit notes that were voided as part of this operation.
3521
- sig { returns(T::Array[Orb::CreditNote]) }
3522
- attr_accessor :voided_credit_notes
3523
-
3524
- # The invoices that were voided as part of this operation.
3525
- sig { returns(T::Array[Orb::Invoice]) }
3526
- attr_accessor :voided_invoices
3527
-
3528
- # The resources that were changed as part of this operation. Only present when
3529
- # fetched through the subscription changes API or if the
3530
- # `include_changed_resources` parameter was passed in the request.
3531
- sig do
3532
- params(
3533
- created_credit_notes: T::Array[Orb::CreditNote::OrHash],
3534
- created_invoices: T::Array[Orb::Invoice::OrHash],
3535
- voided_credit_notes: T::Array[Orb::CreditNote::OrHash],
3536
- voided_invoices: T::Array[Orb::Invoice::OrHash]
3537
- ).returns(T.attached_class)
3538
- end
3539
- def self.new(
3540
- # The credit notes that were created as part of this operation.
3541
- created_credit_notes:,
3542
- # The invoices that were created as part of this operation.
3543
- created_invoices:,
3544
- # The credit notes that were voided as part of this operation.
3545
- voided_credit_notes:,
3546
- # The invoices that were voided as part of this operation.
3547
- voided_invoices:
3548
- )
3549
- end
3550
-
3551
- sig do
3552
- override.returns(
3553
- {
3554
- created_credit_notes: T::Array[Orb::CreditNote],
3555
- created_invoices: T::Array[Orb::Invoice],
3556
- voided_credit_notes: T::Array[Orb::CreditNote],
3557
- voided_invoices: T::Array[Orb::Invoice]
3558
- }
3559
- )
3560
- end
3561
- def to_hash
3562
- end
3563
- end
3564
- end
3565
- end
3566
- end