orb-billing 0.5.4 → 0.6.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 (211) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/orb/internal/type/base_model.rb +2 -2
  5. data/lib/orb/internal/type/union.rb +6 -6
  6. data/lib/orb/internal/util.rb +5 -1
  7. data/lib/orb/models/alert.rb +33 -1
  8. data/lib/orb/models/amount_discount.rb +10 -10
  9. data/lib/orb/models/credit_note_create_params.rb +9 -9
  10. data/lib/orb/models/customer_create_params.rb +21 -3
  11. data/lib/orb/models/customer_update_by_external_id_params.rb +21 -3
  12. data/lib/orb/models/customer_update_params.rb +21 -3
  13. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +9 -1
  14. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +9 -1
  15. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +9 -1
  16. data/lib/orb/models/customers/credits/ledger_list_response.rb +9 -1
  17. data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +1 -1
  18. data/lib/orb/models/customers/credits/top_up_create_params.rb +1 -1
  19. data/lib/orb/models/invoice.rb +626 -9
  20. data/lib/orb/models/invoice_fetch_upcoming_response.rb +624 -9
  21. data/lib/orb/models/invoice_line_item_create_response.rb +486 -7
  22. data/lib/orb/models/item.rb +18 -1
  23. data/lib/orb/models/item_archive_params.rb +14 -0
  24. data/lib/orb/models/item_create_params.rb +14 -1
  25. data/lib/orb/models/item_update_params.rb +16 -1
  26. data/lib/orb/models/percentage_discount.rb +10 -10
  27. data/lib/orb/models/plan.rb +618 -9
  28. data/lib/orb/models/plan_create_params.rb +2066 -30
  29. data/lib/orb/models/plan_set_default_version_params.rb +22 -0
  30. data/lib/orb/models/plans/external_plan_id/version_create_params.rb +17948 -0
  31. data/lib/orb/models/plans/external_plan_id/version_create_response.rb +819 -0
  32. data/lib/orb/models/plans/external_plan_id/version_retrieve_params.rb +24 -0
  33. data/lib/orb/models/plans/external_plan_id/version_retrieve_response.rb +819 -0
  34. data/lib/orb/models/plans/external_plan_id_set_default_version_params.rb +24 -0
  35. data/lib/orb/models/plans/version_create_params.rb +17794 -0
  36. data/lib/orb/models/plans/version_create_response.rb +814 -0
  37. data/lib/orb/models/plans/version_retrieve_params.rb +22 -0
  38. data/lib/orb/models/plans/version_retrieve_response.rb +814 -0
  39. data/lib/orb/models/price.rb +4124 -70
  40. data/lib/orb/models/price_create_params.rb +45 -1
  41. data/lib/orb/models/price_evaluate_params.rb +8529 -21
  42. data/lib/orb/models/price_evaluate_response.rb +38 -3
  43. data/lib/orb/models/subscription.rb +730 -54
  44. data/lib/orb/models/subscription_cancel_response.rb +706 -54
  45. data/lib/orb/models/subscription_change_apply_response.rb +728 -54
  46. data/lib/orb/models/subscription_change_cancel_response.rb +728 -54
  47. data/lib/orb/models/subscription_change_retrieve_response.rb +728 -54
  48. data/lib/orb/models/subscription_create_params.rb +5992 -1698
  49. data/lib/orb/models/subscription_create_response.rb +706 -54
  50. data/lib/orb/models/subscription_fetch_schedule_response.rb +3 -3
  51. data/lib/orb/models/subscription_price_intervals_params.rb +1392 -76
  52. data/lib/orb/models/subscription_price_intervals_response.rb +712 -54
  53. data/lib/orb/models/subscription_schedule_plan_change_params.rb +6005 -1723
  54. data/lib/orb/models/subscription_schedule_plan_change_response.rb +716 -54
  55. data/lib/orb/models/subscription_trigger_phase_response.rb +708 -54
  56. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +720 -54
  57. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +728 -54
  58. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +728 -54
  59. data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +1 -1
  60. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +720 -54
  61. data/lib/orb/models/subscription_update_trial_response.rb +706 -54
  62. data/lib/orb/models/trial_discount.rb +10 -10
  63. data/lib/orb/models/usage_discount.rb +10 -10
  64. data/lib/orb/models.rb +4 -0
  65. data/lib/orb/resources/credit_notes.rb +3 -3
  66. data/lib/orb/resources/customers/balance_transactions.rb +0 -7
  67. data/lib/orb/resources/customers.rb +4 -7
  68. data/lib/orb/resources/dimensional_price_groups.rb +1 -1
  69. data/lib/orb/resources/items.rb +34 -2
  70. data/lib/orb/resources/plans/external_plan_id/versions.rb +88 -0
  71. data/lib/orb/resources/plans/external_plan_id.rb +32 -1
  72. data/lib/orb/resources/plans/versions.rb +86 -0
  73. data/lib/orb/resources/plans.rb +33 -2
  74. data/lib/orb/resources/prices.rb +23 -17
  75. data/lib/orb/resources/subscriptions.rb +5 -1
  76. data/lib/orb/version.rb +1 -1
  77. data/lib/orb.rb +16 -1
  78. data/rbi/orb/models/alert.rbi +50 -3
  79. data/rbi/orb/models/amount_discount.rbi +8 -8
  80. data/rbi/orb/models/credit_note_create_params.rbi +8 -8
  81. data/rbi/orb/models/customer_create_params.rbi +38 -4
  82. data/rbi/orb/models/customer_update_by_external_id_params.rbi +38 -4
  83. data/rbi/orb/models/customer_update_params.rbi +38 -4
  84. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +9 -1
  85. data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +9 -1
  86. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +9 -1
  87. data/rbi/orb/models/customers/credits/ledger_list_response.rbi +9 -1
  88. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +2 -2
  89. data/rbi/orb/models/customers/credits/top_up_create_params.rbi +2 -2
  90. data/rbi/orb/models/invoice.rbi +1451 -35
  91. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +1524 -4
  92. data/rbi/orb/models/invoice_line_item_create_response.rbi +1184 -2
  93. data/rbi/orb/models/item.rbi +20 -1
  94. data/rbi/orb/models/item_archive_params.rbi +25 -0
  95. data/rbi/orb/models/item_create_params.rbi +18 -1
  96. data/rbi/orb/models/item_update_params.rbi +17 -1
  97. data/rbi/orb/models/percentage_discount.rbi +10 -10
  98. data/rbi/orb/models/plan.rbi +1339 -4
  99. data/rbi/orb/models/plan_create_params.rbi +3833 -29
  100. data/rbi/orb/models/plan_set_default_version_params.rbi +40 -0
  101. data/rbi/orb/models/plans/external_plan_id/version_create_params.rbi +32668 -0
  102. data/rbi/orb/models/plans/external_plan_id/version_create_response.rbi +1562 -0
  103. data/rbi/orb/models/plans/external_plan_id/version_retrieve_params.rbi +42 -0
  104. data/rbi/orb/models/plans/external_plan_id/version_retrieve_response.rbi +1562 -0
  105. data/rbi/orb/models/plans/external_plan_id_set_default_version_params.rbi +45 -0
  106. data/rbi/orb/models/plans/version_create_params.rbi +32607 -0
  107. data/rbi/orb/models/plans/version_create_response.rbi +1556 -0
  108. data/rbi/orb/models/plans/version_retrieve_params.rbi +37 -0
  109. data/rbi/orb/models/plans/version_retrieve_response.rbi +1558 -0
  110. data/rbi/orb/models/price.rbi +9447 -441
  111. data/rbi/orb/models/price_create_params.rbi +80 -0
  112. data/rbi/orb/models/price_evaluate_params.rbi +15684 -25
  113. data/rbi/orb/models/price_evaluate_response.rbi +68 -5
  114. data/rbi/orb/models/subscription.rbi +1654 -44
  115. data/rbi/orb/models/subscription_cancel_response.rbi +1692 -44
  116. data/rbi/orb/models/subscription_change_apply_response.rbi +1692 -44
  117. data/rbi/orb/models/subscription_change_cancel_response.rbi +1692 -44
  118. data/rbi/orb/models/subscription_change_retrieve_response.rbi +1692 -44
  119. data/rbi/orb/models/subscription_create_params.rbi +10400 -2710
  120. data/rbi/orb/models/subscription_create_response.rbi +1692 -44
  121. data/rbi/orb/models/subscription_fetch_schedule_response.rbi +13 -4
  122. data/rbi/orb/models/subscription_price_intervals_params.rbi +2401 -49
  123. data/rbi/orb/models/subscription_price_intervals_response.rbi +1692 -44
  124. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +10423 -2753
  125. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +1692 -44
  126. data/rbi/orb/models/subscription_trigger_phase_response.rbi +1692 -44
  127. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +1692 -44
  128. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +1692 -44
  129. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +1692 -44
  130. data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +2 -2
  131. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +1692 -44
  132. data/rbi/orb/models/subscription_update_trial_response.rbi +1692 -44
  133. data/rbi/orb/models/trial_discount.rbi +8 -8
  134. data/rbi/orb/models/usage_discount.rbi +10 -10
  135. data/rbi/orb/models.rbi +4 -0
  136. data/rbi/orb/resources/credit_notes.rbi +3 -3
  137. data/rbi/orb/resources/customers/balance_transactions.rbi +0 -7
  138. data/rbi/orb/resources/customers/credits/top_ups.rbi +2 -2
  139. data/rbi/orb/resources/customers.rbi +7 -7
  140. data/rbi/orb/resources/dimensional_price_groups.rbi +1 -1
  141. data/rbi/orb/resources/items.rbi +20 -0
  142. data/rbi/orb/resources/plans/external_plan_id/versions.rbi +103 -0
  143. data/rbi/orb/resources/plans/external_plan_id.rbi +23 -1
  144. data/rbi/orb/resources/plans/versions.rbi +91 -0
  145. data/rbi/orb/resources/plans.rbi +27 -2
  146. data/rbi/orb/resources/prices.rbi +27 -17
  147. data/rbi/orb/resources/subscriptions.rbi +9 -1
  148. data/sig/orb/models/alert.rbs +20 -3
  149. data/sig/orb/models/amount_discount.rbs +5 -5
  150. data/sig/orb/models/credit_note_create_params.rbs +6 -6
  151. data/sig/orb/models/customer_create_params.rbs +13 -0
  152. data/sig/orb/models/customer_update_by_external_id_params.rbs +13 -0
  153. data/sig/orb/models/customer_update_params.rbs +13 -0
  154. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +7 -2
  155. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +7 -2
  156. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +7 -2
  157. data/sig/orb/models/customers/credits/ledger_list_response.rbs +7 -2
  158. data/sig/orb/models/invoice.rbs +558 -4
  159. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +558 -4
  160. data/sig/orb/models/invoice_line_item_create_response.rbs +414 -2
  161. data/sig/orb/models/item.rbs +5 -0
  162. data/sig/orb/models/item_archive_params.rbs +14 -0
  163. data/sig/orb/models/item_create_params.rbs +10 -2
  164. data/sig/orb/models/item_update_params.rbs +5 -0
  165. data/sig/orb/models/percentage_discount.rbs +5 -5
  166. data/sig/orb/models/plan.rbs +538 -4
  167. data/sig/orb/models/plan_create_params.rbs +1460 -3
  168. data/sig/orb/models/plan_set_default_version_params.rbs +20 -0
  169. data/sig/orb/models/plans/external_plan_id/version_create_params.rbs +12923 -0
  170. data/sig/orb/models/plans/external_plan_id/version_create_response.rbs +664 -0
  171. data/sig/orb/models/plans/external_plan_id/version_retrieve_params.rbs +27 -0
  172. data/sig/orb/models/plans/external_plan_id/version_retrieve_response.rbs +664 -0
  173. data/sig/orb/models/plans/external_plan_id_set_default_version_params.rbs +25 -0
  174. data/sig/orb/models/plans/version_create_params.rbs +12898 -0
  175. data/sig/orb/models/plans/version_create_response.rbs +662 -0
  176. data/sig/orb/models/plans/version_retrieve_params.rbs +25 -0
  177. data/sig/orb/models/plans/version_retrieve_response.rbs +662 -0
  178. data/sig/orb/models/price.rbs +3512 -96
  179. data/sig/orb/models/price_create_params.rbs +32 -0
  180. data/sig/orb/models/price_evaluate_params.rbs +6187 -10
  181. data/sig/orb/models/price_evaluate_response.rbs +41 -4
  182. data/sig/orb/models/subscription.rbs +609 -29
  183. data/sig/orb/models/subscription_cancel_response.rbs +609 -29
  184. data/sig/orb/models/subscription_change_apply_response.rbs +621 -29
  185. data/sig/orb/models/subscription_change_cancel_response.rbs +621 -29
  186. data/sig/orb/models/subscription_change_retrieve_response.rbs +621 -29
  187. data/sig/orb/models/subscription_create_params.rbs +4450 -1466
  188. data/sig/orb/models/subscription_create_response.rbs +609 -29
  189. data/sig/orb/models/subscription_fetch_schedule_response.rbs +4 -4
  190. data/sig/orb/models/subscription_price_intervals_params.rbs +920 -24
  191. data/sig/orb/models/subscription_price_intervals_response.rbs +609 -29
  192. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +4440 -1466
  193. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +609 -29
  194. data/sig/orb/models/subscription_trigger_phase_response.rbs +609 -29
  195. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +609 -29
  196. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +609 -29
  197. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +609 -29
  198. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +609 -29
  199. data/sig/orb/models/subscription_update_trial_response.rbs +609 -29
  200. data/sig/orb/models/trial_discount.rbs +5 -5
  201. data/sig/orb/models/usage_discount.rbs +5 -5
  202. data/sig/orb/models.rbs +4 -0
  203. data/sig/orb/resources/credit_notes.rbs +1 -1
  204. data/sig/orb/resources/items.rbs +7 -0
  205. data/sig/orb/resources/plans/external_plan_id/versions.rbs +30 -0
  206. data/sig/orb/resources/plans/external_plan_id.rbs +8 -0
  207. data/sig/orb/resources/plans/versions.rbs +28 -0
  208. data/sig/orb/resources/plans.rbs +8 -0
  209. data/sig/orb/resources/prices.rbs +3 -3
  210. data/sig/orb/resources/subscriptions.rbs +2 -0
  211. metadata +41 -2
@@ -914,6 +914,26 @@ module Orb
914
914
  sig { returns(T.nilable(Float)) }
915
915
  attr_accessor :conversion_rate
916
916
 
917
+ # For dimensional price: specifies a price group and dimension values
918
+ sig do
919
+ returns(
920
+ T.nilable(
921
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::DimensionalPriceConfiguration
922
+ )
923
+ )
924
+ end
925
+ attr_reader :dimensional_price_configuration
926
+
927
+ sig do
928
+ params(
929
+ dimensional_price_configuration:
930
+ T.nilable(
931
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::DimensionalPriceConfiguration::OrHash
932
+ )
933
+ ).void
934
+ end
935
+ attr_writer :dimensional_price_configuration
936
+
917
937
  # An alias for the price.
918
938
  sig { returns(T.nilable(String)) }
919
939
  attr_accessor :external_price_id
@@ -970,6 +990,10 @@ module Orb
970
990
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::OrHash
971
991
  ),
972
992
  conversion_rate: T.nilable(Float),
993
+ dimensional_price_configuration:
994
+ T.nilable(
995
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::DimensionalPriceConfiguration::OrHash
996
+ ),
973
997
  external_price_id: T.nilable(String),
974
998
  fixed_price_quantity: T.nilable(Float),
975
999
  invoice_grouping_key: T.nilable(String),
@@ -1002,6 +1026,8 @@ module Orb
1002
1026
  billing_cycle_configuration: nil,
1003
1027
  # The per unit conversion rate of the price currency to the invoicing currency.
1004
1028
  conversion_rate: nil,
1029
+ # For dimensional price: specifies a price group and dimension values
1030
+ dimensional_price_configuration: nil,
1005
1031
  # An alias for the price.
1006
1032
  external_price_id: nil,
1007
1033
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -1038,6 +1064,10 @@ module Orb
1038
1064
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration
1039
1065
  ),
1040
1066
  conversion_rate: T.nilable(Float),
1067
+ dimensional_price_configuration:
1068
+ T.nilable(
1069
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::DimensionalPriceConfiguration
1070
+ ),
1041
1071
  external_price_id: T.nilable(String),
1042
1072
  fixed_price_quantity: T.nilable(Float),
1043
1073
  invoice_grouping_key: T.nilable(String),
@@ -1218,6 +1248,60 @@ module Orb
1218
1248
  end
1219
1249
  end
1220
1250
 
1251
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
1252
+ OrHash =
1253
+ T.type_alias do
1254
+ T.any(
1255
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::DimensionalPriceConfiguration,
1256
+ Orb::Internal::AnyHash
1257
+ )
1258
+ end
1259
+
1260
+ # The list of dimension values matching (in order) the dimensions of the price
1261
+ # group
1262
+ sig { returns(T::Array[String]) }
1263
+ attr_accessor :dimension_values
1264
+
1265
+ # The id of the dimensional price group to include this price in
1266
+ sig { returns(T.nilable(String)) }
1267
+ attr_accessor :dimensional_price_group_id
1268
+
1269
+ # The external id of the dimensional price group to include this price in
1270
+ sig { returns(T.nilable(String)) }
1271
+ attr_accessor :external_dimensional_price_group_id
1272
+
1273
+ # For dimensional price: specifies a price group and dimension values
1274
+ sig do
1275
+ params(
1276
+ dimension_values: T::Array[String],
1277
+ dimensional_price_group_id: T.nilable(String),
1278
+ external_dimensional_price_group_id: T.nilable(String)
1279
+ ).returns(T.attached_class)
1280
+ end
1281
+ def self.new(
1282
+ # The list of dimension values matching (in order) the dimensions of the price
1283
+ # group
1284
+ dimension_values:,
1285
+ # The id of the dimensional price group to include this price in
1286
+ dimensional_price_group_id: nil,
1287
+ # The external id of the dimensional price group to include this price in
1288
+ external_dimensional_price_group_id: nil
1289
+ )
1290
+ end
1291
+
1292
+ sig do
1293
+ override.returns(
1294
+ {
1295
+ dimension_values: T::Array[String],
1296
+ dimensional_price_group_id: T.nilable(String),
1297
+ external_dimensional_price_group_id: T.nilable(String)
1298
+ }
1299
+ )
1300
+ end
1301
+ def to_hash
1302
+ end
1303
+ end
1304
+
1221
1305
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
1222
1306
  OrHash =
1223
1307
  T.type_alias do
@@ -1387,6 +1471,26 @@ module Orb
1387
1471
  sig { returns(T.nilable(Float)) }
1388
1472
  attr_accessor :conversion_rate
