orb-billing 1.15.0 → 1.17.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 +15 -0
- data/README.md +1 -1
- data/lib/orb/models/billable_metric.rb +10 -1
- data/lib/orb/models/credit_block_list_invoices_response.rb +40 -3
- data/lib/orb/models/credit_block_retrieve_response.rb +38 -3
- data/lib/orb/models/customers/credit_list_by_external_id_response.rb +40 -3
- data/lib/orb/models/customers/credit_list_response.rb +40 -3
- data/lib/orb/models/event_ingest_response.rb +4 -6
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/billable_metric.rbi +10 -0
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +83 -4
- data/rbi/orb/models/credit_block_retrieve_response.rbi +81 -4
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +83 -4
- data/rbi/orb/models/customers/credit_list_response.rbi +83 -4
- data/rbi/orb/models/event_ingest_response.rbi +0 -6
- data/sig/orb/models/billable_metric.rbs +5 -0
- data/sig/orb/models/credit_block_list_invoices_response.rbs +22 -4
- data/sig/orb/models/credit_block_retrieve_response.rbs +22 -4
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +22 -4
- data/sig/orb/models/customers/credit_list_response.rbs +22 -4
- metadata +1 -1
|
@@ -18,7 +18,8 @@ module Orb
|
|
|
18
18
|
attr_accessor :balance
|
|
19
19
|
|
|
20
20
|
# How this credit block was created: `allocation` (a subscription's recurring
|
|
21
|
-
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
21
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
22
|
+
# `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
22
23
|
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
23
24
|
# off another block).
|
|
24
25
|
sig do
|
|
@@ -76,6 +77,25 @@ module Orb
|
|
|
76
77
|
end
|
|
77
78
|
attr_writer :credit_allocation
|
|
78
79
|
|
|
80
|
+
# The subscription commitment whose true-up rolled forward into this credit block.
|
|
81
|
+
# Present only when `credit_block_source` is `commitment`.
|
|
82
|
+
sig do
|
|
83
|
+
returns(
|
|
84
|
+
T.nilable(Orb::Models::CreditBlockRetrieveResponse::CreditCommitment)
|
|
85
|
+
)
|
|
86
|
+
end
|
|
87
|
+
attr_reader :credit_commitment
|
|
88
|
+
|
|
89
|
+
sig do
|
|
90
|
+
params(
|
|
91
|
+
credit_commitment:
|
|
92
|
+
T.nilable(
|
|
93
|
+
Orb::Models::CreditBlockRetrieveResponse::CreditCommitment::OrHash
|
|
94
|
+
)
|
|
95
|
+
).void
|
|
96
|
+
end
|
|
97
|
+
attr_writer :credit_commitment
|
|
98
|
+
|
|
79
99
|
# The Credit Block resource models prepaid credits within Orb.
|
|
80
100
|
sig do
|
|
81
101
|
params(
|
|
@@ -94,6 +114,10 @@ module Orb
|
|
|
94
114
|
credit_allocation:
|
|
95
115
|
T.nilable(
|
|
96
116
|
Orb::Models::CreditBlockRetrieveResponse::CreditAllocation::OrHash
|
|
117
|
+
),
|
|
118
|
+
credit_commitment:
|
|
119
|
+
T.nilable(
|
|
120
|
+
Orb::Models::CreditBlockRetrieveResponse::CreditCommitment::OrHash
|
|
97
121
|
)
|
|
98
122
|
).returns(T.attached_class)
|
|
99
123
|
end
|
|
@@ -101,7 +125,8 @@ module Orb
|
|
|
101
125
|
id:,
|
|
102
126
|
balance:,
|
|
103
127
|
# How this credit block was created: `allocation` (a subscription's recurring
|
|
104
|
-
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
128
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
129
|
+
# `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
105
130
|
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
106
131
|
# off another block).
|
|
107
132
|
credit_block_source:,
|
|
@@ -118,7 +143,10 @@ module Orb
|
|
|
118
143
|
status:,
|
|
119
144
|
# The credit allocation that funded a block. Extends the allocation resource
|
|
120
145
|
# serialized on prices with the catalog-item attribution of the funding price.
|
|
121
|
-
credit_allocation: nil
|
|
146
|
+
credit_allocation: nil,
|
|
147
|
+
# The subscription commitment whose true-up rolled forward into this credit block.
|
|
148
|
+
# Present only when `credit_block_source` is `commitment`.
|
|
149
|
+
credit_commitment: nil
|
|
122
150
|
)
|
|
123
151
|
end
|
|
124
152
|
|
|
@@ -140,6 +168,10 @@ module Orb
|
|
|
140
168
|
credit_allocation:
|
|
141
169
|
T.nilable(
|
|
142
170
|
Orb::Models::CreditBlockRetrieveResponse::CreditAllocation
|
|
171
|
+
),
|
|
172
|
+
credit_commitment:
|
|
173
|
+
T.nilable(
|
|
174
|
+
Orb::Models::CreditBlockRetrieveResponse::CreditCommitment
|
|
143
175
|
)
|
|
144
176
|
}
|
|
145
177
|
)
|
|
@@ -148,7 +180,8 @@ module Orb
|
|
|
148
180
|
end
|
|
149
181
|
|
|
150
182
|
# How this credit block was created: `allocation` (a subscription's recurring
|
|
151
|
-
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
183
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
184
|
+
# `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
152
185
|
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
153
186
|
# off another block).
|
|
154
187
|
module CreditBlockSource
|
|
@@ -173,6 +206,11 @@ module Orb
|
|
|
173
206
|
:top_up,
|
|
174
207
|
Orb::Models::CreditBlockRetrieveResponse::CreditBlockSource::TaggedSymbol
|
|
175
208
|
)
|
|
209
|
+
COMMITMENT =
|
|
210
|
+
T.let(
|
|
211
|
+
:commitment,
|
|
212
|
+
Orb::Models::CreditBlockRetrieveResponse::CreditBlockSource::TaggedSymbol
|
|
213
|
+
)
|
|
176
214
|
MANUAL =
|
|
177
215
|
T.let(
|
|
178
216
|
:manual,
|
|
@@ -616,6 +654,45 @@ module Orb
|
|
|
616
654
|
end
|
|
617
655
|
end
|
|
618
656
|
end
|
|
657
|
+
|
|
658
|
+
class CreditCommitment < Orb::Internal::Type::BaseModel
|
|
659
|
+
OrHash =
|
|
660
|
+
T.type_alias do
|
|
661
|
+
T.any(
|
|
662
|
+
Orb::Models::CreditBlockRetrieveResponse::CreditCommitment,
|
|
663
|
+
Orb::Internal::AnyHash
|
|
664
|
+
)
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
# The ID of the subscription commitment this block was rolled forward from.
|
|
668
|
+
sig { returns(String) }
|
|
669
|
+
attr_accessor :id
|
|
670
|
+
|
|
671
|
+
# The subscription the commitment belongs to.
|
|
672
|
+
sig { returns(T.nilable(String)) }
|
|
673
|
+
attr_accessor :subscription_id
|
|
674
|
+
|
|
675
|
+
# The subscription commitment whose true-up rolled forward into this credit block.
|
|
676
|
+
# Present only when `credit_block_source` is `commitment`.
|
|
677
|
+
sig do
|
|
678
|
+
params(id: String, subscription_id: T.nilable(String)).returns(
|
|
679
|
+
T.attached_class
|
|
680
|
+
)
|
|
681
|
+
end
|
|
682
|
+
def self.new(
|
|
683
|
+
# The ID of the subscription commitment this block was rolled forward from.
|
|
684
|
+
id:,
|
|
685
|
+
# The subscription the commitment belongs to.
|
|
686
|
+
subscription_id: nil
|
|
687
|
+
)
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
sig do
|
|
691
|
+
override.returns({ id: String, subscription_id: T.nilable(String) })
|
|
692
|
+
end
|
|
693
|
+
def to_hash
|
|
694
|
+
end
|
|
695
|
+
end
|
|
619
696
|
end
|
|
620
697
|
end
|
|
621
698
|
end
|
|
@@ -19,7 +19,8 @@ module Orb
|
|
|
19
19
|
attr_accessor :balance
|
|
20
20
|
|
|
21
21
|
# How this credit block was created: `allocation` (a subscription's recurring
|
|
22
|
-
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
22
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
23
|
+
# `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
23
24
|
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
24
25
|
# off another block).
|
|
25
26
|
sig do
|
|
@@ -85,6 +86,27 @@ module Orb
|
|
|
85
86
|
end
|
|
86
87
|
attr_writer :credit_allocation
|
|
87
88
|
|
|
89
|
+
# The subscription commitment whose true-up rolled forward into this credit block.
|
|
90
|
+
# Present only when `credit_block_source` is `commitment`.
|
|
91
|
+
sig do
|
|
92
|
+
returns(
|
|
93
|
+
T.nilable(
|
|
94
|
+
Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment
|
|
95
|
+
)
|
|
96
|
+
)
|
|
97
|
+
end
|
|
98
|
+
attr_reader :credit_commitment
|
|
99
|
+
|
|
100
|
+
sig do
|
|
101
|
+
params(
|
|
102
|
+
credit_commitment:
|
|
103
|
+
T.nilable(
|
|
104
|
+
Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment::OrHash
|
|
105
|
+
)
|
|
106
|
+
).void
|
|
107
|
+
end
|
|
108
|
+
attr_writer :credit_commitment
|
|
109
|
+
|
|
88
110
|
sig do
|
|
89
111
|
params(
|
|
90
112
|
id: String,
|
|
@@ -105,6 +127,10 @@ module Orb
|
|
|
105
127
|
credit_allocation:
|
|
106
128
|
T.nilable(
|
|
107
129
|
Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation::OrHash
|
|
130
|
+
),
|
|
131
|
+
credit_commitment:
|
|
132
|
+
T.nilable(
|
|
133
|
+
Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment::OrHash
|
|
108
134
|
)
|
|
109
135
|
).returns(T.attached_class)
|
|
110
136
|
end
|
|
@@ -112,7 +138,8 @@ module Orb
|
|
|
112
138
|
id:,
|
|
113
139
|
balance:,
|
|
114
140
|
# How this credit block was created: `allocation` (a subscription's recurring
|
|
115
|
-
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
141
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
142
|
+
# `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
116
143
|
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
117
144
|
# off another block).
|
|
118
145
|
credit_block_source:,
|
|
@@ -129,7 +156,10 @@ module Orb
|
|
|
129
156
|
status:,
|
|
130
157
|
# The credit allocation that funded a block. Extends the allocation resource
|
|
131
158
|
# serialized on prices with the catalog-item attribution of the funding price.
|
|
132
|
-
credit_allocation: nil
|
|
159
|
+
credit_allocation: nil,
|
|
160
|
+
# The subscription commitment whose true-up rolled forward into this credit block.
|
|
161
|
+
# Present only when `credit_block_source` is `commitment`.
|
|
162
|
+
credit_commitment: nil
|
|
133
163
|
)
|
|
134
164
|
end
|
|
135
165
|
|
|
@@ -154,6 +184,10 @@ module Orb
|
|
|
154
184
|
credit_allocation:
|
|
155
185
|
T.nilable(
|
|
156
186
|
Orb::Models::Customers::CreditListByExternalIDResponse::CreditAllocation
|
|
187
|
+
),
|
|
188
|
+
credit_commitment:
|
|
189
|
+
T.nilable(
|
|
190
|
+
Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment
|
|
157
191
|
)
|
|
158
192
|
}
|
|
159
193
|
)
|
|
@@ -162,7 +196,8 @@ module Orb
|
|
|
162
196
|
end
|
|
163
197
|
|
|
164
198
|
# How this credit block was created: `allocation` (a subscription's recurring
|
|
165
|
-
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
199
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
200
|
+
# `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
166
201
|
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
167
202
|
# off another block).
|
|
168
203
|
module CreditBlockSource
|
|
@@ -187,6 +222,11 @@ module Orb
|
|
|
187
222
|
:top_up,
|
|
188
223
|
Orb::Models::Customers::CreditListByExternalIDResponse::CreditBlockSource::TaggedSymbol
|
|
189
224
|
)
|
|
225
|
+
COMMITMENT =
|
|
226
|
+
T.let(
|
|
227
|
+
:commitment,
|
|
228
|
+
Orb::Models::Customers::CreditListByExternalIDResponse::CreditBlockSource::TaggedSymbol
|
|
229
|
+
)
|
|
190
230
|
MANUAL =
|
|
191
231
|
T.let(
|
|
192
232
|
:manual,
|
|
@@ -614,6 +654,45 @@ module Orb
|
|
|
614
654
|
end
|
|
615
655
|
end
|
|
616
656
|
end
|
|
657
|
+
|
|
658
|
+
class CreditCommitment < Orb::Internal::Type::BaseModel
|
|
659
|
+
OrHash =
|
|
660
|
+
T.type_alias do
|
|
661
|
+
T.any(
|
|
662
|
+
Orb::Models::Customers::CreditListByExternalIDResponse::CreditCommitment,
|
|
663
|
+
Orb::Internal::AnyHash
|
|
664
|
+
)
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
# The ID of the subscription commitment this block was rolled forward from.
|
|
668
|
+
sig { returns(String) }
|
|
669
|
+
attr_accessor :id
|
|
670
|
+
|
|
671
|
+
# The subscription the commitment belongs to.
|
|
672
|
+
sig { returns(T.nilable(String)) }
|
|
673
|
+
attr_accessor :subscription_id
|
|
674
|
+
|
|
675
|
+
# The subscription commitment whose true-up rolled forward into this credit block.
|
|
676
|
+
# Present only when `credit_block_source` is `commitment`.
|
|
677
|
+
sig do
|
|
678
|
+
params(id: String, subscription_id: T.nilable(String)).returns(
|
|
679
|
+
T.attached_class
|
|
680
|
+
)
|
|
681
|
+
end
|
|
682
|
+
def self.new(
|
|
683
|
+
# The ID of the subscription commitment this block was rolled forward from.
|
|
684
|
+
id:,
|
|
685
|
+
# The subscription the commitment belongs to.
|
|
686
|
+
subscription_id: nil
|
|
687
|
+
)
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
sig do
|
|
691
|
+
override.returns({ id: String, subscription_id: T.nilable(String) })
|
|
692
|
+
end
|
|
693
|
+
def to_hash
|
|
694
|
+
end
|
|
695
|
+
end
|
|
617
696
|
end
|
|
618
697
|
end
|
|
619
698
|
end
|
|
@@ -19,7 +19,8 @@ module Orb
|
|
|
19
19
|
attr_accessor :balance
|
|
20
20
|
|
|
21
21
|
# How this credit block was created: `allocation` (a subscription's recurring
|
|
22
|
-
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
22
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
23
|
+
# `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
23
24
|
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
24
25
|
# off another block).
|
|
25
26
|
sig do
|
|
@@ -81,6 +82,27 @@ module Orb
|
|
|
81
82
|
end
|
|
82
83
|
attr_writer :credit_allocation
|
|
83
84
|
|
|
85
|
+
# The subscription commitment whose true-up rolled forward into this credit block.
|
|
86
|
+
# Present only when `credit_block_source` is `commitment`.
|
|
87
|
+
sig do
|
|
88
|
+
returns(
|
|
89
|
+
T.nilable(
|
|
90
|
+
Orb::Models::Customers::CreditListResponse::CreditCommitment
|
|
91
|
+
)
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
attr_reader :credit_commitment
|
|
95
|
+
|
|
96
|
+
sig do
|
|
97
|
+
params(
|
|
98
|
+
credit_commitment:
|
|
99
|
+
T.nilable(
|
|
100
|
+
Orb::Models::Customers::CreditListResponse::CreditCommitment::OrHash
|
|
101
|
+
)
|
|
102
|
+
).void
|
|
103
|
+
end
|
|
104
|
+
attr_writer :credit_commitment
|
|
105
|
+
|
|
84
106
|
sig do
|
|
85
107
|
params(
|
|
86
108
|
id: String,
|
|
@@ -101,6 +123,10 @@ module Orb
|
|
|
101
123
|
credit_allocation:
|
|
102
124
|
T.nilable(
|
|
103
125
|
Orb::Models::Customers::CreditListResponse::CreditAllocation::OrHash
|
|
126
|
+
),
|
|
127
|
+
credit_commitment:
|
|
128
|
+
T.nilable(
|
|
129
|
+
Orb::Models::Customers::CreditListResponse::CreditCommitment::OrHash
|
|
104
130
|
)
|
|
105
131
|
).returns(T.attached_class)
|
|
106
132
|
end
|
|
@@ -108,7 +134,8 @@ module Orb
|
|
|
108
134
|
id:,
|
|
109
135
|
balance:,
|
|
110
136
|
# How this credit block was created: `allocation` (a subscription's recurring
|
|
111
|
-
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
137
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
138
|
+
# `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
112
139
|
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
113
140
|
# off another block).
|
|
114
141
|
credit_block_source:,
|
|
@@ -125,7 +152,10 @@ module Orb
|
|
|
125
152
|
status:,
|
|
126
153
|
# The credit allocation that funded a block. Extends the allocation resource
|
|
127
154
|
# serialized on prices with the catalog-item attribution of the funding price.
|
|
128
|
-
credit_allocation: nil
|
|
155
|
+
credit_allocation: nil,
|
|
156
|
+
# The subscription commitment whose true-up rolled forward into this credit block.
|
|
157
|
+
# Present only when `credit_block_source` is `commitment`.
|
|
158
|
+
credit_commitment: nil
|
|
129
159
|
)
|
|
130
160
|
end
|
|
131
161
|
|
|
@@ -148,6 +178,10 @@ module Orb
|
|
|
148
178
|
credit_allocation:
|
|
149
179
|
T.nilable(
|
|
150
180
|
Orb::Models::Customers::CreditListResponse::CreditAllocation
|
|
181
|
+
),
|
|
182
|
+
credit_commitment:
|
|
183
|
+
T.nilable(
|
|
184
|
+
Orb::Models::Customers::CreditListResponse::CreditCommitment
|
|
151
185
|
)
|
|
152
186
|
}
|
|
153
187
|
)
|
|
@@ -156,7 +190,8 @@ module Orb
|
|
|
156
190
|
end
|
|
157
191
|
|
|
158
192
|
# How this credit block was created: `allocation` (a subscription's recurring
|
|
159
|
-
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
193
|
+
# credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
194
|
+
# `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
160
195
|
# `manual` (a manual credit ledger increment, including credits voided or expired
|
|
161
196
|
# off another block).
|
|
162
197
|
module CreditBlockSource
|
|
@@ -181,6 +216,11 @@ module Orb
|
|
|
181
216
|
:top_up,
|
|
182
217
|
Orb::Models::Customers::CreditListResponse::CreditBlockSource::TaggedSymbol
|
|
183
218
|
)
|
|
219
|
+
COMMITMENT =
|
|
220
|
+
T.let(
|
|
221
|
+
:commitment,
|
|
222
|
+
Orb::Models::Customers::CreditListResponse::CreditBlockSource::TaggedSymbol
|
|
223
|
+
)
|
|
184
224
|
MANUAL =
|
|
185
225
|
T.let(
|
|
186
226
|
:manual,
|
|
@@ -605,6 +645,45 @@ module Orb
|
|
|
605
645
|
end
|
|
606
646
|
end
|
|
607
647
|
end
|
|
648
|
+
|
|
649
|
+
class CreditCommitment < Orb::Internal::Type::BaseModel
|
|
650
|
+
OrHash =
|
|
651
|
+
T.type_alias do
|
|
652
|
+
T.any(
|
|
653
|
+
Orb::Models::Customers::CreditListResponse::CreditCommitment,
|
|
654
|
+
Orb::Internal::AnyHash
|
|
655
|
+
)
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
# The ID of the subscription commitment this block was rolled forward from.
|
|
659
|
+
sig { returns(String) }
|
|
660
|
+
attr_accessor :id
|
|
661
|
+
|
|
662
|
+
# The subscription the commitment belongs to.
|
|
663
|
+
sig { returns(T.nilable(String)) }
|
|
664
|
+
attr_accessor :subscription_id
|
|
665
|
+
|
|
666
|
+
# The subscription commitment whose true-up rolled forward into this credit block.
|
|
667
|
+
# Present only when `credit_block_source` is `commitment`.
|
|
668
|
+
sig do
|
|
669
|
+
params(id: String, subscription_id: T.nilable(String)).returns(
|
|
670
|
+
T.attached_class
|
|
671
|
+
)
|
|
672
|
+
end
|
|
673
|
+
def self.new(
|
|
674
|
+
# The ID of the subscription commitment this block was rolled forward from.
|
|
675
|
+
id:,
|
|
676
|
+
# The subscription the commitment belongs to.
|
|
677
|
+
subscription_id: nil
|
|
678
|
+
)
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
sig do
|
|
682
|
+
override.returns({ id: String, subscription_id: T.nilable(String) })
|
|
683
|
+
end
|
|
684
|
+
def to_hash
|
|
685
|
+
end
|
|
686
|
+
end
|
|
608
687
|
end
|
|
609
688
|
end
|
|
610
689
|
end
|
|
@@ -15,8 +15,6 @@ module Orb
|
|
|
15
15
|
end
|
|
16
16
|
attr_accessor :validation_failed
|
|
17
17
|
|
|
18
|
-
# Optional debug information (only present when debug=true is passed to the
|
|
19
|
-
# endpoint). Contains ingested and duplicate event idempotency keys.
|
|
20
18
|
sig { returns(T.nilable(Orb::Models::EventIngestResponse::Debug)) }
|
|
21
19
|
attr_reader :debug
|
|
22
20
|
|
|
@@ -40,8 +38,6 @@ module Orb
|
|
|
40
38
|
# Contains all failing validation events. In the case of a 200, this array will
|
|
41
39
|
# always be empty. This field will always be present.
|
|
42
40
|
validation_failed:,
|
|
43
|
-
# Optional debug information (only present when debug=true is passed to the
|
|
44
|
-
# endpoint). Contains ingested and duplicate event idempotency keys.
|
|
45
41
|
debug: nil
|
|
46
42
|
)
|
|
47
43
|
end
|
|
@@ -115,8 +111,6 @@ module Orb
|
|
|
115
111
|
sig { returns(T::Array[String]) }
|
|
116
112
|
attr_accessor :ingested
|
|
117
113
|
|
|
118
|
-
# Optional debug information (only present when debug=true is passed to the
|
|
119
|
-
# endpoint). Contains ingested and duplicate event idempotency keys.
|
|
120
114
|
sig do
|
|
121
115
|
params(
|
|
122
116
|
duplicate: T::Array[String],
|
|
@@ -7,6 +7,7 @@ module Orb
|
|
|
7
7
|
item: Orb::Item,
|
|
8
8
|
metadata: ::Hash[Symbol, String],
|
|
9
9
|
name: String,
|
|
10
|
+
sql: String,
|
|
10
11
|
status: Orb::Models::BillableMetric::status,
|
|
11
12
|
parameter_definitions: ::Array[::Hash[Symbol, top]]?
|
|
12
13
|
}
|
|
@@ -22,6 +23,8 @@ module Orb
|
|
|
22
23
|
|
|
23
24
|
attr_accessor name: String
|
|
24
25
|
|
|
26
|
+
attr_accessor sql: String
|
|
27
|
+
|
|
25
28
|
attr_accessor status: Orb::Models::BillableMetric::status
|
|
26
29
|
|
|
27
30
|
attr_accessor parameter_definitions: ::Array[::Hash[Symbol, top]]?
|
|
@@ -32,6 +35,7 @@ module Orb
|
|
|
32
35
|
item: Orb::Item,
|
|
33
36
|
metadata: ::Hash[Symbol, String],
|
|
34
37
|
name: String,
|
|
38
|
+
sql: String,
|
|
35
39
|
status: Orb::Models::BillableMetric::status,
|
|
36
40
|
?parameter_definitions: ::Array[::Hash[Symbol, top]]?
|
|
37
41
|
) -> void
|
|
@@ -42,6 +46,7 @@ module Orb
|
|
|
42
46
|
item: Orb::Item,
|
|
43
47
|
metadata: ::Hash[Symbol, String],
|
|
44
48
|
name: String,
|
|
49
|
+
sql: String,
|
|
45
50
|
status: Orb::Models::BillableMetric::status,
|
|
46
51
|
parameter_definitions: ::Array[::Hash[Symbol, top]]?
|
|
47
52
|
}
|
|
@@ -33,7 +33,8 @@ module Orb
|
|
|
33
33
|
metadata: ::Hash[Symbol, String],
|
|
34
34
|
per_unit_cost_basis: String?,
|
|
35
35
|
status: Orb::Models::CreditBlockListInvoicesResponse::Block::status,
|
|
36
|
-
credit_allocation: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation
|
|
36
|
+
credit_allocation: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation?,
|
|
37
|
+
credit_commitment: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditCommitment?
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
class Block < Orb::Internal::Type::BaseModel
|
|
@@ -59,6 +60,8 @@ module Orb
|
|
|
59
60
|
|
|
60
61
|
attr_accessor credit_allocation: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation?
|
|
61
62
|
|
|
63
|
+
attr_accessor credit_commitment: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditCommitment?
|
|
64
|
+
|
|
62
65
|
def initialize: (
|
|
63
66
|
id: String,
|
|
64
67
|
balance: Float,
|
|
@@ -70,7 +73,8 @@ module Orb
|
|
|
70
73
|
metadata: ::Hash[Symbol, String],
|
|
71
74
|
per_unit_cost_basis: String?,
|
|
72
75
|
status: Orb::Models::CreditBlockListInvoicesResponse::Block::status,
|
|
73
|
-
?credit_allocation: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation
|
|
76
|
+
?credit_allocation: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation?,
|
|
77
|
+
?credit_commitment: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditCommitment?
|
|
74
78
|
) -> void
|
|
75
79
|
|
|
76
80
|
def to_hash: -> {
|
|
@@ -84,16 +88,18 @@ module Orb
|
|
|
84
88
|
metadata: ::Hash[Symbol, String],
|
|
85
89
|
per_unit_cost_basis: String?,
|
|
86
90
|
status: Orb::Models::CreditBlockListInvoicesResponse::Block::status,
|
|
87
|
-
credit_allocation: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation
|
|
91
|
+
credit_allocation: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation?,
|
|
92
|
+
credit_commitment: Orb::Models::CreditBlockListInvoicesResponse::Block::CreditCommitment?
|
|
88
93
|
}
|
|
89
94
|
|
|
90
|
-
type credit_block_source = :allocation | :top_up | :manual
|
|
95
|
+
type credit_block_source = :allocation | :top_up | :commitment | :manual
|
|
91
96
|
|
|
92
97
|
module CreditBlockSource
|
|
93
98
|
extend Orb::Internal::Type::Enum
|
|
94
99
|
|
|
95
100
|
ALLOCATION: :allocation
|
|
96
101
|
TOP_UP: :top_up
|
|
102
|
+
COMMITMENT: :commitment
|
|
97
103
|
MANUAL: :manual
|
|
98
104
|
|
|
99
105
|
def self?.values: -> ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::credit_block_source]
|
|
@@ -261,6 +267,18 @@ module Orb
|
|
|
261
267
|
end
|
|
262
268
|
end
|
|
263
269
|
end
|
|
270
|
+
|
|
271
|
+
type credit_commitment = { id: String, subscription_id: String? }
|
|
272
|
+
|
|
273
|
+
class CreditCommitment < Orb::Internal::Type::BaseModel
|
|
274
|
+
attr_accessor id: String
|
|
275
|
+
|
|
276
|
+
attr_accessor subscription_id: String?
|
|
277
|
+
|
|
278
|
+
def initialize: (id: String, ?subscription_id: String?) -> void
|
|
279
|
+
|
|
280
|
+
def to_hash: -> { id: String, subscription_id: String? }
|
|
281
|
+
end
|
|
264
282
|
end
|
|
265
283
|
|
|
266
284
|
type invoice =
|
|
@@ -12,7 +12,8 @@ module Orb
|
|
|
12
12
|
metadata: ::Hash[Symbol, String],
|
|
13
13
|
per_unit_cost_basis: String?,
|
|
14
14
|
status: Orb::Models::CreditBlockRetrieveResponse::status,
|
|
15
|
-
credit_allocation: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation
|
|
15
|
+
credit_allocation: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation?,
|
|
16
|
+
credit_commitment: Orb::Models::CreditBlockRetrieveResponse::CreditCommitment?
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
class CreditBlockRetrieveResponse < Orb::Internal::Type::BaseModel
|
|
@@ -38,6 +39,8 @@ module Orb
|
|
|
38
39
|
|
|
39
40
|
attr_accessor credit_allocation: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation?
|
|
40
41
|
|
|
42
|
+
attr_accessor credit_commitment: Orb::Models::CreditBlockRetrieveResponse::CreditCommitment?
|
|
43
|
+
|
|
41
44
|
def initialize: (
|
|
42
45
|
id: String,
|
|
43
46
|
balance: Float,
|
|
@@ -49,7 +52,8 @@ module Orb
|
|
|
49
52
|
metadata: ::Hash[Symbol, String],
|
|
50
53
|
per_unit_cost_basis: String?,
|
|
51
54
|
status: Orb::Models::CreditBlockRetrieveResponse::status,
|
|
52
|
-
?credit_allocation: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation
|
|
55
|
+
?credit_allocation: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation?,
|
|
56
|
+
?credit_commitment: Orb::Models::CreditBlockRetrieveResponse::CreditCommitment?
|
|
53
57
|
) -> void
|
|
54
58
|
|
|
55
59
|
def to_hash: -> {
|
|
@@ -63,16 +67,18 @@ module Orb
|
|
|
63
67
|
metadata: ::Hash[Symbol, String],
|
|
64
68
|
per_unit_cost_basis: String?,
|
|
65
69
|
status: Orb::Models::CreditBlockRetrieveResponse::status,
|
|
66
|
-
credit_allocation: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation
|
|
70
|
+
credit_allocation: Orb::Models::CreditBlockRetrieveResponse::CreditAllocation?,
|
|
71
|
+
credit_commitment: Orb::Models::CreditBlockRetrieveResponse::CreditCommitment?
|
|
67
72
|
}
|
|
68
73
|
|
|
69
|
-
type credit_block_source = :allocation | :top_up | :manual
|
|
74
|
+
type credit_block_source = :allocation | :top_up | :commitment | :manual
|
|
70
75
|
|
|
71
76
|
module CreditBlockSource
|
|
72
77
|
extend Orb::Internal::Type::Enum
|
|
73
78
|
|
|
74
79
|
ALLOCATION: :allocation
|
|
75
80
|
TOP_UP: :top_up
|
|
81
|
+
COMMITMENT: :commitment
|
|
76
82
|
MANUAL: :manual
|
|
77
83
|
|
|
78
84
|
def self?.values: -> ::Array[Orb::Models::CreditBlockRetrieveResponse::credit_block_source]
|
|
@@ -240,6 +246,18 @@ module Orb
|
|
|
240
246
|
end
|
|
241
247
|
end
|
|
242
248
|
end
|
|
249
|
+
|
|
250
|
+
type credit_commitment = { id: String, subscription_id: String? }
|
|
251
|
+
|
|
252
|
+
class CreditCommitment < Orb::Internal::Type::BaseModel
|
|
253
|
+
attr_accessor id: String
|
|
254
|
+
|
|
255
|
+
attr_accessor subscription_id: String?
|
|
256
|
+
|
|
257
|
+
def initialize: (id: String, ?subscription_id: String?) -> void
|
|
258
|
+
|
|
259
|
+
def to_hash: -> { id: String, subscription_id: String? }
|
|
260
|
+
end
|
|
243
261
|
end
|
|
244
262
|
end
|
|
245
263
|
end
|