orb-billing 1.11.2 → 1.13.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 (759) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +123 -0
  3. data/README.md +1 -1
  4. data/lib/orb/client.rb +84 -0
  5. data/lib/orb/errors.rb +25 -11
  6. data/lib/orb/file_part.rb +10 -7
  7. data/lib/orb/internal/page.rb +1 -1
  8. data/lib/orb/internal/transport/base_client.rb +18 -8
  9. data/lib/orb/internal/transport/pooled_net_requester.rb +43 -34
  10. data/lib/orb/internal/type/base_page.rb +1 -1
  11. data/lib/orb/internal/type/file_input.rb +7 -4
  12. data/lib/orb/internal/util.rb +47 -10
  13. data/lib/orb/models/alert.rb +23 -1
  14. data/lib/orb/models/allocation.rb +69 -1
  15. data/lib/orb/models/amount_discount.rb +59 -3
  16. data/lib/orb/models/amount_discount_interval.rb +59 -3
  17. data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +2898 -44
  18. data/lib/orb/models/beta_create_plan_version_params.rb +2870 -44
  19. data/lib/orb/models/billable_metric.rb +10 -1
  20. data/lib/orb/models/bulk_config.rb +2 -0
  21. data/lib/orb/models/bulk_tier.rb +2 -0
  22. data/lib/orb/models/changed_subscription_resources.rb +1030 -3
  23. data/lib/orb/models/credit_block_delete_params.rb +14 -0
  24. data/lib/orb/models/credit_block_list_invoices_params.rb +14 -0
  25. data/lib/orb/models/credit_block_list_invoices_response.rb +217 -0
  26. data/lib/orb/models/credit_block_retrieve_params.rb +14 -0
  27. data/lib/orb/models/credit_block_retrieve_response.rb +148 -0
  28. data/lib/orb/models/customer.rb +84 -1
  29. data/lib/orb/models/customer_create_params.rb +175 -5
  30. data/lib/orb/models/customer_tax_id.rb +2 -0
  31. data/lib/orb/models/customer_update_by_external_id_params.rb +180 -5
  32. data/lib/orb/models/customer_update_params.rb +175 -5
  33. data/lib/orb/models/customers/balance_transaction_create_response.rb +1 -0
  34. data/lib/orb/models/customers/balance_transaction_list_response.rb +1 -0
  35. data/lib/orb/models/customers/credit_list_by_external_id_params.rb +29 -1
  36. data/lib/orb/models/customers/credit_list_by_external_id_response.rb +83 -1
  37. data/lib/orb/models/customers/credit_list_params.rb +29 -1
  38. data/lib/orb/models/customers/credit_list_response.rb +82 -1
  39. data/lib/orb/models/customers/credits/affected_block.rb +63 -1
  40. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +125 -9
  41. data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +124 -9
  42. data/lib/orb/models/invoice.rb +20 -56
  43. data/lib/orb/models/invoice_create_params.rb +44 -9
  44. data/lib/orb/models/invoice_delete_line_item_params.rb +20 -0
  45. data/lib/orb/models/invoice_fetch_upcoming_response.rb +20 -56
  46. data/lib/orb/models/invoice_issue_summary_params.rb +29 -0
  47. data/lib/orb/models/invoice_issue_summary_response.rb +760 -0
  48. data/lib/orb/models/invoice_line_item_create_params.rb +25 -10
  49. data/lib/orb/models/invoice_line_item_create_response.rb +5 -55
  50. data/lib/orb/models/invoice_list_summary_params.rb +180 -0
  51. data/lib/orb/models/invoice_list_summary_response.rb +759 -0
  52. data/lib/orb/models/invoice_update_params.rb +65 -1
  53. data/lib/orb/models/item.rb +30 -7
  54. data/lib/orb/models/item_slim.rb +8 -2
  55. data/lib/orb/models/item_update_params.rb +12 -2
  56. data/lib/orb/models/license_create_params.rb +57 -0
  57. data/lib/orb/models/license_create_response.rb +63 -0
  58. data/lib/orb/models/license_deactivate_params.rb +26 -0
  59. data/lib/orb/models/license_deactivate_response.rb +63 -0
  60. data/lib/orb/models/license_list_params.rb +72 -0
  61. data/lib/orb/models/license_list_response.rb +63 -0
  62. data/lib/orb/models/license_retrieve_by_external_id_params.rb +30 -0
  63. data/lib/orb/models/license_retrieve_by_external_id_response.rb +63 -0
  64. data/lib/orb/models/license_retrieve_params.rb +14 -0
  65. data/lib/orb/models/license_retrieve_response.rb +63 -0
  66. data/lib/orb/models/license_type_create_params.rb +34 -0
  67. data/lib/orb/models/license_type_create_response.rb +41 -0
  68. data/lib/orb/models/license_type_list_params.rb +34 -0
  69. data/lib/orb/models/license_type_list_response.rb +41 -0
  70. data/lib/orb/models/license_type_retrieve_params.rb +14 -0
  71. data/lib/orb/models/license_type_retrieve_response.rb +41 -0
  72. data/lib/orb/models/licenses/external_license_get_usage_params.rb +78 -0
  73. data/lib/orb/models/licenses/external_license_get_usage_response.rb +135 -0
  74. data/lib/orb/models/licenses/usage_get_all_usage_params.rb +78 -0
  75. data/lib/orb/models/licenses/usage_get_all_usage_response.rb +134 -0
  76. data/lib/orb/models/licenses/usage_get_usage_params.rb +62 -0
  77. data/lib/orb/models/licenses/usage_get_usage_response.rb +134 -0
  78. data/lib/orb/models/matrix_config.rb +4 -2
  79. data/lib/orb/models/matrix_sub_line_item.rb +9 -1
  80. data/lib/orb/models/matrix_value.rb +3 -6
  81. data/lib/orb/models/matrix_with_allocation_config.rb +36 -8
  82. data/lib/orb/models/maximum.rb +59 -3
  83. data/lib/orb/models/maximum_interval.rb +59 -3
  84. data/lib/orb/models/minimum.rb +59 -3
  85. data/lib/orb/models/minimum_interval.rb +59 -3
  86. data/lib/orb/models/monetary_amount_discount_adjustment.rb +62 -6
  87. data/lib/orb/models/monetary_maximum_adjustment.rb +62 -6
  88. data/lib/orb/models/monetary_minimum_adjustment.rb +62 -6
  89. data/lib/orb/models/monetary_percentage_discount_adjustment.rb +62 -6
  90. data/lib/orb/models/monetary_usage_discount_adjustment.rb +62 -6
  91. data/lib/orb/models/new_allocation_price.rb +91 -1
  92. data/lib/orb/models/new_amount_discount.rb +59 -3
  93. data/lib/orb/models/new_avalara_tax_configuration.rb +15 -1
  94. data/lib/orb/models/new_floating_bulk_price.rb +15 -19
  95. data/lib/orb/models/new_floating_bulk_with_proration_price.rb +54 -21
  96. data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +69 -21
  97. data/lib/orb/models/new_floating_grouped_allocation_price.rb +48 -21
  98. data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +73 -21
  99. data/lib/orb/models/new_floating_grouped_tiered_price.rb +65 -21
  100. data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +118 -21
  101. data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +48 -21
  102. data/lib/orb/models/new_floating_matrix_price.rb +15 -19
  103. data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +15 -19
  104. data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +70 -21
  105. data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +72 -21
  106. data/lib/orb/models/{new_floating_bps_price.rb → new_floating_minimum_composite_price.rb} +54 -38
  107. data/lib/orb/models/new_floating_package_price.rb +15 -19
  108. data/lib/orb/models/new_floating_package_with_allocation_price.rb +41 -19
  109. data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +96 -15
  110. data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +94 -15
  111. data/lib/orb/models/new_floating_threshold_total_amount_price.rb +64 -19
  112. data/lib/orb/models/new_floating_tiered_package_price.rb +64 -19
  113. data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +67 -19
  114. data/lib/orb/models/new_floating_tiered_price.rb +15 -19
  115. data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +75 -15
  116. data/lib/orb/models/new_floating_tiered_with_proration_price.rb +57 -19
  117. data/lib/orb/models/new_floating_unit_price.rb +15 -19
  118. data/lib/orb/models/new_floating_unit_with_percent_price.rb +37 -19
  119. data/lib/orb/models/new_floating_unit_with_proration_price.rb +30 -19
  120. data/lib/orb/models/new_maximum.rb +59 -3
  121. data/lib/orb/models/new_minimum.rb +59 -3
  122. data/lib/orb/models/new_percentage_discount.rb +59 -3
  123. data/lib/orb/models/new_plan_bulk_price.rb +15 -19
  124. data/lib/orb/models/new_plan_bulk_with_proration_price.rb +53 -21
  125. data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +69 -21
  126. data/lib/orb/models/new_plan_grouped_allocation_price.rb +47 -21
  127. data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +73 -21
  128. data/lib/orb/models/new_plan_grouped_tiered_price.rb +64 -21
  129. data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +118 -21
  130. data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +48 -21
  131. data/lib/orb/models/new_plan_matrix_price.rb +15 -19
  132. data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +15 -19
  133. data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +70 -21
  134. data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +72 -21
  135. data/lib/orb/models/{new_plan_bulk_bps_price.rb → new_plan_minimum_composite_price.rb} +54 -38
  136. data/lib/orb/models/new_plan_package_price.rb +15 -19
  137. data/lib/orb/models/new_plan_package_with_allocation_price.rb +41 -19
  138. data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +96 -15
  139. data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +90 -15
  140. data/lib/orb/models/new_plan_threshold_total_amount_price.rb +64 -19
  141. data/lib/orb/models/new_plan_tiered_package_price.rb +63 -19
  142. data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +67 -19
  143. data/lib/orb/models/new_plan_tiered_price.rb +15 -19
  144. data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +74 -15
  145. data/lib/orb/models/new_plan_unit_price.rb +15 -19
  146. data/lib/orb/models/new_plan_unit_with_percent_price.rb +37 -19
  147. data/lib/orb/models/new_plan_unit_with_proration_price.rb +29 -19
  148. data/lib/orb/models/new_sphere_configuration.rb +14 -1
  149. data/lib/orb/models/new_subscription_bulk_price.rb +15 -19
  150. data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +54 -21
  151. data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +69 -21
  152. data/lib/orb/models/new_subscription_grouped_allocation_price.rb +48 -21
  153. data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +73 -21
  154. data/lib/orb/models/new_subscription_grouped_tiered_price.rb +65 -21
  155. data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +118 -21
  156. data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +48 -21
  157. data/lib/orb/models/new_subscription_matrix_price.rb +15 -19
  158. data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +15 -19
  159. data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +70 -21
  160. data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +72 -21
  161. data/lib/orb/models/{new_subscription_bulk_bps_price.rb → new_subscription_minimum_composite_price.rb} +55 -36
  162. data/lib/orb/models/new_subscription_package_price.rb +15 -19
  163. data/lib/orb/models/new_subscription_package_with_allocation_price.rb +41 -19
  164. data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +96 -15
  165. data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +94 -15
  166. data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +64 -19
  167. data/lib/orb/models/new_subscription_tiered_package_price.rb +64 -19
  168. data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +67 -19
  169. data/lib/orb/models/new_subscription_tiered_price.rb +15 -19
  170. data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +75 -15
  171. data/lib/orb/models/new_subscription_unit_price.rb +15 -19
  172. data/lib/orb/models/new_subscription_unit_with_percent_price.rb +37 -19
  173. data/lib/orb/models/new_subscription_unit_with_proration_price.rb +30 -19
  174. data/lib/orb/models/new_tax_jar_configuration.rb +14 -1
  175. data/lib/orb/models/new_usage_discount.rb +59 -3
  176. data/lib/orb/models/package_config.rb +2 -0
  177. data/lib/orb/models/per_price_cost.rb +2 -2
  178. data/lib/orb/models/percentage_discount.rb +59 -3
  179. data/lib/orb/models/percentage_discount_interval.rb +59 -3
  180. data/lib/orb/models/plan.rb +17 -6
  181. data/lib/orb/models/plan_create_params.rb +1417 -22
  182. data/lib/orb/models/plan_phase_amount_discount_adjustment.rb +62 -6
  183. data/lib/orb/models/plan_phase_maximum_adjustment.rb +62 -6
  184. data/lib/orb/models/plan_phase_minimum_adjustment.rb +62 -6
  185. data/lib/orb/models/plan_phase_percentage_discount_adjustment.rb +62 -6
  186. data/lib/orb/models/plan_phase_usage_discount_adjustment.rb +62 -6
  187. data/lib/orb/models/plan_version.rb +2 -2
  188. data/lib/orb/models/plans/migration_cancel_params.rb +22 -0
  189. data/lib/orb/models/plans/migration_cancel_response.rb +76 -0
  190. data/lib/orb/models/plans/migration_list_params.rb +36 -0
  191. data/lib/orb/models/plans/migration_list_response.rb +76 -0
  192. data/lib/orb/models/plans/migration_retrieve_params.rb +22 -0
  193. data/lib/orb/models/plans/migration_retrieve_response.rb +76 -0
  194. data/lib/orb/models/price.rb +6360 -986
  195. data/lib/orb/models/price_create_params.rb +1272 -111
  196. data/lib/orb/models/price_evaluate_multiple_params.rb +1160 -25
  197. data/lib/orb/models/price_evaluate_params.rb +12 -1
  198. data/lib/orb/models/price_evaluate_preview_events_params.rb +1169 -25
  199. data/lib/orb/models/price_interval.rb +24 -3
  200. data/lib/orb/models/subscription_change_apply_params.rb +42 -3
  201. data/lib/orb/models/subscription_change_apply_response.rb +42 -1
  202. data/lib/orb/models/subscription_change_cancel_response.rb +42 -1
  203. data/lib/orb/models/subscription_change_list_params.rb +66 -0
  204. data/lib/orb/models/subscription_change_list_response.rb +69 -0
  205. data/lib/orb/models/subscription_change_retrieve_response.rb +42 -1
  206. data/lib/orb/models/subscription_create_params.rb +2899 -58
  207. data/lib/orb/models/subscription_list_params.rb +15 -1
  208. data/lib/orb/models/subscription_price_intervals_params.rb +1237 -51
  209. data/lib/orb/models/subscription_schedule_plan_change_params.rb +2924 -58
  210. data/lib/orb/models/tier.rb +8 -2
  211. data/lib/orb/models/tier_sub_line_item.rb +26 -3
  212. data/lib/orb/models/tiered_config.rb +11 -1
  213. data/lib/orb/models/trial_discount.rb +59 -3
  214. data/lib/orb/models/unit_config.rb +11 -1
  215. data/lib/orb/models/usage_discount.rb +59 -3
  216. data/lib/orb/models/usage_discount_interval.rb +59 -3
  217. data/lib/orb/models.rb +38 -36
  218. data/lib/orb/resources/alerts.rb +12 -4
  219. data/lib/orb/resources/beta/external_plan_id.rb +4 -9
  220. data/lib/orb/resources/beta.rb +8 -9
  221. data/lib/orb/resources/coupons/subscriptions.rb +7 -1
  222. data/lib/orb/resources/coupons.rb +12 -1
  223. data/lib/orb/resources/credit_blocks.rb +100 -0
  224. data/lib/orb/resources/credit_notes.rb +4 -1
  225. data/lib/orb/resources/customers/balance_transactions.rb +20 -1
  226. data/lib/orb/resources/customers/costs.rb +22 -2
  227. data/lib/orb/resources/customers/credits/ledger.rb +30 -16
  228. data/lib/orb/resources/customers/credits/top_ups.rb +6 -2
  229. data/lib/orb/resources/customers/credits.rb +48 -4
  230. data/lib/orb/resources/customers.rb +76 -7
  231. data/lib/orb/resources/dimensional_price_groups.rb +3 -2
  232. data/lib/orb/resources/events/backfills.rb +10 -3
  233. data/lib/orb/resources/events/volume.rb +5 -1
  234. data/lib/orb/resources/events.rb +13 -3
  235. data/lib/orb/resources/invoice_line_items.rb +21 -3
  236. data/lib/orb/resources/invoices.rb +187 -15
  237. data/lib/orb/resources/items.rb +5 -1
  238. data/lib/orb/resources/license_types.rb +104 -0
  239. data/lib/orb/resources/licenses/external_licenses.rb +59 -0
  240. data/lib/orb/resources/licenses/usage.rb +95 -0
  241. data/lib/orb/resources/licenses.rb +173 -0
  242. data/lib/orb/resources/metrics.rb +5 -1
  243. data/lib/orb/resources/plans/external_plan_id.rb +4 -0
  244. data/lib/orb/resources/plans/migrations.rb +104 -0
  245. data/lib/orb/resources/plans.rb +18 -1
  246. data/lib/orb/resources/prices/external_price_id.rb +12 -2
  247. data/lib/orb/resources/prices.rb +67 -36
  248. data/lib/orb/resources/subscription_changes.rb +50 -2
  249. data/lib/orb/resources/subscriptions.rb +21 -7
  250. data/lib/orb/version.rb +1 -1
  251. data/lib/orb.rb +51 -18
  252. data/manifest.yaml +2 -0
  253. data/rbi/orb/client.rbi +81 -0
  254. data/rbi/orb/errors.rbi +29 -2
  255. data/rbi/orb/file_part.rbi +1 -1
  256. data/rbi/orb/internal/transport/base_client.rbi +9 -5
  257. data/rbi/orb/internal/transport/pooled_net_requester.rbi +6 -2
  258. data/rbi/orb/internal/type/base_model.rbi +5 -4
  259. data/rbi/orb/internal/type/base_page.rbi +1 -1
  260. data/rbi/orb/internal/util.rbi +20 -2
  261. data/rbi/orb/models/alert.rbi +40 -3
  262. data/rbi/orb/models/allocation.rbi +123 -3
  263. data/rbi/orb/models/amount_discount.rbi +112 -3
  264. data/rbi/orb/models/amount_discount_interval.rbi +133 -3
  265. data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +5192 -396
  266. data/rbi/orb/models/beta_create_plan_version_params.rbi +5182 -396
  267. data/rbi/orb/models/billable_metric.rbi +11 -3
  268. data/rbi/orb/models/bulk_config.rbi +1 -0
  269. data/rbi/orb/models/bulk_tier.rbi +1 -0
  270. data/rbi/orb/models/changed_subscription_resources.rbi +1690 -3
  271. data/rbi/orb/models/credit_block_delete_params.rbi +27 -0
  272. data/rbi/orb/models/credit_block_list_invoices_params.rbi +27 -0
  273. data/rbi/orb/models/credit_block_list_invoices_response.rbi +465 -0
  274. data/rbi/orb/models/credit_block_retrieve_params.rbi +27 -0
  275. data/rbi/orb/models/credit_block_retrieve_response.rbi +280 -0
  276. data/rbi/orb/models/customer.rbi +188 -0
  277. data/rbi/orb/models/customer_create_params.rbi +356 -6
  278. data/rbi/orb/models/customer_tax_id.rbi +2 -0
  279. data/rbi/orb/models/customer_update_by_external_id_params.rbi +364 -6
  280. data/rbi/orb/models/customer_update_params.rbi +356 -6
  281. data/rbi/orb/models/customers/balance_transaction_create_response.rbi +5 -0
  282. data/rbi/orb/models/customers/balance_transaction_list_response.rbi +5 -0
  283. data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +24 -0
  284. data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +161 -0
  285. data/rbi/orb/models/customers/credit_list_params.rbi +24 -0
  286. data/rbi/orb/models/customers/credit_list_response.rbi +155 -0
  287. data/rbi/orb/models/customers/credits/affected_block.rbi +160 -1
  288. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +235 -11
  289. data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +235 -11
  290. data/rbi/orb/models/invoice.rbi +29 -64
  291. data/rbi/orb/models/invoice_create_params.rbi +54 -10
  292. data/rbi/orb/models/invoice_delete_line_item_params.rbi +35 -0
  293. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +29 -64
  294. data/rbi/orb/models/invoice_issue_summary_params.rbi +51 -0
  295. data/rbi/orb/models/invoice_issue_summary_response.rbi +1264 -0
  296. data/rbi/orb/models/invoice_line_item_create_params.rbi +32 -10
  297. data/rbi/orb/models/invoice_line_item_create_response.rbi +12 -64
  298. data/rbi/orb/models/invoice_list_summary_params.rbi +226 -0
  299. data/rbi/orb/models/invoice_list_summary_response.rbi +1259 -0
  300. data/rbi/orb/models/invoice_update_params.rbi +81 -0
  301. data/rbi/orb/models/item.rbi +42 -4
  302. data/rbi/orb/models/item_slim.rbi +10 -1
  303. data/rbi/orb/models/item_update_params.rbi +21 -1
  304. data/rbi/orb/models/license_create_params.rbi +73 -0
  305. data/rbi/orb/models/license_create_response.rbi +100 -0
  306. data/rbi/orb/models/license_deactivate_params.rbi +42 -0
  307. data/rbi/orb/models/license_deactivate_response.rbi +105 -0
  308. data/rbi/orb/models/license_list_params.rbi +98 -0
  309. data/rbi/orb/models/license_list_response.rbi +97 -0
  310. data/rbi/orb/models/license_retrieve_by_external_id_params.rbi +51 -0
  311. data/rbi/orb/models/license_retrieve_by_external_id_response.rbi +114 -0
  312. data/rbi/orb/models/license_retrieve_params.rbi +27 -0
  313. data/rbi/orb/models/license_retrieve_response.rbi +102 -0
  314. data/rbi/orb/models/license_type_create_params.rbi +53 -0
  315. data/rbi/orb/models/license_type_create_response.rbi +50 -0
  316. data/rbi/orb/models/license_type_list_params.rbi +56 -0
  317. data/rbi/orb/models/license_type_list_response.rbi +50 -0
  318. data/rbi/orb/models/license_type_retrieve_params.rbi +27 -0
  319. data/rbi/orb/models/license_type_retrieve_response.rbi +53 -0
  320. data/rbi/orb/models/licenses/external_license_get_usage_params.rbi +105 -0
  321. data/rbi/orb/models/licenses/external_license_get_usage_response.rbi +192 -0
  322. data/rbi/orb/models/licenses/usage_get_all_usage_params.rbi +102 -0
  323. data/rbi/orb/models/licenses/usage_get_all_usage_response.rbi +188 -0
  324. data/rbi/orb/models/licenses/usage_get_usage_params.rbi +86 -0
  325. data/rbi/orb/models/licenses/usage_get_usage_response.rbi +186 -0
  326. data/rbi/orb/models/matrix_config.rbi +3 -2
  327. data/rbi/orb/models/matrix_sub_line_item.rbi +11 -3
  328. data/rbi/orb/models/matrix_value.rbi +3 -6
  329. data/rbi/orb/models/matrix_with_allocation_config.rbi +61 -10
  330. data/rbi/orb/models/maximum.rbi +96 -3
  331. data/rbi/orb/models/maximum_interval.rbi +115 -3
  332. data/rbi/orb/models/minimum.rbi +96 -3
  333. data/rbi/orb/models/minimum_interval.rbi +115 -3
  334. data/rbi/orb/models/monetary_amount_discount_adjustment.rbi +156 -7
  335. data/rbi/orb/models/monetary_maximum_adjustment.rbi +146 -7
  336. data/rbi/orb/models/monetary_minimum_adjustment.rbi +146 -7
  337. data/rbi/orb/models/monetary_percentage_discount_adjustment.rbi +159 -7
  338. data/rbi/orb/models/monetary_usage_discount_adjustment.rbi +153 -7
  339. data/rbi/orb/models/new_allocation_price.rbi +150 -3
  340. data/rbi/orb/models/new_amount_discount.rbi +123 -3
  341. data/rbi/orb/models/new_avalara_tax_configuration.rbi +15 -1
  342. data/rbi/orb/models/new_floating_bulk_price.rbi +13 -21
  343. data/rbi/orb/models/new_floating_bulk_with_proration_price.rbi +118 -27
  344. data/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi +137 -27
  345. data/rbi/orb/models/new_floating_grouped_allocation_price.rbi +81 -27
  346. data/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi +131 -27
  347. data/rbi/orb/models/new_floating_grouped_tiered_price.rbi +121 -27
  348. data/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi +202 -27
  349. data/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi +79 -27
  350. data/rbi/orb/models/new_floating_matrix_price.rbi +13 -23
  351. data/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi +13 -23
  352. data/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi +139 -27
  353. data/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi +129 -27
  354. data/rbi/orb/models/{new_floating_tiered_bps_price.rbi → new_floating_minimum_composite_price.rbi} +106 -49
  355. data/rbi/orb/models/new_floating_package_price.rbi +13 -23
  356. data/rbi/orb/models/new_floating_package_with_allocation_price.rbi +57 -15
  357. data/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi +175 -14
  358. data/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi +151 -14
  359. data/rbi/orb/models/new_floating_threshold_total_amount_price.rbi +110 -14
  360. data/rbi/orb/models/new_floating_tiered_package_price.rbi +110 -14
  361. data/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi +116 -14
  362. data/rbi/orb/models/new_floating_tiered_price.rbi +13 -23
  363. data/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi +136 -14
  364. data/rbi/orb/models/new_floating_tiered_with_proration_price.rbi +106 -14
  365. data/rbi/orb/models/new_floating_unit_price.rbi +13 -21
  366. data/rbi/orb/models/new_floating_unit_with_percent_price.rbi +53 -17
  367. data/rbi/orb/models/new_floating_unit_with_proration_price.rbi +46 -18
  368. data/rbi/orb/models/new_maximum.rbi +104 -3
  369. data/rbi/orb/models/new_minimum.rbi +104 -3
  370. data/rbi/orb/models/new_percentage_discount.rbi +129 -3
  371. data/rbi/orb/models/new_plan_bulk_price.rbi +13 -21
  372. data/rbi/orb/models/new_plan_bulk_with_proration_price.rbi +118 -27
  373. data/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi +137 -27
  374. data/rbi/orb/models/new_plan_grouped_allocation_price.rbi +81 -27
  375. data/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi +131 -27
  376. data/rbi/orb/models/new_plan_grouped_tiered_price.rbi +119 -27
  377. data/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi +202 -27
  378. data/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi +79 -27
  379. data/rbi/orb/models/new_plan_matrix_price.rbi +13 -21
  380. data/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi +13 -23
  381. data/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi +139 -27
  382. data/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi +129 -27
  383. data/rbi/orb/models/{new_subscription_tier_with_proration_price.rbi → new_plan_minimum_composite_price.rbi} +87 -61
  384. data/rbi/orb/models/new_plan_package_price.rbi +13 -21
  385. data/rbi/orb/models/new_plan_package_with_allocation_price.rbi +57 -15
  386. data/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi +175 -14
  387. data/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +151 -14
  388. data/rbi/orb/models/new_plan_threshold_total_amount_price.rbi +110 -14
  389. data/rbi/orb/models/new_plan_tiered_package_price.rbi +109 -15
  390. data/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi +116 -14
  391. data/rbi/orb/models/new_plan_tiered_price.rbi +13 -21
  392. data/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi +136 -14
  393. data/rbi/orb/models/new_plan_unit_price.rbi +13 -21
  394. data/rbi/orb/models/new_plan_unit_with_percent_price.rbi +51 -17
  395. data/rbi/orb/models/new_plan_unit_with_proration_price.rbi +46 -18
  396. data/rbi/orb/models/new_sphere_configuration.rbi +16 -3
  397. data/rbi/orb/models/new_subscription_bulk_price.rbi +13 -23
  398. data/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi +120 -27
  399. data/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi +137 -27
  400. data/rbi/orb/models/new_subscription_grouped_allocation_price.rbi +83 -27
  401. data/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi +131 -27
  402. data/rbi/orb/models/new_subscription_grouped_tiered_price.rbi +123 -27
  403. data/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi +202 -27
  404. data/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi +79 -27
  405. data/rbi/orb/models/new_subscription_matrix_price.rbi +13 -23
  406. data/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi +13 -23
  407. data/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi +139 -27
  408. data/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi +129 -27
  409. data/rbi/orb/models/{new_subscription_tiered_bps_price.rbi → new_subscription_minimum_composite_price.rbi} +105 -51
  410. data/rbi/orb/models/new_subscription_package_price.rbi +13 -23
  411. data/rbi/orb/models/new_subscription_package_with_allocation_price.rbi +57 -15
  412. data/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi +175 -14
  413. data/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi +151 -14
  414. data/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi +110 -14
  415. data/rbi/orb/models/new_subscription_tiered_package_price.rbi +112 -14
  416. data/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi +116 -14
  417. data/rbi/orb/models/new_subscription_tiered_price.rbi +13 -23
  418. data/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi +138 -14
  419. data/rbi/orb/models/new_subscription_unit_price.rbi +13 -23
  420. data/rbi/orb/models/new_subscription_unit_with_percent_price.rbi +53 -17
  421. data/rbi/orb/models/new_subscription_unit_with_proration_price.rbi +48 -18
  422. data/rbi/orb/models/new_tax_jar_configuration.rbi +16 -3
  423. data/rbi/orb/models/new_usage_discount.rbi +115 -3
  424. data/rbi/orb/models/package_config.rbi +1 -0
  425. data/rbi/orb/models/per_price_cost.rbi +10 -8
  426. data/rbi/orb/models/percentage_discount.rbi +126 -3
  427. data/rbi/orb/models/percentage_discount_interval.rbi +142 -3
  428. data/rbi/orb/models/plan.rbi +20 -12
  429. data/rbi/orb/models/plan_create_params.rbi +2440 -47
  430. data/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi +156 -7
  431. data/rbi/orb/models/plan_phase_maximum_adjustment.rbi +146 -7
  432. data/rbi/orb/models/plan_phase_minimum_adjustment.rbi +146 -7
  433. data/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi +161 -7
  434. data/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi +156 -7
  435. data/rbi/orb/models/plan_version.rbi +10 -8
  436. data/rbi/orb/models/plans/migration_cancel_params.rbi +37 -0
  437. data/rbi/orb/models/plans/migration_cancel_response.rbi +159 -0
  438. data/rbi/orb/models/plans/migration_list_params.rbi +58 -0
  439. data/rbi/orb/models/plans/migration_list_response.rbi +158 -0
  440. data/rbi/orb/models/plans/migration_retrieve_params.rbi +37 -0
  441. data/rbi/orb/models/plans/migration_retrieve_response.rbi +162 -0
  442. data/rbi/orb/models/price.rbi +12951 -1485
  443. data/rbi/orb/models/price_create_params.rbi +2533 -129
  444. data/rbi/orb/models/price_evaluate_multiple_params.rbi +1978 -50
  445. data/rbi/orb/models/price_evaluate_params.rbi +10 -0
  446. data/rbi/orb/models/price_evaluate_preview_events_params.rbi +1978 -50
  447. data/rbi/orb/models/price_interval.rbi +35 -11
  448. data/rbi/orb/models/subscription_change_apply_params.rbi +42 -2
  449. data/rbi/orb/models/subscription_change_apply_response.rbi +45 -3
  450. data/rbi/orb/models/subscription_change_cancel_response.rbi +45 -3
  451. data/rbi/orb/models/subscription_change_list_params.rbi +112 -0
  452. data/rbi/orb/models/subscription_change_list_response.rbi +115 -0
  453. data/rbi/orb/models/subscription_change_retrieve_response.rbi +45 -3
  454. data/rbi/orb/models/subscription_create_params.rbi +5276 -468
  455. data/rbi/orb/models/subscription_list_params.rbi +12 -0
  456. data/rbi/orb/models/subscription_price_intervals_params.rbi +2226 -232
  457. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +5281 -473
  458. data/rbi/orb/models/tier.rbi +5 -2
  459. data/rbi/orb/models/tier_sub_line_item.rbi +42 -4
  460. data/rbi/orb/models/tiered_config.rbi +18 -3
  461. data/rbi/orb/models/trial_discount.rbi +104 -3
  462. data/rbi/orb/models/unit_config.rbi +17 -3
  463. data/rbi/orb/models/usage_discount.rbi +104 -3
  464. data/rbi/orb/models/usage_discount_interval.rbi +131 -3
  465. data/rbi/orb/models.rbi +41 -37
  466. data/rbi/orb/resources/alerts.rbi +6 -1
  467. data/rbi/orb/resources/beta/external_plan_id.rbi +4 -9
  468. data/rbi/orb/resources/beta.rbi +8 -9
  469. data/rbi/orb/resources/coupons/subscriptions.rbi +5 -0
  470. data/rbi/orb/resources/coupons.rbi +10 -0
  471. data/rbi/orb/resources/credit_blocks.rbi +71 -0
  472. data/rbi/orb/resources/credit_notes.rbi +2 -0
  473. data/rbi/orb/resources/customers/balance_transactions.rbi +18 -0
  474. data/rbi/orb/resources/customers/costs.rbi +18 -0
  475. data/rbi/orb/resources/customers/credits/ledger.rbi +38 -12
  476. data/rbi/orb/resources/customers/credits/top_ups.rbi +2 -0
  477. data/rbi/orb/resources/customers/credits.rbi +32 -0
  478. data/rbi/orb/resources/customers.rbi +112 -6
  479. data/rbi/orb/resources/dimensional_price_groups.rbi +1 -1
  480. data/rbi/orb/resources/events/backfills.rbi +8 -2
  481. data/rbi/orb/resources/events/volume.rbi +3 -0
  482. data/rbi/orb/resources/events.rbi +10 -1
  483. data/rbi/orb/resources/invoice_line_items.rbi +30 -4
  484. data/rbi/orb/resources/invoices.rbi +167 -14
  485. data/rbi/orb/resources/items.rbi +3 -0
  486. data/rbi/orb/resources/license_types.rbi +73 -0
  487. data/rbi/orb/resources/licenses/external_licenses.rbi +54 -0
  488. data/rbi/orb/resources/licenses/usage.rbi +85 -0
  489. data/rbi/orb/resources/licenses.rbi +124 -0
  490. data/rbi/orb/resources/metrics.rbi +3 -0
  491. data/rbi/orb/resources/plans/external_plan_id.rbi +4 -0
  492. data/rbi/orb/resources/plans/migrations.rbi +65 -0
  493. data/rbi/orb/resources/plans.rbi +15 -0
  494. data/rbi/orb/resources/prices/external_price_id.rbi +10 -0
  495. data/rbi/orb/resources/prices.rbi +122 -34
  496. data/rbi/orb/resources/subscription_changes.rbi +46 -1
  497. data/rbi/orb/resources/subscriptions.rbi +13 -1
  498. data/sig/orb/client.rbs +6 -0
  499. data/sig/orb/errors.rbs +7 -0
  500. data/sig/orb/file_part.rbs +1 -1
  501. data/sig/orb/internal/transport/base_client.rbs +2 -0
  502. data/sig/orb/internal/transport/pooled_net_requester.rbs +4 -1
  503. data/sig/orb/internal/util.rbs +10 -0
  504. data/sig/orb/models/alert.rbs +20 -3
  505. data/sig/orb/models/allocation.rbs +70 -3
  506. data/sig/orb/models/amount_discount.rbs +57 -4
  507. data/sig/orb/models/amount_discount_interval.rbs +57 -4
  508. data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +1952 -22
  509. data/sig/orb/models/beta_create_plan_version_params.rbs +1946 -22
  510. data/sig/orb/models/billable_metric.rbs +8 -3
  511. data/sig/orb/models/changed_subscription_resources.rbs +611 -4
  512. data/sig/orb/models/credit_block_delete_params.rbs +15 -0
  513. data/sig/orb/models/credit_block_list_invoices_params.rbs +15 -0
  514. data/sig/orb/models/credit_block_list_invoices_response.rbs +197 -0
  515. data/sig/orb/models/credit_block_retrieve_params.rbs +15 -0
  516. data/sig/orb/models/credit_block_retrieve_response.rbs +124 -0
  517. data/sig/orb/models/customer.rbs +72 -0
  518. data/sig/orb/models/customer_create_params.rbs +151 -0
  519. data/sig/orb/models/customer_tax_id.rbs +2 -0
  520. data/sig/orb/models/customer_update_by_external_id_params.rbs +151 -0
  521. data/sig/orb/models/customer_update_params.rbs +151 -0
  522. data/sig/orb/models/customers/balance_transaction_create_response.rbs +2 -0
  523. data/sig/orb/models/customers/balance_transaction_list_response.rbs +2 -0
  524. data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +20 -0
  525. data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +58 -0
  526. data/sig/orb/models/customers/credit_list_params.rbs +20 -0
  527. data/sig/orb/models/customers/credit_list_response.rbs +58 -0
  528. data/sig/orb/models/customers/credits/affected_block.rbs +63 -1
  529. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +82 -4
  530. data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +82 -4
  531. data/sig/orb/models/invoice.rbs +7 -25
  532. data/sig/orb/models/invoice_create_params.rbs +18 -0
  533. data/sig/orb/models/invoice_delete_line_item_params.rbs +23 -0
  534. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +7 -25
  535. data/sig/orb/models/invoice_issue_summary_params.rbs +25 -0
  536. data/sig/orb/models/invoice_issue_summary_response.rbs +444 -0
  537. data/sig/orb/models/invoice_line_item_create_params.rbs +11 -6
  538. data/sig/orb/models/invoice_line_item_create_response.rbs +0 -25
  539. data/sig/orb/models/invoice_list_summary_params.rbs +143 -0
  540. data/sig/orb/models/invoice_list_summary_response.rbs +444 -0
  541. data/sig/orb/models/invoice_update_params.rbs +39 -1
  542. data/sig/orb/models/item.rbs +12 -3
  543. data/sig/orb/models/item_update_params.rbs +4 -0
  544. data/sig/orb/models/license_create_params.rbs +46 -0
  545. data/sig/orb/models/license_create_response.rbs +61 -0
  546. data/sig/orb/models/license_deactivate_params.rbs +20 -0
  547. data/sig/orb/models/license_deactivate_response.rbs +61 -0
  548. data/sig/orb/models/license_list_params.rbs +64 -0
  549. data/sig/orb/models/license_list_response.rbs +61 -0
  550. data/sig/orb/models/license_retrieve_by_external_id_params.rbs +28 -0
  551. data/sig/orb/models/license_retrieve_by_external_id_response.rbs +61 -0
  552. data/sig/orb/models/license_retrieve_params.rbs +15 -0
  553. data/sig/orb/models/license_retrieve_response.rbs +61 -0
  554. data/sig/orb/models/license_type_create_params.rbs +28 -0
  555. data/sig/orb/models/license_type_create_response.rbs +18 -0
  556. data/sig/orb/models/license_type_list_params.rbs +30 -0
  557. data/sig/orb/models/license_type_list_response.rbs +18 -0
  558. data/sig/orb/models/license_type_retrieve_params.rbs +15 -0
  559. data/sig/orb/models/license_type_retrieve_response.rbs +18 -0
  560. data/sig/orb/models/licenses/external_license_get_usage_params.rbs +60 -0
  561. data/sig/orb/models/licenses/external_license_get_usage_response.rbs +99 -0
  562. data/sig/orb/models/licenses/usage_get_all_usage_params.rbs +60 -0
  563. data/sig/orb/models/licenses/usage_get_all_usage_response.rbs +99 -0
  564. data/sig/orb/models/licenses/usage_get_usage_params.rbs +50 -0
  565. data/sig/orb/models/licenses/usage_get_usage_response.rbs +99 -0
  566. data/sig/orb/models/matrix_sub_line_item.rbs +8 -3
  567. data/sig/orb/models/matrix_with_allocation_config.rbs +27 -8
  568. data/sig/orb/models/maximum.rbs +57 -4
  569. data/sig/orb/models/maximum_interval.rbs +57 -4
  570. data/sig/orb/models/minimum.rbs +57 -4
  571. data/sig/orb/models/minimum_interval.rbs +57 -4
  572. data/sig/orb/models/monetary_amount_discount_adjustment.rbs +57 -4
  573. data/sig/orb/models/monetary_maximum_adjustment.rbs +57 -4
  574. data/sig/orb/models/monetary_minimum_adjustment.rbs +57 -4
  575. data/sig/orb/models/monetary_percentage_discount_adjustment.rbs +57 -4
  576. data/sig/orb/models/monetary_usage_discount_adjustment.rbs +57 -4
  577. data/sig/orb/models/new_allocation_price.rbs +73 -3
  578. data/sig/orb/models/new_amount_discount.rbs +57 -4
  579. data/sig/orb/models/new_avalara_tax_configuration.rbs +5 -0
  580. data/sig/orb/models/new_floating_bulk_price.rbs +5 -9
  581. data/sig/orb/models/new_floating_bulk_with_proration_price.rbs +41 -13
  582. data/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +58 -13
  583. data/sig/orb/models/new_floating_grouped_allocation_price.rbs +32 -13
  584. data/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +48 -13
  585. data/sig/orb/models/new_floating_grouped_tiered_price.rbs +46 -13
  586. data/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +78 -13
  587. data/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +32 -13
  588. data/sig/orb/models/new_floating_matrix_price.rbs +5 -9
  589. data/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +5 -9
  590. data/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +54 -13
  591. data/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +51 -13
  592. data/sig/orb/models/{new_floating_bulk_bps_price.rbs → new_floating_minimum_composite_price.rbs} +40 -30
  593. data/sig/orb/models/new_floating_package_price.rbs +5 -9
  594. data/sig/orb/models/new_floating_package_with_allocation_price.rbs +28 -9
  595. data/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +79 -9
  596. data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +76 -11
  597. data/sig/orb/models/new_floating_threshold_total_amount_price.rbs +39 -9
  598. data/sig/orb/models/new_floating_tiered_package_price.rbs +39 -9
  599. data/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +50 -9
  600. data/sig/orb/models/new_floating_tiered_price.rbs +5 -9
  601. data/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +63 -9
  602. data/sig/orb/models/new_floating_tiered_with_proration_price.rbs +37 -9
  603. data/sig/orb/models/new_floating_unit_price.rbs +5 -9
  604. data/sig/orb/models/new_floating_unit_with_percent_price.rbs +17 -9
  605. data/sig/orb/models/new_floating_unit_with_proration_price.rbs +15 -9
  606. data/sig/orb/models/new_maximum.rbs +57 -4
  607. data/sig/orb/models/new_minimum.rbs +57 -4
  608. data/sig/orb/models/new_percentage_discount.rbs +57 -4
  609. data/sig/orb/models/new_plan_bulk_price.rbs +5 -9
  610. data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +41 -13
  611. data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +58 -13
  612. data/sig/orb/models/new_plan_grouped_allocation_price.rbs +32 -13
  613. data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +48 -13
  614. data/sig/orb/models/new_plan_grouped_tiered_price.rbs +46 -13
  615. data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +78 -13
  616. data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +32 -13
  617. data/sig/orb/models/new_plan_matrix_price.rbs +5 -9
  618. data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +5 -9
  619. data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +54 -13
  620. data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +51 -13
  621. data/sig/orb/models/{new_plan_tiered_bps_price.rbs → new_plan_minimum_composite_price.rbs} +40 -30
  622. data/sig/orb/models/new_plan_package_price.rbs +5 -9
  623. data/sig/orb/models/new_plan_package_with_allocation_price.rbs +28 -9
  624. data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +79 -9
  625. data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +76 -11
  626. data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +39 -9
  627. data/sig/orb/models/new_plan_tiered_package_price.rbs +39 -9
  628. data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +50 -9
  629. data/sig/orb/models/new_plan_tiered_price.rbs +5 -9
  630. data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +63 -9
  631. data/sig/orb/models/new_plan_unit_price.rbs +5 -9
  632. data/sig/orb/models/new_plan_unit_with_percent_price.rbs +17 -9
  633. data/sig/orb/models/new_plan_unit_with_proration_price.rbs +15 -9
  634. data/sig/orb/models/new_sphere_configuration.rbs +8 -3
  635. data/sig/orb/models/new_subscription_bulk_price.rbs +5 -9
  636. data/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +41 -13
  637. data/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +58 -13
  638. data/sig/orb/models/new_subscription_grouped_allocation_price.rbs +32 -13
  639. data/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +48 -13
  640. data/sig/orb/models/new_subscription_grouped_tiered_price.rbs +46 -13
  641. data/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +78 -13
  642. data/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +32 -13
  643. data/sig/orb/models/new_subscription_matrix_price.rbs +5 -9
  644. data/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +5 -9
  645. data/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +54 -13
  646. data/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +51 -13
  647. data/sig/orb/models/{new_subscription_bps_price.rbs → new_subscription_minimum_composite_price.rbs} +40 -30
  648. data/sig/orb/models/new_subscription_package_price.rbs +5 -9
  649. data/sig/orb/models/new_subscription_package_with_allocation_price.rbs +28 -9
  650. data/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +79 -9
  651. data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +76 -11
  652. data/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +39 -9
  653. data/sig/orb/models/new_subscription_tiered_package_price.rbs +39 -9
  654. data/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +50 -9
  655. data/sig/orb/models/new_subscription_tiered_price.rbs +5 -9
  656. data/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +63 -9
  657. data/sig/orb/models/new_subscription_unit_price.rbs +5 -9
  658. data/sig/orb/models/new_subscription_unit_with_percent_price.rbs +17 -9
  659. data/sig/orb/models/new_subscription_unit_with_proration_price.rbs +15 -9
  660. data/sig/orb/models/new_tax_jar_configuration.rbs +8 -3
  661. data/sig/orb/models/new_usage_discount.rbs +57 -4
  662. data/sig/orb/models/percentage_discount.rbs +57 -4
  663. data/sig/orb/models/percentage_discount_interval.rbs +57 -4
  664. data/sig/orb/models/plan_create_params.rbs +973 -11
  665. data/sig/orb/models/plan_phase_amount_discount_adjustment.rbs +57 -4
  666. data/sig/orb/models/plan_phase_maximum_adjustment.rbs +57 -4
  667. data/sig/orb/models/plan_phase_minimum_adjustment.rbs +57 -4
  668. data/sig/orb/models/plan_phase_percentage_discount_adjustment.rbs +57 -4
  669. data/sig/orb/models/plan_phase_usage_discount_adjustment.rbs +57 -4
  670. data/sig/orb/models/plans/migration_cancel_params.rbs +25 -0
  671. data/sig/orb/models/plans/migration_cancel_response.rbs +62 -0
  672. data/sig/orb/models/plans/migration_list_params.rbs +32 -0
  673. data/sig/orb/models/plans/migration_list_response.rbs +62 -0
  674. data/sig/orb/models/plans/migration_retrieve_params.rbs +25 -0
  675. data/sig/orb/models/plans/migration_retrieve_response.rbs +62 -0
  676. data/sig/orb/models/price.rbs +4982 -934
  677. data/sig/orb/models/price_create_params.rbs +1029 -104
  678. data/sig/orb/models/price_evaluate_multiple_params.rbs +789 -10
  679. data/sig/orb/models/price_evaluate_params.rbs +6 -1
  680. data/sig/orb/models/price_evaluate_preview_events_params.rbs +789 -10
  681. data/sig/orb/models/price_interval.rbs +13 -3
  682. data/sig/orb/models/subscription_change_apply_params.rbs +24 -1
  683. data/sig/orb/models/subscription_change_apply_response.rbs +28 -3
  684. data/sig/orb/models/subscription_change_cancel_response.rbs +28 -3
  685. data/sig/orb/models/subscription_change_list_params.rbs +60 -0
  686. data/sig/orb/models/subscription_change_list_response.rbs +57 -0
  687. data/sig/orb/models/subscription_change_retrieve_response.rbs +28 -3
  688. data/sig/orb/models/subscription_create_params.rbs +1964 -30
  689. data/sig/orb/models/subscription_list_params.rbs +10 -0
  690. data/sig/orb/models/subscription_price_intervals_params.rbs +827 -23
  691. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1964 -30
  692. data/sig/orb/models/tier_sub_line_item.rbs +27 -4
  693. data/sig/orb/models/tiered_config.rbs +7 -3
  694. data/sig/orb/models/trial_discount.rbs +57 -4
  695. data/sig/orb/models/unit_config.rbs +7 -3
  696. data/sig/orb/models/usage_discount.rbs +57 -4
  697. data/sig/orb/models/usage_discount_interval.rbs +57 -4
  698. data/sig/orb/models.rbs +38 -36
  699. data/sig/orb/resources/credit_blocks.rbs +19 -0
  700. data/sig/orb/resources/customers/credits/ledger.rbs +2 -0
  701. data/sig/orb/resources/customers/credits.rbs +8 -0
  702. data/sig/orb/resources/customers.rbs +6 -0
  703. data/sig/orb/resources/invoice_line_items.rbs +2 -1
  704. data/sig/orb/resources/invoices.rbs +41 -0
  705. data/sig/orb/resources/license_types.rbs +24 -0
  706. data/sig/orb/resources/licenses/external_licenses.rbs +21 -0
  707. data/sig/orb/resources/licenses/usage.rbs +30 -0
  708. data/sig/orb/resources/licenses.rbs +48 -0
  709. data/sig/orb/resources/plans/migrations.rbs +28 -0
  710. data/sig/orb/resources/plans.rbs +2 -0
  711. data/sig/orb/resources/prices.rbs +29 -24
  712. data/sig/orb/resources/subscription_changes.rbs +13 -0
  713. data/sig/orb/resources/subscriptions.rbs +3 -0
  714. metadata +163 -56
  715. data/lib/orb/models/bps_config.rb +0 -24
  716. data/lib/orb/models/bps_tier.rb +0 -40
  717. data/lib/orb/models/bulk_bps_config.rb +0 -20
  718. data/lib/orb/models/bulk_bps_tier.rb +0 -32
  719. data/lib/orb/models/new_floating_bulk_bps_price.rb +0 -197
  720. data/lib/orb/models/new_floating_tiered_bps_price.rb +0 -197
  721. data/lib/orb/models/new_plan_bps_price.rb +0 -205
  722. data/lib/orb/models/new_plan_tier_with_proration_price.rb +0 -207
  723. data/lib/orb/models/new_plan_tiered_bps_price.rb +0 -207
  724. data/lib/orb/models/new_subscription_bps_price.rb +0 -207
  725. data/lib/orb/models/new_subscription_tier_with_proration_price.rb +0 -207
  726. data/lib/orb/models/new_subscription_tiered_bps_price.rb +0 -207
  727. data/lib/orb/models/tier_config.rb +0 -27
  728. data/lib/orb/models/tiered_bps_config.rb +0 -20
  729. data/lib/orb/models/transform_price_filter.rb +0 -61
  730. data/rbi/orb/models/bps_config.rbi +0 -36
  731. data/rbi/orb/models/bps_tier.rbi +0 -58
  732. data/rbi/orb/models/bulk_bps_config.rbi +0 -31
  733. data/rbi/orb/models/bulk_bps_tier.rbi +0 -50
  734. data/rbi/orb/models/new_floating_bps_price.rbi +0 -294
  735. data/rbi/orb/models/new_floating_bulk_bps_price.rbi +0 -309
  736. data/rbi/orb/models/new_plan_bps_price.rbi +0 -304
  737. data/rbi/orb/models/new_plan_bulk_bps_price.rbi +0 -307
  738. data/rbi/orb/models/new_plan_tier_with_proration_price.rbi +0 -337
  739. data/rbi/orb/models/new_plan_tiered_bps_price.rbi +0 -314
  740. data/rbi/orb/models/new_subscription_bps_price.rbi +0 -317
  741. data/rbi/orb/models/new_subscription_bulk_bps_price.rbi +0 -338
  742. data/rbi/orb/models/tier_config.rbi +0 -40
  743. data/rbi/orb/models/tiered_bps_config.rbi +0 -29
  744. data/rbi/orb/models/transform_price_filter.rbi +0 -106
  745. data/sig/orb/models/bps_config.rbs +0 -15
  746. data/sig/orb/models/bps_tier.rbs +0 -35
  747. data/sig/orb/models/bulk_bps_config.rbs +0 -13
  748. data/sig/orb/models/bulk_bps_tier.rbs +0 -26
  749. data/sig/orb/models/new_floating_bps_price.rbs +0 -135
  750. data/sig/orb/models/new_floating_tiered_bps_price.rbs +0 -135
  751. data/sig/orb/models/new_plan_bps_price.rbs +0 -140
  752. data/sig/orb/models/new_plan_bulk_bps_price.rbs +0 -140
  753. data/sig/orb/models/new_plan_tier_with_proration_price.rbs +0 -140
  754. data/sig/orb/models/new_subscription_bulk_bps_price.rbs +0 -140
  755. data/sig/orb/models/new_subscription_tier_with_proration_price.rbs +0 -140
  756. data/sig/orb/models/new_subscription_tiered_bps_price.rbs +0 -140
  757. data/sig/orb/models/tier_config.rbs +0 -26
  758. data/sig/orb/models/tiered_bps_config.rbs +0 -13
  759. data/sig/orb/models/transform_price_filter.rbs +0 -56
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c21aa9aa90d14aae4b1217351fcc1965c62bd62914a28567d22dba99767ecbf0
4
- data.tar.gz: c5875edf3c46feb5108b8ecfe4e6fda56321e7f5b0950b8c1ca24ae3c05be6f8
3
+ metadata.gz: 5c7cdd5d38f2aa6b93c7100f54d7867b638d76be4a8737ea73c1a2c4973b9340
4
+ data.tar.gz: 5e94a570bc66d4ebc9b9be79806626b3dc12ab835ee19c7efe78ac7c2b89224a
5
5
  SHA512:
