orb-billing 1.26.0 → 1.28.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 (187) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +136 -46
  5. data/lib/orb/models/beta_create_plan_version_params.rb +136 -46
  6. data/lib/orb/models/matrix_config.rb +15 -1
  7. data/lib/orb/models/matrix_value.rb +11 -1
  8. data/lib/orb/models/matrix_with_allocation_config.rb +26 -2
  9. data/lib/orb/models/new_floating_bulk_price.rb +6 -2
  10. data/lib/orb/models/new_floating_bulk_with_proration_price.rb +6 -2
  11. data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +6 -2
  12. data/lib/orb/models/new_floating_grouped_allocation_price.rb +6 -2
  13. data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +6 -2
  14. data/lib/orb/models/new_floating_grouped_tiered_price.rb +6 -2
  15. data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +6 -2
  16. data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +6 -2
  17. data/lib/orb/models/new_floating_matrix_price.rb +6 -2
  18. data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +6 -2
  19. data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +6 -2
  20. data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +6 -2
  21. data/lib/orb/models/new_floating_minimum_composite_price.rb +6 -2
  22. data/lib/orb/models/new_floating_package_price.rb +6 -2
  23. data/lib/orb/models/new_floating_package_with_allocation_price.rb +6 -2
  24. data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +6 -2
  25. data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +6 -2
  26. data/lib/orb/models/new_floating_threshold_total_amount_price.rb +6 -2
  27. data/lib/orb/models/new_floating_tiered_package_price.rb +6 -2
  28. data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +6 -2
  29. data/lib/orb/models/new_floating_tiered_price.rb +6 -2
  30. data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +6 -2
  31. data/lib/orb/models/new_floating_tiered_with_proration_price.rb +6 -2
  32. data/lib/orb/models/new_floating_unit_price.rb +6 -2
  33. data/lib/orb/models/new_floating_unit_with_percent_price.rb +6 -2
  34. data/lib/orb/models/new_floating_unit_with_proration_price.rb +6 -2
  35. data/lib/orb/models/new_plan_bulk_price.rb +6 -2
  36. data/lib/orb/models/new_plan_bulk_with_proration_price.rb +6 -2
  37. data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +6 -2
  38. data/lib/orb/models/new_plan_grouped_allocation_price.rb +6 -2
  39. data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +6 -2
  40. data/lib/orb/models/new_plan_grouped_tiered_price.rb +6 -2
  41. data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +6 -2
  42. data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +6 -2
  43. data/lib/orb/models/new_plan_matrix_price.rb +6 -2
  44. data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +6 -2
  45. data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +6 -2
  46. data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +6 -2
  47. data/lib/orb/models/new_plan_minimum_composite_price.rb +6 -2
  48. data/lib/orb/models/new_plan_package_price.rb +6 -2
  49. data/lib/orb/models/new_plan_package_with_allocation_price.rb +6 -2
  50. data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +6 -2
  51. data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +6 -2
  52. data/lib/orb/models/new_plan_threshold_total_amount_price.rb +6 -2
  53. data/lib/orb/models/new_plan_tiered_package_price.rb +6 -2
  54. data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +6 -2
  55. data/lib/orb/models/new_plan_tiered_price.rb +6 -2
  56. data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +6 -2
  57. data/lib/orb/models/new_plan_unit_price.rb +6 -2
  58. data/lib/orb/models/new_plan_unit_with_percent_price.rb +6 -2
  59. data/lib/orb/models/new_plan_unit_with_proration_price.rb +6 -2
  60. data/lib/orb/models/new_subscription_bulk_price.rb +6 -2
  61. data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +6 -2
  62. data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +6 -2
  63. data/lib/orb/models/new_subscription_grouped_allocation_price.rb +6 -2
  64. data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +6 -2
  65. data/lib/orb/models/new_subscription_grouped_tiered_price.rb +6 -2
  66. data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +6 -2
  67. data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +6 -2
  68. data/lib/orb/models/new_subscription_matrix_price.rb +6 -2
  69. data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +6 -2
  70. data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +6 -2
  71. data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +6 -2
  72. data/lib/orb/models/new_subscription_minimum_composite_price.rb +6 -2
  73. data/lib/orb/models/new_subscription_package_price.rb +6 -2
  74. data/lib/orb/models/new_subscription_package_with_allocation_price.rb +6 -2
  75. data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +6 -2
  76. data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +6 -2
  77. data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +6 -2
  78. data/lib/orb/models/new_subscription_tiered_package_price.rb +6 -2
  79. data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +6 -2
  80. data/lib/orb/models/new_subscription_tiered_price.rb +6 -2
  81. data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +6 -2
  82. data/lib/orb/models/new_subscription_unit_price.rb +6 -2
  83. data/lib/orb/models/new_subscription_unit_with_percent_price.rb +6 -2
  84. data/lib/orb/models/new_subscription_unit_with_proration_price.rb +6 -2
  85. data/lib/orb/models/plan_create_params.rb +68 -23
  86. data/lib/orb/models/price_create_params.rb +54 -18
  87. data/lib/orb/models/price_evaluate_multiple_params.rb +54 -18
  88. data/lib/orb/models/price_evaluate_preview_events_params.rb +54 -18
  89. data/lib/orb/models/subscription_create_params.rb +120 -40
  90. data/lib/orb/models/subscription_price_intervals_params.rb +54 -18
  91. data/lib/orb/models/subscription_schedule_plan_change_params.rb +120 -40
  92. data/lib/orb/models/unit_config.rb +11 -1
  93. data/lib/orb/version.rb +1 -1
  94. data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +228 -48
  95. data/rbi/orb/models/beta_create_plan_version_params.rbi +228 -48
  96. data/rbi/orb/models/matrix_config.rbi +13 -3
  97. data/rbi/orb/models/matrix_value.rbi +14 -3
  98. data/rbi/orb/models/matrix_with_allocation_config.rbi +24 -6
  99. data/rbi/orb/models/new_floating_bulk_price.rbi +10 -2
  100. data/rbi/orb/models/new_floating_bulk_with_proration_price.rbi +10 -2
  101. data/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi +10 -2
  102. data/rbi/orb/models/new_floating_grouped_allocation_price.rbi +10 -2
  103. data/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi +10 -2
  104. data/rbi/orb/models/new_floating_grouped_tiered_price.rbi +10 -2
  105. data/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi +10 -2
  106. data/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi +10 -2
  107. data/rbi/orb/models/new_floating_matrix_price.rbi +10 -2
  108. data/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi +10 -2
  109. data/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi +10 -2
  110. data/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi +10 -2
  111. data/rbi/orb/models/new_floating_minimum_composite_price.rbi +10 -2
  112. data/rbi/orb/models/new_floating_package_price.rbi +10 -2
  113. data/rbi/orb/models/new_floating_package_with_allocation_price.rbi +10 -2
  114. data/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi +10 -2
  115. data/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi +10 -2
  116. data/rbi/orb/models/new_floating_threshold_total_amount_price.rbi +10 -2
  117. data/rbi/orb/models/new_floating_tiered_package_price.rbi +10 -2
  118. data/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi +10 -2
  119. data/rbi/orb/models/new_floating_tiered_price.rbi +10 -2
  120. data/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi +10 -2
  121. data/rbi/orb/models/new_floating_tiered_with_proration_price.rbi +10 -2
  122. data/rbi/orb/models/new_floating_unit_price.rbi +10 -2
  123. data/rbi/orb/models/new_floating_unit_with_percent_price.rbi +10 -2
  124. data/rbi/orb/models/new_floating_unit_with_proration_price.rbi +10 -2
  125. data/rbi/orb/models/new_plan_bulk_price.rbi +10 -2
  126. data/rbi/orb/models/new_plan_bulk_with_proration_price.rbi +10 -2
  127. data/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi +10 -2
  128. data/rbi/orb/models/new_plan_grouped_allocation_price.rbi +10 -2
  129. data/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi +10 -2
  130. data/rbi/orb/models/new_plan_grouped_tiered_price.rbi +10 -2
  131. data/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi +10 -2
  132. data/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi +10 -2
  133. data/rbi/orb/models/new_plan_matrix_price.rbi +10 -2
  134. data/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi +10 -2
  135. data/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi +10 -2
  136. data/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi +10 -2
  137. data/rbi/orb/models/new_plan_minimum_composite_price.rbi +10 -2
  138. data/rbi/orb/models/new_plan_package_price.rbi +10 -2
  139. data/rbi/orb/models/new_plan_package_with_allocation_price.rbi +10 -2
  140. data/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi +10 -2
  141. data/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +10 -2
  142. data/rbi/orb/models/new_plan_threshold_total_amount_price.rbi +10 -2
  143. data/rbi/orb/models/new_plan_tiered_package_price.rbi +10 -2
  144. data/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi +10 -2
  145. data/rbi/orb/models/new_plan_tiered_price.rbi +10 -2
  146. data/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi +10 -2
  147. data/rbi/orb/models/new_plan_unit_price.rbi +10 -2
  148. data/rbi/orb/models/new_plan_unit_with_percent_price.rbi +10 -2
  149. data/rbi/orb/models/new_plan_unit_with_proration_price.rbi +10 -2
  150. data/rbi/orb/models/new_subscription_bulk_price.rbi +10 -2
  151. data/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi +10 -2
  152. data/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi +10 -2
  153. data/rbi/orb/models/new_subscription_grouped_allocation_price.rbi +10 -2
  154. data/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi +10 -2
  155. data/rbi/orb/models/new_subscription_grouped_tiered_price.rbi +10 -2
  156. data/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi +10 -2
  157. data/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi +10 -2
  158. data/rbi/orb/models/new_subscription_matrix_price.rbi +10 -2
  159. data/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi +10 -2
  160. data/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi +10 -2
  161. data/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi +10 -2
  162. data/rbi/orb/models/new_subscription_minimum_composite_price.rbi +10 -2
  163. data/rbi/orb/models/new_subscription_package_price.rbi +10 -2
  164. data/rbi/orb/models/new_subscription_package_with_allocation_price.rbi +10 -2
  165. data/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi +10 -2
  166. data/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi +10 -2
  167. data/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi +10 -2
  168. data/rbi/orb/models/new_subscription_tiered_package_price.rbi +10 -2
  169. data/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi +10 -2
  170. data/rbi/orb/models/new_subscription_tiered_price.rbi +10 -2
  171. data/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi +10 -2
  172. data/rbi/orb/models/new_subscription_unit_price.rbi +10 -2
  173. data/rbi/orb/models/new_subscription_unit_with_percent_price.rbi +10 -2
  174. data/rbi/orb/models/new_subscription_unit_with_proration_price.rbi +10 -2
  175. data/rbi/orb/models/plan_create_params.rbi +114 -24
  176. data/rbi/orb/models/price_create_params.rbi +90 -18
  177. data/rbi/orb/models/price_evaluate_multiple_params.rbi +90 -18
  178. data/rbi/orb/models/price_evaluate_preview_events_params.rbi +90 -18
  179. data/rbi/orb/models/subscription_create_params.rbi +200 -40
  180. data/rbi/orb/models/subscription_price_intervals_params.rbi +90 -18
  181. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +200 -40
  182. data/rbi/orb/models/unit_config.rbi +21 -5
  183. data/sig/orb/models/matrix_config.rbs +8 -3
  184. data/sig/orb/models/matrix_value.rbs +11 -3
  185. data/sig/orb/models/matrix_with_allocation_config.rbs +19 -6
  186. data/sig/orb/models/unit_config.rbs +14 -3
  187. metadata +2 -2
