orb-billing 1.50.0 → 1.52.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 (34) 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_accounting_sync_failed_webhook_event.rb +7 -1
  5. data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +7 -1
  6. data/lib/orb/models/credit_block_list_invoices_response.rb +7 -1
  7. data/lib/orb/models/credit_block_retrieve_response.rb +7 -1
  8. data/lib/orb/models/credit_block_update_response.rb +7 -1
  9. data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +7 -1
  10. data/lib/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rb +7 -1
  11. data/lib/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rb +7 -1
  12. data/lib/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rb +7 -1
  13. data/lib/orb/resources/credit_blocks.rb +2 -1
  14. data/lib/orb/version.rb +1 -1
  15. data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +11 -0
  16. data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +11 -0
  17. data/rbi/orb/models/credit_block_list_invoices_response.rbi +11 -0
  18. data/rbi/orb/models/credit_block_retrieve_response.rbi +11 -0
  19. data/rbi/orb/models/credit_block_update_response.rbi +11 -0
  20. data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +11 -0
  21. data/rbi/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbi +11 -0
  22. data/rbi/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbi +11 -0
  23. data/rbi/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbi +11 -0
  24. data/rbi/orb/resources/credit_blocks.rbi +2 -1
  25. data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +2 -1
  26. data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +2 -1
  27. data/sig/orb/models/credit_block_list_invoices_response.rbs +2 -1
  28. data/sig/orb/models/credit_block_retrieve_response.rbs +2 -1
  29. data/sig/orb/models/credit_block_update_response.rbs +2 -1
  30. data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +2 -1
  31. data/sig/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbs +2 -1
  32. data/sig/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbs +2 -1
  33. data/sig/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbs +2 -1
  34. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 686dfa30d24bcb66cbebd57b0100bda5047ef75ec9d37f56311c84260688e8d7
4
- data.tar.gz: 14587b5ac749808d4e97b9a4ed1bb48f3f9ae063fc88ea4dc868995e77089ea4
3
+ metadata.gz: cce17c745ddc15b16ebe1d23688847f71b279cabe10f8d5543a437863e887e90
4
+ data.tar.gz: 97a8b25b6b8a0c60cb0689a327f8c113c21b279618ee70b909188378d6051da5
5
5
  SHA512:
