orb-billing 1.47.0 → 1.49.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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/orb/models/credit_block_update_params.rb +34 -0
  5. data/lib/orb/models/credit_block_update_response.rb +332 -0
  6. data/lib/orb/models/metric_archive_params.rb +20 -0
  7. data/lib/orb/models/metric_unarchive_params.rb +20 -0
  8. data/lib/orb/models/subscription_list_summary_params.rb +108 -0
  9. data/lib/orb/models/subscription_list_summary_response.rb +130 -0
  10. data/lib/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rb +9 -7
  11. data/lib/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rb +9 -7
  12. data/lib/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rb +9 -7
  13. data/lib/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rb +9 -7
  14. data/lib/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rb +9 -7
  15. data/lib/orb/models/webhooks/subscription_created_standard_webhook_event.rb +9 -7
  16. data/lib/orb/models/webhooks/subscription_edited_standard_webhook_event.rb +9 -7
  17. data/lib/orb/models/webhooks/subscription_ended_standard_webhook_event.rb +9 -7
  18. data/lib/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rb +9 -7
  19. data/lib/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rb +9 -7
  20. data/lib/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rb +9 -7
  21. data/lib/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rb +9 -7
  22. data/lib/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rb +9 -7
  23. data/lib/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rb +9 -7
  24. data/lib/orb/models/webhooks/subscription_started_standard_webhook_event.rb +9 -7
  25. data/lib/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rb +9 -7
  26. data/lib/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rb +9 -7
  27. data/lib/orb/models.rb +8 -0
  28. data/lib/orb/resources/alerts.rb +7 -4
  29. data/lib/orb/resources/credit_blocks.rb +35 -0
  30. data/lib/orb/resources/metrics.rb +46 -0
  31. data/lib/orb/resources/subscriptions.rb +60 -0
  32. data/lib/orb/version.rb +1 -1
  33. data/lib/orb.rb +6 -0
  34. data/rbi/orb/models/credit_block_update_params.rbi +53 -0
  35. data/rbi/orb/models/credit_block_update_response.rbi +693 -0
  36. data/rbi/orb/models/metric_archive_params.rbi +33 -0
  37. data/rbi/orb/models/metric_unarchive_params.rbi +35 -0
  38. data/rbi/orb/models/subscription_list_summary_params.rbi +148 -0
  39. data/rbi/orb/models/subscription_list_summary_response.rbi +214 -0
  40. data/rbi/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rbi +12 -9
  41. data/rbi/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rbi +12 -9
  42. data/rbi/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rbi +12 -9
  43. data/rbi/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rbi +12 -9
  44. data/rbi/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rbi +12 -9
  45. data/rbi/orb/models/webhooks/subscription_created_standard_webhook_event.rbi +12 -9
  46. data/rbi/orb/models/webhooks/subscription_edited_standard_webhook_event.rbi +12 -9
  47. data/rbi/orb/models/webhooks/subscription_ended_standard_webhook_event.rbi +12 -9
  48. data/rbi/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rbi +12 -9
  49. data/rbi/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rbi +12 -9
  50. data/rbi/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rbi +12 -9
  51. data/rbi/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rbi +12 -9
  52. data/rbi/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rbi +12 -9
  53. data/rbi/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rbi +12 -9
  54. data/rbi/orb/models/webhooks/subscription_started_standard_webhook_event.rbi +12 -9
  55. data/rbi/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rbi +12 -9
  56. data/rbi/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rbi +12 -9
  57. data/rbi/orb/models.rbi +8 -0
  58. data/rbi/orb/resources/alerts.rbi +7 -4
  59. data/rbi/orb/resources/credit_blocks.rbi +26 -0
  60. data/rbi/orb/resources/metrics.rbi +28 -0
  61. data/rbi/orb/resources/subscriptions.rbi +47 -0
  62. data/sig/orb/models/credit_block_update_params.rbs +28 -0
  63. data/sig/orb/models/credit_block_update_response.rbs +263 -0
  64. data/sig/orb/models/metric_archive_params.rbs +23 -0
  65. data/sig/orb/models/metric_unarchive_params.rbs +23 -0
  66. data/sig/orb/models/subscription_list_summary_params.rbs +90 -0
  67. data/sig/orb/models/subscription_list_summary_response.rbs +94 -0
  68. data/sig/orb/models.rbs +8 -0
  69. data/sig/orb/resources/credit_blocks.rbs +6 -0
  70. data/sig/orb/resources/metrics.rbs +10 -0
  71. data/sig/orb/resources/subscriptions.rbs +15 -0
  72. metadata +19 -1