@@ -1468,7 +1468,11 @@ module Orb
1468
1468
  end
1469
1469
  attr_writer :invoicing_cycle_configuration
1470
1470
 
1471
- # The ID of the license type to associate with this price.
1471
+ # The ID of the license type to associate with this price. On a usage price this
1472
+ # also marks the price as eligible to draw down from that license type's
1473
+ # allocation; a usage price created without it is billed normally. Usage prices
1474
+ # with a license type must use the `unit` model, and only draw down when their
1475
+ # currency matches the allocation's.
1472
1476
  sig { returns(T.nilable(String)) }
1473
1477
  attr_accessor :license_type_id
1474
1478
 
@@ -1554,7 +1558,11 @@ module Orb
1554
1558
  # Within each billing cycle, specifies the cadence at which invoices are produced.
1555
1559
  # If unspecified, a single invoice is produced per billing cycle.
1556
1560
  invoicing_cycle_configuration: nil,
1557
- # The ID of the license type to associate with this price.
1561
+ # The ID of the license type to associate with this price. On a usage price this
1562
+ # also marks the price as eligible to draw down from that license type's
1563
+ # allocation; a usage price created without it is billed normally. Usage prices
1564
+ # with a license type must use the `unit` model, and only draw down when their
1565
+ # currency matches the allocation's.
1558
1566
  license_type_id: nil,