1389
1473
 
1474
+ # For dimensional price: specifies a price group and dimension values
1475
+ sig do
1476
+ returns(
1477
+ T.nilable(
1478
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::DimensionalPriceConfiguration
1479
+ )
1480
+ )
1481
+ end
1482
+ attr_reader :dimensional_price_configuration
1483
+
1484
+ sig do
1485
+ params(
1486
+ dimensional_price_configuration:
1487
+ T.nilable(
1488
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::DimensionalPriceConfiguration::OrHash
1489
+ )
1490
+ ).void
1491
+ end
1492
+ attr_writer :dimensional_price_configuration
1493
+
1390
1494
  # An alias for the price.
1391
1495
  sig { returns(T.nilable(String)) }
1392
1496
  attr_accessor :external_price_id
@@ -1443,6 +1547,10 @@ module Orb
1443
1547
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::OrHash
1444
1548
  ),
1445
1549
  conversion_rate: T.nilable(Float),
1550
+ dimensional_price_configuration:
1551
+ T.nilable(
1552
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::DimensionalPriceConfiguration::OrHash
1553
+ ),
1446
1554
  external_price_id: T.nilable(String),
1447
1555
  fixed_price_quantity: T.nilable(Float),
1448
1556
  invoice_grouping_key: T.nilable(String),
@@ -1475,6 +1583,8 @@ module Orb
1475
1583
  billing_cycle_configuration: nil,
1476
1584
  # The per unit conversion rate of the price currency to the invoicing currency.
1477
1585
  conversion_rate: nil,
1586
+ # For dimensional price: specifies a price group and dimension values
1587
+ dimensional_price_configuration: nil,
1478
1588
  # An alias for the price.
1479
1589
  external_price_id: nil,
1480
1590
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -1511,6 +1621,10 @@ module Orb
1511
1621
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration
1512
1622
  ),
1513
1623
  conversion_rate: T.nilable(Float),
1624
+ dimensional_price_configuration:
1625
+ T.nilable(
1626
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::DimensionalPriceConfiguration
1627
+ ),
1514
1628
  external_price_id: T.nilable(String),
1515
1629
  fixed_price_quantity: T.nilable(Float),
1516
1630
  invoice_grouping_key: T.nilable(String),
@@ -1707,6 +1821,60 @@ module Orb
1707
1821
  end
1708
1822
  end
1709
1823
 
1824
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
1825
+ OrHash =
1826
+ T.type_alias do
1827
+ T.any(
1828
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::DimensionalPriceConfiguration,
1829
+ Orb::Internal::AnyHash
1830
+ )
1831
+ end
1832
+
1833
+ # The list of dimension values matching (in order) the dimensions of the price
1834
+ # group
1835
+ sig { returns(T::Array[String]) }
1836
+ attr_accessor :dimension_values
1837
+
1838
+ # The id of the dimensional price group to include this price in
1839
+ sig { returns(T.nilable(String)) }
1840
+ attr_accessor :dimensional_price_group_id
1841
+
1842
+ # The external id of the dimensional price group to include this price in
1843
+ sig { returns(T.nilable(String)) }
1844
+ attr_accessor :external_dimensional_price_group_id
1845
+
1846
+ # For dimensional price: specifies a price group and dimension values
1847
+ sig do
1848
+ params(
1849
+ dimension_values: T::Array[String],
1850
+ dimensional_price_group_id: T.nilable(String),
1851
+ external_dimensional_price_group_id: T.nilable(String)
1852
+ ).returns(T.attached_class)
1853
+ end
1854
+ def self.new(
1855
+ # The list of dimension values matching (in order) the dimensions of the price
1856
+ # group
1857
+ dimension_values:,
1858
+ # The id of the dimensional price group to include this price in
1859
+ dimensional_price_group_id: nil,
1860
+ # The external id of the dimensional price group to include this price in
1861
+ external_dimensional_price_group_id: nil
1862
+ )
1863
+ end
1864
+
1865
+ sig do
1866
+ override.returns(
1867
+ {
1868
+ dimension_values: T::Array[String],
1869
+ dimensional_price_group_id: T.nilable(String),
1870
+ external_dimensional_price_group_id: T.nilable(String)
1871
+ }
1872
+ )
1873
+ end
1874
+ def to_hash
1875
+ end
1876
+ end
1877
+
1710
1878
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
1711
1879
  OrHash =
1712
1880
  T.type_alias do
@@ -1876,6 +2044,26 @@ module Orb
1876
2044
  sig { returns(T.nilable(Float)) }
1877
2045
  attr_accessor :conversion_rate
1878
2046
 
2047
+ # For dimensional price: specifies a price group and dimension values
2048
+ sig do
2049
+ returns(
2050
+ T.nilable(
2051
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::DimensionalPriceConfiguration
2052
+ )
2053
+ )
2054
+ end
2055
+ attr_reader :dimensional_price_configuration
2056
+
2057
+ sig do
2058
+ params(
2059
+ dimensional_price_configuration:
2060
+ T.nilable(
2061
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::DimensionalPriceConfiguration::OrHash
2062
+ )
2063
+ ).void
2064
+ end
2065
+ attr_writer :dimensional_price_configuration
2066
+
1879
2067
  # An alias for the price.
1880
2068
  sig { returns(T.nilable(String)) }
1881
2069
  attr_accessor :external_price_id
@@ -1932,6 +2120,10 @@ module Orb
1932
2120
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::OrHash
1933
2121
  ),
1934
2122
  conversion_rate: T.nilable(Float),
2123
+ dimensional_price_configuration:
2124
+ T.nilable(
2125
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::DimensionalPriceConfiguration::OrHash
2126
+ ),
1935
2127
  external_price_id: T.nilable(String),
1936
2128
  fixed_price_quantity: T.nilable(Float),
1937
2129
  invoice_grouping_key: T.nilable(String),
@@ -1964,6 +2156,8 @@ module Orb
1964
2156
  billing_cycle_configuration: nil,
1965
2157
  # The per unit conversion rate of the price currency to the invoicing currency.
1966
2158
  conversion_rate: nil,
2159
+ # For dimensional price: specifies a price group and dimension values
2160
+ dimensional_price_configuration: nil,
1967
2161
  # An alias for the price.
1968
2162
  external_price_id: nil,
1969
2163
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -2000,6 +2194,10 @@ module Orb
2000
2194
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration
2001
2195
  ),
2002
2196
  conversion_rate: T.nilable(Float),
2197
+ dimensional_price_configuration:
2198
+ T.nilable(
2199
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::DimensionalPriceConfiguration
2200
+ ),
2003
2201
  external_price_id: T.nilable(String),
2004
2202
  fixed_price_quantity: T.nilable(Float),
2005
2203
  invoice_grouping_key: T.nilable(String),
@@ -2265,6 +2463,60 @@ module Orb
2265
2463
  end
2266
2464
  end
2267
2465
 
2466
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
2467
+ OrHash =
2468
+ T.type_alias do
2469
+ T.any(
2470
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::DimensionalPriceConfiguration,
2471
+ Orb::Internal::AnyHash
2472
+ )
2473
+ end
2474
+
2475
+ # The list of dimension values matching (in order) the dimensions of the price
2476
+ # group
2477
+ sig { returns(T::Array[String]) }
2478
+ attr_accessor :dimension_values
2479
+
2480
+ # The id of the dimensional price group to include this price in
2481
+ sig { returns(T.nilable(String)) }
2482
+ attr_accessor :dimensional_price_group_id
2483
+
2484
+ # The external id of the dimensional price group to include this price in
2485
+ sig { returns(T.nilable(String)) }
2486
+ attr_accessor :external_dimensional_price_group_id
2487
+
2488
+ # For dimensional price: specifies a price group and dimension values
2489
+ sig do
2490
+ params(
2491
+ dimension_values: T::Array[String],
2492
+ dimensional_price_group_id: T.nilable(String),
2493
+ external_dimensional_price_group_id: T.nilable(String)
2494
+ ).returns(T.attached_class)
2495
+ end
2496
+ def self.new(
2497
+ # The list of dimension values matching (in order) the dimensions of the price
2498
+ # group
2499
+ dimension_values:,
2500
+ # The id of the dimensional price group to include this price in
2501
+ dimensional_price_group_id: nil,
2502
+ # The external id of the dimensional price group to include this price in
2503
+ external_dimensional_price_group_id: nil
2504
+ )
2505
+ end
2506
+
2507
+ sig do
2508
+ override.returns(
2509
+ {
2510
+ dimension_values: T::Array[String],
2511
+ dimensional_price_group_id: T.nilable(String),
2512
+ external_dimensional_price_group_id: T.nilable(String)
2513
+ }
2514
+ )
2515
+ end
2516
+ def to_hash
2517
+ end
2518
+ end
2519
+
2268
2520
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
2269
2521
  OrHash =
2270
2522
  T.type_alias do
@@ -2434,6 +2686,26 @@ module Orb
2434
2686
  sig { returns(T.nilable(Float)) }
2435
2687
  attr_accessor :conversion_rate
2436
2688
 
2689
+ # For dimensional price: specifies a price group and dimension values
2690
+ sig do
2691
+ returns(
2692
+ T.nilable(
2693
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::DimensionalPriceConfiguration
2694
+ )
2695
+ )
2696
+ end
2697
+ attr_reader :dimensional_price_configuration
2698
+
2699
+ sig do
2700
+ params(
2701
+ dimensional_price_configuration:
2702
+ T.nilable(
2703
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::DimensionalPriceConfiguration::OrHash
2704
+ )
2705
+ ).void
2706
+ end
2707
+ attr_writer :dimensional_price_configuration
2708
+
2437
2709
  # An alias for the price.
2438
2710
  sig { returns(T.nilable(String)) }
2439
2711
  attr_accessor :external_price_id
@@ -2490,6 +2762,10 @@ module Orb
2490
2762
  Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::OrHash
2491
2763
  ),
2492
2764
  conversion_rate: T.nilable(Float),
2765
+ dimensional_price_configuration:
2766
+ T.nilable(
2767
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::DimensionalPriceConfiguration::OrHash
2768
+ ),
2493
2769
  external_price_id: T.nilable(String),
2494
2770
  fixed_price_quantity: T.nilable(Float),
2495
2771
  invoice_grouping_key: T.nilable(String),
@@ -2522,6 +2798,8 @@ module Orb
2522
2798
  billing_cycle_configuration: nil,
2523
2799
  # The per unit conversion rate of the price currency to the invoicing currency.
2524
2800
  conversion_rate: nil,
2801
+ # For dimensional price: specifies a price group and dimension values
2802
+ dimensional_price_configuration: nil,
2525
2803
  # An alias for the price.
2526
2804
  external_price_id: nil,
2527
2805
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -2558,6 +2836,10 @@ module Orb
2558
2836
  Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration
2559
2837
  ),
2560
2838
  conversion_rate: T.nilable(Float),
2839
+ dimensional_price_configuration:
2840
+ T.nilable(
2841
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::DimensionalPriceConfiguration
2842
+ ),
2561
2843
  external_price_id: T.nilable(String),
2562
2844
  fixed_price_quantity: T.nilable(Float),
2563
2845
  invoice_grouping_key: T.nilable(String),
@@ -2831,6 +3113,60 @@ module Orb
2831
3113
  end
2832
3114
  end
2833
3115
 
3116
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
3117
+ OrHash =
3118
+ T.type_alias do
3119
+ T.any(
3120
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::DimensionalPriceConfiguration,
3121
+ Orb::Internal::AnyHash
3122
+ )
3123
+ end
3124
+
3125
+ # The list of dimension values matching (in order) the dimensions of the price
3126
+ # group
3127
+ sig { returns(T::Array[String]) }
3128
+ attr_accessor :dimension_values
3129
+
3130
+ # The id of the dimensional price group to include this price in
3131
+ sig { returns(T.nilable(String)) }
3132
+ attr_accessor :dimensional_price_group_id
3133
+
3134
+ # The external id of the dimensional price group to include this price in
3135
+ sig { returns(T.nilable(String)) }
3136
+ attr_accessor :external_dimensional_price_group_id
3137
+
3138
+ # For dimensional price: specifies a price group and dimension values
3139
+ sig do
3140
+ params(
3141
+ dimension_values: T::Array[String],
3142
+ dimensional_price_group_id: T.nilable(String),
3143
+ external_dimensional_price_group_id: T.nilable(String)
3144
+ ).returns(T.attached_class)
3145
+ end
3146
+ def self.new(
3147
+ # The list of dimension values matching (in order) the dimensions of the price
3148
+ # group
3149
+ dimension_values:,
3150
+ # The id of the dimensional price group to include this price in
3151
+ dimensional_price_group_id: nil,
3152
+ # The external id of the dimensional price group to include this price in
3153
+ external_dimensional_price_group_id: nil
3154
+ )
3155
+ end
3156
+
3157
+ sig do
3158
+ override.returns(
3159
+ {
3160
+ dimension_values: T::Array[String],
3161
+ dimensional_price_group_id: T.nilable(String),
3162
+ external_dimensional_price_group_id: T.nilable(String)
3163
+ }
3164
+ )
3165
+ end
3166
+ def to_hash
3167
+ end
3168
+ end
3169
+
2834
3170
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
2835
3171
  OrHash =
2836
3172
  T.type_alias do
@@ -3000,6 +3336,26 @@ module Orb
3000
3336
  sig { returns(T.nilable(Float)) }
3001
3337
  attr_accessor :conversion_rate
3002
3338
 
3339
+ # For dimensional price: specifies a price group and dimension values
3340
+ sig do
3341
+ returns(
3342
+ T.nilable(
3343
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::DimensionalPriceConfiguration
3344
+ )
3345
+ )
3346
+ end
3347
+ attr_reader :dimensional_price_configuration
3348
+
3349
+ sig do
3350
+ params(
3351
+ dimensional_price_configuration:
3352
+ T.nilable(
3353
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::DimensionalPriceConfiguration::OrHash
3354
+ )
3355
+ ).void
3356
+ end
3357
+ attr_writer :dimensional_price_configuration
3358
+
3003
3359
  # An alias for the price.
3004
3360
  sig { returns(T.nilable(String)) }
3005
3361
  attr_accessor :external_price_id
@@ -3056,6 +3412,10 @@ module Orb
3056
3412
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::OrHash
3057
3413
  ),
3058
3414
  conversion_rate: T.nilable(Float),
3415
+ dimensional_price_configuration:
3416
+ T.nilable(
3417
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::DimensionalPriceConfiguration::OrHash
3418
+ ),
3059
3419
  external_price_id: T.nilable(String),
3060
3420
  fixed_price_quantity: T.nilable(Float),
3061
3421
  invoice_grouping_key: T.nilable(String),
@@ -3088,6 +3448,8 @@ module Orb
3088
3448
  billing_cycle_configuration: nil,
3089
3449
  # The per unit conversion rate of the price currency to the invoicing currency.
3090
3450
  conversion_rate: nil,
3451
+ # For dimensional price: specifies a price group and dimension values
3452
+ dimensional_price_configuration: nil,
3091
3453
  # An alias for the price.
3092
3454
  external_price_id: nil,
3093
3455
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -3124,6 +3486,10 @@ module Orb
3124
3486
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration
3125
3487
  ),
3126
3488
  conversion_rate: T.nilable(Float),
3489
+ dimensional_price_configuration:
3490
+ T.nilable(
3491
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::DimensionalPriceConfiguration
3492
+ ),
3127
3493
  external_price_id: T.nilable(String),
3128
3494
  fixed_price_quantity: T.nilable(Float),
3129
3495
  invoice_grouping_key: T.nilable(String),
@@ -3377,6 +3743,60 @@ module Orb
3377
3743
  end
3378
3744
  end
3379
3745
 
3746
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
3747
+ OrHash =
3748
+ T.type_alias do
3749
+ T.any(
3750
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::DimensionalPriceConfiguration,
3751
+ Orb::Internal::AnyHash
3752
+ )
3753
+ end
3754
+
3755
+ # The list of dimension values matching (in order) the dimensions of the price
3756
+ # group
3757
+ sig { returns(T::Array[String]) }
3758
+ attr_accessor :dimension_values
3759
+
3760
+ # The id of the dimensional price group to include this price in
3761
+ sig { returns(T.nilable(String)) }
3762
+ attr_accessor :dimensional_price_group_id
3763
+
3764
+ # The external id of the dimensional price group to include this price in
3765
+ sig { returns(T.nilable(String)) }
3766
+ attr_accessor :external_dimensional_price_group_id
3767
+
3768
+ # For dimensional price: specifies a price group and dimension values
3769
+ sig do
3770
+ params(
3771
+ dimension_values: T::Array[String],
3772
+ dimensional_price_group_id: T.nilable(String),
3773
+ external_dimensional_price_group_id: T.nilable(String)
3774
+ ).returns(T.attached_class)
3775
+ end
3776
+ def self.new(
3777
+ # The list of dimension values matching (in order) the dimensions of the price
3778
+ # group
3779
+ dimension_values:,
3780
+ # The id of the dimensional price group to include this price in
3781
+ dimensional_price_group_id: nil,
3782
+ # The external id of the dimensional price group to include this price in
3783
+ external_dimensional_price_group_id: nil
3784
+ )
3785
+ end
3786
+
3787
+ sig do
3788
+ override.returns(
3789
+ {
3790
+ dimension_values: T::Array[String],
3791
+ dimensional_price_group_id: T.nilable(String),
3792
+ external_dimensional_price_group_id: T.nilable(String)
3793
+ }
3794
+ )
3795
+ end
3796
+ def to_hash
3797
+ end
3798
+ end
3799
+
3380
3800
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
3381
3801
  OrHash =
3382
3802
  T.type_alias do
@@ -3546,6 +3966,26 @@ module Orb
3546
3966
  sig { returns(T.nilable(Float)) }
3547
3967
  attr_accessor :conversion_rate
3548
3968
 
3969
+ # For dimensional price: specifies a price group and dimension values
3970
+ sig do
3971
+ returns(
3972
+ T.nilable(
3973
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::DimensionalPriceConfiguration
3974
+ )
3975
+ )
3976
+ end
3977
+ attr_reader :dimensional_price_configuration
3978
+
3979
+ sig do
3980
+ params(
3981
+ dimensional_price_configuration:
3982
+ T.nilable(
3983
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::DimensionalPriceConfiguration::OrHash
3984
+ )
3985
+ ).void
3986
+ end
3987
+ attr_writer :dimensional_price_configuration
3988
+
3549
3989
  # An alias for the price.
3550
3990
  sig { returns(T.nilable(String)) }
3551
3991
  attr_accessor :external_price_id
@@ -3602,6 +4042,10 @@ module Orb
3602
4042
  Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::OrHash
3603
4043
  ),
3604
4044
  conversion_rate: T.nilable(Float),