@@ -0,0 +1,33 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ class MetricArchiveParams < Orb::Internal::Type::BaseModel
6
+ extend Orb::Internal::Type::RequestParameters::Converter
7
+ include Orb::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias { T.any(Orb::MetricArchiveParams, Orb::Internal::AnyHash) }
11
+
12
+ sig { returns(String) }
13
+ attr_accessor :metric_id
14
+
15
+ sig do
16
+ params(
17
+ metric_id: String,
18
+ request_options: Orb::RequestOptions::OrHash
19
+ ).returns(T.attached_class)
20
+ end
21
+ def self.new(metric_id:, request_options: {})
22
+ end
23
+
24
+ sig do
25
+ override.returns(
26
+ { metric_id: String, request_options: Orb::RequestOptions }
27
+ )
28
+ end
29
+ def to_hash
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,35 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ class MetricUnarchiveParams < Orb::Internal::Type::BaseModel
6
+ extend Orb::Internal::Type::RequestParameters::Converter
7
+ include Orb::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Orb::MetricUnarchiveParams, Orb::Internal::AnyHash)
12
+ end
13
+
14
+ sig { returns(String) }
15
+ attr_accessor :metric_id
16
+
17
+ sig do
18
+ params(
19
+ metric_id: String,
20
+ request_options: Orb::RequestOptions::OrHash
21
+ ).returns(T.attached_class)
22
+ end
23
+ def self.new(metric_id:, request_options: {})
24
+ end
25
+
26
+ sig do
27
+ override.returns(
28
+ { metric_id: String, request_options: Orb::RequestOptions }
29
+ )
30
+ end
31
+ def to_hash
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,148 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ class SubscriptionListSummaryParams < Orb::Internal::Type::BaseModel
6
+ extend Orb::Internal::Type::RequestParameters::Converter
7
+ include Orb::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Orb::SubscriptionListSummaryParams, Orb::Internal::AnyHash)
12
+ end
13
+
14
+ sig { returns(T.nilable(Time)) }
15
+ attr_accessor :created_at_gt
16
+
17
+ sig { returns(T.nilable(Time)) }
18
+ attr_accessor :created_at_gte
19
+
20
+ sig { returns(T.nilable(Time)) }
21
+ attr_accessor :created_at_lt
22
+
23
+ sig { returns(T.nilable(Time)) }
24
+ attr_accessor :created_at_lte
25
+
26
+ # Cursor for pagination. This can be populated by the `next_cursor` value returned
27
+ # from the initial request.
28
+ sig { returns(T.nilable(String)) }
29
+ attr_accessor :cursor
30
+
31
+ sig { returns(T.nilable(String)) }
32
+ attr_accessor :customer_id
33
+
34
+ sig { returns(T.nilable(String)) }
35
+ attr_accessor :external_customer_id
36
+
37
+ sig { returns(T.nilable(String)) }
38
+ attr_accessor :external_plan_id
39
+
40
+ # The number of items to fetch. Defaults to 20.
41
+ sig { returns(T.nilable(Integer)) }
42
+ attr_reader :limit
43
+
44
+ sig { params(limit: Integer).void }
45
+ attr_writer :limit
46
+
47
+ sig { returns(T.nilable(String)) }
48
+ attr_accessor :plan_id
49
+
50
+ sig do
51
+ returns(T.nilable(Orb::SubscriptionListSummaryParams::Status::OrSymbol))
52
+ end
53
+ attr_accessor :status
54
+
55
+ sig do
56
+ params(
57
+ created_at_gt: T.nilable(Time),
58
+ created_at_gte: T.nilable(Time),
59
+ created_at_lt: T.nilable(Time),
60
+ created_at_lte: T.nilable(Time),
61
+ cursor: T.nilable(String),
62
+ customer_id: T.nilable(String),
63
+ external_customer_id: T.nilable(String),
64
+ external_plan_id: T.nilable(String),
65
+ limit: Integer,
66
+ plan_id: T.nilable(String),
67
+ status:
68
+ T.nilable(Orb::SubscriptionListSummaryParams::Status::OrSymbol),
69
+ request_options: Orb::RequestOptions::OrHash
70
+ ).returns(T.attached_class)
71
+ end
72
+ def self.new(
73
+ created_at_gt: nil,
74
+ created_at_gte: nil,
75
+ created_at_lt: nil,
76
+ created_at_lte: nil,
77
+ # Cursor for pagination. This can be populated by the `next_cursor` value returned
78
+ # from the initial request.
79
+ cursor: nil,
80
+ customer_id: nil,
81
+ external_customer_id: nil,
82
+ external_plan_id: nil,
83
+ # The number of items to fetch. Defaults to 20.
84
+ limit: nil,
85
+ plan_id: nil,
86
+ status: nil,
87
+ request_options: {}
88
+ )
89
+ end
90
+
91
+ sig do
92
+ override.returns(
93
+ {
94
+ created_at_gt: T.nilable(Time),
95
+ created_at_gte: T.nilable(Time),
96
+ created_at_lt: T.nilable(Time),
97
+ created_at_lte: T.nilable(Time),
98
+ cursor: T.nilable(String),
99
+ customer_id: T.nilable(String),
100
+ external_customer_id: T.nilable(String),
101
+ external_plan_id: T.nilable(String),
102
+ limit: Integer,
103
+ plan_id: T.nilable(String),
104
+ status:
105
+ T.nilable(Orb::SubscriptionListSummaryParams::Status::OrSymbol),
106
+ request_options: Orb::RequestOptions
107
+ }
108
+ )
109
+ end
110
+ def to_hash
111
+ end
112
+
113
+ module Status
114
+ extend Orb::Internal::Type::Enum
115
+
116
+ TaggedSymbol =
117
+ T.type_alias do
118
+ T.all(Symbol, Orb::SubscriptionListSummaryParams::Status)
119
+ end
120
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
121
+
122
+ ACTIVE =
123
+ T.let(
124
+ :active,
125
+ Orb::SubscriptionListSummaryParams::Status::TaggedSymbol
126
+ )
127
+ ENDED =
128
+ T.let(
129
+ :ended,
130
+ Orb::SubscriptionListSummaryParams::Status::TaggedSymbol
131
+ )
132
+ UPCOMING =
133
+ T.let(
134
+ :upcoming,
135
+ Orb::SubscriptionListSummaryParams::Status::TaggedSymbol
136
+ )
137
+
138
+ sig do
139
+ override.returns(
140
+ T::Array[Orb::SubscriptionListSummaryParams::Status::TaggedSymbol]
141
+ )
142
+ end
143
+ def self.values
144
+ end
145
+ end
146
+ end
147
+ end
148
+ end
@@ -0,0 +1,214 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ class SubscriptionListSummaryResponse < Orb::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Orb::Models::SubscriptionListSummaryResponse,
10
+ Orb::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ sig { returns(String) }
15
+ attr_accessor :id
16
+
17
+ sig { returns(Time) }
18
+ attr_accessor :created_at
19
+
20
+ sig { returns(Orb::CustomerMinified) }
21
+ attr_reader :customer
22
+
23
+ sig { params(customer: Orb::CustomerMinified::OrHash).void }
24
+ attr_writer :customer
25
+
26
+ # The date Orb stops billing for this subscription.
27
+ sig { returns(T.nilable(Time)) }
28
+ attr_accessor :end_date
29
+
30
+ # User specified key-value pairs for the resource. If not present, this defaults
31
+ # to an empty dictionary. Individual keys can be removed by setting the value to
32
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
33
+ # `null`.
34
+ sig { returns(T::Hash[Symbol, String]) }
35
+ attr_accessor :metadata
36
+
37
+ # The name of the subscription.
38
+ sig { returns(String) }
39
+ attr_accessor :name
40
+
41
+ sig do
42
+ returns(T.nilable(Orb::Models::SubscriptionListSummaryResponse::Plan))
43
+ end
44
+ attr_reader :plan
45
+
46
+ sig do
47
+ params(
48
+ plan:
49
+ T.nilable(
50
+ Orb::Models::SubscriptionListSummaryResponse::Plan::OrHash
51
+ )
52
+ ).void
53
+ end
54
+ attr_writer :plan
55
+
56
+ # The date Orb starts billing for this subscription.
57
+ sig { returns(Time) }
58
+ attr_accessor :start_date
59
+
60
+ sig do
61
+ returns(
62
+ Orb::Models::SubscriptionListSummaryResponse::Status::TaggedSymbol
63
+ )
64
+ end
65
+ attr_accessor :status
66
+
67
+ # A subscription's own fields, with its plan and customer as references, as listed
68
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
69
+ # the subscription for its price intervals, billing periods, plan phases and other
70
+ # derived fields.
71
+ sig do
72
+ params(
73
+ id: String,
74
+ created_at: Time,
75
+ customer: Orb::CustomerMinified::OrHash,
76
+ end_date: T.nilable(Time),
77
+ metadata: T::Hash[Symbol, String],
78
+ name: String,
79
+ plan:
80
+ T.nilable(
81
+ Orb::Models::SubscriptionListSummaryResponse::Plan::OrHash
82
+ ),
83
+ start_date: Time,
84
+ status: Orb::Models::SubscriptionListSummaryResponse::Status::OrSymbol
85
+ ).returns(T.attached_class)
86
+ end
87
+ def self.new(
88
+ id:,
89
+ created_at:,
90
+ customer:,
91
+ # The date Orb stops billing for this subscription.
92
+ end_date:,
93
+ # User specified key-value pairs for the resource. If not present, this defaults
94
+ # to an empty dictionary. Individual keys can be removed by setting the value to
95
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
96
+ # `null`.
97
+ metadata:,
98
+ # The name of the subscription.
99
+ name:,
100
+ plan:,
101
+ # The date Orb starts billing for this subscription.
102
+ start_date:,
103
+ status:
104
+ )
105
+ end
106
+
107
+ sig do
108
+ override.returns(
109
+ {
110
+ id: String,
111
+ created_at: Time,
112
+ customer: Orb::CustomerMinified,
113
+ end_date: T.nilable(Time),
114
+ metadata: T::Hash[Symbol, String],
115
+ name: String,
116
+ plan: T.nilable(Orb::Models::SubscriptionListSummaryResponse::Plan),
117
+ start_date: Time,
118
+ status:
119
+ Orb::Models::SubscriptionListSummaryResponse::Status::TaggedSymbol
120
+ }
121
+ )
122
+ end
123
+ def to_hash
124
+ end
125
+
126
+ class Plan < Orb::Internal::Type::BaseModel
127
+ OrHash =
128
+ T.type_alias do
129
+ T.any(
130
+ Orb::Models::SubscriptionListSummaryResponse::Plan,
131
+ Orb::Internal::AnyHash
132
+ )
133
+ end
134
+
135
+ sig { returns(T.nilable(String)) }
136
+ attr_accessor :id
137
+
138
+ # An optional user-defined ID for this plan resource, used throughout the system
139
+ # as an alias for this Plan. Use this field to identify a plan by an existing
140
+ # identifier in your system.
141
+ sig { returns(T.nilable(String)) }
142
+ attr_accessor :external_plan_id
143
+
144
+ sig { returns(T.nilable(String)) }
145
+ attr_accessor :name
146
+
147
+ sig do
148
+ params(
149
+ id: T.nilable(String),
150
+ external_plan_id: T.nilable(String),
151
+ name: T.nilable(String)
152
+ ).returns(T.attached_class)
153
+ end
154
+ def self.new(
155
+ id:,
156
+ # An optional user-defined ID for this plan resource, used throughout the system
157
+ # as an alias for this Plan. Use this field to identify a plan by an existing
158
+ # identifier in your system.
159
+ external_plan_id:,
160
+ name:
161
+ )
162
+ end
163
+
164
+ sig do
165
+ override.returns(
166
+ {
167
+ id: T.nilable(String),
168
+ external_plan_id: T.nilable(String),
169
+ name: T.nilable(String)
170
+ }
171
+ )
172
+ end
173
+ def to_hash
174
+ end
175
+ end
176
+
177
+ module Status
178
+ extend Orb::Internal::Type::Enum
179
+
180
+ TaggedSymbol =
181
+ T.type_alias do
182
+ T.all(Symbol, Orb::Models::SubscriptionListSummaryResponse::Status)
183
+ end
184
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
185
+
186
+ ACTIVE =
187
+ T.let(
188
+ :active,
189
+ Orb::Models::SubscriptionListSummaryResponse::Status::TaggedSymbol
190
+ )
191
+ ENDED =
192
+ T.let(
193
+ :ended,
194
+ Orb::Models::SubscriptionListSummaryResponse::Status::TaggedSymbol
195
+ )
196
+ UPCOMING =
197
+ T.let(
198
+ :upcoming,
199
+ Orb::Models::SubscriptionListSummaryResponse::Status::TaggedSymbol
200
+ )
201
+
202
+ sig do
203
+ override.returns(
204
+ T::Array[
205
+ Orb::Models::SubscriptionListSummaryResponse::Status::TaggedSymbol
206
+ ]
207
+ )
208
+ end
209
+ def self.values
210
+ end
211
+ end
212
+ end
213
+ end
214
+ end
@@ -59,9 +59,10 @@ module Orb
59
59
  end