1559
1567
  # User-specified key/value pairs for the resource. Individual keys can be removed
1560
1568
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -1940,7 +1948,11 @@ module Orb
1940
1948
  end
1941
1949
  attr_writer :invoicing_cycle_configuration
1942
1950
 
1943
- # The ID of the license type to associate with this price.
1951
+ # The ID of the license type to associate with this price. On a usage price this
1952
+ # also marks the price as eligible to draw down from that license type's
1953
+ # allocation; a usage price created without it is billed normally. Usage prices
1954
+ # with a license type must use the `unit` model, and only draw down when their
1955
+ # currency matches the allocation's.
1944
1956
  sig { returns(T.nilable(String)) }
1945
1957
  attr_accessor :license_type_id
1946
1958
 
@@ -2026,7 +2038,11 @@ module Orb
2026
2038
  # Within each billing cycle, specifies the cadence at which invoices are produced.
2027
2039
  # If unspecified, a single invoice is produced per billing cycle.
2028
2040
  invoicing_cycle_configuration: nil,
2029
- # The ID of the license type to associate with this price.
2041
+ # The ID of the license type to associate with this price. On a usage price this
2042
+ # also marks the price as eligible to draw down from that license type's
2043
+ # allocation; a usage price created without it is billed normally. Usage prices
2044
+ # with a license type must use the `unit` model, and only draw down when their
2045
+ # currency matches the allocation's.
2030
2046
  license_type_id: nil,
2031
2047
  # User-specified key/value pairs for the resource. Individual keys can be removed
2032
2048
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -2379,7 +2395,11 @@ module Orb
2379
2395
  end
2380
2396
  attr_writer :invoicing_cycle_configuration
2381
2397
 
2382
- # The ID of the license type to associate with this price.
2398
+ # The ID of the license type to associate with this price. On a usage price this
2399
+ # also marks the price as eligible to draw down from that license type's
2400
+ # allocation; a usage price created without it is billed normally. Usage prices
2401
+ # with a license type must use the `unit` model, and only draw down when their
2402
+ # currency matches the allocation's.
2383
2403
  sig { returns(T.nilable(String)) }
2384
2404
  attr_accessor :license_type_id
2385
2405
 
@@ -2465,7 +2485,11 @@ module Orb
2465
2485
  # Within each billing cycle, specifies the cadence at which invoices are produced.
2466
2486
  # If unspecified, a single invoice is produced per billing cycle.
2467
2487
  invoicing_cycle_configuration: nil,
2468
- # The ID of the license type to associate with this price.
2488
+ # The ID of the license type to associate with this price. On a usage price this
2489
+ # also marks the price as eligible to draw down from that license type's
2490
+ # allocation; a usage price created without it is billed normally. Usage prices
2491
+ # with a license type must use the `unit` model, and only draw down when their
2492
+ # currency matches the allocation's.
2469
2493
  license_type_id: nil,
2470
2494
  # User-specified key/value pairs for the resource. Individual keys can be removed
2471
2495
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -2918,7 +2942,11 @@ module Orb
2918
2942
  end
2919
2943
  attr_writer :invoicing_cycle_configuration
2920
2944
 
2921
- # The ID of the license type to associate with this price.
2945
+ # The ID of the license type to associate with this price. On a usage price this
2946
+ # also marks the price as eligible to draw down from that license type's
2947
+ # allocation; a usage price created without it is billed normally. Usage prices
2948
+ # with a license type must use the `unit` model, and only draw down when their
2949
+ # currency matches the allocation's.
2922
2950
  sig { returns(T.nilable(String)) }
