orb-billing 1.52.0 → 1.54.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 +17 -0
- data/README.md +1 -1
- data/lib/orb/models/billable_metric_edited_webhook_event.rb +33 -1
- data/lib/orb/models/metric_create_params.rb +24 -1
- data/lib/orb/models/metric_list_params.rb +1 -1
- data/lib/orb/models/metric_publish_params.rb +20 -0
- data/lib/orb/models/metric_update_params.rb +20 -1
- data/lib/orb/models/plan.rb +9 -1
- data/lib/orb/models/plan_version_phase.rb +9 -1
- data/lib/orb/models/plans/migration_cancel_response.rb +19 -1
- data/lib/orb/models/plans/migration_list_response.rb +19 -1
- data/lib/orb/models/plans/migration_retrieve_response.rb +19 -1
- data/lib/orb/models/subscription_create_params.rb +18 -2
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +18 -2
- data/lib/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rb +35 -1
- data/lib/orb/models.rb +2 -0
- data/lib/orb/resources/metrics.rb +34 -2
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +1 -0
- data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +76 -3
- data/rbi/orb/models/metric_create_params.rbi +37 -0
- data/rbi/orb/models/metric_list_params.rbi +1 -1
- data/rbi/orb/models/metric_publish_params.rbi +33 -0
- data/rbi/orb/models/metric_update_params.rbi +22 -0
- data/rbi/orb/models/plan.rbi +11 -3
- data/rbi/orb/models/plan_version_phase.rbi +11 -3
- data/rbi/orb/models/plans/migration_cancel_response.rbi +20 -0
- data/rbi/orb/models/plans/migration_list_response.rbi +20 -0
- data/rbi/orb/models/plans/migration_retrieve_response.rbi +20 -0
- data/rbi/orb/models/subscription_create_params.rbi +16 -0
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +16 -0
- data/rbi/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rbi +76 -3
- data/rbi/orb/models.rbi +2 -0
- data/rbi/orb/resources/metrics.rbi +31 -0
- data/sig/orb/models/billable_metric_edited_webhook_event.rbs +30 -3
- data/sig/orb/models/metric_create_params.rbs +21 -1
- data/sig/orb/models/metric_list_params.rbs +2 -2
- data/sig/orb/models/metric_publish_params.rbs +23 -0
- data/sig/orb/models/metric_update_params.rbs +11 -1
- data/sig/orb/models/plan.rbs +8 -3
- data/sig/orb/models/plan_version_phase.rbs +8 -3
- data/sig/orb/models/plans/migration_cancel_response.rbs +10 -0
- data/sig/orb/models/plans/migration_list_response.rbs +10 -0
- data/sig/orb/models/plans/migration_retrieve_response.rbs +10 -0
- data/sig/orb/models/subscription_create_params.rbs +19 -2
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +19 -2
- data/sig/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rbs +30 -3
- data/sig/orb/models.rbs +2 -0
- data/sig/orb/resources/metrics.rbs +8 -0
- metadata +5 -2
|
@@ -5,7 +5,9 @@ module Orb
|
|
|
5
5
|
{
|
|
6
6
|
id: String,
|
|
7
7
|
effective_time: Orb::Models::Plans::MigrationRetrieveResponse::effective_time?,
|
|
8
|
+
ended_at: Time?,
|
|
8
9
|
plan_id: String,
|
|
10
|
+
started_at: Time?,
|
|
9
11
|
status: Orb::Models::Plans::MigrationRetrieveResponse::status
|
|
10
12
|
}
|
|
11
13
|
|
|
@@ -14,21 +16,29 @@ module Orb
|
|
|
14
16
|
|
|
15
17
|
attr_accessor effective_time: Orb::Models::Plans::MigrationRetrieveResponse::effective_time?
|
|
16
18
|
|
|
19
|
+
attr_accessor ended_at: Time?
|
|
20
|
+
|
|
17
21
|
attr_accessor plan_id: String
|
|
18
22
|
|
|
23
|
+
attr_accessor started_at: Time?
|
|
24
|
+
|
|
19
25
|
attr_accessor status: Orb::Models::Plans::MigrationRetrieveResponse::status
|
|
20
26
|
|
|
21
27
|
def initialize: (
|
|
22
28
|
id: String,
|
|
23
29
|
effective_time: Orb::Models::Plans::MigrationRetrieveResponse::effective_time?,
|
|
30
|
+
ended_at: Time?,
|
|
24
31
|
plan_id: String,
|
|
32
|
+
started_at: Time?,
|
|
25
33
|
status: Orb::Models::Plans::MigrationRetrieveResponse::status
|
|
26
34
|
) -> void
|
|
27
35
|
|
|
28
36
|
def to_hash: -> {
|
|
29
37
|
id: String,
|
|
30
38
|
effective_time: Orb::Models::Plans::MigrationRetrieveResponse::effective_time?,
|
|
39
|
+
ended_at: Time?,
|
|
31
40
|
plan_id: String,
|
|
41
|
+
started_at: Time?,
|
|
32
42
|
status: Orb::Models::Plans::MigrationRetrieveResponse::status
|
|
33
43
|
}
|
|
34
44
|
|
|
@@ -2479,19 +2479,31 @@ module Orb
|
|
|
2479
2479
|
def to_hash: -> { adjustment_id: String }
|
|
2480
2480
|
end
|
|
2481
2481
|
|
|
2482
|
-
type remove_price =
|
|
2482
|
+
type remove_price =
|
|
2483
|
+
{
|
|
2484
|
+
external_price_id: String?,
|
|
2485
|
+
plan_phase_order: Integer?,
|
|
2486
|
+
price_id: String?
|
|
2487
|
+
}
|
|
2483
2488
|
|
|
2484
2489
|
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
2485
2490
|
attr_accessor external_price_id: String?
|
|
2486
2491
|
|
|
2492
|
+
attr_accessor plan_phase_order: Integer?
|
|
2493
|
+
|
|
2487
2494
|
attr_accessor price_id: String?
|
|
2488
2495
|
|
|
2489
2496
|
def initialize: (
|
|
2490
2497
|
?external_price_id: String?,
|
|
2498
|
+
?plan_phase_order: Integer?,
|
|
2491
2499
|
?price_id: String?
|
|
2492
2500
|
) -> void
|
|
2493
2501
|
|
|
2494
|
-
def to_hash: -> {
|
|
2502
|
+
def to_hash: -> {
|
|
2503
|
+
external_price_id: String?,
|
|
2504
|
+
plan_phase_order: Integer?,
|
|
2505
|
+
price_id: String?
|
|
2506
|
+
}
|
|
2495
2507
|
end
|
|
2496
2508
|
|
|
2497
2509
|
type replace_adjustment =
|
|
@@ -2708,6 +2720,7 @@ module Orb
|
|
|
2708
2720
|
maximum_amount: String?,
|
|
2709
2721
|
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2710
2722
|
minimum_amount: String?,
|
|
2723
|
+
plan_phase_order: Integer?,
|
|
2711
2724
|
price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
2712
2725
|
price_id: String?
|
|
2713
2726
|
}
|
|
@@ -2729,6 +2742,8 @@ module Orb
|
|
|
2729
2742
|
|
|
2730
2743
|
attr_accessor minimum_amount: String?
|
|
2731
2744
|
|
|
2745
|
+
attr_accessor plan_phase_order: Integer?
|
|
2746
|
+
|
|
2732
2747
|
attr_accessor price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?
|
|
2733
2748
|
|
|
2734
2749
|
attr_accessor price_id: String?
|
|
@@ -2742,6 +2757,7 @@ module Orb
|
|
|
2742
2757
|
?maximum_amount: String?,
|
|
2743
2758
|
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2744
2759
|
?minimum_amount: String?,
|
|
2760
|
+
?plan_phase_order: Integer?,
|
|
2745
2761
|
?price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
2746
2762
|
?price_id: String?
|
|
2747
2763
|
) -> void
|
|
@@ -2755,6 +2771,7 @@ module Orb
|
|
|
2755
2771
|
maximum_amount: String?,
|
|
2756
2772
|
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2757
2773
|
minimum_amount: String?,
|
|
2774
|
+
plan_phase_order: Integer?,
|
|
2758
2775
|
price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
2759
2776
|
price_id: String?
|
|
2760
2777
|
}
|
|
@@ -2461,19 +2461,31 @@ module Orb
|
|
|
2461
2461
|
def to_hash: -> { adjustment_id: String }
|
|
2462
2462
|
end
|
|
2463
2463
|
|
|
2464
|
-
type remove_price =
|
|
2464
|
+
type remove_price =
|
|
2465
|
+
{
|
|
2466
|
+
external_price_id: String?,
|
|
2467
|
+
plan_phase_order: Integer?,
|
|
2468
|
+
price_id: String?
|
|
2469
|
+
}
|
|
2465
2470
|
|
|
2466
2471
|
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
2467
2472
|
attr_accessor external_price_id: String?
|
|
2468
2473
|
|
|
2474
|
+
attr_accessor plan_phase_order: Integer?
|
|
2475
|
+
|
|
2469
2476
|
attr_accessor price_id: String?
|
|
2470
2477
|
|
|
2471
2478
|
def initialize: (
|
|
2472
2479
|
?external_price_id: String?,
|
|
2480
|
+
?plan_phase_order: Integer?,
|
|
2473
2481
|
?price_id: String?
|
|
2474
2482
|
) -> void
|
|
2475
2483
|
|
|
2476
|
-
def to_hash: -> {
|
|
2484
|
+
def to_hash: -> {
|
|
2485
|
+
external_price_id: String?,
|
|
2486
|
+
plan_phase_order: Integer?,
|
|
2487
|
+
price_id: String?
|
|
2488
|
+
}
|
|
2477
2489
|
end
|
|
2478
2490
|
|
|
2479
2491
|
type replace_adjustment =
|
|
@@ -2690,6 +2702,7 @@ module Orb
|
|
|
2690
2702
|
maximum_amount: String?,
|
|
2691
2703
|
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2692
2704
|
minimum_amount: String?,
|
|
2705
|
+
plan_phase_order: Integer?,
|
|
2693
2706
|
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
2694
2707
|
price_id: String?
|
|
2695
2708
|
}
|
|
@@ -2711,6 +2724,8 @@ module Orb
|
|
|
2711
2724
|
|
|
2712
2725
|
attr_accessor minimum_amount: String?
|
|
2713
2726
|
|
|
2727
|
+
attr_accessor plan_phase_order: Integer?
|
|
2728
|
+
|
|
2714
2729
|
attr_accessor price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?
|
|
2715
2730
|
|
|
2716
2731
|
attr_accessor price_id: String?
|
|
@@ -2724,6 +2739,7 @@ module Orb
|
|
|
2724
2739
|
?maximum_amount: String?,
|
|
2725
2740
|
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2726
2741
|
?minimum_amount: String?,
|
|
2742
|
+
?plan_phase_order: Integer?,
|
|
2727
2743
|
?price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
2728
2744
|
?price_id: String?
|
|
2729
2745
|
) -> void
|
|
@@ -2737,6 +2753,7 @@ module Orb
|
|
|
2737
2753
|
maximum_amount: String?,
|
|
2738
2754
|
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2739
2755
|
minimum_amount: String?,
|
|
2756
|
+
plan_phase_order: Integer?,
|
|
2740
2757
|
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
2741
2758
|
price_id: String?
|
|
2742
2759
|
}
|
|
@@ -72,28 +72,55 @@ module Orb
|
|
|
72
72
|
type previous_attributes =
|
|
73
73
|
{
|
|
74
74
|
description: String?,
|
|
75
|
+
item_id: String?,
|
|
75
76
|
metadata: ::Hash[Symbol, String]?,
|
|
76
|
-
name: String
|
|
77
|
+
name: String?,
|
|
78
|
+
sql: String?,
|
|
79
|
+
status: Orb::Models::Webhooks::BillableMetricEditedStandardWebhookEvent::Properties::PreviousAttributes::status?
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
class PreviousAttributes < Orb::Internal::Type::BaseModel
|
|
80
83
|
attr_accessor description: String?
|
|
81
84
|
|
|
85
|
+
attr_accessor item_id: String?
|
|
86
|
+
|
|
82
87
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
83
88
|
|
|
84
89
|
attr_accessor name: String?
|
|
85
90
|
|
|
91
|
+
attr_accessor sql: String?
|
|
92
|
+
|
|
93
|
+
attr_accessor status: Orb::Models::Webhooks::BillableMetricEditedStandardWebhookEvent::Properties::PreviousAttributes::status?
|
|
94
|
+
|
|
86
95
|
def initialize: (
|
|
87
96
|
?description: String?,
|
|
97
|
+
?item_id: String?,
|
|
88
98
|
?metadata: ::Hash[Symbol, String]?,
|
|
89
|
-
?name: String
|
|
99
|
+
?name: String?,
|
|
100
|
+
?sql: String?,
|
|
101
|
+
?status: Orb::Models::Webhooks::BillableMetricEditedStandardWebhookEvent::Properties::PreviousAttributes::status?
|
|
90
102
|
) -> void
|
|
91
103
|
|
|
92
104
|
def to_hash: -> {
|
|
93
105
|
description: String?,
|
|
106
|
+
item_id: String?,
|
|
94
107
|
metadata: ::Hash[Symbol, String]?,
|
|
95
|
-
name: String
|
|
108
|
+
name: String?,
|
|
109
|
+
sql: String?,
|
|
110
|
+
status: Orb::Models::Webhooks::BillableMetricEditedStandardWebhookEvent::Properties::PreviousAttributes::status?
|
|
96
111
|
}
|
|
112
|
+
|
|
113
|
+
type status = :active | :archived | :draft
|
|
114
|
+
|
|
115
|
+
module Status
|
|
116
|
+
extend Orb::Internal::Type::Enum
|
|
117
|
+
|
|
118
|
+
ACTIVE: :active
|
|
119
|
+
ARCHIVED: :archived
|
|
120
|
+
DRAFT: :draft
|
|
121
|
+
|
|
122
|
+
def self?.values: -> ::Array[Orb::Models::Webhooks::BillableMetricEditedStandardWebhookEvent::Properties::PreviousAttributes::status]
|
|
123
|
+
end
|
|
97
124
|
end
|
|
98
125
|
end
|
|
99
126
|
|
data/sig/orb/models.rbs
CHANGED
|
@@ -353,6 +353,8 @@ module Orb
|
|
|
353
353
|
|
|
354
354
|
class MetricListParams = Orb::Models::MetricListParams
|
|
355
355
|
|
|
356
|
+
class MetricPublishParams = Orb::Models::MetricPublishParams
|
|
357
|
+
|
|
356
358
|
class MetricUnarchiveParams = Orb::Models::MetricUnarchiveParams
|
|
357
359
|
|
|
358
360
|
class MetricUpdateParams = Orb::Models::MetricUpdateParams
|
|
@@ -7,14 +7,17 @@ module Orb
|
|
|
7
7
|
name: String,
|
|
8
8
|
sql: String,
|
|
9
9
|
?metadata: ::Hash[Symbol, String?]?,
|
|
10
|
+
?status: Orb::Models::MetricCreateParams::status,
|
|
10
11
|
?request_options: Orb::request_opts
|
|
11
12
|
) -> Orb::BillableMetric
|
|
12
13
|
|
|
13
14
|
def update: (
|
|
14
15
|
String metric_id,
|
|
15
16
|
?description: String?,
|
|
17
|
+
?item_id: String?,
|
|
16
18
|
?metadata: ::Hash[Symbol, String?]?,
|
|
17
19
|
?name: String?,
|
|
20
|
+
?sql: String?,
|
|
18
21
|
?request_options: Orb::request_opts
|
|
19
22
|
) -> Orb::BillableMetric
|
|
20
23
|
|
|
@@ -39,6 +42,11 @@ module Orb
|
|
|
39
42
|
?request_options: Orb::request_opts
|
|
40
43
|
) -> Orb::BillableMetric
|
|
41
44
|
|
|
45
|
+
def publish: (
|
|
46
|
+
String metric_id,
|
|
47
|
+
?request_options: Orb::request_opts
|
|
48
|
+
) -> Orb::BillableMetric
|
|
49
|
+
|
|
42
50
|
def unarchive: (
|
|
43
51
|
String metric_id,
|
|
44
52
|
?request_options: Orb::request_opts
|
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.54.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Orb
|
|
@@ -330,6 +330,7 @@ files:
|
|
|
330
330
|
- lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb
|
|
331
331
|
- lib/orb/models/metric_fetch_params.rb
|
|
332
332
|
- lib/orb/models/metric_list_params.rb
|
|
333
|
+
- lib/orb/models/metric_publish_params.rb
|
|
333
334
|
- lib/orb/models/metric_unarchive_params.rb
|
|
334
335
|
- lib/orb/models/metric_update_params.rb
|
|
335
336
|
- lib/orb/models/minimum.rb
|
|
@@ -970,6 +971,7 @@ files:
|
|
|
970
971
|
- rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi
|
|
971
972
|
- rbi/orb/models/metric_fetch_params.rbi
|
|
972
973
|
- rbi/orb/models/metric_list_params.rbi
|
|
974
|
+
- rbi/orb/models/metric_publish_params.rbi
|
|
973
975
|
- rbi/orb/models/metric_unarchive_params.rbi
|
|
974
976
|
- rbi/orb/models/metric_update_params.rbi
|
|
975
977
|
- rbi/orb/models/minimum.rbi
|
|
@@ -1609,6 +1611,7 @@ files:
|
|
|
1609
1611
|
- sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs
|
|
1610
1612
|
- sig/orb/models/metric_fetch_params.rbs
|
|
1611
1613
|
- sig/orb/models/metric_list_params.rbs
|
|
1614
|
+
- sig/orb/models/metric_publish_params.rbs
|
|
1612
1615
|
- sig/orb/models/metric_unarchive_params.rbs
|
|
1613
1616
|
- sig/orb/models/metric_update_params.rbs
|
|
1614
1617
|
- sig/orb/models/minimum.rbs
|
|
@@ -1986,7 +1989,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1986
1989
|
- !ruby/object:Gem::Version
|
|
1987
1990
|
version: '0'
|
|
1988
1991
|
requirements: []
|
|
1989
|
-
rubygems_version: 4.0.
|
|
1992
|
+
rubygems_version: 4.0.24
|
|
1990
1993
|
specification_version: 4
|
|
1991
1994
|
summary: Ruby library to access the Orb API
|
|
1992
1995
|
test_files: []
|