6
- metadata.gz: '047899ee6b80686d8b5458208c7e98d5410f2180857a9d08448b847e96b0e0fd787570e72d4719b4ac1204522a4e6bf58a24c575ee7b9bee4eff928b761f7ab3'
7
- data.tar.gz: 9168a1456c7442b31c7e40d96053eaedd5bffb355d92cc4a58ddcb60af368e8f22a8e6eb9b9676cdfe7b6faf505592aeaf1023d52e3bc156fe637285cb621c7f
6
+ metadata.gz: 6be489bfae61be4efac80c81621dcbf01beb80f4ea08ff1846177dc0f7b387545cde6591d48610a52fc70e24b092887fd2d2aff6e208d49bc3b6ae73c4dd0e97
7
+ data.tar.gz: eb34946ce0dbf3f13f0db9ef286637e9241972eea7296e5ccfe8b29d618760d1785d9955ca6ef7d3f91347780c1a82642cbb84c8fcecba64d08b272e8fad0bad
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.52.0](https://github.com/orbcorp/orb-ruby/compare/v1.51.0...v1.52.0) (2026-10-31)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** add void status for deleted credit blocks in CreditBlock schema ([7769947](https://github.com/orbcorp/orb-ruby/commit/7769947b098add28640d65c7600d7939660b3a46))
9
+
10
+ ## [1.51.0](https://github.com/orbcorp/orb-ruby/compare/v1.50.0...v1.51.0) (2026-10-30)
11
+
12
+
13
+ ### Features
14
+
15
+ * **api:** api update ([01f12f2](https://github.com/orbcorp/orb-ruby/commit/01f12f276b97281beb60479d09992f5165dc24df))
16
+
3
17
  ## [1.50.0](https://github.com/orbcorp/orb-ruby/compare/v1.49.0...v1.50.0) (2026-10-29)
4
18
 
5
19
 
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "orb-billing", "~> 1.50.0"
18
+ gem "orb-billing", "~> 1.52.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -201,6 +201,8 @@ module Orb
201
201
  required :per_unit_cost_basis, String, nil?: true
202
202
 
203
203
  # @!attribute status
204
+ # `void` means the credit block was deleted. A voided block's `balance` is
205
+ # always 0.
204
206
  #
205
207
  # @return [Symbol, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status]
206
208
  required :status, enum: -> { Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status }
@@ -248,7 +250,7 @@ module Orb
248
250
  #
249
251
  # @param per_unit_cost_basis [String, nil]
250
252
  #
251
- # @param status [Symbol, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status]
253
+ # @param status [Symbol, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status] `void` means the credit block was deleted. A voided block's `balance` is always
252
254
  #
253
255
  # @param credit_allocation [Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation, nil] The credit allocation that funded a block. Extends the allocation resource
254
256
  #
@@ -329,12 +331,16 @@ module Orb
329
331
  end
330
332
  end
331
333
 
334
+ # `void` means the credit block was deleted. A voided block's `balance` is
335
+ # always 0.
336
+ #
332
337
  # @see Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block#status
333
338
  module Status
334
339
  extend Orb::Internal::Type::Enum
335
340
 
336
341
  ACTIVE = :active
337
342
  PENDING_PAYMENT = :pending_payment
343
+ VOID = :void
338
344
 
339
345
  # @!method self.values
340
346
  # @return [Array<Symbol>]
@@ -201,6 +201,8 @@ module Orb
201
201
  required :per_unit_cost_basis, String, nil?: true
202
202
 
203
203
  # @!attribute status
204
+ # `void` means the credit block was deleted. A voided block's `balance` is
205
+ # always 0.
204
206
  #
205
207
  # @return [Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Block::Status]
206
208
  required :status, enum: -> { Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block::Status }
@@ -248,7 +250,7 @@ module Orb
248
250
  #
249
251
  # @param per_unit_cost_basis [String, nil]
250
252
  #
251
- # @param status [Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Block::Status]
253
+ # @param status [Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Block::Status] `void` means the credit block was deleted. A voided block's `balance` is always
252
254
  #
253
255
  # @param credit_allocation [Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Block::CreditAllocation, nil] The credit allocation that funded a block. Extends the allocation resource
254
256
  #
@@ -330,12 +332,16 @@ module Orb
330
332
  end
331
333
  end
332
334
 
335
+ # `void` means the credit block was deleted. A voided block's `balance` is
336
+ # always 0.
337
+ #
333
338
  # @see Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Block#status
334
339
  module Status
335
340
  extend Orb::Internal::Type::Enum
336
341
 
337
342
  ACTIVE = :active
338
343
  PENDING_PAYMENT = :pending_payment
344
+ VOID = :void
339
345
 
340
346
  # @!method self.values
341
347
  # @return [Array<Symbol>]
@@ -80,6 +80,8 @@ module Orb
80
80
  required :per_unit_cost_basis, String, nil?: true
81
81
 
82
82
  # @!attribute status
83
+ # `void` means the credit block was deleted. A voided block's `balance` is
84
+ # always 0.
83
85
  #
84
86
  # @return [Symbol, Orb::Models::CreditBlockListInvoicesResponse::Block::Status]
85
87
  required :status, enum: -> { Orb::Models::CreditBlockListInvoicesResponse::Block::Status }
@@ -126,7 +128,7 @@ module Orb
126
128
  #
127
129
  # @param per_unit_cost_basis [String, nil]
128
130
  #
129
- # @param status [Symbol, Orb::Models::CreditBlockListInvoicesResponse::Block::Status]
131
+ # @param status [Symbol, Orb::Models::CreditBlockListInvoicesResponse::Block::Status] `void` means the credit block was deleted. A voided block's `balance` is always
130
132
  #
131
133
  # @param credit_allocation [Orb::Models::CreditBlockListInvoicesResponse::Block::CreditAllocation, nil] The credit allocation that funded a block. Extends the allocation resource
132
134
  #
@@ -207,12 +209,16 @@ module Orb
207
209
  end
208
210
  end
209
211
 
212
+ # `void` means the credit block was deleted. A voided block's `balance` is
213
+ # always 0.
214
+ #
210
215
  # @see Orb::Models::CreditBlockListInvoicesResponse::Block#status
211
216
  module Status
212
217
  extend Orb::Internal::Type::Enum
213
218
 
214
219
  ACTIVE = :active
215
220
  PENDING_PAYMENT = :pending_payment
221
+ VOID = :void
216
222
 
217
223
  # @!method self.values
218
224
  # @return [Array<Symbol>]
@@ -59,6 +59,8 @@ module Orb
59
59
  required :per_unit_cost_basis, String, nil?: true
60
60
 
61
61
  # @!attribute status
62
+ # `void` means the credit block was deleted. A voided block's `balance` is
63
+ # always 0.
62
64
  #
63
65
  # @return [Symbol, Orb::Models::CreditBlockRetrieveResponse::Status]
64
66
  required :status, enum: -> { Orb::Models::CreditBlockRetrieveResponse::Status }
@@ -101,7 +103,7 @@ module Orb
101
103
  #
102
104
  # @param per_unit_cost_basis [String, nil]
103
105
  #
104
- # @param status [Symbol, Orb::Models::CreditBlockRetrieveResponse::Status]
106
+ # @param status [Symbol, Orb::Models::CreditBlockRetrieveResponse::Status] `void` means the credit block was deleted. A voided block's `balance` is always
105
107
  #
106
108
  # @param credit_allocation [Orb::Models::CreditBlockRetrieveResponse::CreditAllocation, nil] The credit allocation that funded a block. Extends the allocation resource
107
109
  #
@@ -182,12 +184,16 @@ module Orb
182
184
  end
183
185
  end
184
186
 
187
+ # `void` means the credit block was deleted. A voided block's `balance` is
188
+ # always 0.
189
+ #
185
190
  # @see Orb::Models::CreditBlockRetrieveResponse#status
186
191
  module Status
187
192
  extend Orb::Internal::Type::Enum
188
193
 
189
194
  ACTIVE = :active
190
195
  PENDING_PAYMENT = :pending_payment
196
+ VOID = :void
191
197
 
192
198
  # @!method self.values
193
199
  # @return [Array<Symbol>]
@@ -59,6 +59,8 @@ module Orb
59
59
  required :per_unit_cost_basis, String, nil?: true
60
60
 
61
61
  # @!attribute status
62
+ # `void` means the credit block was deleted. A voided block's `balance` is
63
+ # always 0.
62
64
  #
63
65
  # @return [Symbol, Orb::Models::CreditBlockUpdateResponse::Status]
64
66
  required :status, enum: -> { Orb::Models::CreditBlockUpdateResponse::Status }
@@ -101,7 +103,7 @@ module Orb
101
103
  #
102
104
  # @param per_unit_cost_basis [String, nil]
103
105
  #
104
- # @param status [Symbol, Orb::Models::CreditBlockUpdateResponse::Status]
106
+ # @param status [Symbol, Orb::Models::CreditBlockUpdateResponse::Status] `void` means the credit block was deleted. A voided block's `balance` is always
105
107
  #
106
108
  # @param credit_allocation [Orb::Models::CreditBlockUpdateResponse::CreditAllocation, nil] The credit allocation that funded a block. Extends the allocation resource
107
109
  #
@@ -182,12 +184,16 @@ module Orb
182
184
  end
183
185
  end
184
186
 
187
+ # `void` means the credit block was deleted. A voided block's `balance` is
188
+ # always 0.
189
+ #
185
190
  # @see Orb::Models::CreditBlockUpdateResponse#status
186
191
  module Status
187
192
  extend Orb::Internal::Type::Enum
188
193
 
189
194
  ACTIVE = :active
190
195
  PENDING_PAYMENT = :pending_payment
196
+ VOID = :void
191
197
 
192
198
  # @!method self.values
193
199
  # @return [Array<Symbol>]
@@ -166,6 +166,8 @@ module Orb
166
166
  required :per_unit_cost_basis, String, nil?: true
167
167
 
168
168
  # @!attribute status
169
+ # `void` means the credit block was deleted. A voided block's `balance` is
170
+ # always 0.
169
171
  #
170
172
  # @return [Symbol, Orb::Models::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block::Status]
171
173
  required :status, enum: -> { Orb::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block::Status }
@@ -217,7 +219,7 @@ module Orb
217
219
  #
218
220
  # @param per_unit_cost_basis [String, nil]
219
221
  #
220
- # @param status [Symbol, Orb::Models::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block::Status]
222
+ # @param status [Symbol, Orb::Models::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block::Status] `void` means the credit block was deleted. A voided block's `balance` is always
221
223
  #
222
224
  # @param credit_allocation [Orb::Models::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block::CreditAllocation, nil] The credit allocation that funded a block. Extends the allocation resource
223
225
  #
@@ -300,12 +302,16 @@ module Orb
300
302
  end
301
303
  end
302
304
 
305
+ # `void` means the credit block was deleted. A voided block's `balance` is
306
+ # always 0.
307
+ #
303
308
  # @see Orb::Models::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block#status
304
309
  module Status
305
310
  extend Orb::Internal::Type::Enum
306
311
 
307
312
  ACTIVE = :active
308
313
  PENDING_PAYMENT = :pending_payment
314
+ VOID = :void
309
315
 
310
316
  # @!method self.values
311
317
  # @return [Array<Symbol>]
@@ -205,6 +205,8 @@ module Orb
205
205
  required :per_unit_cost_basis, String, nil?: true
206
206
 
207
207
  # @!attribute status
208
+ # `void` means the credit block was deleted. A voided block's `balance` is
209
+ # always 0.
208
210
  #
209
211
  # @return [Symbol, Orb::Models::Webhooks::CreditBlockAccountingSyncFailedStandardWebhookEvent::Block::Status]
210
212
  required :status,
@@ -257,7 +259,7 @@ module Orb
257
259
  #
258
260
  # @param per_unit_cost_basis [String, nil]
259
261
  #
260
- # @param status [Symbol, Orb::Models::Webhooks::CreditBlockAccountingSyncFailedStandardWebhookEvent::Block::Status]
262
+ # @param status [Symbol, Orb::Models::Webhooks::CreditBlockAccountingSyncFailedStandardWebhookEvent::Block::Status] `void` means the credit block was deleted. A voided block's `balance` is always
261
263
  #
262
264
  # @param credit_allocation [Orb::Models::Webhooks::CreditBlockAccountingSyncFailedStandardWebhookEvent::Block::CreditAllocation, nil] The credit allocation that funded a block. Extends the allocation resource
263
265
  #
@@ -340,12 +342,16 @@ module Orb
340
342
  end
341
343
  end
342
344
 
345
+ # `void` means the credit block was deleted. A voided block's `balance` is
346
+ # always 0.
347
+ #
343
348
  # @see Orb::Models::Webhooks::CreditBlockAccountingSyncFailedStandardWebhookEvent::Block#status
344
349
  module Status
345
350
  extend Orb::Internal::Type::Enum
346
351
 
347
352
  ACTIVE = :active
348
353
  PENDING_PAYMENT = :pending_payment
354
+ VOID = :void
349
355
 
350
356
  # @!method self.values
351
357
  # @return [Array<Symbol>]
@@ -205,6 +205,8 @@ module Orb
205
205
  required :per_unit_cost_basis, String, nil?: true
206
206
 
207
207
  # @!attribute status
208
+ # `void` means the credit block was deleted. A voided block's `balance` is
209
+ # always 0.
208
210
  #
209
211
  # @return [Symbol, Orb::Models::Webhooks::CreditBlockAccountingSyncSucceededStandardWebhookEvent::Block::Status]
210
212
  required :status,
@@ -257,7 +259,7 @@ module Orb
257
259
  #
258
260
  # @param per_unit_cost_basis [String, nil]
259
261
  #
260
- # @param status [Symbol, Orb::Models::Webhooks::CreditBlockAccountingSyncSucceededStandardWebhookEvent::Block::Status]
262
+ # @param status [Symbol, Orb::Models::Webhooks::CreditBlockAccountingSyncSucceededStandardWebhookEvent::Block::Status] `void` means the credit block was deleted. A voided block's `balance` is always
261
263
  #
262
264
  # @param credit_allocation [Orb::Models::Webhooks::CreditBlockAccountingSyncSucceededStandardWebhookEvent::Block::CreditAllocation, nil] The credit allocation that funded a block. Extends the allocation resource
263
265
  #
@@ -340,12 +342,16 @@ module Orb
340
342
  end
341
343
  end
342
344
 
345
+ # `void` means the credit block was deleted. A voided block's `balance` is
346
+ # always 0.
347
+ #
343
348
  # @see Orb::Models::Webhooks::CreditBlockAccountingSyncSucceededStandardWebhookEvent::Block#status
344
349
  module Status
345
350
  extend Orb::Internal::Type::Enum
346
351
 
347
352
  ACTIVE = :active
348
353
  PENDING_PAYMENT = :pending_payment
354
+ VOID = :void
349
355
 
350
356
  # @!method self.values
351
357
  # @return [Array<Symbol>]
@@ -172,6 +172,8 @@ module Orb
172
172
  required :per_unit_cost_basis, String, nil?: true
173
173
 
174
174
  # @!attribute status
175
+ # `void` means the credit block was deleted. A voided block's `balance` is
176
+ # always 0.
175
177
  #
176
178
  # @return [Symbol, Orb::Models::Webhooks::CustomerCreditLedgerIncrementedStandardWebhookEvent::Properties::Block::Status]
177
179
  required :status,
@@ -224,7 +226,7 @@ module Orb
224
226
  #
225
227
  # @param per_unit_cost_basis [String, nil]
226
228
  #
227
- # @param status [Symbol, Orb::Models::Webhooks::CustomerCreditLedgerIncrementedStandardWebhookEvent::Properties::Block::Status]
229
+ # @param status [Symbol, Orb::Models::Webhooks::CustomerCreditLedgerIncrementedStandardWebhookEvent::Properties::Block::Status] `void` means the credit block was deleted. A voided block's `balance` is always
228
230
  #
229
231
  # @param credit_allocation [Orb::Models::Webhooks::CustomerCreditLedgerIncrementedStandardWebhookEvent::Properties::Block::CreditAllocation, nil] The credit allocation that funded a block. Extends the allocation resource
230
232
  #
@@ -307,12 +309,16 @@ module Orb
307
309
  end
308
310
  end
309
311
 
312
+ # `void` means the credit block was deleted. A voided block's `balance` is
313
+ # always 0.
314
+ #
310
315
  # @see Orb::Models::Webhooks::CustomerCreditLedgerIncrementedStandardWebhookEvent::Properties::Block#status
311
316
  module Status
312
317
  extend Orb::Internal::Type::Enum
313
318
 
314
319
  ACTIVE = :active
315
320
  PENDING_PAYMENT = :pending_payment
321
+ VOID = :void
316
322
 
317
323
  # @!method self.values
318
324
  # @return [Array<Symbol>]
@@ -5,7 +5,8 @@ module Orb
5
5
  # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid
6
6
  # credits within Orb.
7
7
  class CreditBlocks
8
- # This endpoint returns a credit block identified by its block_id.
8
+ # This endpoint returns a credit block identified by its block_id. A deleted
9
+ # credit block is returned with a `status` of `void` and a `balance` of 0.
9
10
  #
10
11
  # @overload retrieve(block_id, request_options: {})
11
12
  #
data/lib/orb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orb
4
- VERSION = "1.50.0"
4
+ VERSION = "1.52.0"
5
5
  end
@@ -334,6 +334,8 @@ module Orb
334
334
  sig { returns(T.nilable(String)) }
335
335
  attr_accessor :per_unit_cost_basis
336
336
 
337
+ # `void` means the credit block was deleted. A voided block's `balance` is
338
+ # always 0.
337
339
  sig do
338
340
  returns(
339
341
  Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status::TaggedSymbol
@@ -430,6 +432,8 @@ module Orb
430
432
  # `null`.
431
433
  metadata:,
432
434
  per_unit_cost_basis:,
435
+ # `void` means the credit block was deleted. A voided block's `balance` is
436
+ # always 0.
433
437
  status:,
434
438
  # The credit allocation that funded a block. Extends the allocation resource
435
439
  # serialized on prices with the catalog-item attribution of the funding price.
@@ -669,6 +673,8 @@ module Orb
669
673
  end
670
674
  end
671
675
 
676
+ # `void` means the credit block was deleted. A voided block's `balance` is
677
+ # always 0.
672
678
  module Status
673
679
  extend Orb::Internal::Type::Enum
674
680
 
@@ -691,6 +697,11 @@ module Orb
691
697
  :pending_payment,
692
698
  Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status::TaggedSymbol
693
699
  )
700
+ VOID =
701
+ T.let(
702
+ :void,
703
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status::TaggedSymbol
704
+ )
694
705
 
695
706
  sig do
696
707
  override.returns(
@@ -338,6 +338,8 @@ module Orb
338
338
  sig { returns(T.nilable(String)) }
339
339
  attr_accessor :per_unit_cost_basis
340
340
 
341
+ # `void` means the credit block was deleted. A voided block's `balance` is
342
+ # always 0.
341
343
  sig do
342
344
  returns(
343
345
  Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block::Status::TaggedSymbol
@@ -434,6 +436,8 @@ module Orb
434
436
  # `null`.
435
437
  metadata:,
436
438
  per_unit_cost_basis:,
439
+ # `void` means the credit block was deleted. A voided block's `balance` is
440
+ # always 0.
437
441
  status:,
438
442
  # The credit allocation that funded a block. Extends the allocation resource
439
443
  # serialized on prices with the catalog-item attribution of the funding price.
@@ -673,6 +677,8 @@ module Orb
673
677
  end
674
678
  end
675
679
 
680
+ # `void` means the credit block was deleted. A voided block's `balance` is
681
+ # always 0.
676
682
  module Status
677
683
  extend Orb::Internal::Type::Enum
678
684
 
@@ -695,6 +701,11 @@ module Orb
695
701
  :pending_payment,
696
702
  Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block::Status::TaggedSymbol
697
703
  )
704
+ VOID =
705
+ T.let(
706
+ :void,
707
+ Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block::Status::TaggedSymbol
708
+ )
698
709
 
699
710
  sig do
700
711
  override.returns(
@@ -110,6 +110,8 @@ module Orb
110
110
  sig { returns(T.nilable(String)) }
111
111
  attr_accessor :per_unit_cost_basis
112
112
 
113
+ # `void` means the credit block was deleted. A voided block's `balance` is
114
+ # always 0.
113
115
  sig do
114
116
  returns(
115
117
  Orb::Models::CreditBlockListInvoicesResponse::Block::Status::TaggedSymbol
@@ -206,6 +208,8 @@ module Orb
206
208
  # `null`.
207
209
  metadata:,
208
210
  per_unit_cost_basis:,
211
+ # `void` means the credit block was deleted. A voided block's `balance` is
212
+ # always 0.
209
213
  status:,
210
214
  # The credit allocation that funded a block. Extends the allocation resource
211
215
  # serialized on prices with the catalog-item attribution of the funding price.
@@ -445,6 +449,8 @@ module Orb
445
449
  end
446
450
  end
447
451
 
452
+ # `void` means the credit block was deleted. A voided block's `balance` is
453
+ # always 0.
448
454
  module Status
449
455
  extend Orb::Internal::Type::Enum
450
456
 
@@ -467,6 +473,11 @@ module Orb
467
473
  :pending_payment,
468
474
  Orb::Models::CreditBlockListInvoicesResponse::Block::Status::TaggedSymbol
469
475
  )
476
+ VOID =
477
+ T.let(
478
+ :void,
479
+ Orb::Models::CreditBlockListInvoicesResponse::Block::Status::TaggedSymbol
480
+ )
470
481
 
471
482
  sig do
472
483
  override.returns(
@@ -53,6 +53,8 @@ module Orb
53
53
  sig { returns(T.nilable(String)) }
54
54
  attr_accessor :per_unit_cost_basis
55
55
 
56
+ # `void` means the credit block was deleted. A voided block's `balance` is
57
+ # always 0.
56
58
  sig do
57
59
  returns(Orb::Models::CreditBlockRetrieveResponse::Status::TaggedSymbol)
58
60
  end
@@ -140,6 +142,8 @@ module Orb
140
142
  # `null`.
141
143
  metadata:,
142
144
  per_unit_cost_basis:,
145
+ # `void` means the credit block was deleted. A voided block's `balance` is
146
+ # always 0.
143
147
  status:,
144
148
  # The credit allocation that funded a block. Extends the allocation resource
145
149
  # serialized on prices with the catalog-item attribution of the funding price.
@@ -376,6 +380,8 @@ module Orb
376
380
  end
377
381
  end
378
382
 
383
+ # `void` means the credit block was deleted. A voided block's `balance` is
384
+ # always 0.
379
385
  module Status
380
386
  extend Orb::Internal::Type::Enum
381
387
 
@@ -395,6 +401,11 @@ module Orb
395
401
  :pending_payment,
396
402
  Orb::Models::CreditBlockRetrieveResponse::Status::TaggedSymbol
397
403
  )
404
+ VOID =
405
+ T.let(
406
+ :void,
407
+ Orb::Models::CreditBlockRetrieveResponse::Status::TaggedSymbol
408
+ )
398
409
 
399
410
  sig do
400
411
  override.returns(
@@ -48,6 +48,8 @@ module Orb
48
48
  sig { returns(T.nilable(String)) }
49
49
  attr_accessor :per_unit_cost_basis
50
50
 
51
+ # `void` means the credit block was deleted. A voided block's `balance` is
52
+ # always 0.
51
53
  sig do
52
54
  returns(Orb::Models::CreditBlockUpdateResponse::Status::TaggedSymbol)
53
55
  end
@@ -135,6 +137,8 @@ module Orb
135
137
  # `null`.
136
138
  metadata:,
137
139
  per_unit_cost_basis:,
140
+ # `void` means the credit block was deleted. A voided block's `balance` is
141
+ # always 0.
138
142
  status:,
139
143
  # The credit allocation that funded a block. Extends the allocation resource
140
144
  # serialized on prices with the catalog-item attribution of the funding price.
@@ -371,6 +375,8 @@ module Orb
371
375
  end
372
376
  end
373
377
 
378
+ # `void` means the credit block was deleted. A voided block's `balance` is
379
+ # always 0.
374
380
  module Status
375
381
  extend Orb::Internal::Type::Enum
376
382
 
@@ -390,6 +396,11 @@ module Orb
390
396
  :pending_payment,
391
397
  Orb::Models::CreditBlockUpdateResponse::Status::TaggedSymbol
392
398
  )
399
+ VOID =
400
+ T.let(
401
+ :void,
402
+ Orb::Models::CreditBlockUpdateResponse::Status::TaggedSymbol
403
+ )
393
404
 
394
405
  sig do
395
406
  override.returns(
@@ -298,6 +298,8 @@ module Orb
298
298
  sig { returns(T.nilable(String)) }
299
299
  attr_accessor :per_unit_cost_basis
300
300
 
301
+ # `void` means the credit block was deleted. A voided block's `balance` is
302
+ # always 0.
301
303
  sig do
302
304
  returns(
303
305
  Orb::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block::Status::TaggedSymbol
@@ -394,6 +396,8 @@ module Orb
394
396
  # `null`.
395
397
  metadata:,
396
398
  per_unit_cost_basis:,
399
+ # `void` means the credit block was deleted. A voided block's `balance` is
400
+ # always 0.
397
401
  status:,
398
402
  # The credit allocation that funded a block. Extends the allocation resource
399
403
  # serialized on prices with the catalog-item attribution of the funding price.
@@ -633,6 +637,8 @@ module Orb
633
637
  end
634
638
  end
635
639
 
640
+ # `void` means the credit block was deleted. A voided block's `balance` is
641
+ # always 0.
636
642
  module Status
637
643
  extend Orb::Internal::Type::Enum
638
644
 
@@ -655,6 +661,11 @@ module Orb
655
661
  :pending_payment,
656
662
  Orb::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block::Status::TaggedSymbol
657
663
  )
664
+ VOID =
665
+ T.let(
666
+ :void,
667
+ Orb::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block::Status::TaggedSymbol
668
+ )
658
669
 
659
670
  sig do
660
671
  override.returns(
@@ -344,6 +344,8 @@ module Orb
344
344
  sig { returns(T.nilable(String)) }
345
345
  attr_accessor :per_unit_cost_basis
346
346
 
347
+ # `void` means the credit block was deleted. A voided block's `balance` is
348
+ # always 0.
347
349
  sig do
348
350
  returns(
349
351
  Orb::Webhooks::CreditBlockAccountingSyncFailedStandardWebhookEvent::Block::Status::TaggedSymbol
@@ -440,6 +442,8 @@ module Orb
440
442
  # `null`.
441
443
  metadata:,
442
444
  per_unit_cost_basis:,
445
+ # `void` means the credit block was deleted. A voided block's `balance` is
446
+ # always 0.
443
447
  status:,
444
448
  # The credit allocation that funded a block. Extends the allocation resource
445
449
  # serialized on prices with the catalog-item attribution of the funding price.
@@ -679,6 +683,8 @@ module Orb
679
683
  end
680
684
  end
681
685
 
686
+ # `void` means the credit block was deleted. A voided block's `balance` is
687
+ # always 0.
682
688
  module Status
683
689
  extend Orb::Internal::Type::Enum
684
690
 
@@ -701,6 +707,11 @@ module Orb
701
707
  :pending_payment,
702
708
  Orb::Webhooks::CreditBlockAccountingSyncFailedStandardWebhookEvent::Block::Status::TaggedSymbol
703
709
  )
710
+ VOID =
711
+ T.let(
712
+ :void,
713
+ Orb::Webhooks::CreditBlockAccountingSyncFailedStandardWebhookEvent::Block::Status::TaggedSymbol
714
+ )
704
715
 
705
716
  sig do
706
717
  override.returns(
@@ -344,6 +344,8 @@ module Orb
344
344
  sig { returns(T.nilable(String)) }
345
345
  attr_accessor :per_unit_cost_basis
346
346
 
347
+ # `void` means the credit block was deleted. A voided block's `balance` is
348
+ # always 0.
347
349
  sig do
348
350
  returns(
349
351
  Orb::Webhooks::CreditBlockAccountingSyncSucceededStandardWebhookEvent::Block::Status::TaggedSymbol
@@ -440,6 +442,8 @@ module Orb
440
442
  # `null`.
441
443
  metadata:,
442
444
  per_unit_cost_basis:,
445
+ # `void` means the credit block was deleted. A voided block's `balance` is
446
+ # always 0.
443
447
  status:,
444
448
  # The credit allocation that funded a block. Extends the allocation resource
445
449
  # serialized on prices with the catalog-item attribution of the funding price.
@@ -679,6 +683,8 @@ module Orb
679
683
  end
680
684
  end
681
685
 
686
+ # `void` means the credit block was deleted. A voided block's `balance` is
687
+ # always 0.
682
688
  module Status
683
689
  extend Orb::Internal::Type::Enum
684
690
 
@@ -701,6 +707,11 @@ module Orb
701
707
  :pending_payment,
702
708
  Orb::Webhooks::CreditBlockAccountingSyncSucceededStandardWebhookEvent::Block::Status::TaggedSymbol
703
709
  )
710
+ VOID =
711
+ T.let(
712
+ :void,
713
+ Orb::Webhooks::CreditBlockAccountingSyncSucceededStandardWebhookEvent::Block::Status::TaggedSymbol
714
+ )
704
715
 
705
716
  sig do
706
717
  override.returns(
@@ -302,6 +302,8 @@ module Orb
302
302
  sig { returns(T.nilable(String)) }
303
303
  attr_accessor :per_unit_cost_basis
304
304
 
305
+ # `void` means the credit block was deleted. A voided block's `balance` is
306
+ # always 0.
305
307
  sig do
306
308
  returns(
307
309
  Orb::Webhooks::CustomerCreditLedgerIncrementedStandardWebhookEvent::Properties::Block::Status::TaggedSymbol
@@ -398,6 +400,8 @@ module Orb
398
400
  # `null`.
399
401
  metadata:,
400
402
  per_unit_cost_basis:,
403
+ # `void` means the credit block was deleted. A voided block's `balance` is
404
+ # always 0.
401
405
  status:,
402
406
  # The credit allocation that funded a block. Extends the allocation resource
403
407
  # serialized on prices with the catalog-item attribution of the funding price.
@@ -637,6 +641,8 @@ module Orb
637
641
  end
638
642
  end
639
643
 
644
+ # `void` means the credit block was deleted. A voided block's `balance` is
645
+ # always 0.
640
646
  module Status
641
647
  extend Orb::Internal::Type::Enum
642
648
 
@@ -659,6 +665,11 @@ module Orb
659
665
  :pending_payment,
660
666
  Orb::Webhooks::CustomerCreditLedgerIncrementedStandardWebhookEvent::Properties::Block::Status::TaggedSymbol
661
667
  )
668
+ VOID =
669
+ T.let(
670
+ :void,
671
+ Orb::Webhooks::CustomerCreditLedgerIncrementedStandardWebhookEvent::Properties::Block::Status::TaggedSymbol
672
+ )
662
673
 
663
674
  sig do
664
675
  override.returns(
@@ -5,7 +5,8 @@ module Orb
5
5
  # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid
6
6
  # credits within Orb.
7
7
  class CreditBlocks
8
- # This endpoint returns a credit block identified by its block_id.
8
+ # This endpoint returns a credit block identified by its block_id. A deleted
9
+ # credit block is returned with a `status` of `void` and a `balance` of 0.
9
10
  sig do
10
11
  params(
11
12
  block_id: String,
@@ -265,13 +265,14 @@ module Orb
265
265
  end
266
266
  end
267
267
 
268
- type status = :active | :pending_payment
268
+ type status = :active | :pending_payment | :void
269
269
 
270
270
  module Status
271
271
  extend Orb::Internal::Type::Enum
272
272
 
273
273
  ACTIVE: :active
274
274
  PENDING_PAYMENT: :pending_payment
275
+ VOID: :void
275
276
 
276
277
  def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::status]
277
278
  end
@@ -265,13 +265,14 @@ module Orb
265
265
  end
266
266
  end
267
267
 
268
- type status = :active | :pending_payment
268
+ type status = :active | :pending_payment | :void
269
269
 
270
270
  module Status
271
271
  extend Orb::Internal::Type::Enum
272
272
 
273
273
  ACTIVE: :active
274
274
  PENDING_PAYMENT: :pending_payment
275
+ VOID: :void
275
276
 
276
277
  def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Block::status]
277
278
  end
@@ -158,13 +158,14 @@ module Orb
158
158
  end
159
159
  end
160
160
 
161
- type status = :active | :pending_payment
161
+ type status = :active | :pending_payment | :void
162
162
 
163
163
  module Status
164
164
  extend Orb::Internal::Type::Enum
165
165
 
166
166
  ACTIVE: :active
167
167
  PENDING_PAYMENT: :pending_payment
168
+ VOID: :void
168
169
 
169
170
  def self?.values: -> ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::status]
170
171
  end
@@ -137,13 +137,14 @@ module Orb
137
137
  end
138
138
  end
139
139
 
140
- type status = :active | :pending_payment
140
+ type status = :active | :pending_payment | :void
141
141
 
142
142
  module Status
143
143
  extend Orb::Internal::Type::Enum
144
144
 
145
145
  ACTIVE: :active
146
146
  PENDING_PAYMENT: :pending_payment
147
+ VOID: :void
147
148
 
148
149
  def self?.values: -> ::Array[Orb::Models::CreditBlockRetrieveResponse::status]
149
150
  end
@@ -137,13 +137,14 @@ module Orb
137
137
  end
138
138
  end
139
139
 
140
- type status = :active | :pending_payment
140
+ type status = :active | :pending_payment | :void
141
141
 
142
142
  module Status
143
143
  extend Orb::Internal::Type::Enum
144
144
 
145
145
  ACTIVE: :active
146
146
  PENDING_PAYMENT: :pending_payment
147
+ VOID: :void
147
148
 
148
149
  def self?.values: -> ::Array[Orb::Models::CreditBlockUpdateResponse::status]
149
150
  end
@@ -211,13 +211,14 @@ module Orb
211
211
  end
212
212
  end
213
213
 
214
- type status = :active | :pending_payment
214
+ type status = :active | :pending_payment | :void
215
215
 
216
216
  module Status
217
217
  extend Orb::Internal::Type::Enum
218
218
 
219
219
  ACTIVE: :active
220
220
  PENDING_PAYMENT: :pending_payment
221
+ VOID: :void
221
222
 
222
223
  def self?.values: -> ::Array[Orb::Models::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block::status]
223
224
  end
@@ -267,13 +267,14 @@ module Orb
267
267
  end
268
268
  end
269
269
 
270
- type status = :active | :pending_payment
270
+ type status = :active | :pending_payment | :void
271
271
 
272
272
  module Status
273
273
  extend Orb::Internal::Type::Enum
274
274
 
275
275
  ACTIVE: :active
276
276
  PENDING_PAYMENT: :pending_payment
277
+ VOID: :void
277
278
 
278
279
  def self?.values: -> ::Array[Orb::Models::Webhooks::CreditBlockAccountingSyncFailedStandardWebhookEvent::Block::status]
279
280
  end
@@ -267,13 +267,14 @@ module Orb
267
267
  end
268
268
  end
269
269
 
270
- type status = :active | :pending_payment
270
+ type status = :active | :pending_payment | :void
271
271
 
272
272
  module Status
273
273
  extend Orb::Internal::Type::Enum
274
274
 
275
275
  ACTIVE: :active
276
276
  PENDING_PAYMENT: :pending_payment
277
+ VOID: :void
277
278
 
278
279
  def self?.values: -> ::Array[Orb::Models::Webhooks::CreditBlockAccountingSyncSucceededStandardWebhookEvent::Block::status]
279
280
  end
@@ -216,13 +216,14 @@ module Orb
216
216
  end
217
217
  end
218
218
 
219
- type status = :active | :pending_payment
219
+ type status = :active | :pending_payment | :void
220
220
 
221
221
  module Status
222
222
  extend Orb::Internal::Type::Enum
223
223
 
224
224
  ACTIVE: :active
225
225
  PENDING_PAYMENT: :pending_payment
226
+ VOID: :void
226
227
 
227
228
  def self?.values: -> ::Array[Orb::Models::Webhooks::CustomerCreditLedgerIncrementedStandardWebhookEvent::Properties::Block::status]
228
229
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orb-billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.50.0
4
+ version: 1.52.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orb