2923
2951
  attr_accessor :license_type_id
2924
2952
 
@@ -3004,7 +3032,11 @@ module Orb
3004
3032
  # Within each billing cycle, specifies the cadence at which invoices are produced.
3005
3033
  # If unspecified, a single invoice is produced per billing cycle.
3006
3034
  invoicing_cycle_configuration: nil,
3007
- # The ID of the license type to associate with this price.
3035
+ # The ID of the license type to associate with this price. On a usage price this
3036
+ # also marks the price as eligible to draw down from that license type's
3037
+ # allocation; a usage price created without it is billed normally. Usage prices
3038
+ # with a license type must use the `unit` model, and only draw down when their
3039
+ # currency matches the allocation's.
3008
3040
  license_type_id: nil,
3009
3041
  # User-specified key/value pairs for the resource. Individual keys can be removed
3010
3042
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3331,7 +3363,11 @@ module Orb
3331
3363
  end
3332
3364
  attr_writer :invoicing_cycle_configuration
3333
3365
 
3334
- # The ID of the license type to associate with this price.
3366
+ # The ID of the license type to associate with this price. On a usage price this
3367
+ # also marks the price as eligible to draw down from that license type's
3368
+ # allocation; a usage price created without it is billed normally. Usage prices
3369
+ # with a license type must use the `unit` model, and only draw down when their
3370
+ # currency matches the allocation's.
3335
3371
  sig { returns(T.nilable(String)) }
3336
3372
  attr_accessor :license_type_id
3337
3373
 
@@ -3417,7 +3453,11 @@ module Orb
3417
3453
  # Within each billing cycle, specifies the cadence at which invoices are produced.
3418
3454
  # If unspecified, a single invoice is produced per billing cycle.
3419
3455
  invoicing_cycle_configuration: nil,
3420
- # The ID of the license type to associate with this price.
3456
+ # The ID of the license type to associate with this price. On a usage price this
3457
+ # also marks the price as eligible to draw down from that license type's
3458
+ # allocation; a usage price created without it is billed normally. Usage prices
3459
+ # with a license type must use the `unit` model, and only draw down when their
3460
+ # currency matches the allocation's.
3421
3461
  license_type_id: nil,
3422
3462
  # User-specified key/value pairs for the resource. Individual keys can be removed
3423
3463
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3714,7 +3754,11 @@ module Orb
3714
3754
  end
3715
3755
  attr_writer :invoicing_cycle_configuration
3716
3756
 
3717
- # The ID of the license type to associate with this price.
3757
+ # The ID of the license type to associate with this price. On a usage price this
3758
+ # also marks the price as eligible to draw down from that license type's
3759
+ # allocation; a usage price created without it is billed normally. Usage prices
3760
+ # with a license type must use the `unit` model, and only draw down when their
3761
+ # currency matches the allocation's.
3718
3762
  sig { returns(T.nilable(String)) }
3719
3763
  attr_accessor :license_type_id
3720
3764
 
@@ -3800,7 +3844,11 @@ module Orb
3800
3844
  # Within each billing cycle, specifies the cadence at which invoices are produced.
3801
3845
  # If unspecified, a single invoice is produced per billing cycle.
3802
3846
  invoicing_cycle_configuration: nil,
3803
- # The ID of the license type to associate with this price.
3847
+ # The ID of the license type to associate with this price. On a usage price this
3848
+ # also marks the price as eligible to draw down from that license type's
3849
+ # allocation; a usage price created without it is billed normally. Usage prices
3850
+ # with a license type must use the `unit` model, and only draw down when their
3851
+ # currency matches the allocation's.
3804
3852
  license_type_id: nil,
3805
3853
  # User-specified key/value pairs for the resource. Individual keys can be removed
3806
3854
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4097,7 +4145,11 @@ module Orb
4097
4145
  end
4098
4146
  attr_writer :invoicing_cycle_configuration
4099
4147
 
4100
- # The ID of the license type to associate with this price.
4148
+ # The ID of the license type to associate with this price. On a usage price this
4149
+ # also marks the price as eligible to draw down from that license type's
4150
+ # allocation; a usage price created without it is billed normally. Usage prices
4151
+ # with a license type must use the `unit` model, and only draw down when their
4152
+ # currency matches the allocation's.
4101
4153
  sig { returns(T.nilable(String)) }
4102
4154
  attr_accessor :license_type_id
4103
4155
 
@@ -4183,7 +4235,11 @@ module Orb
4183
4235
  # Within each billing cycle, specifies the cadence at which invoices are produced.
4184
4236
  # If unspecified, a single invoice is produced per billing cycle.
4185
4237
  invoicing_cycle_configuration: nil,
4186
- # The ID of the license type to associate with this price.
4238
+ # The ID of the license type to associate with this price. On a usage price this
4239
+ # also marks the price as eligible to draw down from that license type's
4240
+ # allocation; a usage price created without it is billed normally. Usage prices
4241
+ # with a license type must use the `unit` model, and only draw down when their
4242
+ # currency matches the allocation's.
4187
4243
  license_type_id: nil,
4188
4244
  # User-specified key/value pairs for the resource. Individual keys can be removed
4189
4245
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4552,7 +4608,11 @@ module Orb
4552
4608
  end
4553
4609
  attr_writer :invoicing_cycle_configuration
4554
4610
 
4555
- # The ID of the license type to associate with this price.
4611
+ # The ID of the license type to associate with this price. On a usage price this
4612
+ # also marks the price as eligible to draw down from that license type's
4613
+ # allocation; a usage price created without it is billed normally. Usage prices
4614
+ # with a license type must use the `unit` model, and only draw down when their
4615
+ # currency matches the allocation's.
4556
4616
  sig { returns(T.nilable(String)) }