4045
+ dimensional_price_configuration:
4046
+ T.nilable(
4047
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::DimensionalPriceConfiguration::OrHash
4048
+ ),
3605
4049
  external_price_id: T.nilable(String),
3606
4050
  fixed_price_quantity: T.nilable(Float),
3607
4051
  invoice_grouping_key: T.nilable(String),
@@ -3634,6 +4078,8 @@ module Orb
3634
4078
  billing_cycle_configuration: nil,
3635
4079
  # The per unit conversion rate of the price currency to the invoicing currency.
3636
4080
  conversion_rate: nil,
4081
+ # For dimensional price: specifies a price group and dimension values
4082
+ dimensional_price_configuration: nil,
3637
4083
  # An alias for the price.
3638
4084
  external_price_id: nil,
3639
4085
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -3670,6 +4116,10 @@ module Orb
3670
4116
  Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration
3671
4117
  ),
3672
4118
  conversion_rate: T.nilable(Float),
4119
+ dimensional_price_configuration:
4120
+ T.nilable(
4121
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::DimensionalPriceConfiguration
4122
+ ),
3673
4123
  external_price_id: T.nilable(String),
3674
4124
  fixed_price_quantity: T.nilable(Float),
3675
4125
  invoice_grouping_key: T.nilable(String),
@@ -3933,6 +4383,60 @@ module Orb
3933
4383
  end
3934
4384
  end
3935
4385
 
4386
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
4387
+ OrHash =
4388
+ T.type_alias do
4389
+ T.any(
4390
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::DimensionalPriceConfiguration,
4391
+ Orb::Internal::AnyHash
4392
+ )
4393
+ end
4394
+
4395
+ # The list of dimension values matching (in order) the dimensions of the price
4396
+ # group
4397
+ sig { returns(T::Array[String]) }
4398
+ attr_accessor :dimension_values
4399
+
4400
+ # The id of the dimensional price group to include this price in
4401
+ sig { returns(T.nilable(String)) }
4402
+ attr_accessor :dimensional_price_group_id
4403
+
4404
+ # The external id of the dimensional price group to include this price in
4405
+ sig { returns(T.nilable(String)) }
4406
+ attr_accessor :external_dimensional_price_group_id
4407
+
4408
+ # For dimensional price: specifies a price group and dimension values
4409
+ sig do
4410
+ params(
4411
+ dimension_values: T::Array[String],
4412
+ dimensional_price_group_id: T.nilable(String),
4413
+ external_dimensional_price_group_id: T.nilable(String)
4414
+ ).returns(T.attached_class)
4415
+ end
4416
+ def self.new(
4417
+ # The list of dimension values matching (in order) the dimensions of the price
4418
+ # group
4419
+ dimension_values:,
4420
+ # The id of the dimensional price group to include this price in
4421
+ dimensional_price_group_id: nil,
4422
+ # The external id of the dimensional price group to include this price in
4423
+ external_dimensional_price_group_id: nil
4424
+ )
4425
+ end
4426
+
4427
+ sig do
4428
+ override.returns(
4429
+ {
4430
+ dimension_values: T::Array[String],
4431
+ dimensional_price_group_id: T.nilable(String),
4432
+ external_dimensional_price_group_id: T.nilable(String)
4433
+ }
4434
+ )
4435
+ end
4436
+ def to_hash
4437
+ end
4438
+ end
4439
+
3936
4440
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
3937
4441
  OrHash =
3938
4442
  T.type_alias do
@@ -4102,6 +4606,26 @@ module Orb
4102
4606
  sig { returns(T.nilable(Float)) }
4103
4607
  attr_accessor :conversion_rate
4104
4608
 
4609
+ # For dimensional price: specifies a price group and dimension values
4610
+ sig do
4611
+ returns(
4612
+ T.nilable(
4613
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::DimensionalPriceConfiguration
4614
+ )
4615
+ )
4616
+ end
4617
+ attr_reader :dimensional_price_configuration
4618
+
4619
+ sig do
4620
+ params(
4621
+ dimensional_price_configuration:
4622
+ T.nilable(
4623
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::DimensionalPriceConfiguration::OrHash
4624
+ )
4625
+ ).void
4626
+ end
4627
+ attr_writer :dimensional_price_configuration
4628
+
4105
4629
  # An alias for the price.
4106
4630
  sig { returns(T.nilable(String)) }
4107
4631
  attr_accessor :external_price_id
@@ -4158,6 +4682,10 @@ module Orb
4158
4682
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::OrHash
4159
4683
  ),
4160
4684
  conversion_rate: T.nilable(Float),
4685
+ dimensional_price_configuration:
4686
+ T.nilable(
4687
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::DimensionalPriceConfiguration::OrHash
4688
+ ),
4161
4689
  external_price_id: T.nilable(String),
4162
4690
  fixed_price_quantity: T.nilable(Float),
4163
4691
  invoice_grouping_key: T.nilable(String),
@@ -4190,6 +4718,8 @@ module Orb
4190
4718
  billing_cycle_configuration: nil,
4191
4719
  # The per unit conversion rate of the price currency to the invoicing currency.
4192
4720
  conversion_rate: nil,
4721
+ # For dimensional price: specifies a price group and dimension values
4722
+ dimensional_price_configuration: nil,
4193
4723
  # An alias for the price.
4194
4724
  external_price_id: nil,
4195
4725
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -4226,6 +4756,10 @@ module Orb
4226
4756
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration
4227
4757
  ),
4228
4758
  conversion_rate: T.nilable(Float),
4759
+ dimensional_price_configuration:
4760
+ T.nilable(
4761
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::DimensionalPriceConfiguration
4762
+ ),
4229
4763
  external_price_id: T.nilable(String),
4230
4764
  fixed_price_quantity: T.nilable(Float),
4231
4765
  invoice_grouping_key: T.nilable(String),
@@ -4420,6 +4954,60 @@ module Orb
4420
4954
  end
4421
4955
  end
4422
4956
 
4957
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
4958
+ OrHash =
4959
+ T.type_alias do
4960
+ T.any(
4961
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::DimensionalPriceConfiguration,
4962
+ Orb::Internal::AnyHash
4963
+ )
4964
+ end
4965
+
4966
+ # The list of dimension values matching (in order) the dimensions of the price
4967
+ # group
4968
+ sig { returns(T::Array[String]) }
4969
+ attr_accessor :dimension_values
4970
+
4971
+ # The id of the dimensional price group to include this price in
4972
+ sig { returns(T.nilable(String)) }
4973
+ attr_accessor :dimensional_price_group_id
4974
+
4975
+ # The external id of the dimensional price group to include this price in
4976
+ sig { returns(T.nilable(String)) }
4977
+ attr_accessor :external_dimensional_price_group_id
4978
+
4979
+ # For dimensional price: specifies a price group and dimension values
4980
+ sig do
4981
+ params(
4982
+ dimension_values: T::Array[String],
4983
+ dimensional_price_group_id: T.nilable(String),
4984
+ external_dimensional_price_group_id: T.nilable(String)
4985
+ ).returns(T.attached_class)
4986
+ end
4987
+ def self.new(
4988
+ # The list of dimension values matching (in order) the dimensions of the price
4989
+ # group
4990
+ dimension_values:,
4991
+ # The id of the dimensional price group to include this price in
4992
+ dimensional_price_group_id: nil,
4993
+ # The external id of the dimensional price group to include this price in
4994
+ external_dimensional_price_group_id: nil
4995
+ )
4996
+ end
4997
+
4998
+ sig do
4999
+ override.returns(
5000
+ {
5001
+ dimension_values: T::Array[String],
5002
+ dimensional_price_group_id: T.nilable(String),
5003
+ external_dimensional_price_group_id: T.nilable(String)
5004
+ }
5005
+ )
5006
+ end
5007
+ def to_hash
5008
+ end
5009
+ end
5010
+
4423
5011
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
4424
5012
  OrHash =
4425
5013
  T.type_alias do
@@ -4589,6 +5177,26 @@ module Orb
4589
5177
  sig { returns(T.nilable(Float)) }
4590
5178
  attr_accessor :conversion_rate
4591
5179
 
5180
+ # For dimensional price: specifies a price group and dimension values
5181
+ sig do
5182
+ returns(
5183
+ T.nilable(
5184
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::DimensionalPriceConfiguration
5185
+ )
5186
+ )
5187
+ end
5188
+ attr_reader :dimensional_price_configuration
5189
+
5190
+ sig do
5191
+ params(
5192
+ dimensional_price_configuration:
5193
+ T.nilable(
5194
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::DimensionalPriceConfiguration::OrHash
5195
+ )
5196
+ ).void
5197
+ end
5198
+ attr_writer :dimensional_price_configuration
5199
+
4592
5200
  # An alias for the price.
4593
5201
  sig { returns(T.nilable(String)) }
4594
5202
  attr_accessor :external_price_id
@@ -4645,6 +5253,10 @@ module Orb
4645
5253
  Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::OrHash
4646
5254
  ),
4647
5255
  conversion_rate: T.nilable(Float),
5256
+ dimensional_price_configuration:
5257
+ T.nilable(
5258
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::DimensionalPriceConfiguration::OrHash
5259
+ ),
4648
5260
  external_price_id: T.nilable(String),
4649
5261
  fixed_price_quantity: T.nilable(Float),
4650
5262
  invoice_grouping_key: T.nilable(String),
@@ -4677,6 +5289,8 @@ module Orb
4677
5289
  billing_cycle_configuration: nil,
4678
5290
  # The per unit conversion rate of the price currency to the invoicing currency.
4679
5291
  conversion_rate: nil,
5292
+ # For dimensional price: specifies a price group and dimension values
5293
+ dimensional_price_configuration: nil,
4680
5294
  # An alias for the price.
4681
5295
  external_price_id: nil,
4682
5296
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -4713,6 +5327,10 @@ module Orb
4713
5327
  Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration
4714
5328
  ),
4715
5329
  conversion_rate: T.nilable(Float),
5330
+ dimensional_price_configuration:
5331
+ T.nilable(
5332
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::DimensionalPriceConfiguration
5333
+ ),
4716
5334
  external_price_id: T.nilable(String),
4717
5335
  fixed_price_quantity: T.nilable(Float),
4718
5336
  invoice_grouping_key: T.nilable(String),
@@ -4968,6 +5586,60 @@ module Orb
4968
5586
  end
4969
5587
  end
4970
5588
 
5589
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
5590
+ OrHash =
5591
+ T.type_alias do
5592
+ T.any(
5593
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::DimensionalPriceConfiguration,
5594
+ Orb::Internal::AnyHash
5595
+ )
5596
+ end
5597
+
5598
+ # The list of dimension values matching (in order) the dimensions of the price
5599
+ # group
5600
+ sig { returns(T::Array[String]) }
5601
+ attr_accessor :dimension_values
5602
+
5603
+ # The id of the dimensional price group to include this price in
5604
+ sig { returns(T.nilable(String)) }
5605
+ attr_accessor :dimensional_price_group_id
5606
+
5607
+ # The external id of the dimensional price group to include this price in
5608
+ sig { returns(T.nilable(String)) }
5609
+ attr_accessor :external_dimensional_price_group_id
5610
+
5611
+ # For dimensional price: specifies a price group and dimension values
5612
+ sig do
5613
+ params(
5614
+ dimension_values: T::Array[String],
5615
+ dimensional_price_group_id: T.nilable(String),
5616
+ external_dimensional_price_group_id: T.nilable(String)
5617
+ ).returns(T.attached_class)
5618
+ end
5619
+ def self.new(
5620
+ # The list of dimension values matching (in order) the dimensions of the price
5621
+ # group
5622
+ dimension_values:,
5623
+ # The id of the dimensional price group to include this price in
5624
+ dimensional_price_group_id: nil,
5625
+ # The external id of the dimensional price group to include this price in
5626
+ external_dimensional_price_group_id: nil
5627
+ )
5628
+ end
5629
+
5630
+ sig do
5631
+ override.returns(
5632
+ {
5633
+ dimension_values: T::Array[String],
5634
+ dimensional_price_group_id: T.nilable(String),
5635
+ external_dimensional_price_group_id: T.nilable(String)
5636
+ }
5637
+ )
5638
+ end
5639
+ def to_hash
5640
+ end
5641
+ end
5642
+
4971
5643
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
4972
5644
  OrHash =
4973
5645
  T.type_alias do
@@ -5137,6 +5809,26 @@ module Orb
5137
5809
  sig { returns(T.nilable(Float)) }
5138
5810
  attr_accessor :conversion_rate
5139
5811
 
5812
+ # For dimensional price: specifies a price group and dimension values
5813
+ sig do
5814
+ returns(
5815
+ T.nilable(
5816
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::DimensionalPriceConfiguration
5817
+ )
5818
+ )
5819
+ end
5820
+ attr_reader :dimensional_price_configuration
5821
+
5822
+ sig do
5823
+ params(
5824
+ dimensional_price_configuration:
5825
+ T.nilable(
5826
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::DimensionalPriceConfiguration::OrHash
5827
+ )
5828
+ ).void
5829
+ end
5830
+ attr_writer :dimensional_price_configuration
5831
+
5140
5832
  # An alias for the price.
5141
5833
  sig { returns(T.nilable(String)) }
5142
5834
  attr_accessor :external_price_id
@@ -5193,6 +5885,10 @@ module Orb
5193
5885
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::OrHash
5194
5886
  ),
5195
5887
  conversion_rate: T.nilable(Float),
5888
+ dimensional_price_configuration:
5889
+ T.nilable(
5890
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::DimensionalPriceConfiguration::OrHash
5891
+ ),
5196
5892
  external_price_id: T.nilable(String),
5197
5893
  fixed_price_quantity: T.nilable(Float),
5198
5894
  invoice_grouping_key: T.nilable(String),
@@ -5225,6 +5921,8 @@ module Orb
5225
5921
  billing_cycle_configuration: nil,
5226
5922
  # The per unit conversion rate of the price currency to the invoicing currency.
5227
5923
  conversion_rate: nil,
5924
+ # For dimensional price: specifies a price group and dimension values
5925
+ dimensional_price_configuration: nil,
5228
5926
  # An alias for the price.
5229
5927
  external_price_id: nil,
5230
5928
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -5261,6 +5959,10 @@ module Orb
5261
5959
  Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration
5262
5960
  ),
5263
5961
  conversion_rate: T.nilable(Float),
5962
+ dimensional_price_configuration:
5963
+ T.nilable(
5964
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::DimensionalPriceConfiguration
5965
+ ),
5264
5966
  external_price_id: T.nilable(String),
5265
5967
  fixed_price_quantity: T.nilable(Float),
5266
5968
  invoice_grouping_key: T.nilable(String),
@@ -5503,6 +6205,60 @@ module Orb
5503
6205
  end
5504
6206
  end
5505
6207
 
6208
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
6209
+ OrHash =
6210
+ T.type_alias do
6211
+ T.any(
6212
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::DimensionalPriceConfiguration,
6213
+ Orb::Internal::AnyHash
6214
+ )
6215
+ end
6216
+
6217
+ # The list of dimension values matching (in order) the dimensions of the price
6218
+ # group
6219
+ sig { returns(T::Array[String]) }
6220
+ attr_accessor :dimension_values
6221
+
6222
+ # The id of the dimensional price group to include this price in
6223
+ sig { returns(T.nilable(String)) }
6224
+ attr_accessor :dimensional_price_group_id
6225
+
6226
+ # The external id of the dimensional price group to include this price in
6227
+ sig { returns(T.nilable(String)) }
6228
+ attr_accessor :external_dimensional_price_group_id
6229
+
6230
+ # For dimensional price: specifies a price group and dimension values
6231
+ sig do
6232
+ params(
6233
+ dimension_values: T::Array[String],
6234
+ dimensional_price_group_id: T.nilable(String),
6235
+ external_dimensional_price_group_id: T.nilable(String)
6236
+ ).returns(T.attached_class)
6237
+ end
6238
+ def self.new(
6239
+ # The list of dimension values matching (in order) the dimensions of the price
6240
+ # group
6241
+ dimension_values:,
6242
+ # The id of the dimensional price group to include this price in
6243
+ dimensional_price_group_id: nil,
6244
+ # The external id of the dimensional price group to include this price in
6245
+ external_dimensional_price_group_id: nil
6246
+ )
6247
+ end
6248
+
6249
+ sig do
6250
+ override.returns(
6251
+ {
6252
+ dimension_values: T::Array[String],
6253
+ dimensional_price_group_id: T.nilable(String),
6254
+ external_dimensional_price_group_id: T.nilable(String)
6255
+ }
6256
+ )
6257
+ end
6258
+ def to_hash
6259
+ end
6260
+ end
6261
+
5506
6262
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
5507
6263
  OrHash =
5508
6264
  T.type_alias do
@@ -5660,6 +6416,26 @@ module Orb
5660
6416
  sig { returns(T.nilable(Float)) }
5661
6417
  attr_accessor :conversion_rate
5662
6418
 
6419
+ # For dimensional price: specifies a price group and dimension values
6420
+ sig do
6421
+ returns(
6422
+ T.nilable(
6423
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::DimensionalPriceConfiguration
6424
+ )
6425
+ )
6426
+ end
6427
+ attr_reader :dimensional_price_configuration
6428
+
6429
+ sig do
6430
+ params(
6431
+ dimensional_price_configuration:
6432
+ T.nilable(
6433
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::DimensionalPriceConfiguration::OrHash
6434
+ )
6435
+ ).void
6436
+ end
6437
+ attr_writer :dimensional_price_configuration
6438
+
5663
6439
  # An alias for the price.
5664
6440
  sig { returns(T.nilable(String)) }
5665
6441
  attr_accessor :external_price_id
@@ -5715,6 +6491,10 @@ module Orb
5715
6491
  Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash
5716
6492
  ),
5717
6493
  conversion_rate: T.nilable(Float),
6494
+ dimensional_price_configuration:
6495
+ T.nilable(
6496
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::DimensionalPriceConfiguration::OrHash
6497
+ ),
5718
6498
  external_price_id: T.nilable(String),
5719
6499
  fixed_price_quantity: T.nilable(Float),
5720
6500
  invoice_grouping_key: T.nilable(String),
@@ -5747,6 +6527,8 @@ module Orb
5747
6527
  billing_cycle_configuration: nil,
5748
6528
  # The per unit conversion rate of the price currency to the invoicing currency.
5749
6529
  conversion_rate: nil,
6530
+ # For dimensional price: specifies a price group and dimension values
6531
+ dimensional_price_configuration: nil,
5750
6532
  # An alias for the price.
5751
6533
  external_price_id: nil,
5752
6534
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -5782,6 +6564,10 @@ module Orb
5782
6564
  Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration
5783
6565
  ),
5784
6566
  conversion_rate: T.nilable(Float),
