orb-billing 1.24.0 → 1.26.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 (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/orb/models/alert.rb +4 -2
  5. data/lib/orb/models/alert_update_params.rb +5 -3
  6. data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +530 -6
  7. data/lib/orb/models/beta_create_plan_version_params.rb +526 -6
  8. data/lib/orb/models/changed_subscription_resources.rb +5 -5
  9. data/lib/orb/models/invoice.rb +5 -5
  10. data/lib/orb/models/invoice_fetch_upcoming_response.rb +5 -5
  11. data/lib/orb/models/invoice_issue_summary_response.rb +3 -3
  12. data/lib/orb/models/invoice_line_item_create_response.rb +2 -2
  13. data/lib/orb/models/invoice_list_summary_response.rb +3 -3
  14. data/lib/orb/models/per_price_cost.rb +2 -2
  15. data/lib/orb/models/plan.rb +2 -2
  16. data/lib/orb/models/plan_create_params.rb +259 -3
  17. data/lib/orb/models/plan_version.rb +2 -2
  18. data/lib/orb/models/price.rb +433 -1
  19. data/lib/orb/models/price_create_params.rb +244 -3
  20. data/lib/orb/models/price_evaluate_multiple_params.rb +255 -3
  21. data/lib/orb/models/price_evaluate_preview_events_params.rb +255 -3
  22. data/lib/orb/models/price_interval.rb +2 -2
  23. data/lib/orb/models/subscription_create_params.rb +521 -6
  24. data/lib/orb/models/subscription_price_intervals_params.rb +251 -3
  25. data/lib/orb/models/subscription_schedule_plan_change_params.rb +530 -6
  26. data/lib/orb/resources/alerts.rb +5 -2
  27. data/lib/orb/resources/customers/costs.rb +20 -0
  28. data/lib/orb/resources/licenses/external_licenses.rb +7 -0
  29. data/lib/orb/resources/licenses/usage.rb +3 -0
  30. data/lib/orb/resources/prices/external_price_id.rb +2 -2
  31. data/lib/orb/resources/prices.rb +5 -5
  32. data/lib/orb/resources/subscriptions.rb +39 -6
  33. data/lib/orb/version.rb +1 -1
  34. data/rbi/orb/models/alert.rbi +6 -2
  35. data/rbi/orb/models/alert_update_params.rbi +8 -4
  36. data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +2789 -1903
  37. data/rbi/orb/models/beta_create_plan_version_params.rbi +2788 -1902
  38. data/rbi/orb/models/changed_subscription_resources.rbi +7 -6
  39. data/rbi/orb/models/invoice.rbi +7 -6
  40. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +7 -6
  41. data/rbi/orb/models/invoice_issue_summary_response.rbi +6 -6
  42. data/rbi/orb/models/invoice_line_item_create_response.rbi +1 -0
  43. data/rbi/orb/models/invoice_list_summary_response.rbi +6 -6
  44. data/rbi/orb/models/per_price_cost.rbi +1 -0
  45. data/rbi/orb/models/plan.rbi +1 -0
  46. data/rbi/orb/models/plan_create_params.rbi +443 -0
  47. data/rbi/orb/models/plan_version.rbi +1 -0
  48. data/rbi/orb/models/price.rbi +766 -0
  49. data/rbi/orb/models/price_create_params.rbi +431 -0
  50. data/rbi/orb/models/price_evaluate_multiple_params.rbi +431 -0
  51. data/rbi/orb/models/price_evaluate_preview_events_params.rbi +431 -0
  52. data/rbi/orb/models/price_interval.rbi +1 -0
  53. data/rbi/orb/models/subscription_create_params.rbi +2489 -1603
  54. data/rbi/orb/models/subscription_price_intervals_params.rbi +431 -0
  55. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +2483 -1597
  56. data/rbi/orb/resources/alerts.rbi +8 -3
  57. data/rbi/orb/resources/customers/costs.rbi +20 -0
  58. data/rbi/orb/resources/licenses/external_licenses.rbi +7 -0
  59. data/rbi/orb/resources/licenses/usage.rbi +3 -0
  60. data/rbi/orb/resources/prices.rbi +1 -0
  61. data/rbi/orb/resources/subscriptions.rbi +39 -6
  62. data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +366 -0
  63. data/sig/orb/models/beta_create_plan_version_params.rbs +366 -0
  64. data/sig/orb/models/plan_create_params.rbs +183 -0
  65. data/sig/orb/models/price.rbs +327 -0
  66. data/sig/orb/models/price_create_params.rbs +173 -0
  67. data/sig/orb/models/price_evaluate_multiple_params.rbs +178 -0
  68. data/sig/orb/models/price_evaluate_preview_events_params.rbs +178 -0
  69. data/sig/orb/models/subscription_create_params.rbs +366 -0
  70. data/sig/orb/models/subscription_price_intervals_params.rbs +178 -0
  71. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +366 -0
  72. metadata +2 -2
@@ -133,6 +133,7 @@ module Orb
133
133
  Orb::NewFloatingTieredPackagePrice,
134
134
  Orb::NewFloatingTieredWithMinimumPrice,
135
135
  Orb::NewFloatingGroupedTieredPrice,
136
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix,
136
137
  Orb::NewFloatingTieredPackageWithMinimumPrice,
137
138
  Orb::NewFloatingPackageWithAllocationPrice,
138
139
  Orb::NewFloatingUnitWithPercentPrice,
@@ -186,6 +187,7 @@ module Orb
186
187
  Orb::NewFloatingTieredPackagePrice::OrHash,
187
188
  Orb::NewFloatingTieredWithMinimumPrice::OrHash,
188
189
  Orb::NewFloatingGroupedTieredPrice::OrHash,
190
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::OrHash,
189
191
  Orb::NewFloatingTieredPackageWithMinimumPrice::OrHash,
190
192
  Orb::NewFloatingPackageWithAllocationPrice::OrHash,
191
193
  Orb::NewFloatingUnitWithPercentPrice::OrHash,
@@ -257,6 +259,7 @@ module Orb
257
259
  Orb::NewFloatingTieredPackagePrice,
258
260
  Orb::NewFloatingTieredWithMinimumPrice,
259
261
  Orb::NewFloatingGroupedTieredPrice,
262
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix,
260
263
  Orb::NewFloatingTieredPackageWithMinimumPrice,
261
264
  Orb::NewFloatingPackageWithAllocationPrice,
262
265
  Orb::NewFloatingUnitWithPercentPrice,
@@ -307,6 +310,7 @@ module Orb
307
310
  Orb::NewFloatingTieredPackagePrice,
308
311
  Orb::NewFloatingTieredWithMinimumPrice,
309
312
  Orb::NewFloatingGroupedTieredPrice,
313
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix,
310
314
  Orb::NewFloatingTieredPackageWithMinimumPrice,
311
315
  Orb::NewFloatingPackageWithAllocationPrice,
312
316
  Orb::NewFloatingUnitWithPercentPrice,
@@ -794,6 +798,433 @@ module Orb
794
798
  end
795
799
  end
796
800
 
801
+ class GroupedTieredMatrix < Orb::Internal::Type::BaseModel
802
+ OrHash =
803
+ T.type_alias do
804
+ T.any(
805
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix,
806
+ Orb::Internal::AnyHash
807
+ )
808
+ end
809
+
810
+ # The cadence to bill for this price on.
811
+ sig do
812
+ returns(
813
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::Cadence::OrSymbol
814
+ )
815
+ end
816
+ attr_accessor :cadence
817
+
818
+ # An ISO 4217 currency string for which this price is billed in.
819
+ sig { returns(String) }
820
+ attr_accessor :currency
821
+
822
+ # Configuration for grouped_tiered_matrix pricing
823
+ sig do
824
+ returns(
825
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig
826
+ )
827
+ end
828
+ attr_reader :grouped_tiered_matrix_config
829
+
830
+ sig do
831
+ params(
832
+ grouped_tiered_matrix_config:
833
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::OrHash
834
+ ).void
835
+ end
836
+ attr_writer :grouped_tiered_matrix_config
837
+
838
+ # The id of the item the price will be associated with.
839
+ sig { returns(String) }
840
+ attr_accessor :item_id
841
+
842
+ # The pricing model type
843
+ sig { returns(Symbol) }
844
+ attr_accessor :model_type
845
+
846
+ # The name of the price.
847
+ sig { returns(String) }
848
+ attr_accessor :name
849
+
850
+ # The id of the billable metric for the price. Only needed if the price is
851
+ # usage-based.
852
+ sig { returns(T.nilable(String)) }
853
+ attr_accessor :billable_metric_id
854
+
855
+ # If the Price represents a fixed cost, the price will be billed in-advance if
856
+ # this is true, and in-arrears if this is false.
857
+ sig { returns(T.nilable(T::Boolean)) }
858
+ attr_accessor :billed_in_advance
859
+
860
+ # For custom cadence: specifies the duration of the billing period in days or
861
+ # months.
862
+ sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) }
863
+ attr_reader :billing_cycle_configuration
864
+
865
+ sig do
866
+ params(
867
+ billing_cycle_configuration:
868
+ T.nilable(Orb::NewBillingCycleConfiguration::OrHash)
869
+ ).void
870
+ end
871
+ attr_writer :billing_cycle_configuration
872
+
873
+ # The per unit conversion rate of the price currency to the invoicing currency.
874
+ sig { returns(T.nilable(Float)) }
875
+ attr_accessor :conversion_rate
876
+
877
+ # The configuration for the rate of the price currency to the invoicing currency.
878
+ sig do
879
+ returns(
880
+ T.nilable(
881
+ T.any(
882
+ Orb::UnitConversionRateConfig,
883
+ Orb::TieredConversionRateConfig
884
+ )
885
+ )
886
+ )
887
+ end
888
+ attr_accessor :conversion_rate_config
889
+
890
+ # For dimensional price: specifies a price group and dimension values
891
+ sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) }
892
+ attr_reader :dimensional_price_configuration
893
+
894
+ sig do
895
+ params(
896
+ dimensional_price_configuration:
897
+ T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash)
898
+ ).void
899
+ end
900
+ attr_writer :dimensional_price_configuration
901
+
902
+ # An alias for the price.
903
+ sig { returns(T.nilable(String)) }
904
+ attr_accessor :external_price_id
905
+
906
+ # If the Price represents a fixed cost, this represents the quantity of units
907
+ # applied.
908
+ sig { returns(T.nilable(Float)) }
909
+ attr_accessor :fixed_price_quantity
910
+
911
+ # The property used to group this price on an invoice
912
+ sig { returns(T.nilable(String)) }
913
+ attr_accessor :invoice_grouping_key
914
+
915
+ # Within each billing cycle, specifies the cadence at which invoices are produced.
916
+ # If unspecified, a single invoice is produced per billing cycle.
917
+ sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) }
918
+ attr_reader :invoicing_cycle_configuration
919
+
920
+ sig do
921
+ params(
922
+ invoicing_cycle_configuration:
923
+ T.nilable(Orb::NewBillingCycleConfiguration::OrHash)
924
+ ).void
925
+ end
926
+ attr_writer :invoicing_cycle_configuration
927
+
928
+ # The ID of the license type to associate with this price.
929
+ sig { returns(T.nilable(String)) }
930
+ attr_accessor :license_type_id
931
+
932
+ # User-specified key/value pairs for the resource. Individual keys can be removed
933
+ # by setting the value to `null`, and the entire metadata mapping can be cleared
934
+ # by setting `metadata` to `null`.
935
+ sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
936
+ attr_accessor :metadata
937
+
938
+ sig do
939
+ params(
940
+ cadence:
941
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::Cadence::OrSymbol,
942
+ currency: String,
943
+ grouped_tiered_matrix_config:
944
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::OrHash,
945
+ item_id: String,
946
+ name: String,
947
+ billable_metric_id: T.nilable(String),
948
+ billed_in_advance: T.nilable(T::Boolean),
949
+ billing_cycle_configuration:
950
+ T.nilable(Orb::NewBillingCycleConfiguration::OrHash),
951
+ conversion_rate: T.nilable(Float),
952
+ conversion_rate_config:
953
+ T.nilable(
954
+ T.any(
955
+ Orb::UnitConversionRateConfig::OrHash,
956
+ Orb::TieredConversionRateConfig::OrHash
957
+ )
958
+ ),
959
+ dimensional_price_configuration:
960
+ T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash),
961
+ external_price_id: T.nilable(String),
962
+ fixed_price_quantity: T.nilable(Float),
963
+ invoice_grouping_key: T.nilable(String),
964
+ invoicing_cycle_configuration:
965
+ T.nilable(Orb::NewBillingCycleConfiguration::OrHash),
966
+ license_type_id: T.nilable(String),
967
+ metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
968
+ model_type: Symbol
969
+ ).returns(T.attached_class)
970
+ end
971
+ def self.new(
972
+ # The cadence to bill for this price on.
973
+ cadence:,
974
+ # An ISO 4217 currency string for which this price is billed in.
975
+ currency:,
976
+ # Configuration for grouped_tiered_matrix pricing
977
+ grouped_tiered_matrix_config:,
978
+ # The id of the item the price will be associated with.
979
+ item_id:,
980
+ # The name of the price.
981
+ name:,
982
+ # The id of the billable metric for the price. Only needed if the price is
983
+ # usage-based.
984
+ billable_metric_id: nil,
985
+ # If the Price represents a fixed cost, the price will be billed in-advance if
986
+ # this is true, and in-arrears if this is false.
987
+ billed_in_advance: nil,
988
+ # For custom cadence: specifies the duration of the billing period in days or
989
+ # months.
990
+ billing_cycle_configuration: nil,
991
+ # The per unit conversion rate of the price currency to the invoicing currency.
992
+ conversion_rate: nil,
993
+ # The configuration for the rate of the price currency to the invoicing currency.
994
+ conversion_rate_config: nil,
995
+ # For dimensional price: specifies a price group and dimension values
996
+ dimensional_price_configuration: nil,
997
+ # An alias for the price.
998
+ external_price_id: nil,
999
+ # If the Price represents a fixed cost, this represents the quantity of units
1000
+ # applied.
1001
+ fixed_price_quantity: nil,
1002
+ # The property used to group this price on an invoice
1003
+ invoice_grouping_key: nil,
1004
+ # Within each billing cycle, specifies the cadence at which invoices are produced.
1005
+ # If unspecified, a single invoice is produced per billing cycle.
1006
+ invoicing_cycle_configuration: nil,
1007
+ # The ID of the license type to associate with this price.
1008
+ license_type_id: nil,
1009
+ # User-specified key/value pairs for the resource. Individual keys can be removed
1010
+ # by setting the value to `null`, and the entire metadata mapping can be cleared
1011
+ # by setting `metadata` to `null`.
1012
+ metadata: nil,
1013
+ # The pricing model type
1014
+ model_type: :grouped_tiered_matrix
1015
+ )
1016
+ end
1017
+
1018
+ sig do
1019
+ override.returns(
1020
+ {
1021
+ cadence:
1022
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::Cadence::OrSymbol,
1023
+ currency: String,
1024
+ grouped_tiered_matrix_config:
1025
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig,
1026
+ item_id: String,
1027
+ model_type: Symbol,
1028
+ name: String,
1029
+ billable_metric_id: T.nilable(String),
1030
+ billed_in_advance: T.nilable(T::Boolean),
1031
+ billing_cycle_configuration:
1032
+ T.nilable(Orb::NewBillingCycleConfiguration),
1033
+ conversion_rate: T.nilable(Float),
1034
+ conversion_rate_config:
1035
+ T.nilable(
1036
+ T.any(
1037
+ Orb::UnitConversionRateConfig,
1038
+ Orb::TieredConversionRateConfig
1039
+ )
1040
+ ),
1041
+ dimensional_price_configuration:
1042
+ T.nilable(Orb::NewDimensionalPriceConfiguration),
1043
+ external_price_id: T.nilable(String),
1044
+ fixed_price_quantity: T.nilable(Float),
1045
+ invoice_grouping_key: T.nilable(String),
1046
+ invoicing_cycle_configuration:
1047
+ T.nilable(Orb::NewBillingCycleConfiguration),
1048
+ license_type_id: T.nilable(String),
1049
+ metadata: T.nilable(T::Hash[Symbol, T.nilable(String)])
1050
+ }
1051
+ )
1052
+ end
1053
+ def to_hash
1054
+ end
1055
+
1056
+ # The cadence to bill for this price on.
1057
+ module Cadence
1058
+ extend Orb::Internal::Type::Enum
1059
+
1060
+ TaggedSymbol =
1061
+ T.type_alias do
1062
+ T.all(
1063
+ Symbol,
1064
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::Cadence
1065
+ )
1066
+ end
1067
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1068
+
1069
+ ANNUAL =
1070
+ T.let(
1071
+ :annual,
1072
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::Cadence::TaggedSymbol
1073
+ )
1074
+ SEMI_ANNUAL =
1075
+ T.let(
1076
+ :semi_annual,
1077
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::Cadence::TaggedSymbol
1078
+ )
1079
+ MONTHLY =
1080
+ T.let(
1081
+ :monthly,
1082
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::Cadence::TaggedSymbol
1083
+ )
1084
+ QUARTERLY =
1085
+ T.let(
1086
+ :quarterly,
1087
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::Cadence::TaggedSymbol
1088
+ )
1089
+ ONE_TIME =
1090
+ T.let(
1091
+ :one_time,
1092
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::Cadence::TaggedSymbol
1093
+ )
1094
+ CUSTOM =
1095
+ T.let(
1096
+ :custom,
1097
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::Cadence::TaggedSymbol
1098
+ )
1099
+
1100
+ sig do
1101
+ override.returns(
1102
+ T::Array[
1103
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::Cadence::TaggedSymbol
1104
+ ]
1105
+ )
1106
+ end
1107
+ def self.values
1108
+ end
1109
+ end
1110
+
1111
+ class GroupedTieredMatrixConfig < Orb::Internal::Type::BaseModel
1112
+ OrHash =
1113
+ T.type_alias do
1114
+ T.any(
1115
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig,
1116
+ Orb::Internal::AnyHash
1117
+ )
1118
+ end
1119
+
1120
+ # Per unit rate for usage whose dimension value has no configured tiers
1121
+ sig { returns(String) }
1122
+ attr_accessor :default_unit_amount
1123
+
1124
+ # The billable metric property used to group usage before tiering
1125
+ sig { returns(String) }
1126
+ attr_accessor :dimension
1127
+
1128
+ # Graduated tiers keyed by dimension value; usage for a value is tiered only
1129
+ # against its own rows
1130
+ sig do
1131
+ returns(
1132
+ T::Array[
1133
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier
1134
+ ]
1135
+ )
1136
+ end
1137
+ attr_accessor :tiers
1138
+
1139
+ # Configuration for grouped_tiered_matrix pricing
1140
+ sig do
1141
+ params(
1142
+ default_unit_amount: String,
1143
+ dimension: String,
1144
+ tiers:
1145
+ T::Array[
1146
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier::OrHash
1147
+ ]
1148
+ ).returns(T.attached_class)
1149
+ end
1150
+ def self.new(
1151
+ # Per unit rate for usage whose dimension value has no configured tiers
1152
+ default_unit_amount:,
1153
+ # The billable metric property used to group usage before tiering
1154
+ dimension:,
1155
+ # Graduated tiers keyed by dimension value; usage for a value is tiered only
1156
+ # against its own rows
1157
+ tiers:
1158
+ )
1159
+ end
1160
+
1161
+ sig do
1162
+ override.returns(
1163
+ {
1164
+ default_unit_amount: String,
1165
+ dimension: String,
1166
+ tiers:
1167
+ T::Array[
1168
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier
1169
+ ]
1170
+ }
1171
+ )
1172
+ end
1173
+ def to_hash
1174
+ end
1175
+
1176
+ class Tier < Orb::Internal::Type::BaseModel
1177
+ OrHash =
1178
+ T.type_alias do
1179
+ T.any(
1180
+ Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedTieredMatrix::GroupedTieredMatrixConfig::Tier,
1181
+ Orb::Internal::AnyHash
1182
+ )
1183
+ end
1184
+
1185
+ # The dimension value this tier applies to
1186
+ sig { returns(String) }
1187
+ attr_accessor :dimension_value
1188
+
1189
+ sig { returns(String) }
1190
+ attr_accessor :tier_lower_bound
1191
+
1192
+ # Per unit amount
1193
+ sig { returns(String) }
1194
+ attr_accessor :unit_amount
1195
+
1196
+ # Configuration for a single tier scoped to a dimension value
1197
+ sig do
1198
+ params(
1199
+ dimension_value: String,
1200
+ tier_lower_bound: String,
1201
+ unit_amount: String
1202
+ ).returns(T.attached_class)
1203
+ end
1204
+ def self.new(
1205
+ # The dimension value this tier applies to
1206
+ dimension_value:,
1207
+ tier_lower_bound:,
1208
+ # Per unit amount
1209
+ unit_amount:
1210
+ )
1211
+ end
1212
+
1213
+ sig do
1214
+ override.returns(
1215
+ {
1216
+ dimension_value: String,
1217
+ tier_lower_bound: String,
1218
+ unit_amount: String
1219
+ }
1220
+ )
1221
+ end
1222
+ def to_hash
1223
+ end
1224
+ end
1225
+ end
1226
+ end
1227
+
797
1228
  class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
798
1229
  OrHash =
799
1230
  T.type_alias do