4557
4617
  attr_accessor :license_type_id
4558
4618
 
@@ -4638,7 +4698,11 @@ module Orb
4638
4698
  # Within each billing cycle, specifies the cadence at which invoices are produced.
4639
4699
  # If unspecified, a single invoice is produced per billing cycle.
4640
4700
  invoicing_cycle_configuration: nil,
4641
- # The ID of the license type to associate with this price.
4701
+ # The ID of the license type to associate with this price. On a usage price this
4702
+ # also marks the price as eligible to draw down from that license type's
4703
+ # allocation; a usage price created without it is billed normally. Usage prices
4704
+ # with a license type must use the `unit` model, and only draw down when their
4705
+ # currency matches the allocation's.
4642
4706
  license_type_id: nil,
4643
4707
  # User-specified key/value pairs for the resource. Individual keys can be removed
4644
4708
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4967,7 +5031,11 @@ module Orb
4967
5031
  end
4968
5032
  attr_writer :invoicing_cycle_configuration
4969
5033
 
4970
- # The ID of the license type to associate with this price.
5034
+ # The ID of the license type to associate with this price. On a usage price this
5035
+ # also marks the price as eligible to draw down from that license type's
5036
+ # allocation; a usage price created without it is billed normally. Usage prices
5037
+ # with a license type must use the `unit` model, and only draw down when their
5038
+ # currency matches the allocation's.
4971
5039
  sig { returns(T.nilable(String)) }
4972
5040
  attr_accessor :license_type_id
4973
5041
 
@@ -5053,7 +5121,11 @@ module Orb
5053
5121
  # Within each billing cycle, specifies the cadence at which invoices are produced.
5054
5122
  # If unspecified, a single invoice is produced per billing cycle.
5055
5123
  invoicing_cycle_configuration: nil,
5056
- # The ID of the license type to associate with this price.
5124
+ # The ID of the license type to associate with this price. On a usage price this
5125
+ # also marks the price as eligible to draw down from that license type's
5126
+ # allocation; a usage price created without it is billed normally. Usage prices
5127
+ # with a license type must use the `unit` model, and only draw down when their
5128
+ # currency matches the allocation's.
5057
5129
  license_type_id: nil,
5058
5130
  # User-specified key/value pairs for the resource. Individual keys can be removed
5059
5131
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -5357,7 +5429,11 @@ module Orb
5357
5429
  end
5358
5430
  attr_writer :invoicing_cycle_configuration
5359
5431
 
5360
- # The ID of the license type to associate with this price.
5432
+ # The ID of the license type to associate with this price. On a usage price this
5433
+ # also marks the price as eligible to draw down from that license type's
5434
+ # allocation; a usage price created without it is billed normally. Usage prices
5435
+ # with a license type must use the `unit` model, and only draw down when their
5436
+ # currency matches the allocation's.
5361
5437
  sig { returns(T.nilable(String)) }
5362
5438
  attr_accessor :license_type_id
5363
5439
 
@@ -5443,7 +5519,11 @@ module Orb
5443
5519
  # Within each billing cycle, specifies the cadence at which invoices are produced.
5444
5520
  # If unspecified, a single invoice is produced per billing cycle.
5445
5521
  invoicing_cycle_configuration: nil,
5446
- # The ID of the license type to associate with this price.
5522
+ # The ID of the license type to associate with this price. On a usage price this
5523
+ # also marks the price as eligible to draw down from that license type's
5524
+ # allocation; a usage price created without it is billed normally. Usage prices
5525
+ # with a license type must use the `unit` model, and only draw down when their
5526
+ # currency matches the allocation's.
5447
5527
  license_type_id: nil,
5448
5528
  # User-specified key/value pairs for the resource. Individual keys can be removed
5449
5529
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -6677,7 +6757,11 @@ module Orb
6677
6757
  end
6678
6758
  attr_writer :invoicing_cycle_configuration
6679
6759
 
6680
- # The ID of the license type to associate with this price.
6760
+ # The ID of the license type to associate with this price. On a usage price this
6761
+ # also marks the price as eligible to draw down from that license type's
6762
+ # allocation; a usage price created without it is billed normally. Usage prices
6763
+ # with a license type must use the `unit` model, and only draw down when their
6764
+ # currency matches the allocation's.
6681
6765
  sig { returns(T.nilable(String)) }
6682
6766
  attr_accessor :license_type_id
6683
6767
 
@@ -6763,7 +6847,11 @@ module Orb
6763
6847
  # Within each billing cycle, specifies the cadence at which invoices are produced.
6764
6848
  # If unspecified, a single invoice is produced per billing cycle.
6765
6849
  invoicing_cycle_configuration: nil,
6766
- # The ID of the license type to associate with this price.
6850
+ # The ID of the license type to associate with this price. On a usage price this
6851
+ # also marks the price as eligible to draw down from that license type's
6852
+ # allocation; a usage price created without it is billed normally. Usage prices
6853
+ # with a license type must use the `unit` model, and only draw down when their
6854
+ # currency matches the allocation's.
6767
6855
  license_type_id: nil,
6768
6856
  # User-specified key/value pairs for the resource. Individual keys can be removed
6769
6857
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -7149,7 +7237,11 @@ module Orb
7149
7237
  end
7150
7238
  attr_writer :invoicing_cycle_configuration
7151
7239
 
