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
@@ -59,19 +59,10 @@ module Orb
59
59
  attr_accessor :grouping
60
60
 
61
61
  # This field is deprecated in favor of `adjustments`.
62
- sig do
63
- returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum))
64
- end
62
+ sig { returns(T.nilable(Orb::Maximum)) }
65
63
  attr_reader :maximum
66
64
 
67
- sig do
68
- params(
69
- maximum:
70
- T.nilable(
71
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::OrHash
72
- )
73
- ).void
74
- end
65
+ sig { params(maximum: T.nilable(Orb::Maximum::OrHash)).void }
75
66
  attr_writer :maximum
76
67
 
77
68
  # This field is deprecated in favor of `adjustments`.
@@ -79,19 +70,10 @@ module Orb
79
70
  attr_accessor :maximum_amount
80
71
 
81
72
  # This field is deprecated in favor of `adjustments`.
82
- sig do
83
- returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum))
84
- end
73
+ sig { returns(T.nilable(Orb::Minimum)) }
85
74
  attr_reader :minimum
86
75
 
87
- sig do
88
- params(
89
- minimum:
90
- T.nilable(
91
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::OrHash
92
- )
93
- ).void
94
- end
76
+ sig { params(minimum: T.nilable(Orb::Minimum::OrHash)).void }
95
77
  attr_writer :minimum
96
78
 
97
79
  # This field is deprecated in favor of `adjustments`.
@@ -144,9 +126,7 @@ module Orb
144
126
 
145
127
  # An array of tax rates and their incurred tax amounts. Empty if no tax
146
128
  # integration is configured.
147
- sig do
148
- returns(T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount])
149
- end
129
+ sig { returns(T::Array[Orb::TaxAmount]) }
150
130
  attr_accessor :tax_amounts
151
131
 
152
132
  # A list of customer ids that were used to calculate the usage for this line item.
@@ -160,11 +140,11 @@ module Orb
160
140
  adjustments:
161
141
  T::Array[
162
142
  T.any(
163
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::OrHash,
164
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::OrHash,
165
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::OrHash,
166
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::OrHash,
167
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::OrHash
143
+ Orb::MonetaryUsageDiscountAdjustment::OrHash,
144
+ Orb::MonetaryAmountDiscountAdjustment::OrHash,
145
+ Orb::MonetaryPercentageDiscountAdjustment::OrHash,
146
+ Orb::MonetaryMinimumAdjustment::OrHash,
147
+ Orb::MonetaryMaximumAdjustment::OrHash
168
148
  )
169
149
  ],
170
150
  amount: String,
@@ -181,15 +161,9 @@ module Orb
181
161
  end_date: Time,
182
162
  filter: T.nilable(String),
183
163
  grouping: T.nilable(String),
184
- maximum:
185
- T.nilable(
186
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::OrHash
187
- ),
164
+ maximum: T.nilable(Orb::Maximum::OrHash),
188
165
  maximum_amount: T.nilable(String),
189
- minimum:
190
- T.nilable(
191
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::OrHash
192
- ),
166
+ minimum: T.nilable(Orb::Minimum::OrHash),
193
167
  minimum_amount: T.nilable(String),
194
168
  name: String,
195
169
  partially_invoiced_amount: String,
@@ -199,9 +173,9 @@ module Orb
199
173
  Orb::Price::Package::OrHash,
200
174
  Orb::Price::Matrix::OrHash,
201
175
  Orb::Price::Tiered::OrHash,
202
- Orb::Price::TieredBps::OrHash,
203
- Orb::Price::Bps::OrHash,
204
- Orb::Price::BulkBps::OrHash,
176
+ Orb::Price::TieredBPS::OrHash,
177
+ Orb::Price::BPS::OrHash,
178
+ Orb::Price::BulkBPS::OrHash,
205
179
  Orb::Price::Bulk::OrHash,
206
180
  Orb::Price::ThresholdTotalAmount::OrHash,
207
181
  Orb::Price::TieredPackage::OrHash,
@@ -229,16 +203,13 @@ module Orb
229
203
  sub_line_items:
230
204
  T::Array[
231
205
  T.any(
232
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::OrHash,
233
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::OrHash,
234
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::OrHash
206
+ Orb::MatrixSubLineItem::OrHash,
207
+ Orb::TierSubLineItem::OrHash,
208
+ Orb::OtherSubLineItem::OrHash
235
209
  )
236
210
  ],
237
211
  subtotal: String,
238
- tax_amounts:
239
- T::Array[
240
- Orb::Models::InvoiceLineItemCreateResponse::TaxAmount::OrHash
241
- ],
212
+ tax_amounts: T::Array[Orb::TaxAmount::OrHash],
242
213
  usage_customer_ids: T.nilable(T::Array[String])
243
214
  ).returns(T.attached_class)
244
215
  end
@@ -321,11 +292,9 @@ module Orb
321
292
  end_date: Time,
322
293
  filter: T.nilable(String),
323
294
  grouping: T.nilable(String),
324
- maximum:
325
- T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum),
295
+ maximum: T.nilable(Orb::Maximum),
326
296
  maximum_amount: T.nilable(String),
327
- minimum:
328
- T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum),
297
+ minimum: T.nilable(Orb::Minimum),
329
298
  minimum_amount: T.nilable(String),
330
299
  name: String,
331
300
  partially_invoiced_amount: String,
@@ -337,8 +306,7 @@ module Orb
337
306
  Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Variants
338
307
  ],
339
308
  subtotal: String,
340
- tax_amounts:
341
- T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount],
309
+ tax_amounts: T::Array[Orb::TaxAmount],
342
310
  usage_customer_ids: T.nilable(T::Array[String])
343
311
  }
344
312
  )
@@ -352,1276 +320,13 @@ module Orb
352
320
  Variants =
353
321
  T.type_alias do