6567
+ dimensional_price_configuration:
6568
+ T.nilable(
6569
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::DimensionalPriceConfiguration
6570
+ ),
5785
6571
  external_price_id: T.nilable(String),
5786
6572
  fixed_price_quantity: T.nilable(Float),
5787
6573
  invoice_grouping_key: T.nilable(String),
@@ -5937,6 +6723,60 @@ module Orb
5937
6723
  end
5938
6724
  end
5939
6725
 
6726
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
6727
+ OrHash =
6728
+ T.type_alias do
6729
+ T.any(
6730
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::DimensionalPriceConfiguration,
6731
+ Orb::Internal::AnyHash
6732
+ )
6733
+ end
6734
+
6735
+ # The list of dimension values matching (in order) the dimensions of the price
6736
+ # group
6737
+ sig { returns(T::Array[String]) }
6738
+ attr_accessor :dimension_values
6739
+
6740
+ # The id of the dimensional price group to include this price in
6741
+ sig { returns(T.nilable(String)) }
6742
+ attr_accessor :dimensional_price_group_id
6743
+
6744
+ # The external id of the dimensional price group to include this price in
6745
+ sig { returns(T.nilable(String)) }
6746
+ attr_accessor :external_dimensional_price_group_id
6747
+
6748
+ # For dimensional price: specifies a price group and dimension values
6749
+ sig do
6750
+ params(
6751
+ dimension_values: T::Array[String],
6752
+ dimensional_price_group_id: T.nilable(String),
6753
+ external_dimensional_price_group_id: T.nilable(String)
6754
+ ).returns(T.attached_class)
6755
+ end
6756
+ def self.new(
6757
+ # The list of dimension values matching (in order) the dimensions of the price
6758
+ # group
6759
+ dimension_values:,
6760
+ # The id of the dimensional price group to include this price in
6761
+ dimensional_price_group_id: nil,
6762
+ # The external id of the dimensional price group to include this price in
6763
+ external_dimensional_price_group_id: nil
6764
+ )
6765
+ end
6766
+
6767
+ sig do
6768
+ override.returns(
6769
+ {
6770
+ dimension_values: T::Array[String],
6771
+ dimensional_price_group_id: T.nilable(String),
6772
+ external_dimensional_price_group_id: T.nilable(String)
6773
+ }
6774
+ )
6775
+ end
6776
+ def to_hash
6777
+ end
6778
+ end
6779
+
5940
6780
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
5941
6781
  OrHash =
5942
6782
  T.type_alias do
@@ -6094,6 +6934,26 @@ module Orb
6094
6934
  sig { returns(T.nilable(Float)) }
6095
6935
  attr_accessor :conversion_rate
6096
6936
 
6937
+ # For dimensional price: specifies a price group and dimension values
6938
+ sig do
6939
+ returns(
6940
+ T.nilable(
6941
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::DimensionalPriceConfiguration
6942
+ )
6943
+ )
6944
+ end
6945
+ attr_reader :dimensional_price_configuration
6946
+
6947
+ sig do
6948
+ params(
6949
+ dimensional_price_configuration:
6950
+ T.nilable(
6951
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::DimensionalPriceConfiguration::OrHash
6952
+ )
6953
+ ).void
6954
+ end
6955
+ attr_writer :dimensional_price_configuration
6956
+
6097
6957
  # An alias for the price.
6098
6958
  sig { returns(T.nilable(String)) }
6099
6959
  attr_accessor :external_price_id
@@ -6149,6 +7009,10 @@ module Orb
6149
7009
  Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::OrHash
6150
7010
  ),
6151
7011
  conversion_rate: T.nilable(Float),
7012
+ dimensional_price_configuration:
7013
+ T.nilable(
7014
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::DimensionalPriceConfiguration::OrHash
7015
+ ),
6152
7016
  external_price_id: T.nilable(String),
6153
7017
  fixed_price_quantity: T.nilable(Float),
6154
7018
  invoice_grouping_key: T.nilable(String),
@@ -6181,6 +7045,8 @@ module Orb
6181
7045
  billing_cycle_configuration: nil,
6182
7046
  # The per unit conversion rate of the price currency to the invoicing currency.
6183
7047
  conversion_rate: nil,
7048
+ # For dimensional price: specifies a price group and dimension values
7049
+ dimensional_price_configuration: nil,
6184
7050
  # An alias for the price.
6185
7051
  external_price_id: nil,
6186
7052
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -6216,6 +7082,10 @@ module Orb
6216
7082
  Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration
6217
7083
  ),
6218
7084
  conversion_rate: T.nilable(Float),
7085
+ dimensional_price_configuration:
7086
+ T.nilable(
7087
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::DimensionalPriceConfiguration
7088
+ ),
6219
7089
  external_price_id: T.nilable(String),
6220
7090
  fixed_price_quantity: T.nilable(Float),
6221
7091
  invoice_grouping_key: T.nilable(String),
@@ -6371,28 +7241,82 @@ module Orb
6371
7241
  end
6372
7242
  end
6373
7243
 
6374
- class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
7244
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
6375
7245
  OrHash =
6376
7246
  T.type_alias do
6377
7247
  T.any(
6378
- Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration,
7248
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::DimensionalPriceConfiguration,
6379
7249
  Orb::Internal::AnyHash
6380
7250
  )
6381
7251
  end
6382
7252
 
6383
- # The duration of the billing period.
6384
- sig { returns(Integer) }
6385
- attr_accessor :duration
7253
+ # The list of dimension values matching (in order) the dimensions of the price
7254
+ # group
7255
+ sig { returns(T::Array[String]) }
7256
+ attr_accessor :dimension_values
6386
7257
 
6387
- # The unit of billing period duration.
6388
- sig do
6389
- returns(
6390
- Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol
6391
- )
6392
- end
6393
- attr_accessor :duration_unit
7258
+ # The id of the dimensional price group to include this price in
7259
+ sig { returns(T.nilable(String)) }
7260
+ attr_accessor :dimensional_price_group_id
6394
7261
 
6395
- # Within each billing cycle, specifies the cadence at which invoices are produced.
7262
+ # The external id of the dimensional price group to include this price in
7263
+ sig { returns(T.nilable(String)) }
7264
+ attr_accessor :external_dimensional_price_group_id
7265
+
7266
+ # For dimensional price: specifies a price group and dimension values
7267
+ sig do
7268
+ params(
7269
+ dimension_values: T::Array[String],
7270
+ dimensional_price_group_id: T.nilable(String),
7271
+ external_dimensional_price_group_id: T.nilable(String)
7272
+ ).returns(T.attached_class)
7273
+ end
7274
+ def self.new(
7275
+ # The list of dimension values matching (in order) the dimensions of the price
7276
+ # group
7277
+ dimension_values:,
7278
+ # The id of the dimensional price group to include this price in
7279
+ dimensional_price_group_id: nil,
7280
+ # The external id of the dimensional price group to include this price in
7281
+ external_dimensional_price_group_id: nil
7282
+ )
7283
+ end
7284
+
7285
+ sig do
7286
+ override.returns(
7287
+ {
7288
+ dimension_values: T::Array[String],
7289
+ dimensional_price_group_id: T.nilable(String),
7290
+ external_dimensional_price_group_id: T.nilable(String)
7291
+ }
7292
+ )
7293
+ end
7294
+ def to_hash
7295
+ end
7296
+ end
7297
+
7298
+ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
7299
+ OrHash =
7300
+ T.type_alias do
7301
+ T.any(
7302
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration,
7303
+ Orb::Internal::AnyHash
7304
+ )
7305
+ end
7306
+
7307
+ # The duration of the billing period.
7308
+ sig { returns(Integer) }
7309
+ attr_accessor :duration
7310
+
7311
+ # The unit of billing period duration.
7312
+ sig do
7313
+ returns(
7314
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol
7315
+ )
7316
+ end
7317
+ attr_accessor :duration_unit
7318
+
7319
+ # Within each billing cycle, specifies the cadence at which invoices are produced.
6396
7320
  # If unspecified, a single invoice is produced per billing cycle.
6397
7321
  sig do
6398
7322
  params(
@@ -6528,6 +7452,26 @@ module Orb
6528
7452
  sig { returns(T.nilable(Float)) }
6529
7453
  attr_accessor :conversion_rate
6530
7454
 
7455
+ # For dimensional price: specifies a price group and dimension values
7456
+ sig do
7457
+ returns(
7458
+ T.nilable(
7459
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::DimensionalPriceConfiguration
7460
+ )
7461
+ )
7462
+ end
7463
+ attr_reader :dimensional_price_configuration
7464
+
7465
+ sig do
7466
+ params(
7467
+ dimensional_price_configuration:
7468
+ T.nilable(
7469
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::DimensionalPriceConfiguration::OrHash
7470
+ )
7471
+ ).void
7472
+ end
7473
+ attr_writer :dimensional_price_configuration
7474
+
6531
7475
  # An alias for the price.
6532
7476
  sig { returns(T.nilable(String)) }
6533
7477
  attr_accessor :external_price_id
@@ -6583,6 +7527,10 @@ module Orb
6583
7527
  Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::OrHash
6584
7528
  ),
6585
7529
  conversion_rate: T.nilable(Float),
7530
+ dimensional_price_configuration:
7531
+ T.nilable(
7532
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::DimensionalPriceConfiguration::OrHash
7533
+ ),
6586
7534
  external_price_id: T.nilable(String),
6587
7535
  fixed_price_quantity: T.nilable(Float),
6588
7536
  invoice_grouping_key: T.nilable(String),
@@ -6615,6 +7563,8 @@ module Orb
6615
7563
  billing_cycle_configuration: nil,
6616
7564
  # The per unit conversion rate of the price currency to the invoicing currency.
6617
7565
  conversion_rate: nil,
7566
+ # For dimensional price: specifies a price group and dimension values
7567
+ dimensional_price_configuration: nil,
6618
7568
  # An alias for the price.
6619
7569
  external_price_id: nil,
6620
7570
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -6650,6 +7600,10 @@ module Orb
6650
7600
  Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration
6651
7601
  ),
6652
7602
  conversion_rate: T.nilable(Float),
7603
+ dimensional_price_configuration:
7604
+ T.nilable(
7605
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::DimensionalPriceConfiguration
7606
+ ),
6653
7607
  external_price_id: T.nilable(String),
6654
7608
  fixed_price_quantity: T.nilable(Float),
6655
7609
  invoice_grouping_key: T.nilable(String),
@@ -6805,6 +7759,60 @@ module Orb
6805
7759
  end
6806
7760
  end
6807
7761
 
7762
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
7763
+ OrHash =
7764
+ T.type_alias do
7765
+ T.any(
7766
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::DimensionalPriceConfiguration,
7767
+ Orb::Internal::AnyHash
7768
+ )
7769
+ end
7770
+
7771
+ # The list of dimension values matching (in order) the dimensions of the price
7772
+ # group
7773
+ sig { returns(T::Array[String]) }
7774
+ attr_accessor :dimension_values
7775
+
7776
+ # The id of the dimensional price group to include this price in
7777
+ sig { returns(T.nilable(String)) }
7778
+ attr_accessor :dimensional_price_group_id
7779
+
7780
+ # The external id of the dimensional price group to include this price in
7781
+ sig { returns(T.nilable(String)) }
7782
+ attr_accessor :external_dimensional_price_group_id
7783
+
7784
+ # For dimensional price: specifies a price group and dimension values
7785
+ sig do
7786
+ params(
7787
+ dimension_values: T::Array[String],
7788
+ dimensional_price_group_id: T.nilable(String),
7789
+ external_dimensional_price_group_id: T.nilable(String)
7790
+ ).returns(T.attached_class)
7791
+ end
7792
+ def self.new(
7793
+ # The list of dimension values matching (in order) the dimensions of the price
7794
+ # group
7795
+ dimension_values:,
7796
+ # The id of the dimensional price group to include this price in
7797
+ dimensional_price_group_id: nil,
7798
+ # The external id of the dimensional price group to include this price in
7799
+ external_dimensional_price_group_id: nil
7800
+ )
7801
+ end
7802
+
7803
+ sig do
7804
+ override.returns(
7805
+ {
7806
+ dimension_values: T::Array[String],
7807
+ dimensional_price_group_id: T.nilable(String),
7808
+ external_dimensional_price_group_id: T.nilable(String)
7809
+ }
7810
+ )
7811
+ end
7812
+ def to_hash
7813
+ end
7814
+ end
7815
+
6808
7816
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
6809
7817
  OrHash =
6810
7818
  T.type_alias do
@@ -6962,6 +7970,26 @@ module Orb
6962
7970
  sig { returns(T.nilable(Float)) }
6963
7971
  attr_accessor :conversion_rate
6964
7972
 
7973
+ # For dimensional price: specifies a price group and dimension values
7974
+ sig do
7975
+ returns(
7976
+ T.nilable(
7977
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration
7978
+ )
7979
+ )
7980
+ end
7981
+ attr_reader :dimensional_price_configuration
7982
+
7983
+ sig do
7984
+ params(
7985
+ dimensional_price_configuration:
7986
+ T.nilable(
7987
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration::OrHash
7988
+ )
7989
+ ).void
7990
+ end
7991
+ attr_writer :dimensional_price_configuration
7992
+
6965
7993
  # An alias for the price.
6966
7994
  sig { returns(T.nilable(String)) }
6967
7995
  attr_accessor :external_price_id
@@ -7017,6 +8045,10 @@ module Orb
7017
8045
  Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash
7018
8046
  ),
7019
8047
  conversion_rate: T.nilable(Float),
8048
+ dimensional_price_configuration:
8049
+ T.nilable(
8050
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration::OrHash
8051
+ ),
7020
8052
  external_price_id: T.nilable(String),
7021
8053
  fixed_price_quantity: T.nilable(Float),
7022
8054
  invoice_grouping_key: T.nilable(String),
@@ -7049,6 +8081,8 @@ module Orb
7049
8081
  billing_cycle_configuration: nil,
7050
8082
  # The per unit conversion rate of the price currency to the invoicing currency.
7051
8083
  conversion_rate: nil,
8084
+ # For dimensional price: specifies a price group and dimension values
8085
+ dimensional_price_configuration: nil,
7052
8086
  # An alias for the price.
7053
8087
  external_price_id: nil,
7054
8088
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -7084,6 +8118,10 @@ module Orb
7084
8118
  Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration
7085
8119
  ),
7086
8120
  conversion_rate: T.nilable(Float),
8121
+ dimensional_price_configuration:
8122
+ T.nilable(
8123
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration
8124
+ ),
7087
8125
  external_price_id: T.nilable(String),
7088
8126
  fixed_price_quantity: T.nilable(Float),
7089
8127
  invoice_grouping_key: T.nilable(String),
@@ -7239,6 +8277,60 @@ module Orb
7239
8277
  end
7240
8278
  end
7241
8279
 
8280
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
8281
+ OrHash =
8282
+ T.type_alias do
8283
+ T.any(
8284
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration,
8285
+ Orb::Internal::AnyHash
8286
+ )
8287
+ end
8288
+
8289
+ # The list of dimension values matching (in order) the dimensions of the price
8290
+ # group
8291
+ sig { returns(T::Array[String]) }
8292
+ attr_accessor :dimension_values
8293
+
8294
+ # The id of the dimensional price group to include this price in
8295
+ sig { returns(T.nilable(String)) }
8296
+ attr_accessor :dimensional_price_group_id
8297
+
8298
+ # The external id of the dimensional price group to include this price in
8299
+ sig { returns(T.nilable(String)) }
8300
+ attr_accessor :external_dimensional_price_group_id
8301
+
8302
+ # For dimensional price: specifies a price group and dimension values
8303
+ sig do
8304
+ params(
8305
+ dimension_values: T::Array[String],
8306
+ dimensional_price_group_id: T.nilable(String),
8307
+ external_dimensional_price_group_id: T.nilable(String)
8308
+ ).returns(T.attached_class)
8309
+ end
8310
+ def self.new(
8311
+ # The list of dimension values matching (in order) the dimensions of the price
8312
+ # group
8313
+ dimension_values:,
8314
+ # The id of the dimensional price group to include this price in
8315
+ dimensional_price_group_id: nil,
8316
+ # The external id of the dimensional price group to include this price in
8317
+ external_dimensional_price_group_id: nil
8318
+ )
8319
+ end
8320
+
8321
+ sig do
8322
+ override.returns(
8323
+ {
8324
+ dimension_values: T::Array[String],
8325
+ dimensional_price_group_id: T.nilable(String),
8326
+ external_dimensional_price_group_id: T.nilable(String)
8327
+ }
8328
+ )
8329
+ end
8330
+ def to_hash
8331
+ end
8332
+ end
8333
+
7242
8334
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
7243
8335
  OrHash =
7244
8336
  T.type_alias do
@@ -7396,6 +8488,26 @@ module Orb
7396
8488
  sig { returns(T.nilable(Float)) }
7397
8489
  attr_accessor :conversion_rate
7398
8490
 
8491
+ # For dimensional price: specifies a price group and dimension values
8492
+ sig do
8493
+ returns(
8494
+ T.nilable(
8495
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::DimensionalPriceConfiguration
8496
+ )
8497
+ )
8498
+ end
8499
+ attr_reader :dimensional_price_configuration
8500
+
8501
+ sig do
8502
+ params(
8503
+ dimensional_price_configuration:
8504
+ T.nilable(
8505
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::DimensionalPriceConfiguration::OrHash
8506
+ )
8507
+ ).void
8508
+ end
8509
+ attr_writer :dimensional_price_configuration
8510
+
7399
8511
  # An alias for the price.
7400
8512
  sig { returns(T.nilable(String)) }
7401
8513
  attr_accessor :external_price_id
@@ -7451,6 +8563,10 @@ module Orb
7451
8563
  Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash
7452
8564
  ),
7453
8565
  conversion_rate: T.nilable(Float),
8566
+ dimensional_price_configuration:
8567
+ T.nilable(
8568
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::DimensionalPriceConfiguration::OrHash
8569
+ ),
7454
8570
  external_price_id: T.nilable(String),
7455
8571
  fixed_price_quantity: T.nilable(Float),
7456
8572
  invoice_grouping_key: T.nilable(String),
@@ -7483,6 +8599,8 @@ module Orb
7483
8599
  billing_cycle_configuration: nil,
7484
8600
  # The per unit conversion rate of the price currency to the invoicing currency.
7485
8601
  conversion_rate: nil,
8602
+ # For dimensional price: specifies a price group and dimension values
8603
+ dimensional_price_configuration: nil,
7486
8604
  # An alias for the price.
7487
8605
  external_price_id: nil,
7488
8606
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -7518,6 +8636,10 @@ module Orb
7518
8636
  Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration
7519
8637
  ),
7520
8638
  conversion_rate: T.nilable(Float),