7152
- # The ID of the license type to associate with this price.
7240
+ # The ID of the license type to associate with this price. On a usage price this
7241
+ # also marks the price as eligible to draw down from that license type's
7242
+ # allocation; a usage price created without it is billed normally. Usage prices
7243
+ # with a license type must use the `unit` model, and only draw down when their
7244
+ # currency matches the allocation's.
7153
7245
  sig { returns(T.nilable(String)) }
7154
7246
  attr_accessor :license_type_id
7155
7247
 
@@ -7235,7 +7327,11 @@ module Orb
7235
7327
  # Within each billing cycle, specifies the cadence at which invoices are produced.
7236
7328
  # If unspecified, a single invoice is produced per billing cycle.
7237
7329
  invoicing_cycle_configuration: nil,
7238
- # The ID of the license type to associate with this price.
7330
+ # The ID of the license type to associate with this price. On a usage price this
7331
+ # also marks the price as eligible to draw down from that license type's
7332
+ # allocation; a usage price created without it is billed normally. Usage prices
7333
+ # with a license type must use the `unit` model, and only draw down when their
7334
+ # currency matches the allocation's.
7239
7335
  license_type_id: nil,
7240
7336
  # User-specified key/value pairs for the resource. Individual keys can be removed
7241
7337
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -7588,7 +7684,11 @@ module Orb
7588
7684
  end
7589
7685
  attr_writer :invoicing_cycle_configuration
7590
7686
 
7591
- # The ID of the license type to associate with this price.
7687
+ # The ID of the license type to associate with this price. On a usage price this
7688
+ # also marks the price as eligible to draw down from that license type's
7689
+ # allocation; a usage price created without it is billed normally. Usage prices
7690
+ # with a license type must use the `unit` model, and only draw down when their
7691
+ # currency matches the allocation's.
7592
7692
  sig { returns(T.nilable(String)) }
7593
7693
  attr_accessor :license_type_id
7594
7694
 
@@ -7674,7 +7774,11 @@ module Orb
7674
7774
  # Within each billing cycle, specifies the cadence at which invoices are produced.
7675
7775
  # If unspecified, a single invoice is produced per billing cycle.
7676
7776
  invoicing_cycle_configuration: nil,
7677
- # The ID of the license type to associate with this price.
7777
+ # The ID of the license type to associate with this price. On a usage price this
7778
+ # also marks the price as eligible to draw down from that license type's
7779
+ # allocation; a usage price created without it is billed normally. Usage prices
7780
+ # with a license type must use the `unit` model, and only draw down when their
7781
+ # currency matches the allocation's.
7678
7782
  license_type_id: nil,
7679
7783
  # User-specified key/value pairs for the resource. Individual keys can be removed
7680
7784
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -8127,7 +8231,11 @@ module Orb
8127
8231
  end
8128
8232
  attr_writer :invoicing_cycle_configuration
8129
8233
 
8130
- # The ID of the license type to associate with this price.
8234
+ # The ID of the license type to associate with this price. On a usage price this
8235
+ # also marks the price as eligible to draw down from that license type's
8236
+ # allocation; a usage price created without it is billed normally. Usage prices
8237
+ # with a license type must use the `unit` model, and only draw down when their
8238
+ # currency matches the allocation's.
8131
8239
  sig { returns(T.nilable(String)) }
8132
8240
  attr_accessor :license_type_id
8133
8241
 
@@ -8213,7 +8321,11 @@ module Orb
8213
8321
  # Within each billing cycle, specifies the cadence at which invoices are produced.
8214
8322
  # If unspecified, a single invoice is produced per billing cycle.
8215
8323
  invoicing_cycle_configuration: nil,
8216
- # The ID of the license type to associate with this price.
8324
+ # The ID of the license type to associate with this price. On a usage price this
8325
+ # also marks the price as eligible to draw down from that license type's
8326
+ # allocation; a usage price created without it is billed normally. Usage prices
8327
+ # with a license type must use the `unit` model, and only draw down when their
8328
+ # currency matches the allocation's.
8217
8329
  license_type_id: nil,
8218
8330
  # User-specified key/value pairs for the resource. Individual keys can be removed
8219
8331
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -8540,7 +8652,11 @@ module Orb
8540
8652
  end
8541
8653
  attr_writer :invoicing_cycle_configuration
8542
8654
 
8543
- # The ID of the license type to associate with this price.
8655
+ # The ID of the license type to associate with this price. On a usage price this
8656
+ # also marks the price as eligible to draw down from that license type's
8657
+ # allocation; a usage price created without it is billed normally. Usage prices
8658
+ # with a license type must use the `unit` model, and only draw down when their
8659
+ # currency matches the allocation's.
8544
8660
  sig { returns(T.nilable(String)) }
8545
8661
  attr_accessor :license_type_id
8546
8662
 
@@ -8626,7 +8742,11 @@ module Orb
8626
8742
  # Within each billing cycle, specifies the cadence at which invoices are produced.
8627
8743
  # If unspecified, a single invoice is produced per billing cycle.
8628
8744
  invoicing_cycle_configuration: nil,
8629
- # The ID of the license type to associate with this price.
8745
+ # The ID of the license type to associate with this price. On a usage price this
8746
+ # also marks the price as eligible to draw down from that license type's
8747
+ # allocation; a usage price created without it is billed normally. Usage prices
8748
+ # with a license type must use the `unit` model, and only draw down when their
8749
+ # currency matches the allocation's.
8630
8750
  license_type_id: nil,
8631
8751
  # User-specified key/value pairs for the resource. Individual keys can be removed