354
322
  T.any(
355
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount,
356
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount,
357
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount,
358
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum,
359
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum
360
- )
361
- end
362
-
363
- class UsageDiscount < Orb::Internal::Type::BaseModel
364
- OrHash =
365
- T.type_alias do
366
- T.any(
367
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount,
368
- Orb::Internal::AnyHash
369
- )
370
- end
371
-
372
- sig { returns(String) }
373
- attr_accessor :id
374
-
375
- sig { returns(Symbol) }
376
- attr_accessor :adjustment_type
377
-
378
- # The value applied by an adjustment.
379
- sig { returns(String) }
380
- attr_accessor :amount
381
-
382
- # The price IDs that this adjustment applies to.
383
- sig { returns(T::Array[String]) }
384
- attr_accessor :applies_to_price_ids
385
-
386
- # The filters that determine which prices to apply this adjustment to.
387
- sig do
388
- returns(
389
- T::Array[
390
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter
391
- ]
392
- )
393
- end
394
- attr_accessor :filters
395
-
396
- # True for adjustments that apply to an entire invocice, false for adjustments
397
- # that apply to only one price.
398
- sig { returns(T::Boolean) }
399
- attr_accessor :is_invoice_level
400
-
401
- # The reason for the adjustment.
402
- sig { returns(T.nilable(String)) }
403
- attr_accessor :reason
404
-
405
- # The number of usage units by which to discount the price this adjustment applies
406
- # to in a given billing period.
407
- sig { returns(Float) }
408
- attr_accessor :usage_discount
409
-
410
- sig do
411
- params(
412
- id: String,
413
- amount: String,
414
- applies_to_price_ids: T::Array[String],
415
- filters:
416
- T::Array[
417
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::OrHash
418
- ],
419
- is_invoice_level: T::Boolean,
420
- reason: T.nilable(String),
421
- usage_discount: Float,
422
- adjustment_type: Symbol
423
- ).returns(T.attached_class)
424
- end
425
- def self.new(
426
- id:,
427
- # The value applied by an adjustment.
428
- amount:,
429
- # The price IDs that this adjustment applies to.
430
- applies_to_price_ids:,
431
- # The filters that determine which prices to apply this adjustment to.
432
- filters:,
433
- # True for adjustments that apply to an entire invocice, false for adjustments
434
- # that apply to only one price.
435
- is_invoice_level:,
436
- # The reason for the adjustment.
437
- reason:,
438
- # The number of usage units by which to discount the price this adjustment applies
439
- # to in a given billing period.
440
- usage_discount:,
441
- adjustment_type: :usage_discount
442
- )
443
- end
444
-
445
- sig do
446
- override.returns(
447
- {
448
- id: String,
449
- adjustment_type: Symbol,
450
- amount: String,
451
- applies_to_price_ids: T::Array[String],
452
- filters:
453
- T::Array[
454
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter
455
- ],
456
- is_invoice_level: T::Boolean,
457
- reason: T.nilable(String),
458
- usage_discount: Float
459
- }
460
- )
461
- end
462
- def to_hash
463
- end
464
-
465
- class Filter < Orb::Internal::Type::BaseModel
466
- OrHash =
467
- T.type_alias do
468
- T.any(
469
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter,
470
- Orb::Internal::AnyHash
471
- )
472
- end
473
-
474
- # The property of the price to filter on.
475
- sig do
476
- returns(
477
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
478
- )
479
- end
480
- attr_accessor :field
481
-
482
- # Should prices that match the filter be included or excluded.
483
- sig do
484
- returns(
485
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
486
- )
487
- end
488
- attr_accessor :operator
489
-
490
- # The IDs or values that match this filter.
491
- sig { returns(T::Array[String]) }
492
- attr_accessor :values
493
-
494
- sig do
495
- params(
496
- field:
497
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Field::OrSymbol,
498
- operator:
499
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Operator::OrSymbol,
500
- values: T::Array[String]
501
- ).returns(T.attached_class)
502
- end
503
- def self.new(
504
- # The property of the price to filter on.
505
- field:,
506
- # Should prices that match the filter be included or excluded.
507
- operator:,
508
- # The IDs or values that match this filter.
509
- values:
510
- )
511
- end
512
-
513
- sig do
514
- override.returns(
515
- {
516
- field:
517
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol,
518
- operator:
519
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol,
520
- values: T::Array[String]
521
- }
522
- )
523
- end
524
- def to_hash
525
- end
526
-
527
- # The property of the price to filter on.
528
- module Field
529
- extend Orb::Internal::Type::Enum
530
-
531
- TaggedSymbol =
532
- T.type_alias do
533
- T.all(
534
- Symbol,
535
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Field
536
- )
537
- end
538
- OrSymbol = T.type_alias { T.any(Symbol, String) }
539
-
540
- PRICE_ID =
541
- T.let(
542
- :price_id,
543
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
544
- )
545
- ITEM_ID =
546
- T.let(
547
- :item_id,
548
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
549
- )
550
- PRICE_TYPE =
551
- T.let(
552
- :price_type,
553
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
554
- )
555
- CURRENCY =
556
- T.let(
557
- :currency,
558
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
559
- )
560
- PRICING_UNIT_ID =
561
- T.let(
562
- :pricing_unit_id,
563
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
564
- )
565
-
566
- sig do
567
- override.returns(
568
- T::Array[
569
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Field::TaggedSymbol
570
- ]
571
- )
572
- end
573
- def self.values
574
- end
575
- end
576
-
577
- # Should prices that match the filter be included or excluded.
578
- module Operator
579
- extend Orb::Internal::Type::Enum
580
-
581
- TaggedSymbol =
582
- T.type_alias do
583
- T.all(
584
- Symbol,
585
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Operator
586
- )
587
- end
588
- OrSymbol = T.type_alias { T.any(Symbol, String) }
589
-
590
- INCLUDES =
591
- T.let(
592
- :includes,
593
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
594
- )
595
- EXCLUDES =
596
- T.let(
597
- :excludes,
598
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
599
- )
600
-
601
- sig do
602
- override.returns(
603
- T::Array[
604
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::Filter::Operator::TaggedSymbol
605
- ]
606
- )
607
- end
608
- def self.values
609
- end
610
- end
611
- end
612
- end
613
-
614
- class AmountDiscount < Orb::Internal::Type::BaseModel
615
- OrHash =
616
- T.type_alias do
617
- T.any(
618
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount,
619
- Orb::Internal::AnyHash
620
- )
621
- end
622
-
623
- sig { returns(String) }
624
- attr_accessor :id
625
-
626
- sig { returns(Symbol) }
627
- attr_accessor :adjustment_type
628
-
629
- # The value applied by an adjustment.
630
- sig { returns(String) }
631
- attr_accessor :amount
632
-
633
- # The amount by which to discount the prices this adjustment applies to in a given
634
- # billing period.
635
- sig { returns(String) }
636
- attr_accessor :amount_discount
637
-
638
- # The price IDs that this adjustment applies to.
639
- sig { returns(T::Array[String]) }
640
- attr_accessor :applies_to_price_ids
641
-
642
- # The filters that determine which prices to apply this adjustment to.
643
- sig do
644
- returns(
645
- T::Array[
646
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter
647
- ]
648
- )
649
- end
650
- attr_accessor :filters
651
-
652
- # True for adjustments that apply to an entire invocice, false for adjustments
653
- # that apply to only one price.
654
- sig { returns(T::Boolean) }
655
- attr_accessor :is_invoice_level
656
-
657
- # The reason for the adjustment.
658
- sig { returns(T.nilable(String)) }
659
- attr_accessor :reason
660
-
661
- sig do
662
- params(
663
- id: String,
664
- amount: String,
665
- amount_discount: String,
666
- applies_to_price_ids: T::Array[String],
667
- filters:
668
- T::Array[
669
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::OrHash
670
- ],
671
- is_invoice_level: T::Boolean,
672
- reason: T.nilable(String),
673
- adjustment_type: Symbol
674
- ).returns(T.attached_class)
675
- end
676
- def self.new(
677
- id:,
678
- # The value applied by an adjustment.
679
- amount:,
680
- # The amount by which to discount the prices this adjustment applies to in a given
681
- # billing period.
682
- amount_discount:,
683
- # The price IDs that this adjustment applies to.
684
- applies_to_price_ids:,
685
- # The filters that determine which prices to apply this adjustment to.
686
- filters:,
687
- # True for adjustments that apply to an entire invocice, false for adjustments
688
- # that apply to only one price.
689
- is_invoice_level:,
690
- # The reason for the adjustment.
691
- reason:,
692
- adjustment_type: :amount_discount
693
- )
694
- end
695
-
696
- sig do
697
- override.returns(
698
- {
699
- id: String,
700
- adjustment_type: Symbol,
701
- amount: String,
702
- amount_discount: String,
703
- applies_to_price_ids: T::Array[String],
704
- filters:
705
- T::Array[
706
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter
707
- ],
708
- is_invoice_level: T::Boolean,
709
- reason: T.nilable(String)
710
- }
323
+ Orb::MonetaryUsageDiscountAdjustment,
324
+ Orb::MonetaryAmountDiscountAdjustment,
325
+ Orb::MonetaryPercentageDiscountAdjustment,
326
+ Orb::MonetaryMinimumAdjustment,
327
+ Orb::MonetaryMaximumAdjustment
711
328
  )
712
329
  end
