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
|
@@ -474,6 +474,7 @@ module Orb
|
|
|
474
474
|
| Orb::NewPlanPackageWithAllocationPrice
|
|
475
475
|
| Orb::NewPlanUnitWithPercentPrice
|
|
476
476
|
| Orb::NewPlanMatrixWithAllocationPrice
|
|
477
|
+
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation
|
|
477
478
|
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts
|
|
478
479
|
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration
|
|
479
480
|
| Orb::NewPlanUnitWithProrationPrice
|
|
@@ -863,6 +864,193 @@ module Orb
|
|
|
863
864
|
end
|
|
864
865
|
end
|
|
865
866
|
|
|
867
|
+
type tiered_matrix_with_allocation =
|
|
868
|
+
{
|
|
869
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::cadence,
|
|
870
|
+
item_id: String,
|
|
871
|
+
model_type: :tiered_matrix_with_allocation,
|
|
872
|
+
name: String,
|
|
873
|
+
tiered_matrix_with_allocation_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
874
|
+
billable_metric_id: String?,
|
|
875
|
+
billed_in_advance: bool?,
|
|
876
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
877
|
+
conversion_rate: Float?,
|
|
878
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
879
|
+
currency: String?,
|
|
880
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
881
|
+
external_price_id: String?,
|
|
882
|
+
fixed_price_quantity: Float?,
|
|
883
|
+
invoice_grouping_key: String?,
|
|
884
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
885
|
+
license_type_id: String?,
|
|
886
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
887
|
+
reference_id: String?
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
class TieredMatrixWithAllocation < Orb::Internal::Type::BaseModel
|
|
891
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::cadence
|
|
892
|
+
|
|
893
|
+
attr_accessor item_id: String
|
|
894
|
+
|
|
895
|
+
attr_accessor model_type: :tiered_matrix_with_allocation
|
|
896
|
+
|
|
897
|
+
attr_accessor name: String
|
|
898
|
+
|
|
899
|
+
attr_accessor tiered_matrix_with_allocation_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig
|
|
900
|
+
|
|
901
|
+
attr_accessor billable_metric_id: String?
|
|
902
|
+
|
|
903
|
+
attr_accessor billed_in_advance: bool?
|
|
904
|
+
|
|
905
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
906
|
+
|
|
907
|
+
attr_accessor conversion_rate: Float?
|
|
908
|
+
|
|
909
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
910
|
+
|
|
911
|
+
attr_accessor currency: String?
|
|
912
|
+
|
|
913
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
914
|
+
|
|
915
|
+
attr_accessor external_price_id: String?
|
|
916
|
+
|
|
917
|
+
attr_accessor fixed_price_quantity: Float?
|
|
918
|
+
|
|
919
|
+
attr_accessor invoice_grouping_key: String?
|
|
920
|
+
|
|
921
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
922
|
+
|
|
923
|
+
attr_accessor license_type_id: String?
|
|
924
|
+
|
|
925
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
926
|
+
|
|
927
|
+
attr_accessor reference_id: String?
|
|
928
|
+
|
|
929
|
+
def initialize: (
|
|
930
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::cadence,
|
|
931
|
+
item_id: String,
|
|
932
|
+
name: String,
|
|
933
|
+
tiered_matrix_with_allocation_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
934
|
+
?billable_metric_id: String?,
|
|
935
|
+
?billed_in_advance: bool?,
|
|
936
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
937
|
+
?conversion_rate: Float?,
|
|
938
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
939
|
+
?currency: String?,
|
|
940
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
941
|
+
?external_price_id: String?,
|
|
942
|
+
?fixed_price_quantity: Float?,
|
|
943
|
+
?invoice_grouping_key: String?,
|
|
944
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
945
|
+
?license_type_id: String?,
|
|
946
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
947
|
+
?reference_id: String?,
|
|
948
|
+
?model_type: :tiered_matrix_with_allocation
|
|
949
|
+
) -> void
|
|
950
|
+
|
|
951
|
+
def to_hash: -> {
|
|
952
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::cadence,
|
|
953
|
+
item_id: String,
|
|
954
|
+
model_type: :tiered_matrix_with_allocation,
|
|
955
|
+
name: String,
|
|
956
|
+
tiered_matrix_with_allocation_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
957
|
+
billable_metric_id: String?,
|
|
958
|
+
billed_in_advance: bool?,
|
|
959
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
960
|
+
conversion_rate: Float?,
|
|
961
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
962
|
+
currency: String?,
|
|
963
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
964
|
+
external_price_id: String?,
|
|
965
|
+
fixed_price_quantity: Float?,
|
|
966
|
+
invoice_grouping_key: String?,
|
|
967
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
968
|
+
license_type_id: String?,
|
|
969
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
970
|
+
reference_id: String?
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
type cadence =
|
|
974
|
+
:annual
|
|
975
|
+
| :semi_annual
|
|
976
|
+
| :monthly
|
|
977
|
+
| :quarterly
|
|
978
|
+
| :one_time
|
|
979
|
+
| :custom
|
|
980
|
+
|
|
981
|
+
module Cadence
|
|
982
|
+
extend Orb::Internal::Type::Enum
|
|
983
|
+
|
|
984
|
+
ANNUAL: :annual
|
|
985
|
+
SEMI_ANNUAL: :semi_annual
|
|
986
|
+
MONTHLY: :monthly
|
|
987
|
+
QUARTERLY: :quarterly
|
|
988
|
+
ONE_TIME: :one_time
|
|
989
|
+
CUSTOM: :custom
|
|
990
|
+
|
|
991
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::cadence]
|
|
992
|
+
end
|
|
993
|
+
|
|
994
|
+
type tiered_matrix_with_allocation_config =
|
|
995
|
+
{
|
|
996
|
+
allocation: String,
|
|
997
|
+
default_unit_amount: String,
|
|
998
|
+
dimensions: ::Array[String],
|
|
999
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
class TieredMatrixWithAllocationConfig < Orb::Internal::Type::BaseModel
|
|
1003
|
+
attr_accessor allocation: String
|
|
1004
|
+
|
|
1005
|
+
attr_accessor default_unit_amount: String
|
|
1006
|
+
|
|
1007
|
+
attr_accessor dimensions: ::Array[String]
|
|
1008
|
+
|
|
1009
|
+
attr_accessor tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
1010
|
+
|
|
1011
|
+
def initialize: (
|
|
1012
|
+
allocation: String,
|
|
1013
|
+
default_unit_amount: String,
|
|
1014
|
+
dimensions: ::Array[String],
|
|
1015
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
1016
|
+
) -> void
|
|
1017
|
+
|
|
1018
|
+
def to_hash: -> {
|
|
1019
|
+
allocation: String,
|
|
1020
|
+
default_unit_amount: String,
|
|
1021
|
+
dimensions: ::Array[String],
|
|
1022
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
type tier =
|
|
1026
|
+
{
|
|
1027
|
+
dimension_values: ::Array[String],
|
|
1028
|
+
tier_lower_bound: String,
|
|
1029
|
+
unit_amount: String
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
1033
|
+
attr_accessor dimension_values: ::Array[String]
|
|
1034
|
+
|
|
1035
|
+
attr_accessor tier_lower_bound: String
|
|
1036
|
+
|
|
1037
|
+
attr_accessor unit_amount: String
|
|
1038
|
+
|
|
1039
|
+
def initialize: (
|
|
1040
|
+
dimension_values: ::Array[String],
|
|
1041
|
+
tier_lower_bound: String,
|
|
1042
|
+
unit_amount: String
|
|
1043
|
+
) -> void
|
|
1044
|
+
|
|
1045
|
+
def to_hash: -> {
|
|
1046
|
+
dimension_values: ::Array[String],
|
|
1047
|
+
tier_lower_bound: String,
|
|
1048
|
+
unit_amount: String
|
|
1049
|
+
}
|
|
1050
|
+
end
|
|
1051
|
+
end
|
|
1052
|
+
end
|
|
1053
|
+
|
|
866
1054
|
type matrix_with_threshold_discounts =
|
|
867
1055
|
{
|
|
868
1056
|
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
@@ -2708,6 +2896,7 @@ module Orb
|
|
|
2708
2896
|
| Orb::NewPlanPackageWithAllocationPrice
|
|
2709
2897
|
| Orb::NewPlanUnitWithPercentPrice
|
|
2710
2898
|
| Orb::NewPlanMatrixWithAllocationPrice
|
|
2899
|
+
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation
|
|
2711
2900
|
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts
|
|
2712
2901
|
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration
|
|
2713
2902
|
| Orb::NewPlanUnitWithProrationPrice
|
|
@@ -3097,6 +3286,193 @@ module Orb
|
|
|
3097
3286
|
end
|
|
3098
3287
|
end
|
|
3099
3288
|
|
|
3289
|
+
type tiered_matrix_with_allocation =
|
|
3290
|
+
{
|
|
3291
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::cadence,
|
|
3292
|
+
item_id: String,
|
|
3293
|
+
model_type: :tiered_matrix_with_allocation,
|
|
3294
|
+
name: String,
|
|
3295
|
+
tiered_matrix_with_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
3296
|
+
billable_metric_id: String?,
|
|
3297
|
+
billed_in_advance: bool?,
|
|
3298
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3299
|
+
conversion_rate: Float?,
|
|
3300
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3301
|
+
currency: String?,
|
|
3302
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3303
|
+
external_price_id: String?,
|
|
3304
|
+
fixed_price_quantity: Float?,
|
|
3305
|
+
invoice_grouping_key: String?,
|
|
3306
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3307
|
+
license_type_id: String?,
|
|
3308
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3309
|
+
reference_id: String?
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3312
|
+
class TieredMatrixWithAllocation < Orb::Internal::Type::BaseModel
|
|
3313
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::cadence
|
|
3314
|
+
|
|
3315
|
+
attr_accessor item_id: String
|
|
3316
|
+
|
|
3317
|
+
attr_accessor model_type: :tiered_matrix_with_allocation
|
|
3318
|
+
|
|
3319
|
+
attr_accessor name: String
|
|
3320
|
+
|
|
3321
|
+
attr_accessor tiered_matrix_with_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig
|
|
3322
|
+
|
|
3323
|
+
attr_accessor billable_metric_id: String?
|
|
3324
|
+
|
|
3325
|
+
attr_accessor billed_in_advance: bool?
|
|
3326
|
+
|
|
3327
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3328
|
+
|
|
3329
|
+
attr_accessor conversion_rate: Float?
|
|
3330
|
+
|
|
3331
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
3332
|
+
|
|
3333
|
+
attr_accessor currency: String?
|
|
3334
|
+
|
|
3335
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
3336
|
+
|
|
3337
|
+
attr_accessor external_price_id: String?
|
|
3338
|
+
|
|
3339
|
+
attr_accessor fixed_price_quantity: Float?
|
|
3340
|
+
|
|
3341
|
+
attr_accessor invoice_grouping_key: String?
|
|
3342
|
+
|
|
3343
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3344
|
+
|
|
3345
|
+
attr_accessor license_type_id: String?
|
|
3346
|
+
|
|
3347
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
3348
|
+
|
|
3349
|
+
attr_accessor reference_id: String?
|
|
3350
|
+
|
|
3351
|
+
def initialize: (
|
|
3352
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::cadence,
|
|
3353
|
+
item_id: String,
|
|
3354
|
+
name: String,
|
|
3355
|
+
tiered_matrix_with_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
3356
|
+
?billable_metric_id: String?,
|
|
3357
|
+
?billed_in_advance: bool?,
|
|
3358
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3359
|
+
?conversion_rate: Float?,
|
|
3360
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3361
|
+
?currency: String?,
|
|
3362
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3363
|
+
?external_price_id: String?,
|
|
3364
|
+
?fixed_price_quantity: Float?,
|
|
3365
|
+
?invoice_grouping_key: String?,
|
|
3366
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3367
|
+
?license_type_id: String?,
|
|
3368
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
3369
|
+
?reference_id: String?,
|
|
3370
|
+
?model_type: :tiered_matrix_with_allocation
|
|
3371
|
+
) -> void
|
|
3372
|
+
|
|
3373
|
+
def to_hash: -> {
|
|
3374
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::cadence,
|
|
3375
|
+
item_id: String,
|
|
3376
|
+
model_type: :tiered_matrix_with_allocation,
|
|
3377
|
+
name: String,
|
|
3378
|
+
tiered_matrix_with_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig,
|
|
3379
|
+
billable_metric_id: String?,
|
|
3380
|
+
billed_in_advance: bool?,
|
|
3381
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3382
|
+
conversion_rate: Float?,
|
|
3383
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3384
|
+
currency: String?,
|
|
3385
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3386
|
+
external_price_id: String?,
|
|
3387
|
+
fixed_price_quantity: Float?,
|
|
3388
|
+
invoice_grouping_key: String?,
|
|
3389
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3390
|
+
license_type_id: String?,
|
|
3391
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3392
|
+
reference_id: String?
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
type cadence =
|
|
3396
|
+
:annual
|
|
3397
|
+
| :semi_annual
|
|
3398
|
+
| :monthly
|
|
3399
|
+
| :quarterly
|
|
3400
|
+
| :one_time
|
|
3401
|
+
| :custom
|
|
3402
|
+
|
|
3403
|
+
module Cadence
|
|
3404
|
+
extend Orb::Internal::Type::Enum
|
|
3405
|
+
|
|
3406
|
+
ANNUAL: :annual
|
|
3407
|
+
SEMI_ANNUAL: :semi_annual
|
|
3408
|
+
MONTHLY: :monthly
|
|
3409
|
+
QUARTERLY: :quarterly
|
|
3410
|
+
ONE_TIME: :one_time
|
|
3411
|
+
CUSTOM: :custom
|
|
3412
|
+
|
|
3413
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::cadence]
|
|
3414
|
+
end
|
|
3415
|
+
|
|
3416
|
+
type tiered_matrix_with_allocation_config =
|
|
3417
|
+
{
|
|
3418
|
+
allocation: String,
|
|
3419
|
+
default_unit_amount: String,
|
|
3420
|
+
dimensions: ::Array[String],
|
|
3421
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
class TieredMatrixWithAllocationConfig < Orb::Internal::Type::BaseModel
|
|
3425
|
+
attr_accessor allocation: String
|
|
3426
|
+
|
|
3427
|
+
attr_accessor default_unit_amount: String
|
|
3428
|
+
|
|
3429
|
+
attr_accessor dimensions: ::Array[String]
|
|
3430
|
+
|
|
3431
|
+
attr_accessor tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
3432
|
+
|
|
3433
|
+
def initialize: (
|
|
3434
|
+
allocation: String,
|
|
3435
|
+
default_unit_amount: String,
|
|
3436
|
+
dimensions: ::Array[String],
|
|
3437
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
3438
|
+
) -> void
|
|
3439
|
+
|
|
3440
|
+
def to_hash: -> {
|
|
3441
|
+
allocation: String,
|
|
3442
|
+
default_unit_amount: String,
|
|
3443
|
+
dimensions: ::Array[String],
|
|
3444
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredMatrixWithAllocation::TieredMatrixWithAllocationConfig::Tier]
|
|
3445
|
+
}
|
|
3446
|
+
|
|
3447
|
+
type tier =
|
|
3448
|
+
{
|
|
3449
|
+
dimension_values: ::Array[String],
|
|
3450
|
+
tier_lower_bound: String,
|
|
3451
|
+
unit_amount: String
|
|
3452
|
+
}
|
|
3453
|
+
|
|
3454
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
3455
|
+
attr_accessor dimension_values: ::Array[String]
|
|
3456
|
+
|
|
3457
|
+
attr_accessor tier_lower_bound: String
|
|
3458
|
+
|
|
3459
|
+
attr_accessor unit_amount: String
|
|
3460
|
+
|
|
3461
|
+
def initialize: (
|
|
3462
|
+
dimension_values: ::Array[String],
|
|
3463
|
+
tier_lower_bound: String,
|
|
3464
|
+
unit_amount: String
|
|
3465
|
+
) -> void
|
|
3466
|
+
|
|
3467
|
+
def to_hash: -> {
|
|
3468
|
+
dimension_values: ::Array[String],
|
|
3469
|
+
tier_lower_bound: String,
|
|
3470
|
+
unit_amount: String
|
|
3471
|
+
}
|
|
3472
|
+
end
|
|
3473
|
+
end
|
|
3474
|
+
end
|
|
3475
|
+
|
|
3100
3476
|
type matrix_with_threshold_discounts =
|
|
3101
3477
|
{
|
|
3102
3478
|
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
@@ -403,6 +403,7 @@ module Orb
|
|
|
403
403
|
| :overpayment_refund
|
|
404
404
|
| :external_payment
|
|
405
405
|
| :small_invoice_carryover
|
|
406
|
+
| :prepaid_commit_cancel
|
|
406
407
|
|
|
407
408
|
module Action
|
|
408
409
|
extend Orb::Internal::Type::Enum
|
|
@@ -417,6 +418,7 @@ module Orb
|
|
|
417
418
|
OVERPAYMENT_REFUND: :overpayment_refund
|
|
418
419
|
EXTERNAL_PAYMENT: :external_payment
|
|
419
420
|
SMALL_INVOICE_CARRYOVER: :small_invoice_carryover
|
|
421
|
+
PREPAID_COMMIT_CANCEL: :prepaid_commit_cancel
|
|
420
422
|
|
|
421
423
|
def self?.values: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::action]
|
|
422
424
|
end
|
|
@@ -73,6 +73,7 @@ module Orb
|
|
|
73
73
|
| :overpayment_refund
|
|
74
74
|
| :external_payment
|
|
75
75
|
| :small_invoice_carryover
|
|
76
|
+
| :prepaid_commit_cancel
|
|
76
77
|
|
|
77
78
|
module Action
|
|
78
79
|
extend Orb::Internal::Type::Enum
|
|
@@ -87,6 +88,7 @@ module Orb
|
|
|
87
88
|
OVERPAYMENT_REFUND: :overpayment_refund
|
|
88
89
|
EXTERNAL_PAYMENT: :external_payment
|
|
89
90
|
SMALL_INVOICE_CARRYOVER: :small_invoice_carryover
|
|
91
|
+
PREPAID_COMMIT_CANCEL: :prepaid_commit_cancel
|
|
90
92
|
|
|
91
93
|
def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::action]
|
|
92
94
|
end
|
|
@@ -73,6 +73,7 @@ module Orb
|
|
|
73
73
|
| :overpayment_refund
|
|
74
74
|
| :external_payment
|
|
75
75
|
| :small_invoice_carryover
|
|
76
|
+
| :prepaid_commit_cancel
|
|
76
77
|
|
|
77
78
|
module Action
|
|
78
79
|
extend Orb::Internal::Type::Enum
|
|
@@ -87,6 +88,7 @@ module Orb
|
|
|
87
88
|
OVERPAYMENT_REFUND: :overpayment_refund
|
|
88
89
|
EXTERNAL_PAYMENT: :external_payment
|
|
89
90
|
SMALL_INVOICE_CARRYOVER: :small_invoice_carryover
|
|
91
|
+
PREPAID_COMMIT_CANCEL: :prepaid_commit_cancel
|
|
90
92
|
|
|
91
93
|
def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::action]
|
|
92
94
|
end
|
data/sig/orb/models/invoice.rbs
CHANGED
|
@@ -367,6 +367,7 @@ module Orb
|
|
|
367
367
|
| :overpayment_refund
|
|
368
368
|
| :external_payment
|
|
369
369
|
| :small_invoice_carryover
|
|
370
|
+
| :prepaid_commit_cancel
|
|
370
371
|
|
|
371
372
|
module Action
|
|
372
373
|
extend Orb::Internal::Type::Enum
|
|
@@ -381,6 +382,7 @@ module Orb
|
|
|
381
382
|
OVERPAYMENT_REFUND: :overpayment_refund
|
|
382
383
|
EXTERNAL_PAYMENT: :external_payment
|
|
383
384
|
SMALL_INVOICE_CARRYOVER: :small_invoice_carryover
|
|
385
|
+
PREPAID_COMMIT_CANCEL: :prepaid_commit_cancel
|
|
384
386
|
|
|
385
387
|
def self?.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::action]
|
|
386
388
|
end
|
|
@@ -367,6 +367,7 @@ module Orb
|
|
|
367
367
|
| :overpayment_refund
|
|
368
368
|
| :external_payment
|
|
369
369
|
| :small_invoice_carryover
|
|
370
|
+
| :prepaid_commit_cancel
|
|
370
371
|
|
|
371
372
|
module Action
|
|
372
373
|
extend Orb::Internal::Type::Enum
|
|
@@ -381,6 +382,7 @@ module Orb
|
|
|
381
382
|
OVERPAYMENT_REFUND: :overpayment_refund
|
|
382
383
|
EXTERNAL_PAYMENT: :external_payment
|
|
383
384
|
SMALL_INVOICE_CARRYOVER: :small_invoice_carryover
|
|
385
|
+
PREPAID_COMMIT_CANCEL: :prepaid_commit_cancel
|
|
384
386
|
|
|
385
387
|
def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action]
|
|
386
388
|
end
|
|
@@ -327,6 +327,7 @@ module Orb
|
|
|
327
327
|
| :overpayment_refund
|
|
328
328
|
| :external_payment
|
|
329
329
|
| :small_invoice_carryover
|
|
330
|
+
| :prepaid_commit_cancel
|
|
330
331
|
|
|
331
332
|
module Action
|
|
332
333
|
extend Orb::Internal::Type::Enum
|
|
@@ -341,6 +342,7 @@ module Orb
|
|
|
341
342
|
OVERPAYMENT_REFUND: :overpayment_refund
|
|
342
343
|
EXTERNAL_PAYMENT: :external_payment
|
|
343
344
|
SMALL_INVOICE_CARRYOVER: :small_invoice_carryover
|
|
345
|
+
PREPAID_COMMIT_CANCEL: :prepaid_commit_cancel
|
|
344
346
|
|
|
345
347
|
def self?.values: -> ::Array[Orb::Models::InvoiceIssueSummaryResponse::CustomerBalanceTransaction::action]
|
|
346
348
|
end
|
|
@@ -327,6 +327,7 @@ module Orb
|
|
|
327
327
|
| :overpayment_refund
|
|
328
328
|
| :external_payment
|
|
329
329
|
| :small_invoice_carryover
|
|
330
|
+
| :prepaid_commit_cancel
|
|
330
331
|
|
|
331
332
|
module Action
|
|
332
333
|
extend Orb::Internal::Type::Enum
|
|
@@ -341,6 +342,7 @@ module Orb
|
|
|
341
342
|
OVERPAYMENT_REFUND: :overpayment_refund
|
|
342
343
|
EXTERNAL_PAYMENT: :external_payment
|
|
343
344
|
SMALL_INVOICE_CARRYOVER: :small_invoice_carryover
|
|
345
|
+
PREPAID_COMMIT_CANCEL: :prepaid_commit_cancel
|
|
344
346
|
|
|
345
347
|
def self?.values: -> ::Array[Orb::Models::InvoiceListSummaryResponse::CustomerBalanceTransaction::action]
|
|
346
348
|
end
|