8632
8752
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -8923,7 +9043,11 @@ module Orb
8923
9043
  end
8924
9044
  attr_writer :invoicing_cycle_configuration
8925
9045
 
8926
- # The ID of the license type to associate with this price.
9046
+ # The ID of the license type to associate with this price. On a usage price this
9047
+ # also marks the price as eligible to draw down from that license type's
9048
+ # allocation; a usage price created without it is billed normally. Usage prices
9049
+ # with a license type must use the `unit` model, and only draw down when their
9050
+ # currency matches the allocation's.
8927
9051
  sig { returns(T.nilable(String)) }
8928
9052
  attr_accessor :license_type_id
8929
9053
 
@@ -9009,7 +9133,11 @@ module Orb
9009
9133
  # Within each billing cycle, specifies the cadence at which invoices are produced.
9010
9134
  # If unspecified, a single invoice is produced per billing cycle.
9011
9135
  invoicing_cycle_configuration: nil,
9012
- # The ID of the license type to associate with this price.
9136
+ # The ID of the license type to associate with this price. On a usage price this
9137
+ # also marks the price as eligible to draw down from that license type's
9138
+ # allocation; a usage price created without it is billed normally. Usage prices
9139
+ # with a license type must use the `unit` model, and only draw down when their
9140
+ # currency matches the allocation's.
9013
9141
  license_type_id: nil,
9014
9142
  # User-specified key/value pairs for the resource. Individual keys can be removed
9015
9143
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -9306,7 +9434,11 @@ module Orb
9306
9434
  end
9307
9435
  attr_writer :invoicing_cycle_configuration
9308
9436
 
9309
- # The ID of the license type to associate with this price.
9437
+ # The ID of the license type to associate with this price. On a usage price this
9438
+ # also marks the price as eligible to draw down from that license type's
9439
+ # allocation; a usage price created without it is billed normally. Usage prices
9440
+ # with a license type must use the `unit` model, and only draw down when their
9441
+ # currency matches the allocation's.
9310
9442
  sig { returns(T.nilable(String)) }
9311
9443
  attr_accessor :license_type_id
9312
9444
 
@@ -9392,7 +9524,11 @@ module Orb
9392
9524
  # Within each billing cycle, specifies the cadence at which invoices are produced.
9393
9525
  # If unspecified, a single invoice is produced per billing cycle.
9394
9526
  invoicing_cycle_configuration: nil,
9395
- # The ID of the license type to associate with this price.
9527
+ # The ID of the license type to associate with this price. On a usage price this
9528
+ # also marks the price as eligible to draw down from that license type's
9529
+ # allocation; a usage price created without it is billed normally. Usage prices
9530
+ # with a license type must use the `unit` model, and only draw down when their
9531
+ # currency matches the allocation's.
9396
9532
  license_type_id: nil,
9397
9533
  # User-specified key/value pairs for the resource. Individual keys can be removed
9398
9534
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -9761,7 +9897,11 @@ module Orb
9761
9897
  end
9762
9898
  attr_writer :invoicing_cycle_configuration
9763
9899
 
9764
- # The ID of the license type to associate with this price.
9900
+ # The ID of the license type to associate with this price. On a usage price this
9901
+ # also marks the price as eligible to draw down from that license type's
9902
+ # allocation; a usage price created without it is billed normally. Usage prices
9903
+ # with a license type must use the `unit` model, and only draw down when their
9904
+ # currency matches the allocation's.
9765
9905
  sig { returns(T.nilable(String)) }
9766
9906
  attr_accessor :license_type_id
9767
9907
 
@@ -9847,7 +9987,11 @@ module Orb
9847
9987
  # Within each billing cycle, specifies the cadence at which invoices are produced.
9848
9988
  # If unspecified, a single invoice is produced per billing cycle.
9849
9989
  invoicing_cycle_configuration: nil,
9850
- # The ID of the license type to associate with this price.
9990
+ # The ID of the license type to associate with this price. On a usage price this
9991
+ # also marks the price as eligible to draw down from that license type's
9992
+ # allocation; a usage price created without it is billed normally. Usage prices
9993
+ # with a license type must use the `unit` model, and only draw down when their
9994
+ # currency matches the allocation's.
9851
9995
  license_type_id: nil,
9852
9996
  # User-specified key/value pairs for the resource. Individual keys can be removed
9853
9997
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -10176,7 +10320,11 @@ module Orb
10176
10320
  end
10177
10321
  attr_writer :invoicing_cycle_configuration
10178
10322
 
10179
- # The ID of the license type to associate with this price.
10323
+ # The ID of the license type to associate with this price. On a usage price this
10324
+ # also marks the price as eligible to draw down from that license type's
10325
+ # allocation; a usage price created without it is billed normally. Usage prices
10326
+ # with a license type must use the `unit` model, and only draw down when their
10327
+ # currency matches the allocation's.
10180
10328
  sig { returns(T.nilable(String)) }
10181
10329
  attr_accessor :license_type_id
10182
10330
 
@@ -10262,7 +10410,11 @@ module Orb
10262
10410
  # Within each billing cycle, specifies the cadence at which invoices are produced.
10263
10411
  # If unspecified, a single invoice is produced per billing cycle.
10264
10412
  invoicing_cycle_configuration: nil,
10265
- # The ID of the license type to associate with this price.
10413
+ # The ID of the license type to associate with this price. On a usage price this
10414
+ # also marks the price as eligible to draw down from that license type's
10415
+ # allocation; a usage price created without it is billed normally. Usage prices
10416
+ # with a license type must use the `unit` model, and only draw down when their
10417
+ # currency matches the allocation's.
10266
10418
  license_type_id: nil,