8639
+ dimensional_price_configuration:
8640
+ T.nilable(
8641
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::DimensionalPriceConfiguration
8642
+ ),
7521
8643
  external_price_id: T.nilable(String),
7522
8644
  fixed_price_quantity: T.nilable(Float),
7523
8645
  invoice_grouping_key: T.nilable(String),
@@ -7673,6 +8795,60 @@ module Orb
7673
8795
  end
7674
8796
  end
7675
8797
 
8798
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
8799
+ OrHash =
8800
+ T.type_alias do
8801
+ T.any(
8802
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::DimensionalPriceConfiguration,
8803
+ Orb::Internal::AnyHash
8804
+ )
8805
+ end
8806
+
8807
+ # The list of dimension values matching (in order) the dimensions of the price
8808
+ # group
8809
+ sig { returns(T::Array[String]) }
8810
+ attr_accessor :dimension_values
8811
+
8812
+ # The id of the dimensional price group to include this price in
8813
+ sig { returns(T.nilable(String)) }
8814
+ attr_accessor :dimensional_price_group_id
8815
+
8816
+ # The external id of the dimensional price group to include this price in
8817
+ sig { returns(T.nilable(String)) }
8818
+ attr_accessor :external_dimensional_price_group_id
8819
+
8820
+ # For dimensional price: specifies a price group and dimension values
8821
+ sig do
8822
+ params(
8823
+ dimension_values: T::Array[String],
8824
+ dimensional_price_group_id: T.nilable(String),
8825
+ external_dimensional_price_group_id: T.nilable(String)
8826
+ ).returns(T.attached_class)
8827
+ end
8828
+ def self.new(
8829
+ # The list of dimension values matching (in order) the dimensions of the price
8830
+ # group
8831
+ dimension_values:,
8832
+ # The id of the dimensional price group to include this price in
8833
+ dimensional_price_group_id: nil,
8834
+ # The external id of the dimensional price group to include this price in
8835
+ external_dimensional_price_group_id: nil
8836
+ )
8837
+ end
8838
+
8839
+ sig do
8840
+ override.returns(
8841
+ {
8842
+ dimension_values: T::Array[String],
8843
+ dimensional_price_group_id: T.nilable(String),
8844
+ external_dimensional_price_group_id: T.nilable(String)
8845
+ }
8846
+ )
8847
+ end
8848
+ def to_hash
8849
+ end
8850
+ end
8851
+
7676
8852
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
7677
8853
  OrHash =
7678
8854
  T.type_alias do
@@ -7830,6 +9006,26 @@ module Orb
7830
9006
  sig { returns(T.nilable(Float)) }
7831
9007
  attr_accessor :conversion_rate
7832
9008
 
9009
+ # For dimensional price: specifies a price group and dimension values
9010
+ sig do
9011
+ returns(
9012
+ T.nilable(
9013
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::DimensionalPriceConfiguration
9014
+ )
9015
+ )
9016
+ end
9017
+ attr_reader :dimensional_price_configuration
9018
+
9019
+ sig do
9020
+ params(
9021
+ dimensional_price_configuration:
9022
+ T.nilable(
9023
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::DimensionalPriceConfiguration::OrHash
9024
+ )
9025
+ ).void
9026
+ end
9027
+ attr_writer :dimensional_price_configuration
9028
+
7833
9029
  # An alias for the price.
7834
9030
  sig { returns(T.nilable(String)) }
7835
9031
  attr_accessor :external_price_id
@@ -7885,6 +9081,10 @@ module Orb
7885
9081
  Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash
7886
9082
  ),
7887
9083
  conversion_rate: T.nilable(Float),
9084
+ dimensional_price_configuration:
9085
+ T.nilable(
9086
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::DimensionalPriceConfiguration::OrHash
9087
+ ),
7888
9088
  external_price_id: T.nilable(String),
7889
9089
  fixed_price_quantity: T.nilable(Float),
7890
9090
  invoice_grouping_key: T.nilable(String),
@@ -7917,6 +9117,8 @@ module Orb
7917
9117
  billing_cycle_configuration: nil,
7918
9118
  # The per unit conversion rate of the price currency to the invoicing currency.
7919
9119
  conversion_rate: nil,
9120
+ # For dimensional price: specifies a price group and dimension values
9121
+ dimensional_price_configuration: nil,
7920
9122
  # An alias for the price.
7921
9123
  external_price_id: nil,
7922
9124
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -7952,6 +9154,10 @@ module Orb
7952
9154
  Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration
7953
9155
  ),
7954
9156
  conversion_rate: T.nilable(Float),
9157
+ dimensional_price_configuration:
9158
+ T.nilable(
9159
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::DimensionalPriceConfiguration
9160
+ ),
7955
9161
  external_price_id: T.nilable(String),
7956
9162
  fixed_price_quantity: T.nilable(Float),
7957
9163
  invoice_grouping_key: T.nilable(String),
@@ -8107,6 +9313,60 @@ module Orb
8107
9313
  end
8108
9314
  end
8109
9315
 
9316
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
9317
+ OrHash =
9318
+ T.type_alias do
9319
+ T.any(
9320
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::DimensionalPriceConfiguration,
9321
+ Orb::Internal::AnyHash
9322
+ )
9323
+ end
9324
+
9325
+ # The list of dimension values matching (in order) the dimensions of the price
9326
+ # group
9327
+ sig { returns(T::Array[String]) }
9328
+ attr_accessor :dimension_values
9329
+
9330
+ # The id of the dimensional price group to include this price in
9331
+ sig { returns(T.nilable(String)) }
9332
+ attr_accessor :dimensional_price_group_id
9333
+
9334
+ # The external id of the dimensional price group to include this price in
9335
+ sig { returns(T.nilable(String)) }
9336
+ attr_accessor :external_dimensional_price_group_id
9337
+
9338
+ # For dimensional price: specifies a price group and dimension values
9339
+ sig do
9340
+ params(
9341
+ dimension_values: T::Array[String],
9342
+ dimensional_price_group_id: T.nilable(String),
9343
+ external_dimensional_price_group_id: T.nilable(String)
9344
+ ).returns(T.attached_class)
9345
+ end
9346
+ def self.new(
9347
+ # The list of dimension values matching (in order) the dimensions of the price
9348
+ # group
9349
+ dimension_values:,
9350
+ # The id of the dimensional price group to include this price in
9351
+ dimensional_price_group_id: nil,
9352
+ # The external id of the dimensional price group to include this price in
9353
+ external_dimensional_price_group_id: nil
9354
+ )
9355
+ end
9356
+
9357
+ sig do
9358
+ override.returns(
9359
+ {
9360
+ dimension_values: T::Array[String],
9361
+ dimensional_price_group_id: T.nilable(String),
9362
+ external_dimensional_price_group_id: T.nilable(String)
9363
+ }
9364
+ )
9365
+ end
9366
+ def to_hash
9367
+ end
9368
+ end
9369
+
8110
9370
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
8111
9371
  OrHash =
8112
9372
  T.type_alias do
@@ -8264,6 +9524,26 @@ module Orb
8264
9524
  sig { returns(T.nilable(Float)) }
8265
9525
  attr_accessor :conversion_rate
8266
9526
 
9527
+ # For dimensional price: specifies a price group and dimension values
9528
+ sig do
9529
+ returns(
9530
+ T.nilable(
9531
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration
9532
+ )
9533
+ )
9534
+ end
9535
+ attr_reader :dimensional_price_configuration
9536
+
9537
+ sig do
9538
+ params(
9539
+ dimensional_price_configuration:
9540
+ T.nilable(
9541
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration::OrHash
9542
+ )
9543
+ ).void
9544
+ end
9545
+ attr_writer :dimensional_price_configuration
9546
+
8267
9547
  # An alias for the price.
8268
9548
  sig { returns(T.nilable(String)) }
8269
9549
  attr_accessor :external_price_id
@@ -8319,6 +9599,10 @@ module Orb
8319
9599
  Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::OrHash
8320
9600
  ),
8321
9601
  conversion_rate: T.nilable(Float),
9602
+ dimensional_price_configuration:
9603
+ T.nilable(
9604
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration::OrHash
9605
+ ),
8322
9606
  external_price_id: T.nilable(String),
8323
9607
  fixed_price_quantity: T.nilable(Float),
8324
9608
  invoice_grouping_key: T.nilable(String),
@@ -8351,6 +9635,8 @@ module Orb
8351
9635
  billing_cycle_configuration: nil,
8352
9636
  # The per unit conversion rate of the price currency to the invoicing currency.
8353
9637
  conversion_rate: nil,
9638
+ # For dimensional price: specifies a price group and dimension values
9639
+ dimensional_price_configuration: nil,
8354
9640
  # An alias for the price.
8355
9641
  external_price_id: nil,
8356
9642
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -8387,6 +9673,10 @@ module Orb
8387
9673
  Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration
8388
9674
  ),
8389
9675
  conversion_rate: T.nilable(Float),
9676
+ dimensional_price_configuration:
9677
+ T.nilable(
9678
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration
9679
+ ),
8390
9680
  external_price_id: T.nilable(String),
8391
9681
  fixed_price_quantity: T.nilable(Float),
8392
9682
  invoice_grouping_key: T.nilable(String),
@@ -8542,6 +9832,60 @@ module Orb
8542
9832
  end
8543
9833
  end
8544
9834
 
9835
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
9836
+ OrHash =
9837
+ T.type_alias do
9838
+ T.any(
9839
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration,
9840
+ Orb::Internal::AnyHash
9841
+ )
9842
+ end
9843
+
9844
+ # The list of dimension values matching (in order) the dimensions of the price
9845
+ # group
9846
+ sig { returns(T::Array[String]) }
9847
+ attr_accessor :dimension_values
9848
+
9849
+ # The id of the dimensional price group to include this price in
9850
+ sig { returns(T.nilable(String)) }
9851
+ attr_accessor :dimensional_price_group_id
9852
+
9853
+ # The external id of the dimensional price group to include this price in
9854
+ sig { returns(T.nilable(String)) }
9855
+ attr_accessor :external_dimensional_price_group_id
9856
+
9857
+ # For dimensional price: specifies a price group and dimension values
9858
+ sig do
9859
+ params(
9860
+ dimension_values: T::Array[String],
9861
+ dimensional_price_group_id: T.nilable(String),
9862
+ external_dimensional_price_group_id: T.nilable(String)
9863
+ ).returns(T.attached_class)
9864
+ end
9865
+ def self.new(
9866
+ # The list of dimension values matching (in order) the dimensions of the price
9867
+ # group
9868
+ dimension_values:,
9869
+ # The id of the dimensional price group to include this price in
9870
+ dimensional_price_group_id: nil,
9871
+ # The external id of the dimensional price group to include this price in
9872
+ external_dimensional_price_group_id: nil
9873
+ )
9874
+ end
9875
+
9876
+ sig do
9877
+ override.returns(
9878
+ {
9879
+ dimension_values: T::Array[String],
9880
+ dimensional_price_group_id: T.nilable(String),
9881
+ external_dimensional_price_group_id: T.nilable(String)
9882
+ }
9883
+ )
9884
+ end
9885
+ def to_hash
9886
+ end
9887
+ end
9888
+
8545
9889
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
8546
9890
  OrHash =
8547
9891
  T.type_alias do
@@ -8699,6 +10043,26 @@ module Orb
8699
10043
  sig { returns(T.nilable(Float)) }
8700
10044
  attr_accessor :conversion_rate
8701
10045
 
10046
+ # For dimensional price: specifies a price group and dimension values
10047
+ sig do
10048
+ returns(
10049
+ T.nilable(
10050
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::DimensionalPriceConfiguration
10051
+ )
10052
+ )
10053
+ end
10054
+ attr_reader :dimensional_price_configuration
10055
+
10056
+ sig do
10057
+ params(
10058
+ dimensional_price_configuration:
10059
+ T.nilable(
10060
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::DimensionalPriceConfiguration::OrHash
10061
+ )
10062
+ ).void
10063
+ end
10064
+ attr_writer :dimensional_price_configuration
10065
+
8702
10066
  # An alias for the price.
8703
10067
  sig { returns(T.nilable(String)) }
8704
10068
  attr_accessor :external_price_id
@@ -8754,6 +10118,10 @@ module Orb
8754
10118
  Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::OrHash
8755
10119
  ),
8756
10120
  conversion_rate: T.nilable(Float),
10121
+ dimensional_price_configuration:
10122
+ T.nilable(
10123
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::DimensionalPriceConfiguration::OrHash
10124
+ ),
8757
10125
  external_price_id: T.nilable(String),
8758
10126
  fixed_price_quantity: T.nilable(Float),
8759
10127
  invoice_grouping_key: T.nilable(String),
@@ -8786,6 +10154,8 @@ module Orb
8786
10154
  billing_cycle_configuration: nil,
8787
10155
  # The per unit conversion rate of the price currency to the invoicing currency.
8788
10156
  conversion_rate: nil,
10157
+ # For dimensional price: specifies a price group and dimension values
10158
+ dimensional_price_configuration: nil,
8789
10159
  # An alias for the price.
8790
10160
  external_price_id: nil,
8791
10161
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -8821,6 +10191,10 @@ module Orb
8821
10191
  Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration
8822
10192
  ),
8823
10193
  conversion_rate: T.nilable(Float),
10194
+ dimensional_price_configuration:
10195
+ T.nilable(
10196
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::DimensionalPriceConfiguration
10197
+ ),
8824
10198
  external_price_id: T.nilable(String),
8825
10199
  fixed_price_quantity: T.nilable(Float),
8826
10200
  invoice_grouping_key: T.nilable(String),
@@ -8976,6 +10350,60 @@ module Orb
8976
10350
  end
8977
10351
  end
8978
10352
 
10353
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
10354
+ OrHash =
10355
+ T.type_alias do
10356
+ T.any(
10357
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::DimensionalPriceConfiguration,
10358
+ Orb::Internal::AnyHash
10359
+ )
10360
+ end
10361
+
10362
+ # The list of dimension values matching (in order) the dimensions of the price
10363
+ # group
10364
+ sig { returns(T::Array[String]) }
10365
+ attr_accessor :dimension_values
10366
+
10367
+ # The id of the dimensional price group to include this price in
10368
+ sig { returns(T.nilable(String)) }
10369
+ attr_accessor :dimensional_price_group_id
10370
+
10371
+ # The external id of the dimensional price group to include this price in
10372
+ sig { returns(T.nilable(String)) }
10373
+ attr_accessor :external_dimensional_price_group_id
10374
+
10375
+ # For dimensional price: specifies a price group and dimension values
10376
+ sig do
10377
+ params(
10378
+ dimension_values: T::Array[String],
10379
+ dimensional_price_group_id: T.nilable(String),
10380
+ external_dimensional_price_group_id: T.nilable(String)
10381
+ ).returns(T.attached_class)
10382
+ end
10383
+ def self.new(
10384
+ # The list of dimension values matching (in order) the dimensions of the price
10385
+ # group
10386
+ dimension_values:,
10387
+ # The id of the dimensional price group to include this price in
10388
+ dimensional_price_group_id: nil,
10389
+ # The external id of the dimensional price group to include this price in
10390
+ external_dimensional_price_group_id: nil
10391
+ )
10392
+ end
10393
+
10394
+ sig do
10395
+ override.returns(
10396
+ {
10397
+ dimension_values: T::Array[String],
10398
+ dimensional_price_group_id: T.nilable(String),
10399
+ external_dimensional_price_group_id: T.nilable(String)
10400
+ }
10401
+ )
10402
+ end
10403
+ def to_hash
10404
+ end
10405
+ end
10406
+
8979
10407
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
8980
10408
  OrHash =
8981
10409
  T.type_alias do
@@ -9133,6 +10561,26 @@ module Orb
9133
10561
  sig { returns(T.nilable(Float)) }
9134
10562
  attr_accessor :conversion_rate
9135
10563
 
10564
+ # For dimensional price: specifies a price group and dimension values
10565
+ sig do
10566
+ returns(
10567
+ T.nilable(
10568
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::DimensionalPriceConfiguration
10569
+ )
10570
+ )
10571
+ end
10572
+ attr_reader :dimensional_price_configuration
10573
+
10574
+ sig do
10575
+ params(
10576
+ dimensional_price_configuration:
10577
+ T.nilable(
10578
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::DimensionalPriceConfiguration::OrHash
10579
+ )
10580
+ ).void
10581
+ end
10582
+ attr_writer :dimensional_price_configuration
10583
+
9136
10584
  # An alias for the price.
9137
10585
  sig { returns(T.nilable(String)) }
9138
10586
  attr_accessor :external_price_id
@@ -9188,6 +10636,10 @@ module Orb
9188
10636
  Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::OrHash
9189
10637
  ),
9190
10638
  conversion_rate: T.nilable(Float),
10639
+ dimensional_price_configuration:
10640
+ T.nilable(
10641
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::DimensionalPriceConfiguration::OrHash
10642
+ ),
9191
10643
  external_price_id: T.nilable(String),
9192
10644
  fixed_price_quantity: T.nilable(Float),
9193
10645
  invoice_grouping_key: T.nilable(String),
@@ -9220,6 +10672,8 @@ module Orb
9220
10672
  billing_cycle_configuration: nil,
9221
10673
  # The per unit conversion rate of the price currency to the invoicing currency.
9222
10674
  conversion_rate: nil,
10675
+ # For dimensional price: specifies a price group and dimension values
10676
+ dimensional_price_configuration: nil,
9223
10677
  # An alias for the price.
9224
10678
  external_price_id: nil,
9225
10679
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -9255,6 +10709,10 @@ module Orb
9255
10709
  Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration
9256
10710
  ),
9257
10711
  conversion_rate: T.nilable(Float),
10712
+ dimensional_price_configuration:
10713
+ T.nilable(
10714
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::DimensionalPriceConfiguration
10715
+ ),
9258
10716
  external_price_id: T.nilable(String),
9259
10717
  fixed_price_quantity: T.nilable(Float),
9260
10718
  invoice_grouping_key: T.nilable(String),
@@ -9410,6 +10868,60 @@ module Orb
9410
10868
  end
9411
10869
  end
9412
10870
 