713
- def to_hash
714
- end
715
-
716
- class Filter < Orb::Internal::Type::BaseModel
717
- OrHash =
718
- T.type_alias do
719
- T.any(
720
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter,
721
- Orb::Internal::AnyHash
722
- )
723
- end
724
-
725
- # The property of the price to filter on.
726
- sig do
727
- returns(
728
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
729
- )
730
- end
731
- attr_accessor :field
732
-
733
- # Should prices that match the filter be included or excluded.
734
- sig do
735
- returns(
736
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
737
- )
738
- end
739
- attr_accessor :operator
740
-
741
- # The IDs or values that match this filter.
742
- sig { returns(T::Array[String]) }
743
- attr_accessor :values
744
-
745
- sig do
746
- params(
747
- field:
748
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Field::OrSymbol,
749
- operator:
750
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Operator::OrSymbol,
751
- values: T::Array[String]
752
- ).returns(T.attached_class)
753
- end
754
- def self.new(
755
- # The property of the price to filter on.
756
- field:,
757
- # Should prices that match the filter be included or excluded.
758
- operator:,
759
- # The IDs or values that match this filter.
760
- values:
761
- )
762
- end
763
-
764
- sig do
765
- override.returns(
766
- {
767
- field:
768
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol,
769
- operator:
770
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol,
771
- values: T::Array[String]
772
- }
773
- )
774
- end
775
- def to_hash
776
- end
777
-
778
- # The property of the price to filter on.
779
- module Field
780
- extend Orb::Internal::Type::Enum
781
-
782
- TaggedSymbol =
783
- T.type_alias do
784
- T.all(
785
- Symbol,
786
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Field
787
- )
788
- end
789
- OrSymbol = T.type_alias { T.any(Symbol, String) }
790
-
791
- PRICE_ID =
792
- T.let(
793
- :price_id,
794
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
795
- )
796
- ITEM_ID =
797
- T.let(
798
- :item_id,
799
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
800
- )
801
- PRICE_TYPE =
802
- T.let(
803
- :price_type,
804
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
805
- )
806
- CURRENCY =
807
- T.let(
808
- :currency,
809
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
810
- )
811
- PRICING_UNIT_ID =
812
- T.let(
813
- :pricing_unit_id,
814
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
815
- )
816
-
817
- sig do
818
- override.returns(
819
- T::Array[
820
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Field::TaggedSymbol
821
- ]
822
- )
823
- end
824
- def self.values
825
- end
826
- end
827
-
828
- # Should prices that match the filter be included or excluded.
829
- module Operator
830
- extend Orb::Internal::Type::Enum
831
-
832
- TaggedSymbol =
833
- T.type_alias do
834
- T.all(
835
- Symbol,
836
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Operator
837
- )
838
- end
839
- OrSymbol = T.type_alias { T.any(Symbol, String) }
840
-
841
- INCLUDES =
842
- T.let(
843
- :includes,
844
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
845
- )
846
- EXCLUDES =
847
- T.let(
848
- :excludes,
849
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
850
- )
851
-
852
- sig do
853
- override.returns(
854
- T::Array[
855
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::Filter::Operator::TaggedSymbol
856
- ]
857
- )
858
- end
859
- def self.values
860
- end
861
- end
862
- end
863
- end
864
-
865
- class PercentageDiscount < Orb::Internal::Type::BaseModel
866
- OrHash =
867
- T.type_alias do
868
- T.any(
869
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount,
870
- Orb::Internal::AnyHash
871
- )
872
- end
873
-
874
- sig { returns(String) }
875
- attr_accessor :id
876
-
877
- sig { returns(Symbol) }
878
- attr_accessor :adjustment_type
879
-
880
- # The value applied by an adjustment.
881
- sig { returns(String) }
882
- attr_accessor :amount
883
-
884
- # The price IDs that this adjustment applies to.
885
- sig { returns(T::Array[String]) }
886
- attr_accessor :applies_to_price_ids
887
-
888
- # The filters that determine which prices to apply this adjustment to.
889
- sig do
890
- returns(
891
- T::Array[
892
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter
893
- ]
894
- )
895
- end
896
- attr_accessor :filters
897
-
898
- # True for adjustments that apply to an entire invocice, false for adjustments
899
- # that apply to only one price.
900
- sig { returns(T::Boolean) }
901
- attr_accessor :is_invoice_level
902
-
903
- # The percentage (as a value between 0 and 1) by which to discount the price
904
- # intervals this adjustment applies to in a given billing period.
905
- sig { returns(Float) }
906
- attr_accessor :percentage_discount
907
-
908
- # The reason for the adjustment.
909
- sig { returns(T.nilable(String)) }
910
- attr_accessor :reason
911
-
912
- sig do
913
- params(
914
- id: String,
915
- amount: String,
916
- applies_to_price_ids: T::Array[String],
917
- filters:
918
- T::Array[
919
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::OrHash
920
- ],
921
- is_invoice_level: T::Boolean,
922
- percentage_discount: Float,
923
- reason: T.nilable(String),
924
- adjustment_type: Symbol
925
- ).returns(T.attached_class)
926
- end
927
- def self.new(
928
- id:,
929
- # The value applied by an adjustment.
930
- amount:,
931
- # The price IDs that this adjustment applies to.
932
- applies_to_price_ids:,
933
- # The filters that determine which prices to apply this adjustment to.
934
- filters:,
935
- # True for adjustments that apply to an entire invocice, false for adjustments
936
- # that apply to only one price.
937
- is_invoice_level:,
938
- # The percentage (as a value between 0 and 1) by which to discount the price
939
- # intervals this adjustment applies to in a given billing period.
940
- percentage_discount:,
941
- # The reason for the adjustment.
942
- reason:,
943
- adjustment_type: :percentage_discount
944
- )
945
- end
946
-
947
- sig do
948
- override.returns(
949
- {
950
- id: String,
951
- adjustment_type: Symbol,
952
- amount: String,
953
- applies_to_price_ids: T::Array[String],
954
- filters:
955
- T::Array[
956
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter
957
- ],
958
- is_invoice_level: T::Boolean,
959
- percentage_discount: Float,
960
- reason: T.nilable(String)
961
- }
962
- )
963
- end
964
- def to_hash
965
- end
966
-
967
- class Filter < Orb::Internal::Type::BaseModel
968
- OrHash =
969
- T.type_alias do
970
- T.any(
971
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter,
972
- Orb::Internal::AnyHash
973
- )
974
- end
975
-
976
- # The property of the price to filter on.
977
- sig do
978
- returns(
979
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
980
- )
981
- end
982
- attr_accessor :field
983
-
984
- # Should prices that match the filter be included or excluded.
985
- sig do
986
- returns(
987
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
988
- )
989
- end
990
- attr_accessor :operator
991
-
992
- # The IDs or values that match this filter.
993
- sig { returns(T::Array[String]) }
994
- attr_accessor :values
995
-
996
- sig do
997
- params(
998
- field:
999
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Field::OrSymbol,
1000
- operator:
1001
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Operator::OrSymbol,
1002
- values: T::Array[String]
1003
- ).returns(T.attached_class)
1004
- end
1005
- def self.new(
1006
- # The property of the price to filter on.
1007
- field:,
1008
- # Should prices that match the filter be included or excluded.
1009
- operator:,
1010
- # The IDs or values that match this filter.
1011
- values:
1012
- )
1013
- end
1014
-
1015
- sig do
1016
- override.returns(
1017
- {
1018
- field:
1019
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol,
1020
- operator:
1021
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol,
1022
- values: T::Array[String]
1023
- }
1024
- )
1025
- end
1026
- def to_hash
1027
- end
1028
-
1029
- # The property of the price to filter on.
1030
- module Field
1031
- extend Orb::Internal::Type::Enum
1032
-
1033
- TaggedSymbol =
1034
- T.type_alias do
1035
- T.all(
1036
- Symbol,
1037
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Field
1038
- )
1039
- end
1040
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1041
-
1042
- PRICE_ID =
1043
- T.let(
1044
- :price_id,
1045
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1046
- )
1047
- ITEM_ID =
1048
- T.let(
1049
- :item_id,
1050
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1051
- )
1052
- PRICE_TYPE =
1053
- T.let(
1054
- :price_type,
1055
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1056
- )
1057
- CURRENCY =
1058
- T.let(
1059
- :currency,
1060
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1061
- )
1062
- PRICING_UNIT_ID =
1063
- T.let(
1064
- :pricing_unit_id,
1065
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1066
- )
1067
-
1068
- sig do
1069
- override.returns(
1070
- T::Array[
1071
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Field::TaggedSymbol
1072
- ]
1073
- )
1074
- end
1075
- def self.values
1076
- end
1077
- end
1078
-
1079
- # Should prices that match the filter be included or excluded.
1080
- module Operator
1081
- extend Orb::Internal::Type::Enum
1082
-
1083
- TaggedSymbol =
1084
- T.type_alias do
1085
- T.all(
1086
- Symbol,
1087
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Operator
1088
- )
1089
- end
1090
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1091
-
1092
- INCLUDES =
1093
- T.let(
1094
- :includes,
1095
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
1096
- )
1097
- EXCLUDES =
1098
- T.let(
1099
- :excludes,
1100
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
1101
- )
1102
-
1103
- sig do
1104
- override.returns(
1105
- T::Array[
1106
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::Filter::Operator::TaggedSymbol
1107
- ]
1108
- )
1109
- end
1110
- def self.values
1111
- end
1112
- end
1113
- end
1114
- end
1115
-
1116
- class Minimum < Orb::Internal::Type::BaseModel
1117
- OrHash =
1118
- T.type_alias do
1119
- T.any(
1120
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum,
1121
- Orb::Internal::AnyHash
1122
- )
1123
- end
1124
-
1125
- sig { returns(String) }
1126
- attr_accessor :id
1127
-
1128
- sig { returns(Symbol) }
1129
- attr_accessor :adjustment_type
1130
-
1131
- # The value applied by an adjustment.
1132
- sig { returns(String) }
1133
- attr_accessor :amount
1134
-
1135
- # The price IDs that this adjustment applies to.
1136
- sig { returns(T::Array[String]) }
1137
- attr_accessor :applies_to_price_ids
1138
-
1139
- # The filters that determine which prices to apply this adjustment to.
1140
- sig do
1141
- returns(
1142
- T::Array[
1143
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter
1144
- ]
1145
- )
1146
- end
1147
- attr_accessor :filters
1148
-
1149
- # True for adjustments that apply to an entire invocice, false for adjustments
1150
- # that apply to only one price.
1151
- sig { returns(T::Boolean) }
1152
- attr_accessor :is_invoice_level
1153
-
1154
- # The item ID that revenue from this minimum will be attributed to.
1155
- sig { returns(String) }
1156
- attr_accessor :item_id
1157
-
1158
- # The minimum amount to charge in a given billing period for the prices this
1159
- # adjustment applies to.
1160
- sig { returns(String) }
1161
- attr_accessor :minimum_amount
1162
-
1163
- # The reason for the adjustment.
1164
- sig { returns(T.nilable(String)) }
1165
- attr_accessor :reason
1166
-
1167
- sig do
1168
- params(
1169
- id: String,
1170
- amount: String,
1171
- applies_to_price_ids: T::Array[String],
1172
- filters:
1173
- T::Array[
1174
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::OrHash
1175
- ],
1176
- is_invoice_level: T::Boolean,
1177
- item_id: String,
1178
- minimum_amount: String,
1179
- reason: T.nilable(String),
1180
- adjustment_type: Symbol
1181
- ).returns(T.attached_class)
1182
- end
1183
- def self.new(
1184
- id:,
1185
- # The value applied by an adjustment.
1186
- amount:,
1187
- # The price IDs that this adjustment applies to.
1188
- applies_to_price_ids:,
1189
- # The filters that determine which prices to apply this adjustment to.
1190
- filters:,
1191
- # True for adjustments that apply to an entire invocice, false for adjustments
1192
- # that apply to only one price.
1193
- is_invoice_level:,
1194
- # The item ID that revenue from this minimum will be attributed to.
1195
- item_id:,
1196
- # The minimum amount to charge in a given billing period for the prices this
1197
- # adjustment applies to.
1198
- minimum_amount:,
1199
- # The reason for the adjustment.
1200
- reason:,
1201
- adjustment_type: :minimum
1202
- )
1203
- end
1204
-
1205
- sig do
1206
- override.returns(
1207
- {
1208
- id: String,
1209
- adjustment_type: Symbol,
1210
- amount: String,
1211
- applies_to_price_ids: T::Array[String],
1212
- filters:
1213
- T::Array[
1214
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter
1215
- ],
1216
- is_invoice_level: T::Boolean,
1217
- item_id: String,
1218
- minimum_amount: String,
1219
- reason: T.nilable(String)
1220
- }
1221
- )
1222
- end
1223
- def to_hash
1224
- end
1225
-
1226
- class Filter < Orb::Internal::Type::BaseModel
1227
- OrHash =
1228
- T.type_alias do
1229
- T.any(
1230
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter,
1231
- Orb::Internal::AnyHash
1232
- )
1233
- end
1234
-
1235
- # The property of the price to filter on.
1236
- sig do
1237
- returns(
1238
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Field::TaggedSymbol
1239
- )
1240
- end
1241
- attr_accessor :field
1242
-
1243
- # Should prices that match the filter be included or excluded.
1244
- sig do
1245
- returns(
1246
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Operator::TaggedSymbol
1247
- )
1248
- end
1249
- attr_accessor :operator
1250
-
1251
- # The IDs or values that match this filter.
1252
- sig { returns(T::Array[String]) }
1253
- attr_accessor :values
1254
-
1255
- sig do
1256
- params(
1257
- field:
1258
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Field::OrSymbol,
1259
- operator:
1260
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Operator::OrSymbol,
1261
- values: T::Array[String]
1262
- ).returns(T.attached_class)
1263
- end
1264
- def self.new(
1265
- # The property of the price to filter on.
1266
- field:,
1267
- # Should prices that match the filter be included or excluded.
1268
- operator:,
1269
- # The IDs or values that match this filter.
1270
- values:
1271
- )
1272
- end
1273
-
1274
- sig do
1275
- override.returns(
1276
- {
1277
- field:
1278
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Field::TaggedSymbol,
1279
- operator:
1280
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Operator::TaggedSymbol,
1281
- values: T::Array[String]
1282
- }
1283
- )
1284
- end
1285
- def to_hash
1286
- end
1287
-
1288
- # The property of the price to filter on.
1289
- module Field
1290
- extend Orb::Internal::Type::Enum
1291
-
1292
- TaggedSymbol =
1293
- T.type_alias do
1294
- T.all(
1295
- Symbol,
1296
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Field
1297
- )
1298
- end
1299
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1300
-
1301
- PRICE_ID =
1302
- T.let(
1303
- :price_id,
1304
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Field::TaggedSymbol
1305
- )
1306
- ITEM_ID =
1307
- T.let(
1308
- :item_id,
1309
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Field::TaggedSymbol
1310
- )
1311
- PRICE_TYPE =
1312
- T.let(
1313
- :price_type,
1314
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Field::TaggedSymbol
1315
- )
1316
- CURRENCY =
1317
- T.let(
1318
- :currency,
1319
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Field::TaggedSymbol
1320
- )
1321
- PRICING_UNIT_ID =
1322
- T.let(
1323
- :pricing_unit_id,
1324
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Field::TaggedSymbol
1325
- )
1326
-
1327
- sig do
1328
- override.returns(
1329
- T::Array[
1330
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Field::TaggedSymbol
1331
- ]
1332
- )
1333
- end
1334
- def self.values
1335
- end
1336
- end
1337
-
1338
- # Should prices that match the filter be included or excluded.
1339
- module Operator
1340
- extend Orb::Internal::Type::Enum
1341
-
1342
- TaggedSymbol =
1343
- T.type_alias do
1344
- T.all(
1345
- Symbol,
1346
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Operator
1347
- )
1348
- end
1349
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1350
-
1351
- INCLUDES =
1352
- T.let(
1353
- :includes,
1354
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Operator::TaggedSymbol
1355
- )
1356
- EXCLUDES =
1357
- T.let(
1358
- :excludes,
1359
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Operator::TaggedSymbol
1360
- )
1361
-
1362
- sig do
1363
- override.returns(
1364
- T::Array[
1365
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::Filter::Operator::TaggedSymbol
1366
- ]
1367
- )
1368
- end
1369
- def self.values
1370
- end
1371
- end
1372
- end
1373
- end
1374
-
1375
- class Maximum < Orb::Internal::Type::BaseModel
1376
- OrHash =
1377
- T.type_alias do
1378
- T.any(
1379
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum,
1380
- Orb::Internal::AnyHash
1381
- )
1382
- end
1383
-
1384
- sig { returns(String) }
1385
- attr_accessor :id
1386
-
1387
- sig { returns(Symbol) }
1388
- attr_accessor :adjustment_type
1389
-
1390
- # The value applied by an adjustment.
1391
- sig { returns(String) }
1392
- attr_accessor :amount
1393
-
1394
- # The price IDs that this adjustment applies to.
1395
- sig { returns(T::Array[String]) }
1396
- attr_accessor :applies_to_price_ids
1397
-
1398
- # The filters that determine which prices to apply this adjustment to.
1399
- sig do
1400
- returns(
1401
- T::Array[
1402
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter
1403
- ]
1404
- )
1405
- end
1406
- attr_accessor :filters
1407
-
1408
- # True for adjustments that apply to an entire invocice, false for adjustments
1409
- # that apply to only one price.
1410
- sig { returns(T::Boolean) }
1411
- attr_accessor :is_invoice_level
1412
-
1413
- # The maximum amount to charge in a given billing period for the prices this
1414
- # adjustment applies to.
1415
- sig { returns(String) }
1416
- attr_accessor :maximum_amount
1417
-
1418
- # The reason for the adjustment.
1419
- sig { returns(T.nilable(String)) }
1420
- attr_accessor :reason
1421
-
1422
- sig do
1423
- params(
1424
- id: String,
1425
- amount: String,
1426
- applies_to_price_ids: T::Array[String],
1427
- filters:
1428
- T::Array[
1429
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::OrHash
1430
- ],
1431
- is_invoice_level: T::Boolean,
1432
- maximum_amount: String,
1433
- reason: T.nilable(String),
1434
- adjustment_type: Symbol
1435
- ).returns(T.attached_class)
1436
- end
1437
- def self.new(
1438
- id:,
1439
- # The value applied by an adjustment.
1440
- amount:,
1441
- # The price IDs that this adjustment applies to.
1442
- applies_to_price_ids:,
1443
- # The filters that determine which prices to apply this adjustment to.
1444
- filters:,
1445
- # True for adjustments that apply to an entire invocice, false for adjustments
1446
- # that apply to only one price.
1447
- is_invoice_level:,
1448
- # The maximum amount to charge in a given billing period for the prices this
1449
- # adjustment applies to.
1450
- maximum_amount:,
1451
- # The reason for the adjustment.
1452
- reason:,
1453
- adjustment_type: :maximum
1454
- )
1455
- end
1456
-
1457
- sig do
1458
- override.returns(
1459
- {
1460
- id: String,
1461
- adjustment_type: Symbol,
1462
- amount: String,
1463
- applies_to_price_ids: T::Array[String],
1464
- filters:
1465
- T::Array[
1466
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter
1467
- ],
1468
- is_invoice_level: T::Boolean,
1469
- maximum_amount: String,
1470
- reason: T.nilable(String)
1471
- }
1472
- )
1473
- end
1474
- def to_hash
1475
- end
1476
-
1477
- class Filter < Orb::Internal::Type::BaseModel
1478
- OrHash =
1479
- T.type_alias do
1480
- T.any(
1481
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter,
1482
- Orb::Internal::AnyHash
1483
- )
1484
- end
1485
-
1486
- # The property of the price to filter on.
1487
- sig do
1488
- returns(
1489
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Field::TaggedSymbol
1490
- )
1491
- end
1492
- attr_accessor :field
1493
-
1494
- # Should prices that match the filter be included or excluded.
1495
- sig do
1496
- returns(
1497
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Operator::TaggedSymbol
1498
- )
1499
- end
1500
- attr_accessor :operator
1501
-
1502
- # The IDs or values that match this filter.
1503
- sig { returns(T::Array[String]) }
1504
- attr_accessor :values
1505
-
1506
- sig do
1507
- params(
1508
- field:
1509
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Field::OrSymbol,
1510
- operator:
1511
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Operator::OrSymbol,
1512
- values: T::Array[String]
1513
- ).returns(T.attached_class)
1514
- end
1515
- def self.new(
1516
- # The property of the price to filter on.
1517
- field:,
1518
- # Should prices that match the filter be included or excluded.
1519
- operator:,
1520
- # The IDs or values that match this filter.
1521
- values:
1522
- )
1523
- end
1524
-
1525
- sig do
1526
- override.returns(
1527
- {
1528
- field:
1529
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Field::TaggedSymbol,
1530
- operator:
1531
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Operator::TaggedSymbol,
1532
- values: T::Array[String]
1533
- }
1534
- )
1535
- end
1536
- def to_hash
1537
- end
1538
-
1539
- # The property of the price to filter on.
1540
- module Field
1541
- extend Orb::Internal::Type::Enum
1542
-
1543
- TaggedSymbol =
1544
- T.type_alias do
1545
- T.all(
1546
- Symbol,
1547
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Field
1548
- )
1549
- end
1550
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1551
-
1552
- PRICE_ID =
1553
- T.let(
1554
- :price_id,
1555
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Field::TaggedSymbol
1556
- )
1557
- ITEM_ID =
1558
- T.let(
1559
- :item_id,
1560
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Field::TaggedSymbol
1561
- )
1562
- PRICE_TYPE =
1563
- T.let(
1564
- :price_type,
1565
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Field::TaggedSymbol
1566
- )
1567
- CURRENCY =
1568
- T.let(
1569
- :currency,
1570
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Field::TaggedSymbol
1571
- )
1572
- PRICING_UNIT_ID =
1573
- T.let(
1574
- :pricing_unit_id,
1575
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Field::TaggedSymbol
1576
- )
1577
-
1578
- sig do
1579
- override.returns(
1580
- T::Array[
1581
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Field::TaggedSymbol
1582
- ]
1583
- )
1584
- end
1585
- def self.values
1586
- end
1587
- end
1588
-
1589
- # Should prices that match the filter be included or excluded.
1590
- module Operator
1591
- extend Orb::Internal::Type::Enum
1592
-
1593
- TaggedSymbol =
1594
- T.type_alias do
1595
- T.all(
1596
- Symbol,
1597
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Operator
1598
- )
1599
- end
1600
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1601
-
1602
- INCLUDES =
1603
- T.let(
1604
- :includes,
1605
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Operator::TaggedSymbol
1606
- )
1607
- EXCLUDES =
1608
- T.let(
1609
- :excludes,
1610
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Operator::TaggedSymbol
1611
- )
1612
-
1613
- sig do
1614
- override.returns(
1615
- T::Array[
1616
- Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::Filter::Operator::TaggedSymbol
1617
- ]
1618
- )
1619
- end
1620
- def self.values
1621
- end
1622
- end
1623
- end
1624
- end
1625
330
 
