orb-billing 1.41.0 → 1.42.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 +13 -0
- data/README.md +1 -1
- data/lib/orb/models/invoice_pay_params.rb +4 -4
- data/lib/orb/resources/events/backfills.rb +3 -1
- data/lib/orb/resources/invoices.rb +3 -3
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/invoice_pay_params.rbi +4 -4
- data/rbi/orb/resources/events/backfills.rbi +3 -1
- data/rbi/orb/resources/invoices.rbi +2 -2
- data/sig/orb/models/invoice_pay_params.rbs +4 -4
- data/sig/orb/resources/invoices.rbs +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5be595a30a2ce95cc1f8e82c4bdb5f950359e18cd0e082b9f51e76f461ac84a0
|
|
4
|
+
data.tar.gz: dbfbc66b3e8a215a638accb02ef729bb276b54808135e31d2c8ed7174018d74e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 55701b0634fc1552ac600b24c8a62195e735a9d90744957c5c7fa585b8bae61306b96f801994766770841bcc64bc3109fecaf54624593b2aea1d11b21474d8ff
|
|
7
|
+
data.tar.gz: 758cfaca7829068b5f8445c8c73c494ab2b8d7499dd551166242d4cbc62799d7645c4d80daaebeb3dca15d8341dffc0aee8c74458f500de44b7a4fc0a4db33c6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.42.0](https://github.com/orbcorp/orb-ruby/compare/v1.41.0...v1.42.0) (2026-10-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** api update ([4c05828](https://github.com/orbcorp/orb-ruby/commit/4c058281f5bd398d7a89f2fab0bb8eeb8e1798c3))
|
|
9
|
+
* **api:** support listing pricebook prices and filtering by product_id in GET /v1/prices ([4c05828](https://github.com/orbcorp/orb-ruby/commit/4c058281f5bd398d7a89f2fab0bb8eeb8e1798c3))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **api:** make shared_payment_token_id optional when paying an invoice ([4c05828](https://github.com/orbcorp/orb-ruby/commit/4c058281f5bd398d7a89f2fab0bb8eeb8e1798c3))
|
|
15
|
+
|
|
3
16
|
## [1.41.0](https://github.com/orbcorp/orb-ruby/compare/v1.40.0...v1.41.0) (2026-10-08)
|
|
4
17
|
|
|
5
18
|
|
data/README.md
CHANGED
|
@@ -15,13 +15,13 @@ module Orb
|
|
|
15
15
|
# @!attribute shared_payment_token_id
|
|
16
16
|
# The ID of a shared payment token granted by an agent to use for this payment.
|
|
17
17
|
#
|
|
18
|
-
# @return [String]
|
|
19
|
-
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :shared_payment_token_id, String, nil?: true
|
|
20
20
|
|
|
21
|
-
# @!method initialize(invoice_id:, shared_payment_token_id
|
|
21
|
+
# @!method initialize(invoice_id:, shared_payment_token_id: nil, request_options: {})
|
|
22
22
|
# @param invoice_id [String]
|
|
23
23
|
#
|
|
24
|
-
# @param shared_payment_token_id [String] The ID of a shared payment token granted by an agent to use for this payment.
|
|
24
|
+
# @param shared_payment_token_id [String, nil] The ID of a shared payment token granted by an agent to use for this payment.
|
|
25
25
|
#
|
|
26
26
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
27
27
|
end
|
|
@@ -51,7 +51,9 @@ module Orb
|
|
|
51
51
|
# the event reporting grace boundary. Matching events that arrive later with
|
|
52
52
|
# timestamps inside the timeframe will also be deprecated.
|
|
53
53
|
#
|
|
54
|
-
#
|
|
54
|
+
# A backfill may not overlap in timeframe with another backfill in a pending or
|
|
55
|
+
# pending_revert state for the same customer, or with any account-wide backfill in
|
|
56
|
+
# one of those states. Backfills scoped to different customers may have
|
|
55
57
|
# overlapping timeframes.
|
|
56
58
|
#
|
|
57
59
|
# @overload create(timeframe_end:, timeframe_start:, close_time: nil, customer_id: nil, deprecation_filter: nil, external_customer_id: nil, replace_existing_events: nil, request_options: {})
|
|
@@ -457,18 +457,18 @@ module Orb
|
|
|
457
457
|
# be provided to pay using agent-granted credentials instead. This action can only
|
|
458
458
|
# be taken on invoices with status "issued".
|
|
459
459
|
#
|
|
460
|
-
# @overload pay(invoice_id, shared_payment_token_id
|
|
460
|
+
# @overload pay(invoice_id, shared_payment_token_id: nil, request_options: {})
|
|
461
461
|
#
|
|
462
462
|
# @param invoice_id [String]
|
|
463
463
|
#
|
|
464
|
-
# @param shared_payment_token_id [String] The ID of a shared payment token granted by an agent to use for this payment.
|
|
464
|
+
# @param shared_payment_token_id [String, nil] The ID of a shared payment token granted by an agent to use for this payment.
|
|
465
465
|
#
|
|
466
466
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
467
467
|
#
|
|
468
468
|
# @return [Orb::Models::Invoice]
|
|
469
469
|
#
|
|
470
470
|
# @see Orb::Models::InvoicePayParams
|
|
471
|
-
def pay(invoice_id, params)
|
|
471
|
+
def pay(invoice_id, params = {})
|
|
472
472
|
parsed, options = Orb::InvoicePayParams.dump_request(params)
|
|
473
473
|
@client.request(
|
|
474
474
|
method: :post,
|
data/lib/orb/version.rb
CHANGED
|
@@ -13,20 +13,20 @@ module Orb
|
|
|
13
13
|
attr_accessor :invoice_id
|
|
14
14
|
|
|
15
15
|
# The ID of a shared payment token granted by an agent to use for this payment.
|
|
16
|
-
sig { returns(String) }
|
|
16
|
+
sig { returns(T.nilable(String)) }
|
|
17
17
|
attr_accessor :shared_payment_token_id
|
|
18
18
|
|
|
19
19
|
sig do
|
|
20
20
|
params(
|
|
21
21
|
invoice_id: String,
|
|
22
|
-
shared_payment_token_id: String,
|
|
22
|
+
shared_payment_token_id: T.nilable(String),
|
|
23
23
|
request_options: Orb::RequestOptions::OrHash
|
|
24
24
|
).returns(T.attached_class)
|
|
25
25
|
end
|
|
26
26
|
def self.new(
|
|
27
27
|
invoice_id:,
|
|
28
28
|
# The ID of a shared payment token granted by an agent to use for this payment.
|
|
29
|
-
shared_payment_token_id
|
|
29
|
+
shared_payment_token_id: nil,
|
|
30
30
|
request_options: {}
|
|
31
31
|
)
|
|
32
32
|
end
|
|
@@ -35,7 +35,7 @@ module Orb
|
|
|
35
35
|
override.returns(
|
|
36
36
|
{
|
|
37
37
|
invoice_id: String,
|
|
38
|
-
shared_payment_token_id: String,
|
|
38
|
+
shared_payment_token_id: T.nilable(String),
|
|
39
39
|
request_options: Orb::RequestOptions
|
|
40
40
|
}
|
|
41
41
|
)
|
|
@@ -48,7 +48,9 @@ module Orb
|
|
|
48
48
|
# the event reporting grace boundary. Matching events that arrive later with
|
|
49
49
|
# timestamps inside the timeframe will also be deprecated.
|
|
50
50
|
#
|
|
51
|
-
#
|
|
51
|
+
# A backfill may not overlap in timeframe with another backfill in a pending or
|
|
52
|
+
# pending_revert state for the same customer, or with any account-wide backfill in
|
|
53
|
+
# one of those states. Backfills scoped to different customers may have
|
|
52
54
|
# overlapping timeframes.
|
|
53
55
|
sig do
|
|
54
56
|
params(
|
|
@@ -412,14 +412,14 @@ module Orb
|
|
|
412
412
|
sig do
|
|
413
413
|
params(
|
|
414
414
|
invoice_id: String,
|
|
415
|
-
shared_payment_token_id: String,
|
|
415
|
+
shared_payment_token_id: T.nilable(String),
|
|
416
416
|
request_options: Orb::RequestOptions::OrHash
|
|
417
417
|
).returns(Orb::Invoice)
|
|
418
418
|
end
|
|
419
419
|
def pay(
|
|
420
420
|
invoice_id,
|
|
421
421
|
# The ID of a shared payment token granted by an agent to use for this payment.
|
|
422
|
-
shared_payment_token_id
|
|
422
|
+
shared_payment_token_id: nil,
|
|
423
423
|
request_options: {}
|
|
424
424
|
)
|
|
425
425
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Orb
|
|
2
2
|
module Models
|
|
3
3
|
type invoice_pay_params =
|
|
4
|
-
{ invoice_id: String, shared_payment_token_id: String }
|
|
4
|
+
{ invoice_id: String, shared_payment_token_id: String? }
|
|
5
5
|
& Orb::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class InvoicePayParams < Orb::Internal::Type::BaseModel
|
|
@@ -10,17 +10,17 @@ module Orb
|
|
|
10
10
|
|
|
11
11
|
attr_accessor invoice_id: String
|
|
12
12
|
|
|
13
|
-
attr_accessor shared_payment_token_id: String
|
|
13
|
+
attr_accessor shared_payment_token_id: String?
|
|
14
14
|
|
|
15
15
|
def initialize: (
|
|
16
16
|
invoice_id: String,
|
|
17
|
-
shared_payment_token_id: String
|
|
17
|
+
?shared_payment_token_id: String?,
|
|
18
18
|
?request_options: Orb::request_opts
|
|
19
19
|
) -> void
|
|
20
20
|
|
|
21
21
|
def to_hash: -> {
|
|
22
22
|
invoice_id: String,
|
|
23
|
-
shared_payment_token_id: String
|
|
23
|
+
shared_payment_token_id: String?,
|
|
24
24
|
request_options: Orb::RequestOptions
|
|
25
25
|
}
|
|
26
26
|
end
|