10871
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
10872
+ OrHash =
10873
+ T.type_alias do
10874
+ T.any(
10875
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::DimensionalPriceConfiguration,
10876
+ Orb::Internal::AnyHash
10877
+ )
10878
+ end
10879
+
10880
+ # The list of dimension values matching (in order) the dimensions of the price
10881
+ # group
10882
+ sig { returns(T::Array[String]) }
10883
+ attr_accessor :dimension_values
10884
+
10885
+ # The id of the dimensional price group to include this price in
10886
+ sig { returns(T.nilable(String)) }
10887
+ attr_accessor :dimensional_price_group_id
10888
+
10889
+ # The external id of the dimensional price group to include this price in
10890
+ sig { returns(T.nilable(String)) }
10891
+ attr_accessor :external_dimensional_price_group_id
10892
+
10893
+ # For dimensional price: specifies a price group and dimension values
10894
+ sig do
10895
+ params(
10896
+ dimension_values: T::Array[String],
10897
+ dimensional_price_group_id: T.nilable(String),
10898
+ external_dimensional_price_group_id: T.nilable(String)
10899
+ ).returns(T.attached_class)
10900
+ end
10901
+ def self.new(
10902
+ # The list of dimension values matching (in order) the dimensions of the price
10903
+ # group
10904
+ dimension_values:,
10905
+ # The id of the dimensional price group to include this price in
10906
+ dimensional_price_group_id: nil,
10907
+ # The external id of the dimensional price group to include this price in
10908
+ external_dimensional_price_group_id: nil
10909
+ )
10910
+ end
10911
+
10912
+ sig do
10913
+ override.returns(
10914
+ {
10915
+ dimension_values: T::Array[String],
10916
+ dimensional_price_group_id: T.nilable(String),
10917
+ external_dimensional_price_group_id: T.nilable(String)
10918
+ }
10919
+ )
10920
+ end
10921
+ def to_hash
10922
+ end
10923
+ end
10924
+
9413
10925
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
9414
10926
  OrHash =
9415
10927
  T.type_alias do
@@ -9567,6 +11079,26 @@ module Orb
9567
11079
  sig { returns(T.nilable(Float)) }
9568
11080
  attr_accessor :conversion_rate
9569
11081
 
11082
+ # For dimensional price: specifies a price group and dimension values
11083
+ sig do
11084
+ returns(
11085
+ T.nilable(
11086
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::DimensionalPriceConfiguration
11087
+ )
11088
+ )
11089
+ end
11090
+ attr_reader :dimensional_price_configuration
11091
+
11092
+ sig do
11093
+ params(
11094
+ dimensional_price_configuration:
11095
+ T.nilable(
11096
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::DimensionalPriceConfiguration::OrHash
11097
+ )
11098
+ ).void
11099
+ end
11100
+ attr_writer :dimensional_price_configuration
11101
+
9570
11102
  # An alias for the price.
9571
11103
  sig { returns(T.nilable(String)) }
9572
11104
  attr_accessor :external_price_id
@@ -9622,6 +11154,10 @@ module Orb
9622
11154
  Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::OrHash
9623
11155
  ),
9624
11156
  conversion_rate: T.nilable(Float),
11157
+ dimensional_price_configuration:
11158
+ T.nilable(
11159
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::DimensionalPriceConfiguration::OrHash
11160
+ ),
9625
11161
  external_price_id: T.nilable(String),
9626
11162
  fixed_price_quantity: T.nilable(Float),
9627
11163
  invoice_grouping_key: T.nilable(String),
@@ -9654,6 +11190,8 @@ module Orb
9654
11190
  billing_cycle_configuration: nil,
9655
11191
  # The per unit conversion rate of the price currency to the invoicing currency.
9656
11192
  conversion_rate: nil,
11193
+ # For dimensional price: specifies a price group and dimension values
11194
+ dimensional_price_configuration: nil,
9657
11195
  # An alias for the price.
9658
11196
  external_price_id: nil,
9659
11197
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -9689,6 +11227,10 @@ module Orb
9689
11227
  Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration
9690
11228
  ),
9691
11229
  conversion_rate: T.nilable(Float),
11230
+ dimensional_price_configuration:
11231
+ T.nilable(
11232
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::DimensionalPriceConfiguration
11233
+ ),
9692
11234
  external_price_id: T.nilable(String),
9693
11235
  fixed_price_quantity: T.nilable(Float),
9694
11236
  invoice_grouping_key: T.nilable(String),
@@ -9844,6 +11386,60 @@ module Orb
9844
11386
  end
9845
11387
  end
9846
11388
 
11389
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
11390
+ OrHash =
11391
+ T.type_alias do
11392
+ T.any(
11393
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::DimensionalPriceConfiguration,
11394
+ Orb::Internal::AnyHash
11395
+ )
11396
+ end
11397
+
11398
+ # The list of dimension values matching (in order) the dimensions of the price
11399
+ # group
11400
+ sig { returns(T::Array[String]) }
11401
+ attr_accessor :dimension_values
11402
+
11403
+ # The id of the dimensional price group to include this price in
11404
+ sig { returns(T.nilable(String)) }
11405
+ attr_accessor :dimensional_price_group_id
11406
+
11407
+ # The external id of the dimensional price group to include this price in
11408
+ sig { returns(T.nilable(String)) }
11409
+ attr_accessor :external_dimensional_price_group_id
11410
+
11411
+ # For dimensional price: specifies a price group and dimension values
11412
+ sig do
11413
+ params(
11414
+ dimension_values: T::Array[String],
11415
+ dimensional_price_group_id: T.nilable(String),
11416
+ external_dimensional_price_group_id: T.nilable(String)
11417
+ ).returns(T.attached_class)
11418
+ end
11419
+ def self.new(
11420
+ # The list of dimension values matching (in order) the dimensions of the price
11421
+ # group
11422
+ dimension_values:,
11423
+ # The id of the dimensional price group to include this price in
11424
+ dimensional_price_group_id: nil,
11425
+ # The external id of the dimensional price group to include this price in
11426
+ external_dimensional_price_group_id: nil
11427
+ )
11428
+ end
11429
+
11430
+ sig do
11431
+ override.returns(
11432
+ {
11433
+ dimension_values: T::Array[String],
11434
+ dimensional_price_group_id: T.nilable(String),
11435
+ external_dimensional_price_group_id: T.nilable(String)
11436
+ }
11437
+ )
11438
+ end
11439
+ def to_hash
11440
+ end
11441
+ end
11442
+
9847
11443
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
9848
11444
  OrHash =
9849
11445
  T.type_alias do
@@ -10001,6 +11597,26 @@ module Orb
10001
11597
  sig { returns(T.nilable(Float)) }
10002
11598
  attr_accessor :conversion_rate
10003
11599
 
11600
+ # For dimensional price: specifies a price group and dimension values
11601
+ sig do
11602
+ returns(
11603
+ T.nilable(
11604
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::DimensionalPriceConfiguration
11605
+ )
11606
+ )
11607
+ end
11608
+ attr_reader :dimensional_price_configuration
11609
+
11610
+ sig do
11611
+ params(
11612
+ dimensional_price_configuration:
11613
+ T.nilable(
11614
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::DimensionalPriceConfiguration::OrHash
11615
+ )
11616
+ ).void
11617
+ end
11618
+ attr_writer :dimensional_price_configuration
11619
+
10004
11620
  # An alias for the price.
10005
11621
  sig { returns(T.nilable(String)) }
10006
11622
  attr_accessor :external_price_id
@@ -10056,6 +11672,10 @@ module Orb
10056
11672
  Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::OrHash
10057
11673
  ),
10058
11674
  conversion_rate: T.nilable(Float),
11675
+ dimensional_price_configuration:
11676
+ T.nilable(
11677
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::DimensionalPriceConfiguration::OrHash
11678
+ ),
10059
11679
  external_price_id: T.nilable(String),
10060
11680
  fixed_price_quantity: T.nilable(Float),
10061
11681
  invoice_grouping_key: T.nilable(String),
@@ -10088,6 +11708,8 @@ module Orb
10088
11708
  billing_cycle_configuration: nil,
10089
11709
  # The per unit conversion rate of the price currency to the invoicing currency.
10090
11710
  conversion_rate: nil,
11711
+ # For dimensional price: specifies a price group and dimension values
11712
+ dimensional_price_configuration: nil,
10091
11713
  # An alias for the price.
10092
11714
  external_price_id: nil,
10093
11715
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -10123,6 +11745,10 @@ module Orb
10123
11745
  Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration
10124
11746
  ),
10125
11747
  conversion_rate: T.nilable(Float),
11748
+ dimensional_price_configuration:
11749
+ T.nilable(
11750
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::DimensionalPriceConfiguration
11751
+ ),
10126
11752
  external_price_id: T.nilable(String),
10127
11753
  fixed_price_quantity: T.nilable(Float),
10128
11754
  invoice_grouping_key: T.nilable(String),
@@ -10278,6 +11904,60 @@ module Orb
10278
11904
  end
10279
11905
  end
10280
11906
 
11907
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
11908
+ OrHash =
11909
+ T.type_alias do
11910
+ T.any(
11911
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::DimensionalPriceConfiguration,
11912
+ Orb::Internal::AnyHash
11913
+ )
11914
+ end
11915
+
11916
+ # The list of dimension values matching (in order) the dimensions of the price
11917
+ # group
11918
+ sig { returns(T::Array[String]) }
11919
+ attr_accessor :dimension_values
11920
+
11921
+ # The id of the dimensional price group to include this price in
11922
+ sig { returns(T.nilable(String)) }
11923
+ attr_accessor :dimensional_price_group_id
11924
+
11925
+ # The external id of the dimensional price group to include this price in
11926
+ sig { returns(T.nilable(String)) }
11927
+ attr_accessor :external_dimensional_price_group_id
11928
+
11929
+ # For dimensional price: specifies a price group and dimension values
11930
+ sig do
11931
+ params(
11932
+ dimension_values: T::Array[String],
11933
+ dimensional_price_group_id: T.nilable(String),
11934
+ external_dimensional_price_group_id: T.nilable(String)
11935
+ ).returns(T.attached_class)
11936
+ end
11937
+ def self.new(
11938
+ # The list of dimension values matching (in order) the dimensions of the price
11939
+ # group
11940
+ dimension_values:,
11941
+ # The id of the dimensional price group to include this price in
11942
+ dimensional_price_group_id: nil,
11943
+ # The external id of the dimensional price group to include this price in
11944
+ external_dimensional_price_group_id: nil
11945
+ )
11946
+ end
11947
+
11948
+ sig do
11949
+ override.returns(
11950
+ {
11951
+ dimension_values: T::Array[String],
11952
+ dimensional_price_group_id: T.nilable(String),
11953
+ external_dimensional_price_group_id: T.nilable(String)
11954
+ }
11955
+ )
11956
+ end
11957
+ def to_hash
11958
+ end
11959
+ end
11960
+
10281
11961
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
10282
11962
  OrHash =
10283
11963
  T.type_alias do
@@ -10435,6 +12115,26 @@ module Orb
10435
12115
  sig { returns(T.nilable(Float)) }
10436
12116
  attr_accessor :conversion_rate
10437
12117
 
12118
+ # For dimensional price: specifies a price group and dimension values
12119
+ sig do
12120
+ returns(
12121
+ T.nilable(
12122
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration
12123
+ )
12124
+ )
12125
+ end
12126
+ attr_reader :dimensional_price_configuration
12127
+
12128
+ sig do
12129
+ params(
12130
+ dimensional_price_configuration:
12131
+ T.nilable(
12132
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration::OrHash
12133
+ )
12134
+ ).void
12135
+ end
12136
+ attr_writer :dimensional_price_configuration
12137
+
10438
12138
  # An alias for the price.
10439
12139
  sig { returns(T.nilable(String)) }
10440
12140
  attr_accessor :external_price_id
@@ -10491,6 +12191,10 @@ module Orb
10491
12191
  Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash
10492
12192
  ),
10493
12193
  conversion_rate: T.nilable(Float),
12194
+ dimensional_price_configuration:
12195
+ T.nilable(
12196
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration::OrHash
12197
+ ),
10494
12198
  external_price_id: T.nilable(String),
10495
12199
  fixed_price_quantity: T.nilable(Float),
10496
12200
  invoice_grouping_key: T.nilable(String),
@@ -10523,6 +12227,8 @@ module Orb
10523
12227
  billing_cycle_configuration: nil,
10524
12228
  # The per unit conversion rate of the price currency to the invoicing currency.
10525
12229
  conversion_rate: nil,
12230
+ # For dimensional price: specifies a price group and dimension values
12231
+ dimensional_price_configuration: nil,
10526
12232
  # An alias for the price.
10527
12233
  external_price_id: nil,
10528
12234
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -10559,6 +12265,10 @@ module Orb
10559
12265
  Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration
10560
12266
  ),
10561
12267
  conversion_rate: T.nilable(Float),
12268
+ dimensional_price_configuration:
12269
+ T.nilable(
12270
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration
12271
+ ),
10562
12272
  external_price_id: T.nilable(String),
10563
12273
  fixed_price_quantity: T.nilable(Float),
10564
12274
  invoice_grouping_key: T.nilable(String),
@@ -10714,6 +12424,60 @@ module Orb
10714
12424
  end
10715
12425
  end
10716
12426
 
12427
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
12428
+ OrHash =
12429
+ T.type_alias do
12430
+ T.any(
12431
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration,
12432
+ Orb::Internal::AnyHash
12433
+ )
12434
+ end
12435
+
12436
+ # The list of dimension values matching (in order) the dimensions of the price
12437
+ # group
12438
+ sig { returns(T::Array[String]) }
12439
+ attr_accessor :dimension_values
12440
+
12441
+ # The id of the dimensional price group to include this price in
12442
+ sig { returns(T.nilable(String)) }
12443
+ attr_accessor :dimensional_price_group_id
12444
+
12445
+ # The external id of the dimensional price group to include this price in
12446
+ sig { returns(T.nilable(String)) }
12447
+ attr_accessor :external_dimensional_price_group_id
12448
+
12449
+ # For dimensional price: specifies a price group and dimension values
12450
+ sig do
12451
+ params(
12452
+ dimension_values: T::Array[String],
12453
+ dimensional_price_group_id: T.nilable(String),
12454
+ external_dimensional_price_group_id: T.nilable(String)
12455
+ ).returns(T.attached_class)
12456
+ end
12457
+ def self.new(
12458
+ # The list of dimension values matching (in order) the dimensions of the price
12459
+ # group
12460
+ dimension_values:,
12461
+ # The id of the dimensional price group to include this price in
12462
+ dimensional_price_group_id: nil,
12463
+ # The external id of the dimensional price group to include this price in
12464
+ external_dimensional_price_group_id: nil
12465
+ )
12466
+ end
12467
+
12468
+ sig do
12469
+ override.returns(
12470
+ {
12471
+ dimension_values: T::Array[String],
12472
+ dimensional_price_group_id: T.nilable(String),
12473
+ external_dimensional_price_group_id: T.nilable(String)
12474
+ }
12475
+ )
12476
+ end
12477
+ def to_hash
12478
+ end
12479
+ end
12480
+
10717
12481
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
10718
12482
  OrHash =
10719
12483
  T.type_alias do
@@ -10871,6 +12635,26 @@ module Orb
10871
12635
  sig { returns(T.nilable(Float)) }
10872
12636
  attr_accessor :conversion_rate
10873
12637
 
12638
+ # For dimensional price: specifies a price group and dimension values
12639
+ sig do
12640
+ returns(
12641
+ T.nilable(
12642
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration
12643
+ )
12644
+ )
12645
+ end
12646
+ attr_reader :dimensional_price_configuration
12647
+
12648
+ sig do
12649
+ params(
12650
+ dimensional_price_configuration:
12651
+ T.nilable(
12652
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration::OrHash
12653
+ )
12654
+ ).void
12655
+ end
12656
+ attr_writer :dimensional_price_configuration
12657
+
10874
12658
  # An alias for the price.
10875
12659
  sig { returns(T.nilable(String)) }
10876
12660
  attr_accessor :external_price_id
@@ -10927,6 +12711,10 @@ module Orb
10927
12711
  Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash
10928
12712
  ),
10929
12713
  conversion_rate: T.nilable(Float),
12714
+ dimensional_price_configuration:
12715
+ T.nilable(
12716
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration::OrHash
12717
+ ),
10930
12718
  external_price_id: T.nilable(String),
10931
12719
  fixed_price_quantity: T.nilable(Float),
10932
12720
  invoice_grouping_key: T.nilable(String),
@@ -10959,6 +12747,8 @@ module Orb
10959
12747
  billing_cycle_configuration: nil,
10960
12748
  # The per unit conversion rate of the price currency to the invoicing currency.
10961
12749
  conversion_rate: nil,
12750
+ # For dimensional price: specifies a price group and dimension values
12751
+ dimensional_price_configuration: nil,
10962
12752
  # An alias for the price.
10963
12753
  external_price_id: nil,
10964
12754
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -10995,6 +12785,10 @@ module Orb
10995
12785
  Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration
10996
12786
  ),
10997
12787
  conversion_rate: T.nilable(Float),
12788
+ dimensional_price_configuration:
12789
+ T.nilable(
12790
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration
12791
+ ),
10998
12792
  external_price_id: T.nilable(String),
10999
12793
  fixed_price_quantity: T.nilable(Float),
11000
12794
  invoice_grouping_key: T.nilable(String),
@@ -11150,6 +12944,60 @@ module Orb
11150
12944
  end
11151
12945
  end
11152
12946
 
12947
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
12948
+ OrHash =
12949
+ T.type_alias do
12950
+ T.any(
12951
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration,
12952
+ Orb::Internal::AnyHash
12953
+ )
12954
+ end
12955
+
12956
+ # The list of dimension values matching (in order) the dimensions of the price
12957
+ # group
12958
+ sig { returns(T::Array[String]) }
12959
+ attr_accessor :dimension_values
12960
+
12961
+ # The id of the dimensional price group to include this price in
12962
+ sig { returns(T.nilable(String)) }
12963
+ attr_accessor :dimensional_price_group_id
12964
+
12965
+ # The external id of the dimensional price group to include this price in
12966
+ sig { returns(T.nilable(String)) }
12967
+ attr_accessor :external_dimensional_price_group_id
12968
+
12969
+ # For dimensional price: specifies a price group and dimension values
12970
+ sig do
12971
+ params(
12972
+ dimension_values: T::Array[String],
12973
+ dimensional_price_group_id: T.nilable(String),
12974
+ external_dimensional_price_group_id: T.nilable(String)
12975
+ ).returns(T.attached_class)
12976
+ end
12977
+ def self.new(
12978
+ # The list of dimension values matching (in order) the dimensions of the price
12979
+ # group
12980
+ dimension_values:,
12981
+ # The id of the dimensional price group to include this price in
12982
+ dimensional_price_group_id: nil,
12983
+ # The external id of the dimensional price group to include this price in
12984
+ external_dimensional_price_group_id: nil
12985
+ )
12986
+ end
12987
+
12988
+ sig do
12989
+ override.returns(
12990
+ {
12991
+ dimension_values: T::Array[String],
12992
+ dimensional_price_group_id: T.nilable(String),
12993
+ external_dimensional_price_group_id: T.nilable(String)
12994
+ }
12995
+ )
12996
+ end
12997
+ def to_hash
12998
+ end
12999
+ end
13000
+
11153
13001
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
11154
13002
  OrHash =