1626
331
  sig do
1627
332
  override.returns(
@@ -1634,902 +339,18 @@ module Orb
1634
339
  end
1635
340
  end
1636
341
 
1637
- class Maximum < Orb::Internal::Type::BaseModel
1638
- OrHash =
1639
- T.type_alias do
1640
- T.any(
1641
- Orb::Models::InvoiceLineItemCreateResponse::Maximum,
1642
- Orb::Internal::AnyHash
1643
- )
1644
- end
1645
-
1646
- # List of price_ids that this maximum amount applies to. For plan/plan phase
1647
- # maximums, this can be a subset of prices.
1648
- sig { returns(T::Array[String]) }
1649
- attr_accessor :applies_to_price_ids
1650
-
1651
- # The filters that determine which prices to apply this maximum to.
1652
- sig do
1653
- returns(
1654
- T::Array[
1655
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter
1656
- ]
1657
- )
1658
- end
1659
- attr_accessor :filters
1660
-
1661
- # Maximum amount applied
1662
- sig { returns(String) }
1663
- attr_accessor :maximum_amount
1664
-
1665
- # This field is deprecated in favor of `adjustments`.
1666
- sig do
1667
- params(
1668
- applies_to_price_ids: T::Array[String],
1669
- filters:
1670
- T::Array[
1671
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::OrHash
1672
- ],
1673
- maximum_amount: String
1674
- ).returns(T.attached_class)
1675
- end
1676
- def self.new(
1677
- # List of price_ids that this maximum amount applies to. For plan/plan phase
1678
- # maximums, this can be a subset of prices.
1679
- applies_to_price_ids:,
1680
- # The filters that determine which prices to apply this maximum to.
1681
- filters:,
1682
- # Maximum amount applied
1683
- maximum_amount:
1684
- )
1685
- end
1686
-
1687
- sig do
1688
- override.returns(
1689
- {
1690
- applies_to_price_ids: T::Array[String],
1691
- filters:
1692
- T::Array[
1693
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter
1694
- ],
1695
- maximum_amount: String
1696
- }
1697
- )
1698
- end
1699
- def to_hash
1700
- end
1701
-
1702
- class Filter < Orb::Internal::Type::BaseModel
1703
- OrHash =
1704
- T.type_alias do
1705
- T.any(
1706
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter,
1707
- Orb::Internal::AnyHash
1708
- )
1709
- end
1710
-
1711
- # The property of the price to filter on.
1712
- sig do
1713
- returns(
1714
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Field::TaggedSymbol
1715
- )
1716
- end
1717
- attr_accessor :field
1718
-
1719
- # Should prices that match the filter be included or excluded.
1720
- sig do
1721
- returns(
1722
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Operator::TaggedSymbol
1723
- )
1724
- end
1725
- attr_accessor :operator
1726
-
1727
- # The IDs or values that match this filter.
1728
- sig { returns(T::Array[String]) }
1729
- attr_accessor :values
1730
-
1731
- sig do
1732
- params(
1733
- field:
1734
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Field::OrSymbol,
1735
- operator:
1736
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Operator::OrSymbol,
1737
- values: T::Array[String]
1738
- ).returns(T.attached_class)
1739
- end
1740
- def self.new(
1741
- # The property of the price to filter on.
1742
- field:,
1743
- # Should prices that match the filter be included or excluded.
1744
- operator:,
1745
- # The IDs or values that match this filter.
1746
- values:
1747
- )
1748
- end
1749
-
1750
- sig do
1751
- override.returns(
1752
- {
1753
- field:
1754
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Field::TaggedSymbol,
1755
- operator:
1756
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Operator::TaggedSymbol,
1757
- values: T::Array[String]
1758
- }
1759
- )
1760
- end
1761
- def to_hash
1762
- end
1763
-
1764
- # The property of the price to filter on.
1765
- module Field
1766
- extend Orb::Internal::Type::Enum
1767
-
1768
- TaggedSymbol =
1769
- T.type_alias do
1770
- T.all(
1771
- Symbol,
1772
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Field
1773
- )
1774
- end
1775
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1776
-
1777
- PRICE_ID =
1778
- T.let(
1779
- :price_id,
1780
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Field::TaggedSymbol
1781
- )
1782
- ITEM_ID =
1783
- T.let(
1784
- :item_id,
1785
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Field::TaggedSymbol
1786
- )
1787
- PRICE_TYPE =
1788
- T.let(
1789
- :price_type,
1790
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Field::TaggedSymbol
1791
- )
1792
- CURRENCY =
1793
- T.let(
1794
- :currency,
1795
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Field::TaggedSymbol
1796
- )
1797
- PRICING_UNIT_ID =
1798
- T.let(
1799
- :pricing_unit_id,
1800
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Field::TaggedSymbol
1801
- )
1802
-
1803
- sig do
1804
- override.returns(
1805
- T::Array[
1806
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Field::TaggedSymbol
1807
- ]
1808
- )
1809
- end
1810
- def self.values
1811
- end
1812
- end
1813
-
1814
- # Should prices that match the filter be included or excluded.
1815
- module Operator
1816
- extend Orb::Internal::Type::Enum
1817
-
1818
- TaggedSymbol =
1819
- T.type_alias do
1820
- T.all(
1821
- Symbol,
1822
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Operator
1823
- )
1824
- end
1825
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1826
-
1827
- INCLUDES =
1828
- T.let(
1829
- :includes,
1830
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Operator::TaggedSymbol
1831
- )
1832
- EXCLUDES =
1833
- T.let(
1834
- :excludes,
1835
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Operator::TaggedSymbol
1836
- )
1837
-
1838
- sig do
1839
- override.returns(
1840
- T::Array[
1841
- Orb::Models::InvoiceLineItemCreateResponse::Maximum::Filter::Operator::TaggedSymbol
1842
- ]
1843
- )
1844
- end
1845
- def self.values
1846
- end
1847
- end
1848
- end
1849
- end
1850
-
1851
- class Minimum < Orb::Internal::Type::BaseModel
1852
- OrHash =
1853
- T.type_alias do
1854
- T.any(
1855
- Orb::Models::InvoiceLineItemCreateResponse::Minimum,
1856
- Orb::Internal::AnyHash
1857
- )
1858
- end
1859
-
1860
- # List of price_ids that this minimum amount applies to. For plan/plan phase
1861
- # minimums, this can be a subset of prices.
1862
- sig { returns(T::Array[String]) }
1863
- attr_accessor :applies_to_price_ids
1864
-
1865
- # The filters that determine which prices to apply this minimum to.
1866
- sig do
1867
- returns(
1868
- T::Array[
1869
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter
1870
- ]
1871
- )
1872
- end
1873
- attr_accessor :filters
1874
-
1875
- # Minimum amount applied
1876
- sig { returns(String) }
1877
- attr_accessor :minimum_amount
1878
-
1879
- # This field is deprecated in favor of `adjustments`.
1880
- sig do
1881
- params(
1882
- applies_to_price_ids: T::Array[String],
1883
- filters:
1884
- T::Array[
1885
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::OrHash
1886
- ],
1887
- minimum_amount: String
1888
- ).returns(T.attached_class)
1889
- end
1890
- def self.new(
1891
- # List of price_ids that this minimum amount applies to. For plan/plan phase
1892
- # minimums, this can be a subset of prices.
1893
- applies_to_price_ids:,
1894
- # The filters that determine which prices to apply this minimum to.
1895
- filters:,
1896
- # Minimum amount applied
1897
- minimum_amount:
1898
- )
1899
- end
1900
-
1901
- sig do
1902
- override.returns(
1903
- {
1904
- applies_to_price_ids: T::Array[String],
1905
- filters:
1906
- T::Array[
1907
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter
1908
- ],
1909
- minimum_amount: String
1910
- }
1911
- )
1912
- end
1913
- def to_hash
1914
- end
1915
-
1916
- class Filter < Orb::Internal::Type::BaseModel
1917
- OrHash =
1918
- T.type_alias do
1919
- T.any(
1920
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter,
1921
- Orb::Internal::AnyHash
1922
- )
1923
- end
1924
-
1925
- # The property of the price to filter on.
1926
- sig do
1927
- returns(
1928
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Field::TaggedSymbol
1929
- )
1930
- end
1931
- attr_accessor :field
1932
-
1933
- # Should prices that match the filter be included or excluded.
1934
- sig do
1935
- returns(
1936
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Operator::TaggedSymbol
1937
- )
1938
- end
1939
- attr_accessor :operator
1940
-
1941
- # The IDs or values that match this filter.
1942
- sig { returns(T::Array[String]) }
1943
- attr_accessor :values
1944
-
1945
- sig do
1946
- params(
1947
- field:
1948
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Field::OrSymbol,
1949
- operator:
1950
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Operator::OrSymbol,
1951
- values: T::Array[String]
1952
- ).returns(T.attached_class)
1953
- end
1954
- def self.new(
1955
- # The property of the price to filter on.
1956
- field:,
1957
- # Should prices that match the filter be included or excluded.
1958
- operator:,
1959
- # The IDs or values that match this filter.
1960
- values:
1961
- )
1962
- end
1963
-
1964
- sig do
1965
- override.returns(
1966
- {
1967
- field:
1968
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Field::TaggedSymbol,
1969
- operator:
1970
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Operator::TaggedSymbol,
1971
- values: T::Array[String]
1972
- }
1973
- )
1974
- end
1975
- def to_hash
1976
- end
1977
-
1978
- # The property of the price to filter on.
1979
- module Field
1980
- extend Orb::Internal::Type::Enum
1981
-
1982
- TaggedSymbol =
1983
- T.type_alias do
1984
- T.all(
1985
- Symbol,
1986
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Field
1987
- )
1988
- end
1989
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1990
-
1991
- PRICE_ID =
1992
- T.let(
1993
- :price_id,
1994
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Field::TaggedSymbol
1995
- )
1996
- ITEM_ID =
1997
- T.let(
1998
- :item_id,
1999
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Field::TaggedSymbol
2000
- )
2001
- PRICE_TYPE =
2002
- T.let(
2003
- :price_type,
2004
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Field::TaggedSymbol
2005
- )
2006
- CURRENCY =
2007
- T.let(
2008
- :currency,
2009
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Field::TaggedSymbol
2010
- )
2011
- PRICING_UNIT_ID =
2012
- T.let(
2013
- :pricing_unit_id,
2014
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Field::TaggedSymbol
2015
- )
2016
-
2017
- sig do
2018
- override.returns(
2019
- T::Array[
2020
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Field::TaggedSymbol
2021
- ]
2022
- )
2023
- end
2024
- def self.values
2025
- end
2026
- end
2027
-
2028
- # Should prices that match the filter be included or excluded.
2029
- module Operator
2030
- extend Orb::Internal::Type::Enum
2031
-
2032
- TaggedSymbol =
2033
- T.type_alias do
2034
- T.all(
2035
- Symbol,
2036
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Operator
2037
- )
2038
- end
2039
- OrSymbol = T.type_alias { T.any(Symbol, String) }
2040
-
2041
- INCLUDES =
2042
- T.let(
2043
- :includes,
2044
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Operator::TaggedSymbol
2045
- )
2046
- EXCLUDES =
2047
- T.let(
2048
- :excludes,
2049
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Operator::TaggedSymbol
2050
- )
2051
-
2052
- sig do
2053
- override.returns(
2054
- T::Array[
2055
- Orb::Models::InvoiceLineItemCreateResponse::Minimum::Filter::Operator::TaggedSymbol
2056
- ]
2057
- )
2058
- end
2059
- def self.values
2060
- end
2061
- end
2062
- end
2063
- end
2064
-
2065
342
  module SubLineItem
2066
343
  extend Orb::Internal::Type::Union
2067
344
 
2068
345
  Variants =
2069
346
  T.type_alias do
2070
347
  T.any(
2071
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix,
2072
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier,
2073
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null
348
+ Orb::MatrixSubLineItem,
349
+ Orb::TierSubLineItem,
350
+ Orb::OtherSubLineItem
2074
351
  )
2075
352
  end
2076
353
 
2077
- class Matrix < Orb::Internal::Type::BaseModel
2078
- OrHash =
2079
- T.type_alias do
2080
- T.any(
2081
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix,
2082
- Orb::Internal::AnyHash
2083
- )
2084
- end
2085
-
2086
- # The total amount for this sub line item.
2087
- sig { returns(String) }
2088
- attr_accessor :amount
2089
-
2090
- sig do
2091
- returns(
2092
- T.nilable(
2093
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping
2094
- )
2095
- )
2096
- end
2097
- attr_reader :grouping
2098
-
2099
- sig do
2100
- params(
2101
- grouping:
2102
- T.nilable(
2103
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping::OrHash
2104
- )
2105
- ).void
2106
- end
2107
- attr_writer :grouping
2108
-
2109
- sig do
2110
- returns(
2111
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig
2112
- )
2113
- end
2114
- attr_reader :matrix_config
2115
-
2116
- sig do
2117
- params(
2118
- matrix_config:
2119
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig::OrHash
2120
- ).void
2121
- end
2122
- attr_writer :matrix_config
2123
-
2124
- sig { returns(String) }
2125
- attr_accessor :name
2126
-
2127
- sig { returns(Float) }
2128
- attr_accessor :quantity
2129
-
2130
- sig { returns(Symbol) }
2131
- attr_accessor :type
2132
-
2133
- sig do
2134
- params(
2135
- amount: String,
2136
- grouping:
2137
- T.nilable(
2138
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping::OrHash
2139
- ),
2140
- matrix_config:
2141
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig::OrHash,
2142
- name: String,
2143
- quantity: Float,
2144
- type: Symbol
2145
- ).returns(T.attached_class)
2146
- end
2147
- def self.new(
2148
- # The total amount for this sub line item.
2149
- amount:,
2150
- grouping:,
2151
- matrix_config:,
2152
- name:,
2153
- quantity:,
2154
- type: :matrix
2155
- )
2156
- end
2157
-
2158
- sig do
2159
- override.returns(
2160
- {
2161
- amount: String,
2162
- grouping:
2163
- T.nilable(
2164
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping
2165
- ),
2166
- matrix_config:
2167
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig,
2168
- name: String,
2169
- quantity: Float,
2170
- type: Symbol
2171
- }
2172
- )
2173
- end
2174
- def to_hash
2175
- end
2176
-
2177
- class Grouping < Orb::Internal::Type::BaseModel
2178
- OrHash =
2179
- T.type_alias do
2180
- T.any(
2181
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping,
2182
- Orb::Internal::AnyHash
2183
- )
2184
- end
2185
-
2186
- sig { returns(String) }
2187
- attr_accessor :key
2188
-
2189
- # No value indicates the default group
2190
- sig { returns(T.nilable(String)) }
2191
- attr_accessor :value
2192
-
2193
- sig do
2194
- params(key: String, value: T.nilable(String)).returns(
2195
- T.attached_class
2196
- )
2197
- end
2198
- def self.new(
2199
- key:,
2200
- # No value indicates the default group
2201
- value:
2202
- )
2203
- end
2204
-
2205
- sig { override.returns({ key: String, value: T.nilable(String) }) }
2206
- def to_hash
2207
- end
2208
- end
2209
-
2210
- class MatrixConfig < Orb::Internal::Type::BaseModel
2211
- OrHash =
2212
- T.type_alias do
2213
- T.any(
2214
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig,
2215
- Orb::Internal::AnyHash
2216
- )
2217
- end
2218
-
2219
- # The ordered dimension values for this line item.
2220
- sig { returns(T::Array[T.nilable(String)]) }
2221
- attr_accessor :dimension_values
2222
-
2223
- sig do
2224
- params(dimension_values: T::Array[T.nilable(String)]).returns(
2225
- T.attached_class
2226
- )
2227
- end
2228
- def self.new(
2229
- # The ordered dimension values for this line item.
2230
- dimension_values:
2231
- )
2232
- end
2233
-
2234
- sig do
2235
- override.returns(
2236
- { dimension_values: T::Array[T.nilable(String)] }
2237
- )
2238
- end
2239
- def to_hash
2240
- end
2241
- end
2242
- end
2243
-
2244
- class Tier < Orb::Internal::Type::BaseModel
2245
- OrHash =
2246
- T.type_alias do
2247
- T.any(
2248
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier,
2249
- Orb::Internal::AnyHash
2250
- )
2251
- end
2252
-
2253
- # The total amount for this sub line item.
2254
- sig { returns(String) }
2255
- attr_accessor :amount
2256
-
2257
- sig do
2258
- returns(
2259
- T.nilable(
2260
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping
2261
- )
2262
- )
2263
- end
2264
- attr_reader :grouping
2265
-
2266
- sig do
2267
- params(
2268
- grouping:
2269
- T.nilable(
2270
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping::OrHash
2271
- )
2272
- ).void
2273
- end
2274
- attr_writer :grouping
2275
-
2276
- sig { returns(String) }
2277
- attr_accessor :name
2278
-
2279
- sig { returns(Float) }
2280
- attr_accessor :quantity
2281
-
2282
- sig do
2283
- returns(
2284
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig
2285
- )
2286
- end
2287
- attr_reader :tier_config
2288
-
2289
- sig do
2290
- params(
2291
- tier_config:
2292
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig::OrHash
2293
- ).void
2294
- end
2295
- attr_writer :tier_config
2296
-
2297
- sig { returns(Symbol) }
2298
- attr_accessor :type
2299
-
2300
- sig do
2301
- params(
2302
- amount: String,
2303
- grouping:
2304
- T.nilable(
2305
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping::OrHash
2306
- ),
2307
- name: String,
2308
- quantity: Float,
2309
- tier_config:
2310
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig::OrHash,
2311
- type: Symbol
2312
- ).returns(T.attached_class)
2313
- end
2314
- def self.new(
2315
- # The total amount for this sub line item.
2316
- amount:,
2317
- grouping:,
2318
- name:,
2319
- quantity:,
2320
- tier_config:,
2321
- type: :tier
2322
- )
2323
- end
2324
-
2325
- sig do
2326
- override.returns(
2327
- {
2328
- amount: String,
2329
- grouping:
2330
- T.nilable(
2331
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping
2332
- ),
2333
- name: String,
2334
- quantity: Float,
2335
- tier_config:
2336
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig,
2337
- type: Symbol
2338
- }
2339
- )
2340
- end
2341
- def to_hash
2342
- end
2343
-
2344
- class Grouping < Orb::Internal::Type::BaseModel
2345
- OrHash =
2346
- T.type_alias do
2347
- T.any(
2348
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping,
2349
- Orb::Internal::AnyHash
2350
- )
2351
- end
2352
-
2353
- sig { returns(String) }
2354
- attr_accessor :key
2355
-
2356
- # No value indicates the default group
2357
- sig { returns(T.nilable(String)) }
2358
- attr_accessor :value
2359
-
2360
- sig do
2361
- params(key: String, value: T.nilable(String)).returns(
2362
- T.attached_class
2363
- )
2364
- end
2365
- def self.new(
2366
- key:,
2367
- # No value indicates the default group
2368
- value:
2369
- )
2370
- end
2371
-
2372
- sig { override.returns({ key: String, value: T.nilable(String) }) }
2373
- def to_hash
2374
- end
2375
- end
2376
-
2377
- class TierConfig < Orb::Internal::Type::BaseModel
2378
- OrHash =
2379
- T.type_alias do
2380
- T.any(
2381
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig,
2382
- Orb::Internal::AnyHash
2383
- )
2384
- end
2385
-
2386
- sig { returns(Float) }
2387
- attr_accessor :first_unit
2388
-
2389
- sig { returns(T.nilable(Float)) }
2390
- attr_accessor :last_unit
2391
-
2392
- sig { returns(String) }
2393
- attr_accessor :unit_amount
2394
-
2395
- sig do
2396
- params(
2397
- first_unit: Float,
2398
- last_unit: T.nilable(Float),
2399
- unit_amount: String
2400
- ).returns(T.attached_class)
2401
- end
2402
- def self.new(first_unit:, last_unit:, unit_amount:)
2403
- end
2404
-
2405
- sig do
2406
- override.returns(
2407
- {
2408
- first_unit: Float,
2409
- last_unit: T.nilable(Float),
2410
- unit_amount: String
2411
- }
2412
- )
2413
- end
2414
- def to_hash
2415
- end
2416
- end
2417
- end
2418
-
2419
- class Null < Orb::Internal::Type::BaseModel
2420
- OrHash =
2421
- T.type_alias do
2422
- T.any(
2423
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null,
2424
- Orb::Internal::AnyHash
2425
- )
2426
- end
2427
-
2428
- # The total amount for this sub line item.
2429
- sig { returns(String) }
2430
- attr_accessor :amount
2431
-
2432
- sig do
2433
- returns(
2434
- T.nilable(
2435
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping
2436
- )
2437
- )
2438
- end
2439
- attr_reader :grouping
2440
-
2441
- sig do
2442
- params(
2443
- grouping:
2444
- T.nilable(
2445
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping::OrHash
2446
- )
2447
- ).void
2448
- end
2449
- attr_writer :grouping
2450
-
2451
- sig { returns(String) }
2452
- attr_accessor :name
2453
-
2454
- sig { returns(Float) }
2455
- attr_accessor :quantity
2456
-
2457
- sig { returns(Symbol) }
2458
- attr_accessor :type
2459
-
2460
- sig do
2461
- params(
2462
- amount: String,
2463
- grouping:
2464
- T.nilable(
2465
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping::OrHash
2466
- ),
2467
- name: String,
2468
- quantity: Float,
2469
- type: Symbol
2470
- ).returns(T.attached_class)
2471
- end
2472
- def self.new(
2473
- # The total amount for this sub line item.
2474
- amount:,
2475
- grouping:,
2476
- name:,
2477
- quantity:,
2478
- type: :"'null'"
2479
- )
2480
- end
2481
-
2482
- sig do
2483
- override.returns(
2484
- {
2485
- amount: String,
2486
- grouping:
2487
- T.nilable(
2488
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping
2489
- ),
2490
- name: String,
2491
- quantity: Float,
2492
- type: Symbol
2493
- }
2494
- )
2495
- end
2496
- def to_hash
2497
- end
2498
-
2499
- class Grouping < Orb::Internal::Type::BaseModel
2500
- OrHash =
2501
- T.type_alias do
2502
- T.any(
2503
- Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping,
2504
- Orb::Internal::AnyHash
2505
- )
2506
- end
2507
-
2508
- sig { returns(String) }
2509
- attr_accessor :key
2510
-
2511
- # No value indicates the default group
2512
- sig { returns(T.nilable(String)) }
2513
- attr_accessor :value
2514
-
2515
- sig do
2516
- params(key: String, value: T.nilable(String)).returns(
2517
- T.attached_class
2518
- )
2519
- end
2520
- def self.new(
2521
- key:,
2522
- # No value indicates the default group
2523
- value:
2524
- )
2525
- end
2526
-
2527
- sig { override.returns({ key: String, value: T.nilable(String) }) }
2528
- def to_hash
2529
- end
2530
- end
2531
- end
2532
-
2533
354
  sig do
2534
355
  override.returns(
2535
356
  T::Array[
@@ -2540,57 +361,6 @@ module Orb
2540
361
  def self.variants
2541
362
  end
2542
363
  end
2543
-
2544
- class TaxAmount < Orb::Internal::Type::BaseModel
2545
- OrHash =
2546
- T.type_alias do
2547
- T.any(
2548
- Orb::Models::InvoiceLineItemCreateResponse::TaxAmount,
2549
- Orb::Internal::AnyHash
2550
- )
2551
- end
2552
-
2553
- # The amount of additional tax incurred by this tax rate.
2554
- sig { returns(String) }
2555
- attr_accessor :amount
2556
-
2557
- # The human-readable description of the applied tax rate.
2558
- sig { returns(String) }
2559
- attr_accessor :tax_rate_description
2560
-
2561
- # The tax rate percentage, out of 100.
2562
- sig { returns(T.nilable(String)) }
2563
- attr_accessor :tax_rate_percentage
2564
-
2565
- sig do
2566
- params(
2567
- amount: String,
2568
- tax_rate_description: String,
2569
- tax_rate_percentage: T.nilable(String)
2570
- ).returns(T.attached_class)
2571
- end
2572
- def self.new(
2573
- # The amount of additional tax incurred by this tax rate.
2574
- amount:,
2575
- # The human-readable description of the applied tax rate.
2576
- tax_rate_description:,
2577
- # The tax rate percentage, out of 100.
2578
- tax_rate_percentage:
2579
- )
2580
- end
2581
-
2582
- sig do
2583
- override.returns(
2584
- {
2585
- amount: String,
2586
- tax_rate_description: String,
2587
- tax_rate_percentage: T.nilable(String)
2588
- }
2589
- )
2590
- end
2591
- def to_hash
2592
- end
2593
- end
2594
364
  end
2595
365
  end
2596
366
  end