orb-billing 1.26.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +1 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +136 -46
- data/lib/orb/models/beta_create_plan_version_params.rb +136 -46
- data/lib/orb/models/matrix_config.rb +15 -1
- data/lib/orb/models/matrix_value.rb +11 -1
- data/lib/orb/models/matrix_with_allocation_config.rb +26 -2
- data/lib/orb/models/new_floating_bulk_price.rb +6 -2
- data/lib/orb/models/new_floating_bulk_with_proration_price.rb +6 -2
- data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +6 -2
- data/lib/orb/models/new_floating_grouped_allocation_price.rb +6 -2
- data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +6 -2
- data/lib/orb/models/new_floating_grouped_tiered_price.rb +6 -2
- data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +6 -2
- data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +6 -2
- data/lib/orb/models/new_floating_matrix_price.rb +6 -2
- data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +6 -2
- data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +6 -2
- data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +6 -2
- data/lib/orb/models/new_floating_minimum_composite_price.rb +6 -2
- data/lib/orb/models/new_floating_package_price.rb +6 -2
- data/lib/orb/models/new_floating_package_with_allocation_price.rb +6 -2
- data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +6 -2
- data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +6 -2
- data/lib/orb/models/new_floating_threshold_total_amount_price.rb +6 -2
- data/lib/orb/models/new_floating_tiered_package_price.rb +6 -2
- data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +6 -2
- data/lib/orb/models/new_floating_tiered_price.rb +6 -2
- data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +6 -2
- data/lib/orb/models/new_floating_tiered_with_proration_price.rb +6 -2
- data/lib/orb/models/new_floating_unit_price.rb +6 -2
- data/lib/orb/models/new_floating_unit_with_percent_price.rb +6 -2
- data/lib/orb/models/new_floating_unit_with_proration_price.rb +6 -2
- data/lib/orb/models/new_plan_bulk_price.rb +6 -2
- data/lib/orb/models/new_plan_bulk_with_proration_price.rb +6 -2
- data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +6 -2
- data/lib/orb/models/new_plan_grouped_allocation_price.rb +6 -2
- data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +6 -2
- data/lib/orb/models/new_plan_grouped_tiered_price.rb +6 -2
- data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +6 -2
- data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +6 -2
- data/lib/orb/models/new_plan_matrix_price.rb +6 -2
- data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +6 -2
- data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +6 -2
- data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +6 -2
- data/lib/orb/models/new_plan_minimum_composite_price.rb +6 -2
- data/lib/orb/models/new_plan_package_price.rb +6 -2
- data/lib/orb/models/new_plan_package_with_allocation_price.rb +6 -2
- data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +6 -2
- data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +6 -2
- data/lib/orb/models/new_plan_threshold_total_amount_price.rb +6 -2
- data/lib/orb/models/new_plan_tiered_package_price.rb +6 -2
- data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +6 -2
- data/lib/orb/models/new_plan_tiered_price.rb +6 -2
- data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +6 -2
- data/lib/orb/models/new_plan_unit_price.rb +6 -2
- data/lib/orb/models/new_plan_unit_with_percent_price.rb +6 -2
- data/lib/orb/models/new_plan_unit_with_proration_price.rb +6 -2
- data/lib/orb/models/new_subscription_bulk_price.rb +6 -2
- data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +6 -2
- data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +6 -2
- data/lib/orb/models/new_subscription_grouped_allocation_price.rb +6 -2
- data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +6 -2
- data/lib/orb/models/new_subscription_grouped_tiered_price.rb +6 -2
- data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +6 -2
- data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +6 -2
- data/lib/orb/models/new_subscription_matrix_price.rb +6 -2
- data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +6 -2
- data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +6 -2
- data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +6 -2
- data/lib/orb/models/new_subscription_minimum_composite_price.rb +6 -2
- data/lib/orb/models/new_subscription_package_price.rb +6 -2
- data/lib/orb/models/new_subscription_package_with_allocation_price.rb +6 -2
- data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +6 -2
- data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +6 -2
- data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +6 -2
- data/lib/orb/models/new_subscription_tiered_package_price.rb +6 -2
- data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +6 -2
- data/lib/orb/models/new_subscription_tiered_price.rb +6 -2
- data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +6 -2
- data/lib/orb/models/new_subscription_unit_price.rb +6 -2
- data/lib/orb/models/new_subscription_unit_with_percent_price.rb +6 -2
- data/lib/orb/models/new_subscription_unit_with_proration_price.rb +6 -2
- data/lib/orb/models/plan_create_params.rb +68 -23
- data/lib/orb/models/price_create_params.rb +54 -18
- data/lib/orb/models/price_evaluate_multiple_params.rb +54 -18
- data/lib/orb/models/price_evaluate_preview_events_params.rb +54 -18
- data/lib/orb/models/subscription_create_params.rb +120 -40
- data/lib/orb/models/subscription_price_intervals_params.rb +54 -18
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +120 -40
- data/lib/orb/models/unit_config.rb +11 -1
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +228 -48
- data/rbi/orb/models/beta_create_plan_version_params.rbi +228 -48
- data/rbi/orb/models/matrix_config.rbi +13 -3
- data/rbi/orb/models/matrix_value.rbi +14 -3
- data/rbi/orb/models/matrix_with_allocation_config.rbi +24 -6
- data/rbi/orb/models/new_floating_bulk_price.rbi +10 -2
- data/rbi/orb/models/new_floating_bulk_with_proration_price.rbi +10 -2
- data/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi +10 -2
- data/rbi/orb/models/new_floating_grouped_allocation_price.rbi +10 -2
- data/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi +10 -2
- data/rbi/orb/models/new_floating_grouped_tiered_price.rbi +10 -2
- data/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_floating_matrix_price.rbi +10 -2
- data/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi +10 -2
- data/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi +10 -2
- data/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi +10 -2
- data/rbi/orb/models/new_floating_minimum_composite_price.rbi +10 -2
- data/rbi/orb/models/new_floating_package_price.rbi +10 -2
- data/rbi/orb/models/new_floating_package_with_allocation_price.rbi +10 -2
- data/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi +10 -2
- data/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi +10 -2
- data/rbi/orb/models/new_floating_threshold_total_amount_price.rbi +10 -2
- data/rbi/orb/models/new_floating_tiered_package_price.rbi +10 -2
- data/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_floating_tiered_price.rbi +10 -2
- data/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_floating_tiered_with_proration_price.rbi +10 -2
- data/rbi/orb/models/new_floating_unit_price.rbi +10 -2
- data/rbi/orb/models/new_floating_unit_with_percent_price.rbi +10 -2
- data/rbi/orb/models/new_floating_unit_with_proration_price.rbi +10 -2
- data/rbi/orb/models/new_plan_bulk_price.rbi +10 -2
- data/rbi/orb/models/new_plan_bulk_with_proration_price.rbi +10 -2
- data/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi +10 -2
- data/rbi/orb/models/new_plan_grouped_allocation_price.rbi +10 -2
- data/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi +10 -2
- data/rbi/orb/models/new_plan_grouped_tiered_price.rbi +10 -2
- data/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_plan_matrix_price.rbi +10 -2
- data/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi +10 -2
- data/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi +10 -2
- data/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi +10 -2
- data/rbi/orb/models/new_plan_minimum_composite_price.rbi +10 -2
- data/rbi/orb/models/new_plan_package_price.rbi +10 -2
- data/rbi/orb/models/new_plan_package_with_allocation_price.rbi +10 -2
- data/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi +10 -2
- data/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +10 -2
- data/rbi/orb/models/new_plan_threshold_total_amount_price.rbi +10 -2
- data/rbi/orb/models/new_plan_tiered_package_price.rbi +10 -2
- data/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_plan_tiered_price.rbi +10 -2
- data/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_plan_unit_price.rbi +10 -2
- data/rbi/orb/models/new_plan_unit_with_percent_price.rbi +10 -2
- data/rbi/orb/models/new_plan_unit_with_proration_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_bulk_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_grouped_allocation_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_grouped_tiered_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_matrix_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_minimum_composite_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_package_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_package_with_allocation_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_tiered_package_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_tiered_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_unit_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_unit_with_percent_price.rbi +10 -2
- data/rbi/orb/models/new_subscription_unit_with_proration_price.rbi +10 -2
- data/rbi/orb/models/plan_create_params.rbi +114 -24
- data/rbi/orb/models/price_create_params.rbi +90 -18
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +90 -18
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +90 -18
- data/rbi/orb/models/subscription_create_params.rbi +200 -40
- data/rbi/orb/models/subscription_price_intervals_params.rbi +90 -18
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +200 -40
- data/rbi/orb/models/unit_config.rbi +21 -5
- data/sig/orb/models/matrix_config.rbs +8 -3
- data/sig/orb/models/matrix_value.rbs +11 -3
- data/sig/orb/models/matrix_with_allocation_config.rbs +19 -6
- data/sig/orb/models/unit_config.rbs +14 -3
- metadata +2 -2
|
@@ -5,7 +5,8 @@ module Orb
|
|
|
5
5
|
allocation: String,
|
|
6
6
|
default_unit_amount: String,
|
|
7
7
|
dimensions: ::Array[String?],
|
|
8
|
-
matrix_values: ::Array[Orb::MatrixWithAllocationConfig::MatrixValue]
|
|
8
|
+
matrix_values: ::Array[Orb::MatrixWithAllocationConfig::MatrixValue],
|
|
9
|
+
scaling_factor: String?
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel
|
|
@@ -17,36 +18,48 @@ module Orb
|
|
|
17
18
|
|
|
18
19
|
attr_accessor matrix_values: ::Array[Orb::MatrixWithAllocationConfig::MatrixValue]
|
|
19
20
|
|
|
21
|
+
attr_accessor scaling_factor: String?
|
|
22
|
+
|
|
20
23
|
def initialize: (
|
|
21
24
|
allocation: String,
|
|
22
25
|
default_unit_amount: String,
|
|
23
26
|
dimensions: ::Array[String?],
|
|
24
|
-
matrix_values: ::Array[Orb::MatrixWithAllocationConfig::MatrixValue]
|
|
27
|
+
matrix_values: ::Array[Orb::MatrixWithAllocationConfig::MatrixValue],
|
|
28
|
+
?scaling_factor: String?
|
|
25
29
|
) -> void
|
|
26
30
|
|
|
27
31
|
def to_hash: -> {
|
|
28
32
|
allocation: String,
|
|
29
33
|
default_unit_amount: String,
|
|
30
34
|
dimensions: ::Array[String?],
|
|
31
|
-
matrix_values: ::Array[Orb::MatrixWithAllocationConfig::MatrixValue]
|
|
35
|
+
matrix_values: ::Array[Orb::MatrixWithAllocationConfig::MatrixValue],
|
|
36
|
+
scaling_factor: String?
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
type matrix_value =
|
|
35
|
-
{
|
|
40
|
+
{
|
|
41
|
+
dimension_values: ::Array[String?],
|
|
42
|
+
unit_amount: String,
|
|
43
|
+
scaling_factor: String?
|
|
44
|
+
}
|
|
36
45
|
|
|
37
46
|
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
38
47
|
attr_accessor dimension_values: ::Array[String?]
|
|
39
48
|
|
|
40
49
|
attr_accessor unit_amount: String
|
|
41
50
|
|
|
51
|
+
attr_accessor scaling_factor: String?
|
|
52
|
+
|
|
42
53
|
def initialize: (
|
|
43
54
|
dimension_values: ::Array[String?],
|
|
44
|
-
unit_amount: String
|
|
55
|
+
unit_amount: String,
|
|
56
|
+
?scaling_factor: String?
|
|
45
57
|
) -> void
|
|
46
58
|
|
|
47
59
|
def to_hash: -> {
|
|
48
60
|
dimension_values: ::Array[String?],
|
|
49
|
-
unit_amount: String
|
|
61
|
+
unit_amount: String,
|
|
62
|
+
scaling_factor: String?
|
|
50
63
|
}
|
|
51
64
|
end
|
|
52
65
|
end
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module Orb
|
|
2
2
|
module Models
|
|
3
|
-
type unit_config =
|
|
3
|
+
type unit_config =
|
|
4
|
+
{ unit_amount: String, prorated: bool, scaling_factor: Float? }
|
|
4
5
|
|
|
5
6
|
class UnitConfig < Orb::Internal::Type::BaseModel
|
|
6
7
|
attr_accessor unit_amount: String
|
|
@@ -9,9 +10,19 @@ module Orb
|
|
|
9
10
|
|
|
10
11
|
def prorated=: (bool) -> bool
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
attr_accessor scaling_factor: Float?
|
|
13
14
|
|
|
14
|
-
def
|
|
15
|
+
def initialize: (
|
|
16
|
+
unit_amount: String,
|
|
17
|
+
?prorated: bool,
|
|
18
|
+
?scaling_factor: Float?
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
unit_amount: String,
|
|
23
|
+
prorated: bool,
|
|
24
|
+
scaling_factor: Float?
|
|
25
|
+
}
|
|
15
26
|
end
|
|
16
27
|
end
|
|
17
28
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: orb-billing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.28.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Orb
|
|
@@ -1407,7 +1407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1407
1407
|
- !ruby/object:Gem::Version
|
|
1408
1408
|
version: '0'
|
|
1409
1409
|
requirements: []
|
|
1410
|
-
rubygems_version: 4.0.
|
|
1410
|
+
rubygems_version: 4.0.19
|
|
1411
1411
|
specification_version: 4
|
|
1412
1412
|
summary: Ruby library to access the Orb API
|
|
1413
1413
|
test_files: []
|