11155
13003
  T.type_alias do
@@ -11307,6 +13155,26 @@ module Orb
11307
13155
  sig { returns(T.nilable(Float)) }
11308
13156
  attr_accessor :conversion_rate
11309
13157
 
13158
+ # For dimensional price: specifies a price group and dimension values
13159
+ sig do
13160
+ returns(
13161
+ T.nilable(
13162
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::DimensionalPriceConfiguration
13163
+ )
13164
+ )
13165
+ end
13166
+ attr_reader :dimensional_price_configuration
13167
+
13168
+ sig do
13169
+ params(
13170
+ dimensional_price_configuration:
13171
+ T.nilable(
13172
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::DimensionalPriceConfiguration::OrHash
13173
+ )
13174
+ ).void
13175
+ end
13176
+ attr_writer :dimensional_price_configuration
13177
+
11310
13178
  # An alias for the price.
11311
13179
  sig { returns(T.nilable(String)) }
11312
13180
  attr_accessor :external_price_id
@@ -11362,6 +13230,10 @@ module Orb
11362
13230
  Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash
11363
13231
  ),
11364
13232
  conversion_rate: T.nilable(Float),
13233
+ dimensional_price_configuration:
13234
+ T.nilable(
13235
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::DimensionalPriceConfiguration::OrHash
13236
+ ),
11365
13237
  external_price_id: T.nilable(String),
11366
13238
  fixed_price_quantity: T.nilable(Float),
11367
13239
  invoice_grouping_key: T.nilable(String),
@@ -11394,6 +13266,8 @@ module Orb
11394
13266
  billing_cycle_configuration: nil,
11395
13267
  # The per unit conversion rate of the price currency to the invoicing currency.
11396
13268
  conversion_rate: nil,
13269
+ # For dimensional price: specifies a price group and dimension values
13270
+ dimensional_price_configuration: nil,
11397
13271
  # An alias for the price.
11398
13272
  external_price_id: nil,
11399
13273
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -11429,6 +13303,10 @@ module Orb
11429
13303
  Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration
11430
13304
  ),
11431
13305
  conversion_rate: T.nilable(Float),
13306
+ dimensional_price_configuration:
13307
+ T.nilable(
13308
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::DimensionalPriceConfiguration
13309
+ ),
11432
13310
  external_price_id: T.nilable(String),
11433
13311
  fixed_price_quantity: T.nilable(Float),
11434
13312
  invoice_grouping_key: T.nilable(String),
@@ -11584,6 +13462,60 @@ module Orb
11584
13462
  end
11585
13463
  end
11586
13464
 
13465
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
13466
+ OrHash =
13467
+ T.type_alias do
13468
+ T.any(
13469
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::DimensionalPriceConfiguration,
13470
+ Orb::Internal::AnyHash
13471
+ )
13472
+ end
13473
+
13474
+ # The list of dimension values matching (in order) the dimensions of the price
13475
+ # group
13476
+ sig { returns(T::Array[String]) }
13477
+ attr_accessor :dimension_values
13478
+
13479
+ # The id of the dimensional price group to include this price in
13480
+ sig { returns(T.nilable(String)) }
13481
+ attr_accessor :dimensional_price_group_id
13482
+
13483
+ # The external id of the dimensional price group to include this price in
13484
+ sig { returns(T.nilable(String)) }
13485
+ attr_accessor :external_dimensional_price_group_id
13486
+
13487
+ # For dimensional price: specifies a price group and dimension values
13488
+ sig do
13489
+ params(
13490
+ dimension_values: T::Array[String],
13491
+ dimensional_price_group_id: T.nilable(String),
13492
+ external_dimensional_price_group_id: T.nilable(String)
13493
+ ).returns(T.attached_class)
13494
+ end
13495
+ def self.new(
13496
+ # The list of dimension values matching (in order) the dimensions of the price
13497
+ # group
13498
+ dimension_values:,
13499
+ # The id of the dimensional price group to include this price in
13500
+ dimensional_price_group_id: nil,
13501
+ # The external id of the dimensional price group to include this price in
13502
+ external_dimensional_price_group_id: nil
13503
+ )
13504
+ end
13505
+
13506
+ sig do
13507
+ override.returns(
13508
+ {
13509
+ dimension_values: T::Array[String],
13510
+ dimensional_price_group_id: T.nilable(String),
13511
+ external_dimensional_price_group_id: T.nilable(String)
13512
+ }
13513
+ )
13514
+ end
13515
+ def to_hash
13516
+ end
13517
+ end
13518
+
11587
13519
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
11588
13520
  OrHash =
11589
13521
  T.type_alias do
@@ -11741,6 +13673,26 @@ module Orb
11741
13673
  sig { returns(T.nilable(Float)) }
11742
13674
  attr_accessor :conversion_rate
11743
13675
 
13676
+ # For dimensional price: specifies a price group and dimension values
13677
+ sig do
13678
+ returns(
13679
+ T.nilable(
13680
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::DimensionalPriceConfiguration
13681
+ )
13682
+ )
13683
+ end
13684
+ attr_reader :dimensional_price_configuration
13685
+
13686
+ sig do
13687
+ params(
13688
+ dimensional_price_configuration:
13689
+ T.nilable(
13690
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::DimensionalPriceConfiguration::OrHash
13691
+ )
13692
+ ).void
13693
+ end
13694
+ attr_writer :dimensional_price_configuration
13695
+
11744
13696
  # An alias for the price.
11745
13697
  sig { returns(T.nilable(String)) }
11746
13698
  attr_accessor :external_price_id
@@ -11796,6 +13748,10 @@ module Orb
11796
13748
  Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::OrHash
11797
13749
  ),
11798
13750
  conversion_rate: T.nilable(Float),
13751
+ dimensional_price_configuration:
13752
+ T.nilable(
13753
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::DimensionalPriceConfiguration::OrHash
13754
+ ),
11799
13755
  external_price_id: T.nilable(String),
11800
13756
  fixed_price_quantity: T.nilable(Float),
11801
13757
  invoice_grouping_key: T.nilable(String),
@@ -11828,6 +13784,8 @@ module Orb
11828
13784
  billing_cycle_configuration: nil,
11829
13785
  # The per unit conversion rate of the price currency to the invoicing currency.
11830
13786
  conversion_rate: nil,
13787
+ # For dimensional price: specifies a price group and dimension values
13788
+ dimensional_price_configuration: nil,
11831
13789
  # An alias for the price.
11832
13790
  external_price_id: nil,
11833
13791
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -11863,6 +13821,10 @@ module Orb
11863
13821
  Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration
11864
13822
  ),
11865
13823
  conversion_rate: T.nilable(Float),
13824
+ dimensional_price_configuration:
13825
+ T.nilable(
13826
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::DimensionalPriceConfiguration
13827
+ ),
11866
13828
  external_price_id: T.nilable(String),
11867
13829
  fixed_price_quantity: T.nilable(Float),
11868
13830
  invoice_grouping_key: T.nilable(String),
@@ -12018,6 +13980,60 @@ module Orb
12018
13980
  end
12019
13981
  end
12020
13982
 
13983
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
13984
+ OrHash =
13985
+ T.type_alias do
13986
+ T.any(
13987
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::DimensionalPriceConfiguration,
13988
+ Orb::Internal::AnyHash
13989
+ )
13990
+ end
13991
+
13992
+ # The list of dimension values matching (in order) the dimensions of the price
13993
+ # group
13994
+ sig { returns(T::Array[String]) }
13995
+ attr_accessor :dimension_values
13996
+
13997
+ # The id of the dimensional price group to include this price in
13998
+ sig { returns(T.nilable(String)) }
13999
+ attr_accessor :dimensional_price_group_id
14000
+
14001
+ # The external id of the dimensional price group to include this price in
14002
+ sig { returns(T.nilable(String)) }
14003
+ attr_accessor :external_dimensional_price_group_id
14004
+
14005
+ # For dimensional price: specifies a price group and dimension values
14006
+ sig do
14007
+ params(
14008
+ dimension_values: T::Array[String],
14009
+ dimensional_price_group_id: T.nilable(String),
14010
+ external_dimensional_price_group_id: T.nilable(String)
14011
+ ).returns(T.attached_class)
14012
+ end
14013
+ def self.new(
14014
+ # The list of dimension values matching (in order) the dimensions of the price
14015
+ # group
14016
+ dimension_values:,
14017
+ # The id of the dimensional price group to include this price in
14018
+ dimensional_price_group_id: nil,
14019
+ # The external id of the dimensional price group to include this price in
14020
+ external_dimensional_price_group_id: nil
14021
+ )
14022
+ end
14023
+
14024
+ sig do
14025
+ override.returns(
14026
+ {
14027
+ dimension_values: T::Array[String],
14028
+ dimensional_price_group_id: T.nilable(String),
14029
+ external_dimensional_price_group_id: T.nilable(String)
14030
+ }
14031
+ )
14032
+ end
14033
+ def to_hash
14034
+ end
14035
+ end
14036
+
12021
14037
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
12022
14038
  OrHash =
12023
14039
  T.type_alias do
@@ -12175,6 +14191,26 @@ module Orb
12175
14191
  sig { returns(T.nilable(Float)) }
12176
14192
  attr_accessor :conversion_rate
12177
14193
 
14194
+ # For dimensional price: specifies a price group and dimension values
14195
+ sig do
14196
+ returns(
14197
+ T.nilable(
14198
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::DimensionalPriceConfiguration
14199
+ )
14200
+ )
14201
+ end
14202
+ attr_reader :dimensional_price_configuration
14203
+
14204
+ sig do
14205
+ params(
14206
+ dimensional_price_configuration:
14207
+ T.nilable(
14208
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::DimensionalPriceConfiguration::OrHash
14209
+ )
14210
+ ).void
14211
+ end
14212
+ attr_writer :dimensional_price_configuration
14213
+
12178
14214
  # An alias for the price.
12179
14215
  sig { returns(T.nilable(String)) }
12180
14216
  attr_accessor :external_price_id
@@ -12230,6 +14266,10 @@ module Orb
12230
14266
  Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash
12231
14267
  ),
12232
14268
  conversion_rate: T.nilable(Float),
14269
+ dimensional_price_configuration:
14270
+ T.nilable(
14271
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::DimensionalPriceConfiguration::OrHash
14272
+ ),
12233
14273
  external_price_id: T.nilable(String),
12234
14274
  fixed_price_quantity: T.nilable(Float),
12235
14275
  invoice_grouping_key: T.nilable(String),
@@ -12262,6 +14302,8 @@ module Orb
12262
14302
  billing_cycle_configuration: nil,
12263
14303
  # The per unit conversion rate of the price currency to the invoicing currency.
12264
14304
  conversion_rate: nil,
14305
+ # For dimensional price: specifies a price group and dimension values
14306
+ dimensional_price_configuration: nil,
12265
14307
  # An alias for the price.
12266
14308
  external_price_id: nil,
12267
14309
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -12297,6 +14339,10 @@ module Orb
12297
14339
  Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration
12298
14340
  ),
12299
14341
  conversion_rate: T.nilable(Float),
14342
+ dimensional_price_configuration:
14343
+ T.nilable(
14344
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::DimensionalPriceConfiguration
14345
+ ),
12300
14346
  external_price_id: T.nilable(String),
12301
14347
  fixed_price_quantity: T.nilable(Float),
12302
14348
  invoice_grouping_key: T.nilable(String),
@@ -12452,6 +14498,60 @@ module Orb
12452
14498
  end
12453
14499
  end
12454
14500
 
14501
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
14502
+ OrHash =
14503
+ T.type_alias do
14504
+ T.any(
14505
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::DimensionalPriceConfiguration,
14506
+ Orb::Internal::AnyHash
14507
+ )
14508
+ end
14509
+
14510
+ # The list of dimension values matching (in order) the dimensions of the price
14511
+ # group
14512
+ sig { returns(T::Array[String]) }
14513
+ attr_accessor :dimension_values
14514
+
14515
+ # The id of the dimensional price group to include this price in
14516
+ sig { returns(T.nilable(String)) }
14517
+ attr_accessor :dimensional_price_group_id
14518
+
14519
+ # The external id of the dimensional price group to include this price in
14520
+ sig { returns(T.nilable(String)) }
14521
+ attr_accessor :external_dimensional_price_group_id
14522
+
14523
+ # For dimensional price: specifies a price group and dimension values
14524
+ sig do
14525
+ params(
14526
+ dimension_values: T::Array[String],
14527
+ dimensional_price_group_id: T.nilable(String),
14528
+ external_dimensional_price_group_id: T.nilable(String)
14529
+ ).returns(T.attached_class)
14530
+ end
14531
+ def self.new(
14532
+ # The list of dimension values matching (in order) the dimensions of the price
14533
+ # group
14534
+ dimension_values:,
14535
+ # The id of the dimensional price group to include this price in
14536
+ dimensional_price_group_id: nil,
14537
+ # The external id of the dimensional price group to include this price in
14538
+ external_dimensional_price_group_id: nil
14539
+ )
14540
+ end
14541
+
14542
+ sig do
14543
+ override.returns(
14544
+ {
14545
+ dimension_values: T::Array[String],
14546
+ dimensional_price_group_id: T.nilable(String),
14547
+ external_dimensional_price_group_id: T.nilable(String)
14548
+ }
14549
+ )
14550
+ end
14551
+ def to_hash
14552
+ end
14553
+ end
14554
+
12455
14555
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
12456
14556
  OrHash =
12457
14557
  T.type_alias do
@@ -12609,6 +14709,26 @@ module Orb
12609
14709
  sig { returns(T.nilable(Float)) }
12610
14710
  attr_accessor :conversion_rate
12611
14711
 
14712
+ # For dimensional price: specifies a price group and dimension values
14713
+ sig do
14714
+ returns(
14715
+ T.nilable(
14716
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration
14717
+ )
14718
+ )
14719
+ end
14720
+ attr_reader :dimensional_price_configuration
14721
+
14722
+ sig do
14723
+ params(
14724
+ dimensional_price_configuration:
14725
+ T.nilable(
14726
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration::OrHash
14727
+ )
14728
+ ).void
14729
+ end
14730
+ attr_writer :dimensional_price_configuration
14731
+
12612
14732
  # An alias for the price.
12613
14733
  sig { returns(T.nilable(String)) }
12614
14734
  attr_accessor :external_price_id
@@ -12665,6 +14785,10 @@ module Orb
12665
14785
  Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash
12666
14786
  ),
12667
14787
  conversion_rate: T.nilable(Float),
14788
+ dimensional_price_configuration:
14789
+ T.nilable(
14790
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration::OrHash
14791
+ ),
12668
14792
  external_price_id: T.nilable(String),
12669
14793
  fixed_price_quantity: T.nilable(Float),
12670
14794
  invoice_grouping_key: T.nilable(String),
@@ -12697,6 +14821,8 @@ module Orb
12697
14821
  billing_cycle_configuration: nil,
12698
14822
  # The per unit conversion rate of the price currency to the invoicing currency.
12699
14823
  conversion_rate: nil,
14824
+ # For dimensional price: specifies a price group and dimension values
14825
+ dimensional_price_configuration: nil,
12700
14826
  # An alias for the price.
12701
14827
  external_price_id: nil,
12702
14828
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -12733,6 +14859,10 @@ module Orb
12733
14859
  Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration
12734
14860
  ),
12735
14861
  conversion_rate: T.nilable(Float),
14862
+ dimensional_price_configuration:
14863
+ T.nilable(
14864
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration
14865
+ ),
12736
14866
  external_price_id: T.nilable(String),
12737
14867
  fixed_price_quantity: T.nilable(Float),
12738
14868
  invoice_grouping_key: T.nilable(String),
@@ -12888,6 +15018,60 @@ module Orb
12888
15018
  end
12889
15019
  end
12890
15020
 
15021
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
15022
+ OrHash =
15023
+ T.type_alias do
15024
+ T.any(
15025
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration,
15026
+ Orb::Internal::AnyHash
15027
+ )
15028
+ end
15029
+
15030
+ # The list of dimension values matching (in order) the dimensions of the price
15031
+ # group
15032
+ sig { returns(T::Array[String]) }
15033
+ attr_accessor :dimension_values
15034
+
15035
+ # The id of the dimensional price group to include this price in
15036
+ sig { returns(T.nilable(String)) }
15037
+ attr_accessor :dimensional_price_group_id
15038
+
15039
+ # The external id of the dimensional price group to include this price in
15040
+ sig { returns(T.nilable(String)) }
15041
+ attr_accessor :external_dimensional_price_group_id
15042
+
15043
+ # For dimensional price: specifies a price group and dimension values
15044
+ sig do
15045
+ params(
15046
+ dimension_values: T::Array[String],
15047
+ dimensional_price_group_id: T.nilable(String),
15048
+ external_dimensional_price_group_id: T.nilable(String)
15049
+ ).returns(T.attached_class)
15050
+ end
15051
+ def self.new(
15052
+ # The list of dimension values matching (in order) the dimensions of the price
15053
+ # group
15054
+ dimension_values:,
15055
+ # The id of the dimensional price group to include this price in
15056
+ dimensional_price_group_id: nil,
15057
+ # The external id of the dimensional price group to include this price in
15058
+ external_dimensional_price_group_id: nil
15059
+ )
15060
+ end
15061
+
15062
+ sig do
15063
+ override.returns(
15064
+ {
15065
+ dimension_values: T::Array[String],
15066
+ dimensional_price_group_id: T.nilable(String),
15067
+ external_dimensional_price_group_id: T.nilable(String)
15068
+ }
15069
+ )
15070
+ end
15071
+ def to_hash
15072
+ end
15073
+ end
15074
+
12891
15075
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
12892
15076
  OrHash =
12893
15077
  T.type_alias do
@@ -13045,6 +15229,26 @@ module Orb
13045
15229
  sig { returns(T.nilable(Float)) }
13046
15230
  attr_accessor :conversion_rate
13047
15231
 
15232
+ # For dimensional price: specifies a price group and dimension values
15233
+ sig do
15234
+ returns(
15235
+ T.nilable(
15236
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration
15237
+ )
15238
+ )
15239
+ end
15240
+ attr_reader :dimensional_price_configuration
15241
+
15242
+ sig do
15243
+ params(
15244
+ dimensional_price_configuration:
15245
+ T.nilable(
15246
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration::OrHash
15247
+ )
15248
+ ).void
15249
+ end
15250
+ attr_writer :dimensional_price_configuration
15251
+
13048
15252
  # An alias for the price.
13049
15253
  sig { returns(T.nilable(String)) }
13050
15254
  attr_accessor :external_price_id
@@ -13101,6 +15305,10 @@ module Orb
13101
15305
  Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash
13102
15306
  ),
13103
15307
  conversion_rate: T.nilable(Float),