6
- metadata.gz: 29aa4fd5af33498cbcbcc7f46436b2e29ecb1692466571a01c28c2cc80bc103dfe7147d50868ede1c8d238d25c1b18662131a1103bf77fd8bfadc37fe7896a7d
7
- data.tar.gz: 81e835602384198d7bba9aa834edcd98fc8753b026b15873f065c104ef5bc0db2fb98f3e03fa605751dc354f27bd876b3e60c704cee877eff7d3be16d00db77c
6
+ metadata.gz: 8f9921baba3f8d5438b4aa0bbcf0d54ddd4b52b9495f5318e81970535069a06237e8f6350129784166700bd37ba3b33b7421ab5d3d44e8fd3735d244a9fe8cd0
7
+ data.tar.gz: 715cbc4a16163338a16725d67de9915e144b9877209f6ceb86caead7047f9610c7781a851ef8e8123068536ad7090a05aa8240c4451ebe6e5f487cf63f42a076
data/CHANGELOG.md CHANGED
@@ -1,5 +1,128 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.13.0 (2026-03-03)
4
+
5
+ Full Changelog: [v1.12.0...v1.13.0](https://github.com/orbcorp/orb-ruby/compare/v1.12.0...v1.13.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([c203926](https://github.com/orbcorp/orb-ruby/commit/c203926582b3237293d3078ada79bf3d221071d7))
10
+ * **api:** api update ([fd4f82d](https://github.com/orbcorp/orb-ruby/commit/fd4f82dd2f04f36cd49a7413fdfaa5e1189f22c2))
11
+ * **api:** api update ([a703c63](https://github.com/orbcorp/orb-ruby/commit/a703c638264d4dd7761a3534562f47a86b8da288))
12
+ * **api:** api update ([49c2213](https://github.com/orbcorp/orb-ruby/commit/49c22131d40a8e0e050f894be9ff48d5958301aa))
13
+ * **api:** api update ([357d2d4](https://github.com/orbcorp/orb-ruby/commit/357d2d4e2758c92578d1c7af1e26f1a1779738b0))
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **client:** serialize query parameters properly ([003ab4e](https://github.com/orbcorp/orb-ruby/commit/003ab4e466176c051711b7e89e1e40be5de6a664))
19
+ * properly mock time in ruby ci tests ([c8c588e](https://github.com/orbcorp/orb-ruby/commit/c8c588eb8bd5383d1875fef102cd7de66d6dff71))
20
+
21
+
22
+ ### Chores
23
+
24
+ * **ci:** add build step ([b57c8a3](https://github.com/orbcorp/orb-ruby/commit/b57c8a3f52e22c5c67f3842357747437d12f56d7))
25
+ * **docs:** add missing descriptions ([174bbeb](https://github.com/orbcorp/orb-ruby/commit/174bbebe6ed10a5c2c079232299b48b4269e470c))
26
+ * update mock server docs ([4b838cf](https://github.com/orbcorp/orb-ruby/commit/4b838cf2bc89666bea9767ae25e66868d38bbeef))
27
+
28
+ ## 1.12.0 (2026-02-12)
29
+
30
+ Full Changelog: [v1.11.2...v1.12.0](https://github.com/orbcorp/orb-ruby/compare/v1.11.2...v1.12.0)
31
+
32
+ ### ⚠ BREAKING CHANGES
33
+
34
+ * **api:** define shared model ConversionRateConfig
35
+
36
+ ### Features
37
+
38
+ * **api:** api update ([25dea19](https://github.com/orbcorp/orb-ruby/commit/25dea196cdd20a1099d54e7f7872037cc76de888))
39
+ * **api:** api update ([065b4c0](https://github.com/orbcorp/orb-ruby/commit/065b4c072106c25518386f10483230ce3b8369bf))
40
+ * **api:** api update ([1cae097](https://github.com/orbcorp/orb-ruby/commit/1cae0970ef281a06ac1004bae27c2870d4015834))
41
+ * **api:** api update ([20be312](https://github.com/orbcorp/orb-ruby/commit/20be31255b3b157e64bcee41c530767ebae7ae46))
42
+ * **api:** api update ([82a95e1](https://github.com/orbcorp/orb-ruby/commit/82a95e16b9a27835527f87601e8017029dbb6adf))
43
+ * **api:** api update ([b28aaa6](https://github.com/orbcorp/orb-ruby/commit/b28aaa6a7b47420b5006876f407e81da69da2960))
44
+ * **api:** api update ([99c34e5](https://github.com/orbcorp/orb-ruby/commit/99c34e5534e553bb0d1371029ebb187a4996d8a0))
45
+ * **api:** api update ([06f2f3a](https://github.com/orbcorp/orb-ruby/commit/06f2f3a630bebb897c6d8179d26b874d57aa5170))
46
+ * **api:** api update ([becbbfb](https://github.com/orbcorp/orb-ruby/commit/becbbfbda376e7262edc85e8b62033c900802aa3))
47
+ * **api:** api update ([b6cd2e4](https://github.com/orbcorp/orb-ruby/commit/b6cd2e48e6f93bd9c35a03370bf2bcaec81dfe40))
48
+ * **api:** api update ([87a0726](https://github.com/orbcorp/orb-ruby/commit/87a07260f66116747a5e9fc1fef8b04e2ed2ce73))
49
+ * **api:** api update ([be086a4](https://github.com/orbcorp/orb-ruby/commit/be086a41778e92515daa377fd87f6f0abfca72ae))
50
+ * **api:** api update ([9f52897](https://github.com/orbcorp/orb-ruby/commit/9f528979375caa801a1cf91f8bf5d3918a09c4ef))
51
+ * **api:** api update ([98aaf7c](https://github.com/orbcorp/orb-ruby/commit/98aaf7c01983329fe7900895b91f79192b38e15e))
52
+ * **api:** api update ([921d3c6](https://github.com/orbcorp/orb-ruby/commit/921d3c6a87d758ce6a1cc3fcfd7f4b81e0482d86))
53
+ * **api:** api update ([88e3262](https://github.com/orbcorp/orb-ruby/commit/88e32624c94e7de29738f086c90e41b07dcdd760))
54
+ * **api:** api update ([4de7f17](https://github.com/orbcorp/orb-ruby/commit/4de7f17ac1c5fe9b440348e06529528ef41a317e))
55
+ * **api:** api update ([6ada340](https://github.com/orbcorp/orb-ruby/commit/6ada3406fbcb73e97da781bffaa5c0dcc81d3ad1))
56
+ * **api:** api update ([455c9c1](https://github.com/orbcorp/orb-ruby/commit/455c9c18b77ee41a6b9c27fc791cc622553b83f8))
57
+ * **api:** api update ([024cfe9](https://github.com/orbcorp/orb-ruby/commit/024cfe9ce8ec66066224003fd8476cde441dfcba))
58
+ * **api:** api update ([d677c86](https://github.com/orbcorp/orb-ruby/commit/d677c8652f13f00ab40e63799223f64807d4d624))
59
+ * **api:** api update ([97803ff](https://github.com/orbcorp/orb-ruby/commit/97803ffbb43d1730ebb2f23386b241a3e9f99ee4))
60
+ * **api:** api update ([e883731](https://github.com/orbcorp/orb-ruby/commit/e8837312b28020f32d984bc83003be7c5d0bbe58))
61
+ * **api:** api update ([c82723f](https://github.com/orbcorp/orb-ruby/commit/c82723f6b075de5b8b806f4523437c31bc3f4d36))
62
+ * **api:** api update ([b3fa16d](https://github.com/orbcorp/orb-ruby/commit/b3fa16d2ae0fa06ed8c04f7c10634d240152e8b5))
63
+ * **api:** api update ([863a72d](https://github.com/orbcorp/orb-ruby/commit/863a72d5bc1ed22405334019d51e987daadedff4))
64
+ * **api:** api update ([6df80f0](https://github.com/orbcorp/orb-ruby/commit/6df80f039a079ed7c9c15201e6693ac88e64ee12))
65
+ * **api:** api update ([34d9e85](https://github.com/orbcorp/orb-ruby/commit/34d9e857f7863e718aaa844dcf0c299e234e9ab7))
66
+ * **api:** api update ([21271b0](https://github.com/orbcorp/orb-ruby/commit/21271b04f2b4b3af856b02dd156542770683f6d8))
67
+ * **api:** api update ([182e255](https://github.com/orbcorp/orb-ruby/commit/182e255a2ed9a39f774afb700320ff762da40e6d))
68
+ * **api:** api update ([87ab4bb](https://github.com/orbcorp/orb-ruby/commit/87ab4bb08910a9c6e5a7995ca307e8a80c737c39))
69
+ * **api:** api update ([dbeafc7](https://github.com/orbcorp/orb-ruby/commit/dbeafc76cc391a10d8cb21f5db2ef8bb825aee1c))
70
+ * **api:** api update ([f8b2792](https://github.com/orbcorp/orb-ruby/commit/f8b27927f181b45c2196de229a35b5eae6122f46))
71
+ * **api:** api update ([f8c9f2c](https://github.com/orbcorp/orb-ruby/commit/f8c9f2c57e94d09130d68b080b0adc5ae38bbd30))
72
+ * **api:** api update ([d1fc414](https://github.com/orbcorp/orb-ruby/commit/d1fc414cb976afe6bb19dc284dceb7ed7bfa38c2))
73
+ * **api:** api update ([83a6ffd](https://github.com/orbcorp/orb-ruby/commit/83a6ffda9613b6571029f01235d673d179294c94))
74
+ * **api:** api update ([343fa0b](https://github.com/orbcorp/orb-ruby/commit/343fa0b8a9a724b73f8abe5e9de34795f232e065))
75
+ * **api:** api update ([b89ea6d](https://github.com/orbcorp/orb-ruby/commit/b89ea6d10a12909e77c76617d11068ade5cf6fc8))
76
+ * **api:** api update ([be80854](https://github.com/orbcorp/orb-ruby/commit/be80854305b7dd24350c0a955de536d37233bc35))
77
+ * **api:** api update ([8e3ac4b](https://github.com/orbcorp/orb-ruby/commit/8e3ac4b248b2aca6ac6d5360f34be8521b05bc83))
78
+ * **api:** api update ([246283d](https://github.com/orbcorp/orb-ruby/commit/246283dc41fd3d9b128ac44ccd8550ae7b987578))
79
+ * **api:** api update ([bc6c8f9](https://github.com/orbcorp/orb-ruby/commit/bc6c8f9914220783adeb80fa6a9eb87d009fa58d))
80
+ * **api:** api update ([394af82](https://github.com/orbcorp/orb-ruby/commit/394af826a5ba3cd462447304c8ec659038e67617))
81
+ * **api:** define shared model ConversionRateConfig ([aa669fe](https://github.com/orbcorp/orb-ruby/commit/aa669fef9079dbac856be83d56cabd826e3c47c0))
82
+ * **api:** manual updates ([85ded24](https://github.com/orbcorp/orb-ruby/commit/85ded24125953bfdaac7a5f862633929c07b0546))
83
+ * **api:** manual updates ([45682e2](https://github.com/orbcorp/orb-ruby/commit/45682e2e4835f5575b9efc9c5d0bd307f5610baa))
84
+ * expose response headers for both streams and errors ([cafba93](https://github.com/orbcorp/orb-ruby/commit/cafba93f8798a84815c9c9d1183327e498cb6b95))
85
+ * extract minimum composite to type ([3bd8a47](https://github.com/orbcorp/orb-ruby/commit/3bd8a47a7c0601ccb9c43b472131562319a59e51))
86
+ * handle thread interrupts in the core HTTP client ([bd23d78](https://github.com/orbcorp/orb-ruby/commit/bd23d789ed205441ea6f6d76324278867eaf59eb))
87
+
88
+
89
+ ### Bug Fixes
90
+
91
+ * absolutely qualified uris should always override the default ([22b2593](https://github.com/orbcorp/orb-ruby/commit/22b25937df7cf77dbf1e1a9836e5cd822087d338))
92
+ * always send `filename=...` for multipart requests where a file is expected ([aefe58f](https://github.com/orbcorp/orb-ruby/commit/aefe58f92b1296aa30172ce8206f84723a3a326c))
93
+ * better thread safety via early initializing SSL store during HTTP client creation ([89f6a24](https://github.com/orbcorp/orb-ruby/commit/89f6a24e6ed1147c45a583c91ac368932cf37ddb))
94
+ * calling `break` out of streams should be instantaneous ([c7f51d6](https://github.com/orbcorp/orb-ruby/commit/c7f51d6d47678f33015fdffc78e6cff826a90a2c))
95
+ * **client:** always add content-length to post body, even when empty ([59f4f8b](https://github.com/orbcorp/orb-ruby/commit/59f4f8b2416b68c556f75e8f4e89d647cd93a1fe))
96
+ * **client:** loosen json header parsing ([60bf3f3](https://github.com/orbcorp/orb-ruby/commit/60bf3f3bfda9caa36269e75ccb5d5df6c4811bd0))
97
+ * coroutine leaks from connection pool ([a4faf55](https://github.com/orbcorp/orb-ruby/commit/a4faf55a381bcdaae01f0a22cd8922038af38f69))
98
+ * **internal:** use null byte as file separator in the fast formatting script ([58f092f](https://github.com/orbcorp/orb-ruby/commit/58f092f32214ae8deb17db5e002f10fafd60378e))
99
+ * issue where json.parse errors when receiving HTTP 204 with nobody ([ecbf9f1](https://github.com/orbcorp/orb-ruby/commit/ecbf9f18b8229cb9d9c729a346a5f00dc1be2427))
100
+ * shorten multipart boundary sep to less than RFC specificed max length ([984b6ad](https://github.com/orbcorp/orb-ruby/commit/984b6ad403302ab97275136e145dce322ce82e9b))
101
+ * should not reuse buffers for `IO.copy_stream` interop ([11db4b2](https://github.com/orbcorp/orb-ruby/commit/11db4b2e6edf33581a21c6eacfbdaf347af418ea))
102
+
103
+
104
+ ### Performance Improvements
105
+
106
+ * faster code formatting ([9538971](https://github.com/orbcorp/orb-ruby/commit/95389713d7c3b97ec3cf0963b86211d5fba72fe4))
107
+
108
+
109
+ ### Chores
110
+
111
+ * allow fast-format to use bsd sed as well ([6566897](https://github.com/orbcorp/orb-ruby/commit/6566897b0797bdbad69e21ed05d97f4ce1509f07))
112
+ * bump dependency version and update sorbet types ([26ac9ce](https://github.com/orbcorp/orb-ruby/commit/26ac9ce1b4ae0315417ece34fc02b63b569db0c6))
113
+ * **client:** send user-agent header ([ed62aa3](https://github.com/orbcorp/orb-ruby/commit/ed62aa37562af4ddca14635d87bc44fe049df745))
114
+ * do not install brew dependencies in ./scripts/bootstrap by default ([c7d1331](https://github.com/orbcorp/orb-ruby/commit/c7d13317194914b406f35048eb198c715e3645da))
115
+ * **docs:** remove www prefix ([fd0b56a](https://github.com/orbcorp/orb-ruby/commit/fd0b56a55df0ae699a00fa168c3cf1524bff5a23))
116
+ * explicitly require "base64" gem ([2dc59bc](https://github.com/orbcorp/orb-ruby/commit/2dc59bc83506fbb02785f784023a217e0472513e))
117
+ * fix typo in descriptions ([ebb72da](https://github.com/orbcorp/orb-ruby/commit/ebb72daa8a4a736d1c4a68c44bf346d3fc93c45d))
118
+ * ignore linter error for tests having large collections ([717bc2e](https://github.com/orbcorp/orb-ruby/commit/717bc2e5e09f3c6cea641189a2a9eb516dcbf0ec))
119
+ * **internal:** codegen related update ([fced85a](https://github.com/orbcorp/orb-ruby/commit/fced85ad0524759c290f1a5afaad4e7baaa1525e))
120
+ * **internal:** codegen related update ([01a2d5d](https://github.com/orbcorp/orb-ruby/commit/01a2d5dbfe250eab0597658dd7156ba234bf6424))
121
+ * **internal:** codegen related update ([88e7ca5](https://github.com/orbcorp/orb-ruby/commit/88e7ca54ee9a3aeed69433c775638765f2838514))
122
+ * **internal:** codegen related update ([d7dd0b8](https://github.com/orbcorp/orb-ruby/commit/d7dd0b8380fd9ec066388c3327ed16fdba9f7fa6))
123
+ * **internal:** update `actions/checkout` version ([03524b6](https://github.com/orbcorp/orb-ruby/commit/03524b6b0a9252b46637bde590b46a98f67ec497))
124
+ * move `cgi` into dependencies for ruby 4 ([09ae2b0](https://github.com/orbcorp/orb-ruby/commit/09ae2b03acf7b359b387b682250cd412e0834057))
125
+
3
126
  ## 1.11.2 (2025-08-29)
4
127
 
5
128
  Full Changelog: [v1.11.1...v1.11.2](https://github.com/orbcorp/orb-ruby/compare/v1.11.1...v1.11.2)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "orb-billing", "~> 1.11.2"
18
+ gem "orb-billing", "~> 1.13.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
data/lib/orb/client.rb CHANGED
@@ -21,42 +21,109 @@ module Orb
21
21
  # @return [Orb::Resources::TopLevel]
22
22
  attr_reader :top_level
23
23
 
24
+ # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
25
+ # subscribed to by a customer. Plans define the billing behavior of the
26
+ # subscription. You can see more about how to configure prices in the
27
+ # [Price resource](/reference/price).
24
28
  # @return [Orb::Resources::Beta]
25
29
  attr_reader :beta
26
30
 
31
+ # A coupon represents a reusable discount configuration that can be applied either
32
+ # as a fixed or percentage amount to an invoice or subscription. Coupons are
33
+ # activated using a redemption code, which applies the discount to a subscription
34
+ # or invoice. The duration of a coupon determines how long it remains available
35
+ # for use by end users.
27
36
  # @return [Orb::Resources::Coupons]
28
37
  attr_reader :coupons
29
38
 
39
+ # The [Credit Note](/invoicing/credit-notes) resource represents a credit that has
40
+ # been applied to a particular invoice.
30
41
  # @return [Orb::Resources::CreditNotes]
31
42
  attr_reader :credit_notes
32
43
 
44
+ # A customer is a buyer of your products, and the other party to the billing
45
+ # relationship.
46
+ #
47
+ # In Orb, customers are assigned system generated identifiers automatically, but
48
+ # it's often desirable to have these match existing identifiers in your system. To
49
+ # avoid having to denormalize Orb ID information, you can pass in an
50
+ # `external_customer_id` with your own identifier. See
51
+ # [Customer ID Aliases](/events-and-metrics/customer-aliases) for further
52
+ # information about how these aliases work in Orb.
53
+ #
54
+ # In addition to having an identifier in your system, a customer may exist in a
55
+ # payment provider solution like Stripe. Use the `payment_provider_id` and the
56
+ # `payment_provider` enum field to express this mapping.
57
+ #
58
+ # A customer also has a timezone (from the standard
59
+ # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
60
+ # your account's timezone. See [Timezone localization](/essentials/timezones) for
61
+ # information on what this timezone parameter influences within Orb.
33
62
  # @return [Orb::Resources::Customers]
34
63
  attr_reader :customers
35
64
 
65
+ # The [Event](/core-concepts#event) resource represents a usage event that has
66
+ # been created for a customer. Events are the core of Orb's usage-based billing
67
+ # model, and are used to calculate the usage charges for a given billing period.
36
68
  # @return [Orb::Resources::Events]
37
69
  attr_reader :events
38
70
 
71
+ # An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity,
72
+ # representing the request for payment for a single subscription. This includes a
73
+ # set of line items, which correspond to prices in the subscription's plan and can
74
+ # represent fixed recurring fees or usage-based fees. They are generated at the
75
+ # end of a billing period, or as the result of an action, such as a cancellation.
39
76
  # @return [Orb::Resources::InvoiceLineItems]
40
77
  attr_reader :invoice_line_items
41
78
 
79
+ # An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity,
80
+ # representing the request for payment for a single subscription. This includes a
81
+ # set of line items, which correspond to prices in the subscription's plan and can
82
+ # represent fixed recurring fees or usage-based fees. They are generated at the
83
+ # end of a billing period, or as the result of an action, such as a cancellation.
42
84
  # @return [Orb::Resources::Invoices]
43
85
  attr_reader :invoices
44
86
 
87
+ # The Item resource represents a sellable product or good. Items are associated
88
+ # with all line items, billable metrics, and prices and are used for defining
89
+ # external sync behavior for invoices and tax calculation purposes.
45
90
  # @return [Orb::Resources::Items]
46
91
  attr_reader :items
47
92
 
93
+ # The Metric resource represents a calculation of a quantity based on events.
94
+ # Metrics are defined by the query that transforms raw usage events into
95
+ # meaningful values for your customers.
48
96
  # @return [Orb::Resources::Metrics]
49
97
  attr_reader :metrics
50
98
 
99
+ # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
100
+ # subscribed to by a customer. Plans define the billing behavior of the
101
+ # subscription. You can see more about how to configure prices in the
102
+ # [Price resource](/reference/price).
51
103
  # @return [Orb::Resources::Plans]
52
104
  attr_reader :plans
53
105
 
106
+ # The Price resource represents a price that can be billed on a subscription,
107
+ # resulting in a charge on an invoice in the form of an invoice line item. Prices
108
+ # take a quantity and determine an amount to bill.
109
+ #
110
+ # Orb supports a few different pricing models out of the box. Each of these models
111
+ # is serialized differently in a given Price object. The model_type field
112
+ # determines the key for the configuration object that is present.
113
+ #
114
+ # For more on the types of prices, see
115
+ # [the core concepts documentation](/core-concepts#plan-and-price)
54
116
  # @return [Orb::Resources::Prices]
55
117
  attr_reader :prices
56
118
 
57
119
  # @return [Orb::Resources::Subscriptions]
58
120
  attr_reader :subscriptions
59
121
 
122
+ # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
123
+ # usage, or credit balance and trigger webhooks when a threshold is exceeded.
124
+ #
125
+ # Alerts created through the API can be scoped to either customers or
126
+ # subscriptions.
60
127
  # @return [Orb::Resources::Alerts]
61
128
  attr_reader :alerts
62
129
 
@@ -66,6 +133,20 @@ module Orb
66
133
  # @return [Orb::Resources::SubscriptionChanges]
67
134
  attr_reader :subscription_changes
68
135
 
136
+ # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid
137
+ # credits within Orb.
138
+ # @return [Orb::Resources::CreditBlocks]
139
+ attr_reader :credit_blocks
140
+
141
+ # The LicenseType resource represents a type of license that can be assigned to
142
+ # users. License types are used during billing by grouping metrics on the
143
+ # configured grouping key.
144
+ # @return [Orb::Resources::LicenseTypes]
145
+ attr_reader :license_types
146
+
147
+ # @return [Orb::Resources::Licenses]
148
+ attr_reader :licenses
149
+
69
150
  # @api private
70
151
  #
71
152
  # @return [Hash{String=>String}]
@@ -133,6 +214,9 @@ module Orb
133
214
  @alerts = Orb::Resources::Alerts.new(client: self)
134
215
  @dimensional_price_groups = Orb::Resources::DimensionalPriceGroups.new(client: self)
135
216
  @subscription_changes = Orb::Resources::SubscriptionChanges.new(client: self)
217
+ @credit_blocks = Orb::Resources::CreditBlocks.new(client: self)
218
+ @license_types = Orb::Resources::LicenseTypes.new(client: self)
219
+ @licenses = Orb::Resources::Licenses.new(client: self)
136
220
  end
137
221
  end
138
222
  end
data/lib/orb/errors.rb CHANGED
@@ -40,6 +40,9 @@ module Orb
40
40
  # @return [Integer, nil]
41
41
  attr_accessor :status
42
42
 
43
+ # @return [Hash{String=>String}, nil]
44
+ attr_accessor :headers
45
+
43
46
  # @return [Object, nil]
44
47
  attr_accessor :body
45
48
 
@@ -47,13 +50,15 @@ module Orb
47
50
  #
48
51
  # @param url [URI::Generic]
49
52
  # @param status [Integer, nil]
53
+ # @param headers [Hash{String=>String}, nil]
50
54
  # @param body [Object, nil]
51
55
  # @param request [nil]
52
56
  # @param response [nil]
53
57
  # @param message [String, nil]
54
- def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil)
58
+ def initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: nil)
55
59
  @url = url
56
60
  @status = status
61
+ @headers = headers
57
62
  @body = body
58
63
  @request = request
59
64
  @response = response
@@ -74,6 +79,7 @@ module Orb
74
79
  #
75
80
  # @param url [URI::Generic]
76
81
  # @param status [nil]
82
+ # @param headers [Hash{String=>String}, nil]
77
83
  # @param body [nil]
78
84
  # @param request [nil]
79
85
  # @param response [nil]
@@ -81,6 +87,7 @@ module Orb
81
87
  def initialize(
82
88
  url:,
83
89
  status: nil,
90
+ headers: nil,
84
91
  body: nil,
85
92
  request: nil,
86
93
  response: nil,
@@ -95,6 +102,7 @@ module Orb
95
102
  #
96
103
  # @param url [URI::Generic]
97
104
  # @param status [nil]
105
+ # @param headers [Hash{String=>String}, nil]
98
106
  # @param body [nil]
99
107
  # @param request [nil]
100
108
  # @param response [nil]
@@ -102,6 +110,7 @@ module Orb
102
110
  def initialize(
103
111
  url:,
104
112
  status: nil,
113
+ headers: nil,
105
114
  body: nil,
106
115
  request: nil,
107
116
  response: nil,
@@ -116,22 +125,25 @@ module Orb
116
125
  #
117
126
  # @param url [URI::Generic]
118
127
  # @param status [Integer]
128
+ # @param headers [Hash{String=>String}, nil]
119
129
  # @param body [Object, nil]
120
130
  # @param request [nil]
121
131
  # @param response [nil]
122
132
  # @param message [String, nil]
123
133
  #
124
134
  # @return [self]
125
- def self.for(url:, status:, body:, request:, response:, message: nil)
135
+ def self.for(url:, status:, headers:, body:, request:, response:, message: nil)
126
136
  key = Orb::Internal::Util.dig(body, :type)
127
- kwargs = {
128
- url: url,
129
- status: status,
130
- body: body,
131
- request: request,
132
- response: response,
133
- message: message
134
- }
137
+ kwargs =
138
+ {
139
+ url: url,
140
+ status: status,
141
+ headers: headers,
142
+ body: body,
143
+ request: request,
144
+ response: response,
145
+ message: message
146
+ }
135
147
 
136
148
  case [status, key]
137
149
  in [400, Orb::Errors::ConstraintViolation::TYPE]
@@ -187,15 +199,17 @@ module Orb
187
199
  #
188
200
  # @param url [URI::Generic]
189
201
  # @param status [Integer]
202
+ # @param headers [Hash{String=>String}, nil]
190
203
  # @param body [Object, nil]
191
204
  # @param request [nil]
192
205
  # @param response [nil]
193
206
  # @param message [String, nil]
194
- def initialize(url:, status:, body:, request:, response:, message: nil)
207
+ def initialize(url:, status:, headers:, body:, request:, response:, message: nil)
195
208
  message ||= {url: url.to_s, status: status, body: body}
196
209
  super(
197
210
  url: url,
198
211
  status: status,
212
+ headers: headers,
199
213
  body: body,
200
214
  request: request,
201
215
  response: response,
data/lib/orb/file_part.rb CHANGED
@@ -38,18 +38,21 @@ module Orb
38
38
  def to_yaml(*a) = read.to_yaml(*a)
39
39
 
40
40
  # @param content [Pathname, StringIO, IO, String]
41
- # @param filename [String, nil]
41
+ # @param filename [Pathname, String, nil]
42
42
  # @param content_type [String, nil]
43
43
  def initialize(content, filename: nil, content_type: nil)
44
- @content = content
44
+ @content_type = content_type
45
45
  @filename =
46
- case content
47
- in Pathname
48
- filename.nil? ? content.basename.to_path : ::File.basename(filename)
46
+ case [filename, (@content = content)]
47
+ in [String | Pathname, _]
48
+ ::File.basename(filename)
49
+ in [nil, Pathname]
50
+ content.basename.to_path
51
+ in [nil, IO]
52
+ content.to_path
49
53
  else
50
- filename.nil? ? nil : ::File.basename(filename)
54
+ filename
51
55
  end
52
- @content_type = content_type
53
56
  end
54
57
  end
55
58
  end
@@ -60,7 +60,7 @@ module Orb
60
60
  #
61
61
  # @param client [Orb::Internal::Transport::BaseClient]
62
62
  # @param req [Hash{Symbol=>Object}]
63
- # @param headers [Hash{String=>String}, Net::HTTPHeader]
63
+ # @param headers [Hash{String=>String}]
64
64
  # @param page_data [Hash{Symbol=>Object}]
65
65
  def initialize(client:, req:, headers:, page_data:)
66
66
  super
@@ -47,7 +47,7 @@ module Orb
47
47
  # @api private
48
48
  #
49
49
  # @param status [Integer]
50
- # @param headers [Hash{String=>String}, Net::HTTPHeader]
50
+ # @param headers [Hash{String=>String}]
51
51
  #
52
52
  # @return [Boolean]
53
53
  def should_retry?(status, headers:)
@@ -85,7 +85,7 @@ module Orb
85
85
  #
86
86
  # @param status [Integer]
87
87
  #
88
- # @param response_headers [Hash{String=>String}, Net::HTTPHeader]
88
+ # @param response_headers [Hash{String=>String}]
89
89
  #
90
90
  # @return [Hash{Symbol=>Object}]
91
91
  def follow_redirect(request, status:, response_headers:)
@@ -201,7 +201,8 @@ module Orb
201
201
  self.class::PLATFORM_HEADERS,
202
202
  {
203
203
  "accept" => "application/json",
204
- "content-type" => "application/json"
204
+ "content-type" => "application/json",
205
+ "user-agent" => user_agent
205
206
  },
206
207
  headers
207
208
  )
@@ -219,6 +220,11 @@ module Orb
219
220
  # @return [Hash{String=>String}]
220
221
  private def auth_headers = {}
221
222
 
223
+ # @api private
224
+ #
225
+ # @return [String]
226
+ private def user_agent = "#{self.class.name}/Ruby #{Orb::VERSION}"
227
+
222
228
  # @api private
223
229
  #
224
230
  # @return [String]
@@ -375,6 +381,7 @@ module Orb
375
381
  rescue Orb::Errors::APIConnectionError => e
376
382
  status = e
377
383
  end
384
+ headers = Orb::Internal::Util.normalized_headers(response&.each_header&.to_h)
378
385
 
379
386
  case status
380
387
  in ..299
@@ -387,7 +394,7 @@ module Orb
387
394
  in 300..399
388
395
  self.class.reap_connection!(status, stream: stream)
389
396
 
390
- request = self.class.follow_redirect(request, status: status, response_headers: response)
397
+ request = self.class.follow_redirect(request, status: status, response_headers: headers)
391
398
  send_request(
392
399
  request,
393
400
  redirect_count: redirect_count + 1,
@@ -396,9 +403,9 @@ module Orb
396
403
  )
397
404
  in Orb::Errors::APIConnectionError if retry_count >= max_retries
398
405
  raise status
399
- in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: response)
406
+ in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: headers)
400
407
  decoded = Kernel.then do
401
- Orb::Internal::Util.decode_content(response, stream: stream, suppress_error: true)
408
+ Orb::Internal::Util.decode_content(headers, stream: stream, suppress_error: true)
402
409
  ensure
403
410
  self.class.reap_connection!(status, stream: stream)
404
411
  end
@@ -406,6 +413,7 @@ module Orb
406
413
  raise Orb::Errors::APIStatusError.for(
407
414
  url: url,
408
415
  status: status,
416
+ headers: headers,
409
417
  body: decoded,
410
418
  request: nil,
411
419
  response: response
@@ -482,19 +490,21 @@ module Orb
482
490
  send_retry_header: send_retry_header
483
491
  )
484
492
 
485
- decoded = Orb::Internal::Util.decode_content(response, stream: stream)
493
+ headers = Orb::Internal::Util.normalized_headers(response.each_header.to_h)
494
+ decoded = Orb::Internal::Util.decode_content(headers, stream: stream)
486
495
  case req
487
496
  in {stream: Class => st}
488
497
  st.new(
489
498
  model: model,
490
499
  url: url,
491
500
  status: status,
501
+ headers: headers,
492
502
  response: response,
493
503
  unwrap: unwrap,
494
504
  stream: decoded
495
505
  )
496
506
  in {page: Class => page}
497
- page.new(client: self, req: req, headers: response, page_data: decoded)
507
+ page.new(client: self, req: req, headers: headers, page_data: decoded)
498
508
  else
499
509
  unwrapped = Orb::Internal::Util.dig(decoded, unwrap)
500
510
  Orb::Internal::Type::Converter.coerce(model, unwrapped)