orb-billing 1.30.0 → 1.32.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +1 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +566 -6
- data/lib/orb/models/beta_create_plan_version_params.rb +566 -6
- data/lib/orb/models/changed_subscription_resources.rb +3 -2
- data/lib/orb/models/customers/balance_transaction_create_response.rb +1 -0
- data/lib/orb/models/customers/balance_transaction_list_response.rb +1 -0
- data/lib/orb/models/invoice.rb +3 -2
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +3 -2
- data/lib/orb/models/invoice_issue_summary_response.rb +1 -0
- data/lib/orb/models/invoice_line_item_create_response.rb +2 -2
- data/lib/orb/models/invoice_list_summary_response.rb +1 -0
- data/lib/orb/models/per_price_cost.rb +2 -2
- data/lib/orb/models/plan.rb +2 -2
- data/lib/orb/models/plan_create_params.rb +278 -3
- data/lib/orb/models/plan_version.rb +2 -2
- data/lib/orb/models/price.rb +450 -1
- data/lib/orb/models/price_create_params.rb +263 -3
- data/lib/orb/models/price_evaluate_multiple_params.rb +273 -3
- data/lib/orb/models/price_evaluate_preview_events_params.rb +273 -3
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/subscription_create_params.rb +566 -6
- data/lib/orb/models/subscription_price_intervals_params.rb +273 -3
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +566 -6
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +5 -5
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +2737 -1811
- data/rbi/orb/models/beta_create_plan_version_params.rbi +2745 -1819
- data/rbi/orb/models/changed_subscription_resources.rbi +6 -0
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +5 -0
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +5 -0
- data/rbi/orb/models/invoice.rbi +6 -0
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +6 -0
- data/rbi/orb/models/invoice_issue_summary_response.rbi +5 -0
- data/rbi/orb/models/invoice_line_item_create_response.rbi +1 -0
- data/rbi/orb/models/invoice_list_summary_response.rbi +5 -0
- data/rbi/orb/models/per_price_cost.rbi +1 -0
- data/rbi/orb/models/plan.rbi +1 -0
- data/rbi/orb/models/plan_create_params.rbi +463 -0
- data/rbi/orb/models/plan_version.rbi +1 -0
- data/rbi/orb/models/price.rbi +805 -0
- data/rbi/orb/models/price_create_params.rbi +451 -0
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +451 -0
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +451 -0
- data/rbi/orb/models/price_interval.rbi +1 -0
- data/rbi/orb/models/subscription_create_params.rbi +2660 -1734
- data/rbi/orb/models/subscription_price_intervals_params.rbi +451 -0
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +2660 -1734
- data/rbi/orb/resources/prices.rbi +1 -0
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +376 -0
- data/sig/orb/models/beta_create_plan_version_params.rbs +376 -0
- data/sig/orb/models/changed_subscription_resources.rbs +2 -0
- data/sig/orb/models/customers/balance_transaction_create_response.rbs +2 -0
- data/sig/orb/models/customers/balance_transaction_list_response.rbs +2 -0
- data/sig/orb/models/invoice.rbs +2 -0
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +2 -0
- data/sig/orb/models/invoice_issue_summary_response.rbs +2 -0
- data/sig/orb/models/invoice_list_summary_response.rbs +2 -0
- data/sig/orb/models/plan_create_params.rbs +188 -0
- data/sig/orb/models/price.rbs +332 -0
- data/sig/orb/models/price_create_params.rbs +178 -0
- data/sig/orb/models/price_evaluate_multiple_params.rbs +183 -0
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +183 -0
- data/sig/orb/models/subscription_create_params.rbs +376 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +183 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +376 -0
- metadata +1 -1
|
@@ -466,6 +466,7 @@ module Orb
|
|
|
466
466
|
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
467
467
|
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
468
468
|
| Orb::NewSubscriptionMatrixWithAllocationPrice
|
|
469
|
+
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation
|
|
469
470
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts
|
|
470
471
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration
|
|
471
472
|
| Orb::NewSubscriptionUnitWithProrationPrice
|
|
@@ -855,6 +856,193 @@ module Orb
|
|
|
855
856
|
end
|
|
856
857
|
end
|
|
857
858
|
|
|
859
|
+
type tiered_matrix_with_allocation =
|
|
860
|
+
{
|
|
861
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::cadence,
|
|
862
|
+
item_id: String,
|
|
863
|
+
model_type: :tiered_matrix_with_allocation,
|
|
864
|
+
name: String,
|
|
865
|
+
tiered_matrix_with_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
866
|
+
billable_metric_id: String?,
|
|
867
|
+
billed_in_advance: bool?,
|
|
868
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
869
|
+
conversion_rate: Float?,
|
|
870
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
871
|
+
currency: String?,
|
|
872
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
873
|
+
external_price_id: String?,
|
|
874
|
+
fixed_price_quantity: Float?,
|
|
875
|
+
invoice_grouping_key: String?,
|
|
876
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
877
|
+
license_type_id: String?,
|
|
878
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
879
|
+
reference_id: String?
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
class TieredMatrixWithAllocation < Orb::Internal::Type::BaseModel
|
|
883
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::cadence
|
|
884
|
+
|
|
885
|
+
attr_accessor item_id: String
|
|
886
|
+
|
|
887
|
+
attr_accessor model_type: :tiered_matrix_with_allocation
|
|
888
|
+
|
|
889
|
+
attr_accessor name: String
|
|
890
|
+
|
|
891
|
+
attr_accessor tiered_matrix_with_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig
|
|
892
|
+
|
|
893
|
+
attr_accessor billable_metric_id: String?
|
|
894
|
+
|
|
895
|
+
attr_accessor billed_in_advance: bool?
|
|
896
|
+
|
|
897
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
898
|
+
|
|
899
|
+
attr_accessor conversion_rate: Float?
|
|
900
|
+
|
|
901
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
902
|
+
|
|
903
|
+
attr_accessor currency: String?
|
|
904
|
+
|
|
905
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
906
|
+
|
|
907
|
+
attr_accessor external_price_id: String?
|
|
908
|
+
|
|
909
|
+
attr_accessor fixed_price_quantity: Float?
|
|
910
|
+
|
|
911
|
+
attr_accessor invoice_grouping_key: String?
|
|
912
|
+
|
|
913
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
914
|
+
|
|
915
|
+
attr_accessor license_type_id: String?
|
|
916
|
+
|
|
917
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
918
|
+
|
|
919
|
+
attr_accessor reference_id: String?
|
|
920
|
+
|
|
921
|
+
def initialize: (
|
|
922
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::cadence,
|
|
923
|
+
item_id: String,
|
|
924
|
+
name: String,
|
|
925
|
+
tiered_matrix_with_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
926
|
+
?billable_metric_id: String?,
|
|
927
|
+
?billed_in_advance: bool?,
|
|
928
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
929
|
+
?conversion_rate: Float?,
|
|
930
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
931
|
+
?currency: String?,
|
|
932
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
933
|
+
?external_price_id: String?,
|
|
934
|
+
?fixed_price_quantity: Float?,
|
|
935
|
+
?invoice_grouping_key: String?,
|
|
936
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
937
|
+
?license_type_id: String?,
|
|
938
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
939
|
+
?reference_id: String?,
|
|
940
|
+
?model_type: :tiered_matrix_with_allocation
|
|
941
|
+
) -> void
|
|
942
|
+
|
|
943
|
+
def to_hash: -> {
|
|
944
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::cadence,
|
|
945
|
+
item_id: String,
|
|
946
|
+
model_type: :tiered_matrix_with_allocation,
|
|
947
|
+
name: String,
|
|
948
|
+
tiered_matrix_with_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
949
|
+
billable_metric_id: String?,
|
|
950
|
+
billed_in_advance: bool?,
|
|
951
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
952
|
+
conversion_rate: Float?,
|
|
953
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
954
|
+
currency: String?,
|
|
955
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
956
|
+
external_price_id: String?,
|
|
957
|
+
fixed_price_quantity: Float?,
|
|
958
|
+
invoice_grouping_key: String?,
|
|
959
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
960
|
+
license_type_id: String?,
|
|
961
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
962
|
+
reference_id: String?
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
type cadence =
|
|
966
|
+
:annual
|
|
967
|
+
| :semi_annual
|
|
968
|
+
| :monthly
|
|
969
|
+
| :quarterly
|
|
970
|
+
| :one_time
|
|
971
|
+
| :custom
|
|
972
|
+
|
|
973
|
+
module Cadence
|
|
974
|
+
extend Orb::Internal::Type::Enum
|
|
975
|
+
|
|
976
|
+
ANNUAL: :annual
|
|
977
|
+
SEMI_ANNUAL: :semi_annual
|
|
978
|
+
MONTHLY: :monthly
|
|
979
|
+
QUARTERLY: :quarterly
|
|
980
|
+
ONE_TIME: :one_time
|
|
981
|
+
CUSTOM: :custom
|
|
982
|
+
|
|
983
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::cadence]
|
|
984
|
+
end
|
|
985
|
+
|
|
986
|
+
type tiered_matrix_with_allocation_config =
|
|
987
|
+
{
|
|
988
|
+
allocation: String,
|
|
989
|
+
default_unit_amount: String,
|
|
990
|
+
dimensions: ::Array[String],
|
|
991
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
class TieredMatrixWithAllocationConfig < Orb::Internal::Type::BaseModel
|
|
995
|
+
attr_accessor allocation: String
|
|
996
|
+
|
|
997
|
+
attr_accessor default_unit_amount: String
|
|
998
|
+
|
|
999
|
+
attr_accessor dimensions: ::Array[String]
|
|
1000
|
+
|
|
1001
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
1002
|
+
|
|
1003
|
+
def initialize: (
|
|
1004
|
+
allocation: String,
|
|
1005
|
+
default_unit_amount: String,
|
|
1006
|
+
dimensions: ::Array[String],
|
|
1007
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
1008
|
+
) -> void
|
|
1009
|
+
|
|
1010
|
+
def to_hash: -> {
|
|
1011
|
+
allocation: String,
|
|
1012
|
+
default_unit_amount: String,
|
|
1013
|
+
dimensions: ::Array[String],
|
|
1014
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
type tier =
|
|
1018
|
+
{
|
|
1019
|
+
dimension_values: ::Array[String],
|
|
1020
|
+
tier_lower_bound: String,
|
|
1021
|
+
unit_amount: String
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
1025
|
+
attr_accessor dimension_values: ::Array[String]
|
|
1026
|
+
|
|
1027
|
+
attr_accessor tier_lower_bound: String
|
|
1028
|
+
|
|
1029
|
+
attr_accessor unit_amount: String
|
|
1030
|
+
|
|
1031
|
+
def initialize: (
|
|
1032
|
+
dimension_values: ::Array[String],
|
|
1033
|
+
tier_lower_bound: String,
|
|
1034
|
+
unit_amount: String
|
|
1035
|
+
) -> void
|
|
1036
|
+
|
|
1037
|
+
def to_hash: -> {
|
|
1038
|
+
dimension_values: ::Array[String],
|
|
1039
|
+
tier_lower_bound: String,
|
|
1040
|
+
unit_amount: String
|
|
1041
|
+
}
|
|
1042
|
+
end
|
|
1043
|
+
end
|
|
1044
|
+
end
|
|
1045
|
+
|
|
858
1046
|
type matrix_with_threshold_discounts =
|
|
859
1047
|
{
|
|
860
1048
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
@@ -2569,6 +2757,7 @@ module Orb
|
|
|
2569
2757
|
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
2570
2758
|
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
2571
2759
|
| Orb::NewSubscriptionMatrixWithAllocationPrice
|
|
2760
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation
|
|
2572
2761
|
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts
|
|
2573
2762
|
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration
|
|
2574
2763
|
| Orb::NewSubscriptionUnitWithProrationPrice
|
|
@@ -2958,6 +3147,193 @@ module Orb
|
|
|
2958
3147
|
end
|
|
2959
3148
|
end
|
|
2960
3149
|
|
|
3150
|
+
type tiered_matrix_with_allocation =
|
|
3151
|
+
{
|
|
3152
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::cadence,
|
|
3153
|
+
item_id: String,
|
|
3154
|
+
model_type: :tiered_matrix_with_allocation,
|
|
3155
|
+
name: String,
|
|
3156
|
+
tiered_matrix_with_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
3157
|
+
billable_metric_id: String?,
|
|
3158
|
+
billed_in_advance: bool?,
|
|
3159
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3160
|
+
conversion_rate: Float?,
|
|
3161
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3162
|
+
currency: String?,
|
|
3163
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3164
|
+
external_price_id: String?,
|
|
3165
|
+
fixed_price_quantity: Float?,
|
|
3166
|
+
invoice_grouping_key: String?,
|
|
3167
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3168
|
+
license_type_id: String?,
|
|
3169
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3170
|
+
reference_id: String?
|
|
3171
|
+
}
|
|
3172
|
+
|
|
3173
|
+
class TieredMatrixWithAllocation < Orb::Internal::Type::BaseModel
|
|
3174
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::cadence
|
|
3175
|
+
|
|
3176
|
+
attr_accessor item_id: String
|
|
3177
|
+
|
|
3178
|
+
attr_accessor model_type: :tiered_matrix_with_allocation
|
|
3179
|
+
|
|
3180
|
+
attr_accessor name: String
|
|
3181
|
+
|
|
3182
|
+
attr_accessor tiered_matrix_with_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig
|
|
3183
|
+
|
|
3184
|
+
attr_accessor billable_metric_id: String?
|
|
3185
|
+
|
|
3186
|
+
attr_accessor billed_in_advance: bool?
|
|
3187
|
+
|
|
3188
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3189
|
+
|
|
3190
|
+
attr_accessor conversion_rate: Float?
|
|
3191
|
+
|
|
3192
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
3193
|
+
|
|
3194
|
+
attr_accessor currency: String?
|
|
3195
|
+
|
|
3196
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
3197
|
+
|
|
3198
|
+
attr_accessor external_price_id: String?
|
|
3199
|
+
|
|
3200
|
+
attr_accessor fixed_price_quantity: Float?
|
|
3201
|
+
|
|
3202
|
+
attr_accessor invoice_grouping_key: String?
|
|
3203
|
+
|
|
3204
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3205
|
+
|
|
3206
|
+
attr_accessor license_type_id: String?
|
|
3207
|
+
|
|
3208
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
3209
|
+
|
|
3210
|
+
attr_accessor reference_id: String?
|
|
3211
|
+
|
|
3212
|
+
def initialize: (
|
|
3213
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::cadence,
|
|
3214
|
+
item_id: String,
|
|
3215
|
+
name: String,
|
|
3216
|
+
tiered_matrix_with_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
3217
|
+
?billable_metric_id: String?,
|
|
3218
|
+
?billed_in_advance: bool?,
|
|
3219
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3220
|
+
?conversion_rate: Float?,
|
|
3221
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3222
|
+
?currency: String?,
|
|
3223
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3224
|
+
?external_price_id: String?,
|
|
3225
|
+
?fixed_price_quantity: Float?,
|
|
3226
|
+
?invoice_grouping_key: String?,
|
|
3227
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3228
|
+
?license_type_id: String?,
|
|
3229
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
3230
|
+
?reference_id: String?,
|
|
3231
|
+
?model_type: :tiered_matrix_with_allocation
|
|
3232
|
+
) -> void
|
|
3233
|
+
|
|
3234
|
+
def to_hash: -> {
|
|
3235
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::cadence,
|
|
3236
|
+
item_id: String,
|
|
3237
|
+
model_type: :tiered_matrix_with_allocation,
|
|
3238
|
+
name: String,
|
|
3239
|
+
tiered_matrix_with_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
3240
|
+
billable_metric_id: String?,
|
|
3241
|
+
billed_in_advance: bool?,
|
|
3242
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3243
|
+
conversion_rate: Float?,
|
|
3244
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3245
|
+
currency: String?,
|
|
3246
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3247
|
+
external_price_id: String?,
|
|
3248
|
+
fixed_price_quantity: Float?,
|
|
3249
|
+
invoice_grouping_key: String?,
|
|
3250
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3251
|
+
license_type_id: String?,
|
|
3252
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3253
|
+
reference_id: String?
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3256
|
+
type cadence =
|
|
3257
|
+
:annual
|
|
3258
|
+
| :semi_annual
|
|
3259
|
+
| :monthly
|
|
3260
|
+
| :quarterly
|
|
3261
|
+
| :one_time
|
|
3262
|
+
| :custom
|
|
3263
|
+
|
|
3264
|
+
module Cadence
|
|
3265
|
+
extend Orb::Internal::Type::Enum
|
|
3266
|
+
|
|
3267
|
+
ANNUAL: :annual
|
|
3268
|
+
SEMI_ANNUAL: :semi_annual
|
|
3269
|
+
MONTHLY: :monthly
|
|
3270
|
+
QUARTERLY: :quarterly
|
|
3271
|
+
ONE_TIME: :one_time
|
|
3272
|
+
CUSTOM: :custom
|
|
3273
|
+
|
|
3274
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::cadence]
|
|
3275
|
+
end
|
|
3276
|
+
|
|
3277
|
+
type tiered_matrix_with_allocation_config =
|
|
3278
|
+
{
|
|
3279
|
+
allocation: String,
|
|
3280
|
+
default_unit_amount: String,
|
|
3281
|
+
dimensions: ::Array[String],
|
|
3282
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
class TieredMatrixWithAllocationConfig < Orb::Internal::Type::BaseModel
|
|
3286
|
+
attr_accessor allocation: String
|
|
3287
|
+
|
|
3288
|
+
attr_accessor default_unit_amount: String
|
|
3289
|
+
|
|
3290
|
+
attr_accessor dimensions: ::Array[String]
|
|
3291
|
+
|
|
3292
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
3293
|
+
|
|
3294
|
+
def initialize: (
|
|
3295
|
+
allocation: String,
|
|
3296
|
+
default_unit_amount: String,
|
|
3297
|
+
dimensions: ::Array[String],
|
|
3298
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
3299
|
+
) -> void
|
|
3300
|
+
|
|
3301
|
+
def to_hash: -> {
|
|
3302
|
+
allocation: String,
|
|
3303
|
+
default_unit_amount: String,
|
|
3304
|
+
dimensions: ::Array[String],
|
|
3305
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
type tier =
|
|
3309
|
+
{
|
|
3310
|
+
dimension_values: ::Array[String],
|
|
3311
|
+
tier_lower_bound: String,
|
|
3312
|
+
unit_amount: String
|
|
3313
|
+
}
|
|
3314
|
+
|
|
3315
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
3316
|
+
attr_accessor dimension_values: ::Array[String]
|
|
3317
|
+
|
|
3318
|
+
attr_accessor tier_lower_bound: String
|
|
3319
|
+
|
|
3320
|
+
attr_accessor unit_amount: String
|
|
3321
|
+
|
|
3322
|
+
def initialize: (
|
|
3323
|
+
dimension_values: ::Array[String],
|
|
3324
|
+
tier_lower_bound: String,
|
|
3325
|
+
unit_amount: String
|
|
3326
|
+
) -> void
|
|
3327
|
+
|
|
3328
|
+
def to_hash: -> {
|
|
3329
|
+
dimension_values: ::Array[String],
|
|
3330
|
+
tier_lower_bound: String,
|
|
3331
|
+
unit_amount: String
|
|
3332
|
+
}
|
|
3333
|
+
end
|
|
3334
|
+
end
|
|
3335
|
+
end
|
|
3336
|
+
|
|
2961
3337
|
type matrix_with_threshold_discounts =
|
|
2962
3338
|
{
|
|
2963
3339
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|