60
60
  attr_writer :properties
61
61
 
62
- # The subscription in a standard webhook payload: its own fields, with its plan
63
- # and customer as references. Fetch the subscription for its price intervals,
64
- # billing periods, plan phases and other derived fields.
62
+ # A subscription's own fields, with its plan and customer as references, as listed
63
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
64
+ # the subscription for its price intervals, billing periods, plan phases and other
65
+ # derived fields.
65
66
  sig do
66
67
  returns(
67
68
  Orb::Webhooks::SubscriptionAccountingSyncFailedStandardWebhookEvent::Subscription
@@ -112,9 +113,10 @@ module Orb
112
113
  # endpoint.
113
114
  payload_style:,
114
115
  properties:,
115
- # The subscription in a standard webhook payload: its own fields, with its plan
116
- # and customer as references. Fetch the subscription for its price intervals,
117
- # billing periods, plan phases and other derived fields.
116
+ # A subscription's own fields, with its plan and customer as references, as listed
117
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
118
+ # the subscription for its price intervals, billing periods, plan phases and other
119
+ # derived fields.
118
120
  subscription:,
119
121
  # The event this payload describes.
120
122
  type:
@@ -421,9 +423,10 @@ module Orb
421
423
  end
422
424
  attr_accessor :status
423
425
 
424
- # The subscription in a standard webhook payload: its own fields, with its plan
425
- # and customer as references. Fetch the subscription for its price intervals,
426
- # billing periods, plan phases and other derived fields.
426
+ # A subscription's own fields, with its plan and customer as references, as listed
427
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
428
+ # the subscription for its price intervals, billing periods, plan phases and other
429
+ # derived fields.
427
430
  sig do
428
431
  params(
429
432
  id: String,
@@ -59,9 +59,10 @@ module Orb
59
59
  end
60
60
  attr_writer :properties
61
61
 
62
- # The subscription in a standard webhook payload: its own fields, with its plan
63
- # and customer as references. Fetch the subscription for its price intervals,
64
- # billing periods, plan phases and other derived fields.
62
+ # A subscription's own fields, with its plan and customer as references, as listed
63
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
64
+ # the subscription for its price intervals, billing periods, plan phases and other
65
+ # derived fields.
65
66
  sig do
66
67
  returns(
67
68
  Orb::Webhooks::SubscriptionAccountingSyncSucceededStandardWebhookEvent::Subscription
@@ -112,9 +113,10 @@ module Orb
112
113
  # endpoint.
113
114
  payload_style:,
114
115
  properties:,
115
- # The subscription in a standard webhook payload: its own fields, with its plan
116
- # and customer as references. Fetch the subscription for its price intervals,
117
- # billing periods, plan phases and other derived fields.
116
+ # A subscription's own fields, with its plan and customer as references, as listed
117
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
118
+ # the subscription for its price intervals, billing periods, plan phases and other
119
+ # derived fields.
118
120
  subscription:,
119
121
  # The event this payload describes.
120
122
  type:
@@ -410,9 +412,10 @@ module Orb
410
412
  end
411
413
  attr_accessor :status
412
414
 
413
- # The subscription in a standard webhook payload: its own fields, with its plan
414
- # and customer as references. Fetch the subscription for its price intervals,
415
- # billing periods, plan phases and other derived fields.
415
+ # A subscription's own fields, with its plan and customer as references, as listed
416
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
417
+ # the subscription for its price intervals, billing periods, plan phases and other
418
+ # derived fields.
416
419
  sig do
417
420
  params(
418
421
  id: String,
@@ -44,9 +44,10 @@ module Orb
44
44
  end
45
45
  attr_writer :properties
46
46
 
47
- # The subscription in a standard webhook payload: its own fields, with its plan
48
- # and customer as references. Fetch the subscription for its price intervals,
49
- # billing periods, plan phases and other derived fields.
47
+ # A subscription's own fields, with its plan and customer as references, as listed
48
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
49
+ # the subscription for its price intervals, billing periods, plan phases and other
50
+ # derived fields.
50
51
  sig do
51
52
  returns(
52
53
  Orb::Webhooks::SubscriptionCancellationScheduledStandardWebhookEvent::Subscription
@@ -94,9 +95,10 @@ module Orb
94
95
  # endpoint.
95
96
  payload_style:,
96
97
  properties:,
97
- # The subscription in a standard webhook payload: its own fields, with its plan
98
- # and customer as references. Fetch the subscription for its price intervals,
99
- # billing periods, plan phases and other derived fields.
98
+ # A subscription's own fields, with its plan and customer as references, as listed
99
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
100
+ # the subscription for its price intervals, billing periods, plan phases and other
101
+ # derived fields.
100
102
  subscription:,
101
103
  # The event this payload describes.
102
104
  type:
@@ -245,9 +247,10 @@ module Orb
245
247
  end
246
248
  attr_accessor :status
247
249
 
248
- # The subscription in a standard webhook payload: its own fields, with its plan
249
- # and customer as references. Fetch the subscription for its price intervals,
250
- # billing periods, plan phases and other derived fields.
250
+ # A subscription's own fields, with its plan and customer as references, as listed
251
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
252
+ # the subscription for its price intervals, billing periods, plan phases and other
253
+ # derived fields.
251
254
  sig do
252
255
  params(
253
256
  id: String,
@@ -44,9 +44,10 @@ module Orb
44
44
  end
45
45
  attr_writer :properties
46
46
 
47
- # The subscription in a standard webhook payload: its own fields, with its plan
48
- # and customer as references. Fetch the subscription for its price intervals,
49
- # billing periods, plan phases and other derived fields.
47
+ # A subscription's own fields, with its plan and customer as references, as listed
48
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
49
+ # the subscription for its price intervals, billing periods, plan phases and other
50
+ # derived fields.
50
51
  sig do
51
52
  returns(
52
53
  Orb::Webhooks::SubscriptionCancellationUnscheduledStandardWebhookEvent::Subscription
@@ -94,9 +95,10 @@ module Orb
94
95
  # endpoint.
95
96
  payload_style:,
96
97
  properties:,
97
- # The subscription in a standard webhook payload: its own fields, with its plan
98
- # and customer as references. Fetch the subscription for its price intervals,
99
- # billing periods, plan phases and other derived fields.
98
+ # A subscription's own fields, with its plan and customer as references, as listed
99
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
100
+ # the subscription for its price intervals, billing periods, plan phases and other
101
+ # derived fields.
100
102
  subscription:,
101
103
  # The event this payload describes.
102
104
  type:
@@ -247,9 +249,10 @@ module Orb
247
249
  end
248
250
  attr_accessor :status
249
251
 
250
- # The subscription in a standard webhook payload: its own fields, with its plan
251
- # and customer as references. Fetch the subscription for its price intervals,
252
- # billing periods, plan phases and other derived fields.
252
+ # A subscription's own fields, with its plan and customer as references, as listed
253
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
254
+ # the subscription for its price intervals, billing periods, plan phases and other
255
+ # derived fields.
253
256
  sig do
254
257
  params(
255
258
  id: String,
@@ -44,9 +44,10 @@ module Orb
44
44
  end
45
45
  attr_writer :properties
46
46
 
47
- # The subscription in a standard webhook payload: its own fields, with its plan
48
- # and customer as references. Fetch the subscription for its price intervals,
49
- # billing periods, plan phases and other derived fields.
47
+ # A subscription's own fields, with its plan and customer as references, as listed
48
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
49
+ # the subscription for its price intervals, billing periods, plan phases and other
50
+ # derived fields.
50
51
  sig do
51
52
  returns(
52
53
  Orb::Webhooks::SubscriptionCostExceededStandardWebhookEvent::Subscription
@@ -94,9 +95,10 @@ module Orb
94
95
  # endpoint.
95
96
  payload_style:,
96
97
  properties:,
97
- # The subscription in a standard webhook payload: its own fields, with its plan
98
- # and customer as references. Fetch the subscription for its price intervals,
99
- # billing periods, plan phases and other derived fields.
98
+ # A subscription's own fields, with its plan and customer as references, as listed
99
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
100
+ # the subscription for its price intervals, billing periods, plan phases and other
101
+ # derived fields.
100
102
  subscription:,
101
103
  # The event this payload describes.
102
104
  type:
@@ -1110,9 +1112,10 @@ module Orb
1110
1112
  end
1111
1113
  attr_accessor :status
1112
1114
 
1113
- # The subscription in a standard webhook payload: its own fields, with its plan
1114
- # and customer as references. Fetch the subscription for its price intervals,
1115
- # billing periods, plan phases and other derived fields.
1115
+ # A subscription's own fields, with its plan and customer as references, as listed
1116
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
1117
+ # the subscription for its price intervals, billing periods, plan phases and other
1118
+ # derived fields.
1116
1119
  sig do
1117
1120
  params(
1118
1121
  id: String,