15308
+ dimensional_price_configuration:
15309
+ T.nilable(
15310
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration::OrHash
15311
+ ),
13104
15312
  external_price_id: T.nilable(String),
13105
15313
  fixed_price_quantity: T.nilable(Float),
13106
15314
  invoice_grouping_key: T.nilable(String),
@@ -13133,6 +15341,8 @@ module Orb
13133
15341
  billing_cycle_configuration: nil,
13134
15342
  # The per unit conversion rate of the price currency to the invoicing currency.
13135
15343
  conversion_rate: nil,
15344
+ # For dimensional price: specifies a price group and dimension values
15345
+ dimensional_price_configuration: nil,
13136
15346
  # An alias for the price.
13137
15347
  external_price_id: nil,
13138
15348
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -13169,6 +15379,10 @@ module Orb
13169
15379
  Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration
13170
15380
  ),
13171
15381
  conversion_rate: T.nilable(Float),
15382
+ dimensional_price_configuration:
15383
+ T.nilable(
15384
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration
15385
+ ),
13172
15386
  external_price_id: T.nilable(String),
13173
15387
  fixed_price_quantity: T.nilable(Float),
13174
15388
  invoice_grouping_key: T.nilable(String),
@@ -13324,6 +15538,60 @@ module Orb
13324
15538
  end
13325
15539
  end
13326
15540
 
15541
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
15542
+ OrHash =
15543
+ T.type_alias do
15544
+ T.any(
15545
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration,
15546
+ Orb::Internal::AnyHash
15547
+ )
15548
+ end
15549
+
15550
+ # The list of dimension values matching (in order) the dimensions of the price
15551
+ # group
15552
+ sig { returns(T::Array[String]) }
15553
+ attr_accessor :dimension_values
15554
+
15555
+ # The id of the dimensional price group to include this price in
15556
+ sig { returns(T.nilable(String)) }
15557
+ attr_accessor :dimensional_price_group_id
15558
+
15559
+ # The external id of the dimensional price group to include this price in
15560
+ sig { returns(T.nilable(String)) }
15561
+ attr_accessor :external_dimensional_price_group_id
15562
+
15563
+ # For dimensional price: specifies a price group and dimension values
15564
+ sig do
15565
+ params(
15566
+ dimension_values: T::Array[String],
15567
+ dimensional_price_group_id: T.nilable(String),
15568
+ external_dimensional_price_group_id: T.nilable(String)
15569
+ ).returns(T.attached_class)
15570
+ end
15571
+ def self.new(
15572
+ # The list of dimension values matching (in order) the dimensions of the price
15573
+ # group
15574
+ dimension_values:,
15575
+ # The id of the dimensional price group to include this price in
15576
+ dimensional_price_group_id: nil,
15577
+ # The external id of the dimensional price group to include this price in
15578
+ external_dimensional_price_group_id: nil
15579
+ )
15580
+ end
15581
+
15582
+ sig do
15583
+ override.returns(
15584
+ {
15585
+ dimension_values: T::Array[String],
15586
+ dimensional_price_group_id: T.nilable(String),
15587
+ external_dimensional_price_group_id: T.nilable(String)
15588
+ }
15589
+ )
15590
+ end
15591
+ def to_hash
15592
+ end
15593
+ end
15594
+
13327
15595
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
13328
15596
  OrHash =
13329
15597
  T.type_alias do
@@ -13481,6 +15749,26 @@ module Orb
13481
15749
  sig { returns(T.nilable(Float)) }
13482
15750
  attr_accessor :conversion_rate
13483
15751
 
15752
+ # For dimensional price: specifies a price group and dimension values
15753
+ sig do
15754
+ returns(
15755
+ T.nilable(
15756
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration
15757
+ )
15758
+ )
15759
+ end
15760
+ attr_reader :dimensional_price_configuration
15761
+
15762
+ sig do
15763
+ params(
15764
+ dimensional_price_configuration:
15765
+ T.nilable(
15766
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration::OrHash
15767
+ )
15768
+ ).void
15769
+ end
15770
+ attr_writer :dimensional_price_configuration
15771
+
13484
15772
  # An alias for the price.
13485
15773
  sig { returns(T.nilable(String)) }
13486
15774
  attr_accessor :external_price_id
@@ -13536,6 +15824,10 @@ module Orb
13536
15824
  Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash
13537
15825
  ),
13538
15826
  conversion_rate: T.nilable(Float),
15827
+ dimensional_price_configuration:
15828
+ T.nilable(
15829
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration::OrHash
15830
+ ),
13539
15831
  external_price_id: T.nilable(String),
13540
15832
  fixed_price_quantity: T.nilable(Float),
13541
15833
  invoice_grouping_key: T.nilable(String),
@@ -13568,6 +15860,8 @@ module Orb
13568
15860
  billing_cycle_configuration: nil,
13569
15861
  # The per unit conversion rate of the price currency to the invoicing currency.
13570
15862
  conversion_rate: nil,
15863
+ # For dimensional price: specifies a price group and dimension values
15864
+ dimensional_price_configuration: nil,
13571
15865
  # An alias for the price.
13572
15866
  external_price_id: nil,
13573
15867
  # If the Price represents a fixed cost, this represents the quantity of units
@@ -13603,6 +15897,10 @@ module Orb
13603
15897
  Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration
13604
15898
  ),
13605
15899
  conversion_rate: T.nilable(Float),
15900
+ dimensional_price_configuration:
15901
+ T.nilable(
15902
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration
15903
+ ),
13606
15904
  external_price_id: T.nilable(String),
13607
15905
  fixed_price_quantity: T.nilable(Float),
13608
15906
  invoice_grouping_key: T.nilable(String),
@@ -13758,6 +16056,60 @@ module Orb
13758
16056
  end
13759
16057
  end
13760
16058
 
16059
+ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel
16060
+ OrHash =
16061
+ T.type_alias do
16062
+ T.any(
16063
+ Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration,
16064
+ Orb::Internal::AnyHash
16065
+ )
16066
+ end
16067
+
16068
+ # The list of dimension values matching (in order) the dimensions of the price
16069
+ # group
16070
+ sig { returns(T::Array[String]) }
16071
+ attr_accessor :dimension_values
16072
+
16073
+ # The id of the dimensional price group to include this price in
16074
+ sig { returns(T.nilable(String)) }
16075
+ attr_accessor :dimensional_price_group_id
16076
+
16077
+ # The external id of the dimensional price group to include this price in
16078
+ sig { returns(T.nilable(String)) }
16079
+ attr_accessor :external_dimensional_price_group_id
16080
+
16081
+ # For dimensional price: specifies a price group and dimension values
16082
+ sig do
16083
+ params(
16084
+ dimension_values: T::Array[String],
16085
+ dimensional_price_group_id: T.nilable(String),
16086
+ external_dimensional_price_group_id: T.nilable(String)
16087
+ ).returns(T.attached_class)
16088
+ end
16089
+ def self.new(
16090
+ # The list of dimension values matching (in order) the dimensions of the price
16091
+ # group
16092
+ dimension_values:,
16093
+ # The id of the dimensional price group to include this price in
16094
+ dimensional_price_group_id: nil,
16095
+ # The external id of the dimensional price group to include this price in
16096
+ external_dimensional_price_group_id: nil
16097
+ )
16098
+ end
16099
+
16100
+ sig do
16101
+ override.returns(
16102
+ {
16103
+ dimension_values: T::Array[String],
16104
+ dimensional_price_group_id: T.nilable(String),
16105
+ external_dimensional_price_group_id: T.nilable(String)
16106
+ }
16107
+ )
16108
+ end
16109
+ def to_hash
16110
+ end
16111
+ end
16112
+
13761
16113
  class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
13762
16114
  OrHash =
13763
16115
  T.type_alias do
@@ -13976,13 +16328,13 @@ module Orb
13976
16328
  sig { returns(Symbol) }
13977
16329
  attr_accessor :adjustment_type
13978
16330
 
13979
- # The set of price IDs to which this adjustment applies.
13980
- sig { returns(T::Array[String]) }
13981
- attr_accessor :applies_to_price_ids
13982
-
13983
16331
  sig { returns(Float) }
13984
16332
  attr_accessor :percentage_discount
13985
16333
 
16334
+ # The set of price IDs to which this adjustment applies.
16335
+ sig { returns(T.nilable(T::Array[String])) }
16336
+ attr_accessor :applies_to_price_ids
16337
+
13986
16338
  # When false, this adjustment will be applied to a single price. Otherwise, it
13987
16339
  # will be applied at the invoice level, possibly to multiple prices.
13988
16340
  sig { returns(T.nilable(T::Boolean)) }
@@ -13993,16 +16345,16 @@ module Orb
13993
16345
 
13994
16346
  sig do
13995
16347
  params(
13996
- applies_to_price_ids: T::Array[String],
13997
16348
  percentage_discount: Float,
16349
+ applies_to_price_ids: T.nilable(T::Array[String]),
13998
16350
  is_invoice_level: T::Boolean,
13999
16351
  adjustment_type: Symbol
14000
16352
  ).returns(T.attached_class)
14001
16353
  end
14002
16354
  def self.new(
14003
- # The set of price IDs to which this adjustment applies.
14004
- applies_to_price_ids:,
14005
16355
  percentage_discount:,
16356
+ # The set of price IDs to which this adjustment applies.
16357
+ applies_to_price_ids: nil,
14006
16358
  # When false, this adjustment will be applied to a single price. Otherwise, it
14007
16359
  # will be applied at the invoice level, possibly to multiple prices.
14008
16360
  is_invoice_level: nil,
@@ -14014,8 +16366,8 @@ module Orb
14014
16366
  override.returns(
14015
16367
  {
14016
16368
  adjustment_type: Symbol,
14017
- applies_to_price_ids: T::Array[String],
14018
16369
  percentage_discount: Float,
16370
+ applies_to_price_ids: T.nilable(T::Array[String]),
14019
16371
  is_invoice_level: T::Boolean
14020
16372
  }
14021
16373
  )
@@ -14036,13 +16388,13 @@ module Orb
14036
16388
  sig { returns(Symbol) }
14037
16389
  attr_accessor :adjustment_type
14038
16390
 
14039
- # The set of price IDs to which this adjustment applies.
14040
- sig { returns(T::Array[String]) }
14041
- attr_accessor :applies_to_price_ids
14042
-
14043
16391
  sig { returns(Float) }
14044
16392
  attr_accessor :usage_discount
14045
16393
 
16394
+ # The set of price IDs to which this adjustment applies.
16395
+ sig { returns(T.nilable(T::Array[String])) }
16396
+ attr_accessor :applies_to_price_ids
16397
+
14046
16398
  # When false, this adjustment will be applied to a single price. Otherwise, it
14047
16399
  # will be applied at the invoice level, possibly to multiple prices.
14048
16400
  sig { returns(T.nilable(T::Boolean)) }
@@ -14053,16 +16405,16 @@ module Orb
14053
16405
 
14054
16406
  sig do
14055
16407
  params(
14056
- applies_to_price_ids: T::Array[String],
14057
16408
  usage_discount: Float,
16409
+ applies_to_price_ids: T.nilable(T::Array[String]),
14058
16410
  is_invoice_level: T::Boolean,
14059
16411
  adjustment_type: Symbol
14060
16412
  ).returns(T.attached_class)
14061
16413
  end
14062
16414
  def self.new(
14063
- # The set of price IDs to which this adjustment applies.
14064
- applies_to_price_ids:,
14065
16415
  usage_discount:,
16416
+ # The set of price IDs to which this adjustment applies.
16417
+ applies_to_price_ids: nil,
14066
16418
  # When false, this adjustment will be applied to a single price. Otherwise, it
14067
16419
  # will be applied at the invoice level, possibly to multiple prices.
14068
16420
  is_invoice_level: nil,
@@ -14074,8 +16426,8 @@ module Orb
14074
16426
  override.returns(
14075
16427
  {
14076
16428
  adjustment_type: Symbol,
14077
- applies_to_price_ids: T::Array[String],
14078
16429
  usage_discount: Float,
16430
+ applies_to_price_ids: T.nilable(T::Array[String]),
14079
16431
  is_invoice_level: T::Boolean
14080
16432
  }
14081
16433
  )
@@ -14100,7 +16452,7 @@ module Orb
14100
16452
  attr_accessor :amount_discount
14101
16453
 
14102
16454
  # The set of price IDs to which this adjustment applies.
14103
- sig { returns(T::Array[String]) }
16455
+ sig { returns(T.nilable(T::Array[String])) }
14104
16456
  attr_accessor :applies_to_price_ids
14105
16457
 
14106
16458
  # When false, this adjustment will be applied to a single price. Otherwise, it
@@ -14114,7 +16466,7 @@ module Orb
14114
16466
  sig do
14115
16467
  params(
14116
16468
  amount_discount: String,
14117
- applies_to_price_ids: T::Array[String],
16469
+ applies_to_price_ids: T.nilable(T::Array[String]),
14118
16470
  is_invoice_level: T::Boolean,
14119
16471
  adjustment_type: Symbol
14120
16472
  ).returns(T.attached_class)
@@ -14122,7 +16474,7 @@ module Orb
14122
16474
  def self.new(
14123
16475
  amount_discount:,
14124
16476
  # The set of price IDs to which this adjustment applies.
14125
- applies_to_price_ids:,
16477
+ applies_to_price_ids: nil,
14126
16478
  # When false, this adjustment will be applied to a single price. Otherwise, it
14127
16479
  # will be applied at the invoice level, possibly to multiple prices.
14128
16480
  is_invoice_level: nil,
@@ -14135,7 +16487,7 @@ module Orb
14135
16487
  {
14136
16488
  adjustment_type: Symbol,
14137
16489
  amount_discount: String,
14138
- applies_to_price_ids: T::Array[String],
16490
+ applies_to_price_ids: T.nilable(T::Array[String]),
14139
16491
  is_invoice_level: T::Boolean
14140
16492
  }
14141
16493
  )
@@ -14156,10 +16508,6 @@ module Orb
14156
16508
  sig { returns(Symbol) }
14157
16509
  attr_accessor :adjustment_type
14158
16510
 
14159
- # The set of price IDs to which this adjustment applies.
14160
- sig { returns(T::Array[String]) }
14161
- attr_accessor :applies_to_price_ids
14162
-
14163
16511
  # The item ID that revenue from this minimum will be attributed to.
14164
16512
  sig { returns(String) }
14165
16513
  attr_accessor :item_id
@@ -14167,6 +16515,10 @@ module Orb
14167
16515
  sig { returns(String) }
14168
16516
  attr_accessor :minimum_amount
14169
16517
 
16518
+ # The set of price IDs to which this adjustment applies.
16519
+ sig { returns(T.nilable(T::Array[String])) }
16520
+ attr_accessor :applies_to_price_ids
16521
+
14170
16522
  # When false, this adjustment will be applied to a single price. Otherwise, it
14171
16523
  # will be applied at the invoice level, possibly to multiple prices.
14172
16524
  sig { returns(T.nilable(T::Boolean)) }
@@ -14177,19 +16529,19 @@ module Orb
14177
16529
 
14178
16530
  sig do
14179
16531
  params(
14180
- applies_to_price_ids: T::Array[String],
14181
16532
  item_id: String,
14182
16533
  minimum_amount: String,
16534
+ applies_to_price_ids: T.nilable(T::Array[String]),
14183
16535
  is_invoice_level: T::Boolean,
14184
16536
  adjustment_type: Symbol
14185
16537
  ).returns(T.attached_class)
14186
16538
  end
14187
16539
  def self.new(
14188
- # The set of price IDs to which this adjustment applies.
14189
- applies_to_price_ids:,
14190
16540
  # The item ID that revenue from this minimum will be attributed to.
14191
16541
  item_id:,
14192
16542
  minimum_amount:,
16543
+ # The set of price IDs to which this adjustment applies.
16544
+ applies_to_price_ids: nil,
14193
16545
  # When false, this adjustment will be applied to a single price. Otherwise, it
14194
16546
  # will be applied at the invoice level, possibly to multiple prices.
14195
16547
  is_invoice_level: nil,
@@ -14201,9 +16553,9 @@ module Orb
14201
16553
  override.returns(
14202
16554
  {
14203
16555
  adjustment_type: Symbol,
14204
- applies_to_price_ids: T::Array[String],
14205
16556
  item_id: String,
14206
16557
  minimum_amount: String,
16558
+ applies_to_price_ids: T.nilable(T::Array[String]),
14207
16559
  is_invoice_level: T::Boolean
14208
16560
  }
14209
16561
  )
@@ -14224,13 +16576,13 @@ module Orb
14224
16576
  sig { returns(Symbol) }
14225
16577
  attr_accessor :adjustment_type
14226
16578
 
14227
- # The set of price IDs to which this adjustment applies.
14228
- sig { returns(T::Array[String]) }
14229
- attr_accessor :applies_to_price_ids
14230
-
14231
16579
  sig { returns(String) }
14232
16580
  attr_accessor :maximum_amount
14233
16581
 
16582
+ # The set of price IDs to which this adjustment applies.
16583
+ sig { returns(T.nilable(T::Array[String])) }
16584
+ attr_accessor :applies_to_price_ids
16585
+
14234
16586
  # When false, this adjustment will be applied to a single price. Otherwise, it
14235
16587
  # will be applied at the invoice level, possibly to multiple prices.
14236
16588
  sig { returns(T.nilable(T::Boolean)) }
@@ -14241,16 +16593,16 @@ module Orb
14241
16593
 
14242
16594
  sig do
14243
16595
  params(
14244
- applies_to_price_ids: T::Array[String],
14245
16596
  maximum_amount: String,
16597
+ applies_to_price_ids: T.nilable(T::Array[String]),
14246
16598
  is_invoice_level: T::Boolean,
14247
16599
  adjustment_type: Symbol
14248
16600
  ).returns(T.attached_class)
14249
16601
  end
14250
16602
  def self.new(
14251
- # The set of price IDs to which this adjustment applies.
14252
- applies_to_price_ids:,
14253
16603
  maximum_amount:,
16604
+ # The set of price IDs to which this adjustment applies.
16605
+ applies_to_price_ids: nil,
14254
16606
  # When false, this adjustment will be applied to a single price. Otherwise, it
14255
16607
  # will be applied at the invoice level, possibly to multiple prices.
14256
16608
  is_invoice_level: nil,
@@ -14262,8 +16614,8 @@ module Orb
14262
16614
  override.returns(
14263
16615
  {
14264
16616
  adjustment_type: Symbol,
14265
- applies_to_price_ids: T::Array[String],
14266
16617
  maximum_amount: String,
16618
+ applies_to_price_ids: T.nilable(T::Array[String]),
14267
16619
  is_invoice_level: T::Boolean
14268
16620
  }
14269
16621
  )