10267
10419
  # User-specified key/value pairs for the resource. Individual keys can be removed
10268
10420
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -10566,7 +10718,11 @@ module Orb
10566
10718
  end
10567
10719
  attr_writer :invoicing_cycle_configuration
10568
10720
 
10569
- # The ID of the license type to associate with this price.
10721
+ # The ID of the license type to associate with this price. On a usage price this
10722
+ # also marks the price as eligible to draw down from that license type's
10723
+ # allocation; a usage price created without it is billed normally. Usage prices
10724
+ # with a license type must use the `unit` model, and only draw down when their
10725
+ # currency matches the allocation's.
10570
10726
  sig { returns(T.nilable(String)) }
10571
10727
  attr_accessor :license_type_id
10572
10728
 
@@ -10652,7 +10808,11 @@ module Orb
10652
10808
  # Within each billing cycle, specifies the cadence at which invoices are produced.
10653
10809
  # If unspecified, a single invoice is produced per billing cycle.
10654
10810
  invoicing_cycle_configuration: nil,
10655
- # The ID of the license type to associate with this price.
10811
+ # The ID of the license type to associate with this price. On a usage price this
10812
+ # also marks the price as eligible to draw down from that license type's
10813
+ # allocation; a usage price created without it is billed normally. Usage prices
10814
+ # with a license type must use the `unit` model, and only draw down when their
10815
+ # currency matches the allocation's.
10656
10816
  license_type_id: nil,
10657
10817
  # User-specified key/value pairs for the resource. Individual keys can be removed
10658
10818
  # by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -16,21 +16,37 @@ module Orb
16
16
  sig { params(prorated: T::Boolean).void }
17
17
  attr_writer :prorated
18
18
 
19
+ # Optional multiplier applied to rated quantity before unit_amount.
20
+ sig { returns(T.nilable(Float)) }
21
+ attr_accessor :scaling_factor
22
+
19
23
  # Configuration for unit pricing
20
24
  sig do
21
- params(unit_amount: String, prorated: T::Boolean).returns(
22
- T.attached_class
23
- )
25
+ params(
26
+ unit_amount: String,
27
+ prorated: T::Boolean,
28
+ scaling_factor: T.nilable(Float)
29
+ ).returns(T.attached_class)
24
30
  end
25
31
  def self.new(
26
32
  # Rate per unit of usage
27
33
  unit_amount:,
28
34
  # If true, subtotals from this price are prorated based on the service period
29
- prorated: nil
35
+ prorated: nil,
36
+ # Optional multiplier applied to rated quantity before unit_amount.
37
+ scaling_factor: nil
30
38
  )
31
39
  end
32
40
 
33
- sig { override.returns({ unit_amount: String, prorated: T::Boolean }) }
41
+ sig do
42
+ override.returns(
43
+ {
44
+ unit_amount: String,
45
+ prorated: T::Boolean,
46
+ scaling_factor: T.nilable(Float)
47
+ }
48
+ )
49
+ end
34
50
  def to_hash
35
51
  end
36
52
  end
@@ -4,7 +4,8 @@ module Orb
4
4
  {
5
5
  default_unit_amount: String,
6
6
  dimensions: ::Array[String?],
7
- matrix_values: ::Array[Orb::MatrixValue]
7
+ matrix_values: ::Array[Orb::MatrixValue],
8
+ scaling_factor: Float?
8
9
  }
9
10
 
10
11
  class MatrixConfig < Orb::Internal::Type::BaseModel
@@ -14,16 +15,20 @@ module Orb
14
15
 
15
16
  attr_accessor matrix_values: ::Array[Orb::MatrixValue]
16
17
 
18
+ attr_accessor scaling_factor: Float?
19
+
17
20
  def initialize: (
18
21
  default_unit_amount: String,
19
22
  dimensions: ::Array[String?],
20
- matrix_values: ::Array[Orb::MatrixValue]
23
+ matrix_values: ::Array[Orb::MatrixValue],
24
+ ?scaling_factor: Float?
21
25
  ) -> void
22
26
 
23
27
  def to_hash: -> {
24
28
  default_unit_amount: String,
25
29
  dimensions: ::Array[String?],
26
- matrix_values: ::Array[Orb::MatrixValue]
30
+ matrix_values: ::Array[Orb::MatrixValue],
31
+ scaling_factor: Float?
27
32
  }
28
33
  end
29
34
  end
@@ -1,21 +1,29 @@
1
1
  module Orb
2
2
  module Models
3
3
  type matrix_value =
4
- { dimension_values: ::Array[String?], unit_amount: String }
4
+ {
5
+ dimension_values: ::Array[String?],
6
+ unit_amount: String,
7
+ scaling_factor: Float?
8
+ }
5
9
 
6
10
  class MatrixValue < Orb::Internal::Type::BaseModel
7
11
  attr_accessor dimension_values: ::Array[String?]
8
12
 
9
13
  attr_accessor unit_amount: String
10
14
 
15
+ attr_accessor scaling_factor: Float?
16
+
11
17
  def initialize: (
12
18
  dimension_values: ::Array[String?],
13
- unit_amount: String
19
+ unit_amount: String,
20
+ ?scaling_factor: Float?
14
21
  ) -> void
15
22
 
16
23
  def to_hash: -> {
17
24
  dimension_values: ::Array[String?],
18
- unit_amount: String
25
+ unit_amount: String,
26
+ scaling_factor: Float?
19
27
  }
20
28
  end
21
29
  end