orb-billing 1.12.0 → 1.13.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 +25 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +72 -0
- data/lib/orb/internal/util.rb +31 -0
- data/lib/orb/models/billable_metric.rb +10 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +11 -2
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +11 -2
- data/lib/orb/models/invoice_create_params.rb +11 -1
- data/lib/orb/models/invoice_update_params.rb +11 -1
- data/lib/orb/models/item.rb +1 -0
- data/lib/orb/models/item_update_params.rb +1 -0
- data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +9 -1
- data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +9 -1
- data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +9 -1
- data/lib/orb/models/price.rb +9 -1
- data/lib/orb/models/price_create_params.rb +9 -1
- data/lib/orb/models/price_evaluate_multiple_params.rb +12 -1
- data/lib/orb/models/price_evaluate_params.rb +12 -1
- data/lib/orb/models/price_evaluate_preview_events_params.rb +12 -1
- data/lib/orb/models/price_interval.rb +12 -1
- data/lib/orb/models/subscription_create_params.rb +24 -2
- data/lib/orb/models/subscription_price_intervals_params.rb +24 -2
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +24 -2
- data/lib/orb/resources/alerts.rb +11 -3
- data/lib/orb/resources/beta/external_plan_id.rb +4 -0
- data/lib/orb/resources/beta.rb +8 -0
- data/lib/orb/resources/coupons/subscriptions.rb +7 -1
- data/lib/orb/resources/coupons.rb +12 -1
- data/lib/orb/resources/credit_blocks.rb +2 -0
- data/lib/orb/resources/credit_notes.rb +4 -1
- data/lib/orb/resources/customers/balance_transactions.rb +20 -1
- data/lib/orb/resources/customers/costs.rb +22 -2
- data/lib/orb/resources/customers/credits/ledger.rb +18 -6
- data/lib/orb/resources/customers/credits/top_ups.rb +6 -2
- data/lib/orb/resources/customers/credits.rb +10 -2
- data/lib/orb/resources/customers.rb +58 -1
- data/lib/orb/resources/dimensional_price_groups.rb +2 -1
- data/lib/orb/resources/events/backfills.rb +5 -1
- data/lib/orb/resources/events/volume.rb +5 -1
- data/lib/orb/resources/events.rb +12 -2
- data/lib/orb/resources/invoice_line_items.rb +5 -0
- data/lib/orb/resources/invoices.rb +23 -10
- data/lib/orb/resources/items.rb +5 -1
- data/lib/orb/resources/license_types.rb +5 -1
- data/lib/orb/resources/licenses/external_licenses.rb +2 -1
- data/lib/orb/resources/licenses/usage.rb +4 -2
- data/lib/orb/resources/licenses.rb +4 -2
- data/lib/orb/resources/metrics.rb +5 -1
- data/lib/orb/resources/plans/external_plan_id.rb +4 -0
- data/lib/orb/resources/plans/migrations.rb +6 -1
- data/lib/orb/resources/plans.rb +14 -1
- data/lib/orb/resources/prices/external_price_id.rb +10 -0
- data/lib/orb/resources/prices.rb +25 -2
- data/lib/orb/resources/subscription_changes.rb +2 -1
- data/lib/orb/resources/subscriptions.rb +8 -4
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/client.rbi +72 -0
- data/rbi/orb/internal/util.rbi +18 -0
- data/rbi/orb/models/billable_metric.rbi +11 -3
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +15 -2
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +15 -2
- data/rbi/orb/models/invoice_create_params.rbi +12 -0
- data/rbi/orb/models/invoice_update_params.rbi +12 -0
- data/rbi/orb/models/item.rbi +5 -0
- data/rbi/orb/models/item_update_params.rbi +5 -0
- data/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi +8 -0
- data/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +8 -0
- data/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi +8 -0
- data/rbi/orb/models/price.rbi +8 -0
- data/rbi/orb/models/price_create_params.rbi +8 -0
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +11 -0
- data/rbi/orb/models/price_evaluate_params.rbi +10 -0
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +11 -0
- data/rbi/orb/models/price_interval.rbi +13 -3
- data/rbi/orb/models/subscription_create_params.rbi +22 -0
- data/rbi/orb/models/subscription_price_intervals_params.rbi +22 -0
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +22 -0
- data/rbi/orb/resources/alerts.rbi +5 -0
- data/rbi/orb/resources/beta/external_plan_id.rbi +4 -0
- data/rbi/orb/resources/beta.rbi +8 -0
- data/rbi/orb/resources/coupons/subscriptions.rbi +5 -0
- data/rbi/orb/resources/coupons.rbi +10 -0
- data/rbi/orb/resources/credit_blocks.rbi +2 -0
- data/rbi/orb/resources/credit_notes.rbi +2 -0
- data/rbi/orb/resources/customers/balance_transactions.rbi +18 -0
- data/rbi/orb/resources/customers/costs.rbi +18 -0
- data/rbi/orb/resources/customers/credits/ledger.rbi +14 -4
- data/rbi/orb/resources/customers/credits/top_ups.rbi +2 -0
- data/rbi/orb/resources/customers/credits.rbi +6 -0
- data/rbi/orb/resources/customers.rbi +56 -0
- data/rbi/orb/resources/events/backfills.rbi +3 -0
- data/rbi/orb/resources/events/volume.rbi +3 -0
- data/rbi/orb/resources/events.rbi +9 -0
- data/rbi/orb/resources/invoice_line_items.rbi +5 -0
- data/rbi/orb/resources/invoices.rbi +21 -5
- data/rbi/orb/resources/items.rbi +3 -0
- data/rbi/orb/resources/license_types.rbi +3 -0
- data/rbi/orb/resources/metrics.rbi +3 -0
- data/rbi/orb/resources/plans/external_plan_id.rbi +4 -0
- data/rbi/orb/resources/plans/migrations.rbi +4 -0
- data/rbi/orb/resources/plans.rbi +12 -0
- data/rbi/orb/resources/prices/external_price_id.rbi +10 -0
- data/rbi/orb/resources/prices.rbi +24 -0
- data/sig/orb/internal/util.rbs +10 -0
- data/sig/orb/models/billable_metric.rbs +8 -3
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +7 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +7 -0
- data/sig/orb/models/invoice_create_params.rbs +5 -0
- data/sig/orb/models/invoice_update_params.rbs +5 -0
- data/sig/orb/models/item.rbs +2 -0
- data/sig/orb/models/item_update_params.rbs +2 -0
- data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +5 -0
- data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +5 -0
- data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +5 -0
- data/sig/orb/models/price.rbs +5 -0
- data/sig/orb/models/price_create_params.rbs +5 -0
- data/sig/orb/models/price_evaluate_multiple_params.rbs +5 -0
- data/sig/orb/models/price_evaluate_params.rbs +6 -1
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +5 -0
- data/sig/orb/models/price_interval.rbs +8 -3
- data/sig/orb/models/subscription_create_params.rbs +10 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +10 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +10 -0
- data/sig/orb/resources/invoices.rbs +2 -0
- data/sig/orb/resources/prices.rbs +1 -0
- metadata +2 -2
data/sig/orb/models/price.rbs
CHANGED
|
@@ -7352,6 +7352,7 @@ module Orb
|
|
|
7352
7352
|
first_dimension: String,
|
|
7353
7353
|
matrix_scaling_factors: ::Array[Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor],
|
|
7354
7354
|
unit_price: String,
|
|
7355
|
+
grouping_key: String?,
|
|
7355
7356
|
prorate: bool?,
|
|
7356
7357
|
second_dimension: String?
|
|
7357
7358
|
}
|
|
@@ -7363,6 +7364,8 @@ module Orb
|
|
|
7363
7364
|
|
|
7364
7365
|
attr_accessor unit_price: String
|
|
7365
7366
|
|
|
7367
|
+
attr_accessor grouping_key: String?
|
|
7368
|
+
|
|
7366
7369
|
attr_accessor prorate: bool?
|
|
7367
7370
|
|
|
7368
7371
|
attr_accessor second_dimension: String?
|
|
@@ -7371,6 +7374,7 @@ module Orb
|
|
|
7371
7374
|
first_dimension: String,
|
|
7372
7375
|
matrix_scaling_factors: ::Array[Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor],
|
|
7373
7376
|
unit_price: String,
|
|
7377
|
+
?grouping_key: String?,
|
|
7374
7378
|
?prorate: bool?,
|
|
7375
7379
|
?second_dimension: String?
|
|
7376
7380
|
) -> void
|
|
@@ -7379,6 +7383,7 @@ module Orb
|
|
|
7379
7383
|
first_dimension: String,
|
|
7380
7384
|
matrix_scaling_factors: ::Array[Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor],
|
|
7381
7385
|
unit_price: String,
|
|
7386
|
+
grouping_key: String?,
|
|
7382
7387
|
prorate: bool?,
|
|
7383
7388
|
second_dimension: String?
|
|
7384
7389
|
}
|
|
@@ -927,6 +927,7 @@ module Orb
|
|
|
927
927
|
first_dimension: String,
|
|
928
928
|
matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor],
|
|
929
929
|
unit_price: String,
|
|
930
|
+
grouping_key: String?,
|
|
930
931
|
prorate: bool?,
|
|
931
932
|
second_dimension: String?
|
|
932
933
|
}
|
|
@@ -938,6 +939,8 @@ module Orb
|
|
|
938
939
|
|
|
939
940
|
attr_accessor unit_price: String
|
|
940
941
|
|
|
942
|
+
attr_accessor grouping_key: String?
|
|
943
|
+
|
|
941
944
|
attr_accessor prorate: bool?
|
|
942
945
|
|
|
943
946
|
attr_accessor second_dimension: String?
|
|
@@ -946,6 +949,7 @@ module Orb
|
|
|
946
949
|
first_dimension: String,
|
|
947
950
|
matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor],
|
|
948
951
|
unit_price: String,
|
|
952
|
+
?grouping_key: String?,
|
|
949
953
|
?prorate: bool?,
|
|
950
954
|
?second_dimension: String?
|
|
951
955
|
) -> void
|
|
@@ -954,6 +958,7 @@ module Orb
|
|
|
954
958
|
first_dimension: String,
|
|
955
959
|
matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor],
|
|
956
960
|
unit_price: String,
|
|
961
|
+
grouping_key: String?,
|
|
957
962
|
prorate: bool?,
|
|
958
963
|
second_dimension: String?
|
|
959
964
|
}
|
|
@@ -51,6 +51,7 @@ module Orb
|
|
|
51
51
|
external_price_id: String?,
|
|
52
52
|
filter: String?,
|
|
53
53
|
grouping_keys: ::Array[String],
|
|
54
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
54
55
|
price: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::price?,
|
|
55
56
|
price_id: String?
|
|
56
57
|
}
|
|
@@ -64,6 +65,8 @@ module Orb
|
|
|
64
65
|
|
|
65
66
|
def grouping_keys=: (::Array[String]) -> ::Array[String]
|
|
66
67
|
|
|
68
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
69
|
+
|
|
67
70
|
attr_accessor price: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::price?
|
|
68
71
|
|
|
69
72
|
attr_accessor price_id: String?
|
|
@@ -72,6 +75,7 @@ module Orb
|
|
|
72
75
|
?external_price_id: String?,
|
|
73
76
|
?filter: String?,
|
|
74
77
|
?grouping_keys: ::Array[String],
|
|
78
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
75
79
|
?price: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::price?,
|
|
76
80
|
?price_id: String?
|
|
77
81
|
) -> void
|
|
@@ -80,6 +84,7 @@ module Orb
|
|
|
80
84
|
external_price_id: String?,
|
|
81
85
|
filter: String?,
|
|
82
86
|
grouping_keys: ::Array[String],
|
|
87
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
83
88
|
price: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::price?,
|
|
84
89
|
price_id: String?
|
|
85
90
|
}
|
|
@@ -7,7 +7,8 @@ module Orb
|
|
|
7
7
|
customer_id: String?,
|
|
8
8
|
external_customer_id: String?,
|
|
9
9
|
filter: String?,
|
|
10
|
-
grouping_keys: ::Array[String]
|
|
10
|
+
grouping_keys: ::Array[String],
|
|
11
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
11
12
|
}
|
|
12
13
|
& Orb::Internal::Type::request_parameters
|
|
13
14
|
|
|
@@ -29,6 +30,8 @@ module Orb
|
|
|
29
30
|
|
|
30
31
|
def grouping_keys=: (::Array[String]) -> ::Array[String]
|
|
31
32
|
|
|
33
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
34
|
+
|
|
32
35
|
def initialize: (
|
|
33
36
|
timeframe_end: Time,
|
|
34
37
|
timeframe_start: Time,
|
|
@@ -36,6 +39,7 @@ module Orb
|
|
|
36
39
|
?external_customer_id: String?,
|
|
37
40
|
?filter: String?,
|
|
38
41
|
?grouping_keys: ::Array[String],
|
|
42
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
39
43
|
?request_options: Orb::request_opts
|
|
40
44
|
) -> void
|
|
41
45
|
|
|
@@ -46,6 +50,7 @@ module Orb
|
|
|
46
50
|
external_customer_id: String?,
|
|
47
51
|
filter: String?,
|
|
48
52
|
grouping_keys: ::Array[String],
|
|
53
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
49
54
|
request_options: Orb::RequestOptions
|
|
50
55
|
}
|
|
51
56
|
end
|
|
@@ -97,6 +97,7 @@ module Orb
|
|
|
97
97
|
external_price_id: String?,
|
|
98
98
|
filter: String?,
|
|
99
99
|
grouping_keys: ::Array[String],
|
|
100
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
100
101
|
price: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::price?,
|
|
101
102
|
price_id: String?
|
|
102
103
|
}
|
|
@@ -110,6 +111,8 @@ module Orb
|
|
|
110
111
|
|
|
111
112
|
def grouping_keys=: (::Array[String]) -> ::Array[String]
|
|
112
113
|
|
|
114
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
115
|
+
|
|
113
116
|
attr_accessor price: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::price?
|
|
114
117
|
|
|
115
118
|
attr_accessor price_id: String?
|
|
@@ -118,6 +121,7 @@ module Orb
|
|
|
118
121
|
?external_price_id: String?,
|
|
119
122
|
?filter: String?,
|
|
120
123
|
?grouping_keys: ::Array[String],
|
|
124
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
121
125
|
?price: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::price?,
|
|
122
126
|
?price_id: String?
|
|
123
127
|
) -> void
|
|
@@ -126,6 +130,7 @@ module Orb
|
|
|
126
130
|
external_price_id: String?,
|
|
127
131
|
filter: String?,
|
|
128
132
|
grouping_keys: ::Array[String],
|
|
133
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
129
134
|
price: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::price?,
|
|
130
135
|
price_id: String?
|
|
131
136
|
}
|
|
@@ -12,7 +12,8 @@ module Orb
|
|
|
12
12
|
fixed_fee_quantity_transitions: ::Array[Orb::FixedFeeQuantityTransition]?,
|
|
13
13
|
price: Orb::Models::price,
|
|
14
14
|
start_date: Time,
|
|
15
|
-
usage_customer_ids: ::Array[String]
|
|
15
|
+
usage_customer_ids: ::Array[String]?,
|
|
16
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
class PriceInterval < Orb::Internal::Type::BaseModel
|
|
@@ -38,6 +39,8 @@ module Orb
|
|
|
38
39
|
|
|
39
40
|
attr_accessor usage_customer_ids: ::Array[String]?
|
|
40
41
|
|
|
42
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
43
|
+
|
|
41
44
|
def initialize: (
|
|
42
45
|
id: String,
|
|
43
46
|
billing_cycle_day: Integer,
|
|
@@ -49,7 +52,8 @@ module Orb
|
|
|
49
52
|
fixed_fee_quantity_transitions: ::Array[Orb::FixedFeeQuantityTransition]?,
|
|
50
53
|
price: Orb::Models::price,
|
|
51
54
|
start_date: Time,
|
|
52
|
-
usage_customer_ids: ::Array[String]
|
|
55
|
+
usage_customer_ids: ::Array[String]?,
|
|
56
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
53
57
|
) -> void
|
|
54
58
|
|
|
55
59
|
def to_hash: -> {
|
|
@@ -63,7 +67,8 @@ module Orb
|
|
|
63
67
|
fixed_fee_quantity_transitions: ::Array[Orb::FixedFeeQuantityTransition]?,
|
|
64
68
|
price: Orb::Models::price,
|
|
65
69
|
start_date: Time,
|
|
66
|
-
usage_customer_ids: ::Array[String]
|
|
70
|
+
usage_customer_ids: ::Array[String]?,
|
|
71
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
67
72
|
}
|
|
68
73
|
end
|
|
69
74
|
end
|
|
@@ -236,6 +236,7 @@ module Orb
|
|
|
236
236
|
end_date: Time?,
|
|
237
237
|
external_price_id: String?,
|
|
238
238
|
maximum_amount: String?,
|
|
239
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
239
240
|
minimum_amount: String?,
|
|
240
241
|
plan_phase_order: Integer?,
|
|
241
242
|
price: Orb::Models::SubscriptionCreateParams::AddPrice::price?,
|
|
@@ -254,6 +255,8 @@ module Orb
|
|
|
254
255
|
|
|
255
256
|
attr_accessor maximum_amount: String?
|
|
256
257
|
|
|
258
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
259
|
+
|
|
257
260
|
attr_accessor minimum_amount: String?
|
|
258
261
|
|
|
259
262
|
attr_accessor plan_phase_order: Integer?
|
|
@@ -270,6 +273,7 @@ module Orb
|
|
|
270
273
|
?end_date: Time?,
|
|
271
274
|
?external_price_id: String?,
|
|
272
275
|
?maximum_amount: String?,
|
|
276
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
273
277
|
?minimum_amount: String?,
|
|
274
278
|
?plan_phase_order: Integer?,
|
|
275
279
|
?price: Orb::Models::SubscriptionCreateParams::AddPrice::price?,
|
|
@@ -283,6 +287,7 @@ module Orb
|
|
|
283
287
|
end_date: Time?,
|
|
284
288
|
external_price_id: String?,
|
|
285
289
|
maximum_amount: String?,
|
|
290
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
286
291
|
minimum_amount: String?,
|
|
287
292
|
plan_phase_order: Integer?,
|
|
288
293
|
price: Orb::Models::SubscriptionCreateParams::AddPrice::price?,
|
|
@@ -1369,6 +1374,7 @@ module Orb
|
|
|
1369
1374
|
external_price_id: String?,
|
|
1370
1375
|
fixed_price_quantity: Float?,
|
|
1371
1376
|
maximum_amount: String?,
|
|
1377
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1372
1378
|
minimum_amount: String?,
|
|
1373
1379
|
price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
1374
1380
|
price_id: String?
|
|
@@ -1387,6 +1393,8 @@ module Orb
|
|
|
1387
1393
|
|
|
1388
1394
|
attr_accessor maximum_amount: String?
|
|
1389
1395
|
|
|
1396
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
1397
|
+
|
|
1390
1398
|
attr_accessor minimum_amount: String?
|
|
1391
1399
|
|
|
1392
1400
|
attr_accessor price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?
|
|
@@ -1400,6 +1408,7 @@ module Orb
|
|
|
1400
1408
|
?external_price_id: String?,
|
|
1401
1409
|
?fixed_price_quantity: Float?,
|
|
1402
1410
|
?maximum_amount: String?,
|
|
1411
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1403
1412
|
?minimum_amount: String?,
|
|
1404
1413
|
?price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
1405
1414
|
?price_id: String?
|
|
@@ -1412,6 +1421,7 @@ module Orb
|
|
|
1412
1421
|
external_price_id: String?,
|
|
1413
1422
|
fixed_price_quantity: Float?,
|
|
1414
1423
|
maximum_amount: String?,
|
|
1424
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1415
1425
|
minimum_amount: String?,
|
|
1416
1426
|
price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
1417
1427
|
price_id: String?
|
|
@@ -74,6 +74,7 @@ module Orb
|
|
|
74
74
|
filter: String?,
|
|
75
75
|
fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?,
|
|
76
76
|
maximum_amount: Float?,
|
|
77
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
77
78
|
minimum_amount: Float?,
|
|
78
79
|
price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?,
|
|
79
80
|
price_id: String?,
|
|
@@ -99,6 +100,8 @@ module Orb
|
|
|
99
100
|
|
|
100
101
|
attr_accessor maximum_amount: Float?
|
|
101
102
|
|
|
103
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
104
|
+
|
|
102
105
|
attr_accessor minimum_amount: Float?
|
|
103
106
|
|
|
104
107
|
attr_accessor price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?
|
|
@@ -117,6 +120,7 @@ module Orb
|
|
|
117
120
|
?filter: String?,
|
|
118
121
|
?fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?,
|
|
119
122
|
?maximum_amount: Float?,
|
|
123
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
120
124
|
?minimum_amount: Float?,
|
|
121
125
|
?price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?,
|
|
122
126
|
?price_id: String?,
|
|
@@ -133,6 +137,7 @@ module Orb
|
|
|
133
137
|
filter: String?,
|
|
134
138
|
fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?,
|
|
135
139
|
maximum_amount: Float?,
|
|
140
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
136
141
|
minimum_amount: Float?,
|
|
137
142
|
price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?,
|
|
138
143
|
price_id: String?,
|
|
@@ -1108,6 +1113,7 @@ module Orb
|
|
|
1108
1113
|
end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date?,
|
|
1109
1114
|
filter: String?,
|
|
1110
1115
|
fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?,
|
|
1116
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1111
1117
|
start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date,
|
|
1112
1118
|
usage_customer_ids: ::Array[String]?
|
|
1113
1119
|
}
|
|
@@ -1125,6 +1131,8 @@ module Orb
|
|
|
1125
1131
|
|
|
1126
1132
|
attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?
|
|
1127
1133
|
|
|
1134
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
1135
|
+
|
|
1128
1136
|
attr_reader start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date?
|
|
1129
1137
|
|
|
1130
1138
|
def start_date=: (
|
|
@@ -1140,6 +1148,7 @@ module Orb
|
|
|
1140
1148
|
?end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date?,
|
|
1141
1149
|
?filter: String?,
|
|
1142
1150
|
?fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?,
|
|
1151
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1143
1152
|
?start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date,
|
|
1144
1153
|
?usage_customer_ids: ::Array[String]?
|
|
1145
1154
|
) -> void
|
|
@@ -1151,6 +1160,7 @@ module Orb
|
|
|
1151
1160
|
end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date?,
|
|
1152
1161
|
filter: String?,
|
|
1153
1162
|
fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?,
|
|
1163
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1154
1164
|
start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date,
|
|
1155
1165
|
usage_customer_ids: ::Array[String]?
|
|
1156
1166
|
}
|
|
@@ -212,6 +212,7 @@ module Orb
|
|
|
212
212
|
end_date: Time?,
|
|
213
213
|
external_price_id: String?,
|
|
214
214
|
maximum_amount: String?,
|
|
215
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
215
216
|
minimum_amount: String?,
|
|
216
217
|
plan_phase_order: Integer?,
|
|
217
218
|
price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price?,
|
|
@@ -230,6 +231,8 @@ module Orb
|
|
|
230
231
|
|
|
231
232
|
attr_accessor maximum_amount: String?
|
|
232
233
|
|
|
234
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
235
|
+
|
|
233
236
|
attr_accessor minimum_amount: String?
|
|
234
237
|
|
|
235
238
|
attr_accessor plan_phase_order: Integer?
|
|
@@ -246,6 +249,7 @@ module Orb
|
|
|
246
249
|
?end_date: Time?,
|
|
247
250
|
?external_price_id: String?,
|
|
248
251
|
?maximum_amount: String?,
|
|
252
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
249
253
|
?minimum_amount: String?,
|
|
250
254
|
?plan_phase_order: Integer?,
|
|
251
255
|
?price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price?,
|
|
@@ -259,6 +263,7 @@ module Orb
|
|
|
259
263
|
end_date: Time?,
|
|
260
264
|
external_price_id: String?,
|
|
261
265
|
maximum_amount: String?,
|
|
266
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
262
267
|
minimum_amount: String?,
|
|
263
268
|
plan_phase_order: Integer?,
|
|
264
269
|
price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price?,
|
|
@@ -1346,6 +1351,7 @@ module Orb
|
|
|
1346
1351
|
external_price_id: String?,
|
|
1347
1352
|
fixed_price_quantity: Float?,
|
|
1348
1353
|
maximum_amount: String?,
|
|
1354
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1349
1355
|
minimum_amount: String?,
|
|
1350
1356
|
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
1351
1357
|
price_id: String?
|
|
@@ -1364,6 +1370,8 @@ module Orb
|
|
|
1364
1370
|
|
|
1365
1371
|
attr_accessor maximum_amount: String?
|
|
1366
1372
|
|
|
1373
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
1374
|
+
|
|
1367
1375
|
attr_accessor minimum_amount: String?
|
|
1368
1376
|
|
|
1369
1377
|
attr_accessor price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?
|
|
@@ -1377,6 +1385,7 @@ module Orb
|
|
|
1377
1385
|
?external_price_id: String?,
|
|
1378
1386
|
?fixed_price_quantity: Float?,
|
|
1379
1387
|
?maximum_amount: String?,
|
|
1388
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1380
1389
|
?minimum_amount: String?,
|
|
1381
1390
|
?price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
1382
1391
|
?price_id: String?
|
|
@@ -1389,6 +1398,7 @@ module Orb
|
|
|
1389
1398
|
external_price_id: String?,
|
|
1390
1399
|
fixed_price_quantity: Float?,
|
|
1391
1400
|
maximum_amount: String?,
|
|
1401
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1392
1402
|
minimum_amount: String?,
|
|
1393
1403
|
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
1394
1404
|
price_id: String?
|
|
@@ -5,6 +5,7 @@ module Orb
|
|
|
5
5
|
currency: String,
|
|
6
6
|
invoice_date: Time,
|
|
7
7
|
line_items: ::Array[Orb::InvoiceCreateParams::LineItem],
|
|
8
|
+
?auto_collection: bool?,
|
|
8
9
|
?customer_id: String?,
|
|
9
10
|
?discount: Orb::Models::discount?,
|
|
10
11
|
?due_date: Orb::Models::InvoiceCreateParams::due_date?,
|
|
@@ -18,6 +19,7 @@ module Orb
|
|
|
18
19
|
|
|
19
20
|
def update: (
|
|
20
21
|
String invoice_id,
|
|
22
|
+
?auto_collection: bool?,
|
|
21
23
|
?due_date: Orb::Models::InvoiceUpdateParams::due_date?,
|
|
22
24
|
?invoice_date: Orb::Models::InvoiceUpdateParams::invoice_date?,
|
|
23
25
|
?metadata: ::Hash[Symbol, String?]?,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: orb-billing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.13.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Orb
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-03-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|