orb-billing 1.38.0 → 1.40.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 +20 -0
- data/README.md +1 -1
- data/lib/orb/models/changed_subscription_resources.rb +14 -1
- data/lib/orb/models/dimensional_price_group.rb +10 -1
- data/lib/orb/models/dimensional_price_group_list_params.rb +9 -1
- data/lib/orb/models/events/backfill_list_params.rb +29 -1
- data/lib/orb/models/invoice.rb +14 -1
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +14 -1
- data/lib/orb/models/invoice_issue_summary_response.rb +14 -1
- data/lib/orb/models/invoice_issued_summary_webhook_event.rb +14 -1
- data/lib/orb/models/invoice_list_summary_response.rb +14 -1
- data/lib/orb/resources/dimensional_price_groups.rb +6 -1
- data/lib/orb/resources/events/backfills.rb +11 -2
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/changed_subscription_resources.rbi +18 -0
- data/rbi/orb/models/dimensional_price_group.rbi +13 -3
- data/rbi/orb/models/dimensional_price_group_list_params.rbi +8 -0
- data/rbi/orb/models/events/backfill_list_params.rbi +58 -0
- data/rbi/orb/models/invoice.rbi +18 -0
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +18 -0
- data/rbi/orb/models/invoice_issue_summary_response.rbi +18 -0
- data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +18 -0
- data/rbi/orb/models/invoice_list_summary_response.rbi +18 -0
- data/rbi/orb/resources/dimensional_price_groups.rbi +6 -0
- data/rbi/orb/resources/events/backfills.rbi +12 -1
- data/sig/orb/models/changed_subscription_resources.rbs +5 -0
- data/sig/orb/models/dimensional_price_group.rbs +8 -3
- data/sig/orb/models/dimensional_price_group_list_params.rbs +5 -1
- data/sig/orb/models/events/backfill_list_params.rbs +27 -1
- data/sig/orb/models/invoice.rbs +5 -0
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +5 -0
- data/sig/orb/models/invoice_issue_summary_response.rbs +5 -0
- data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +5 -0
- data/sig/orb/models/invoice_list_summary_response.rbs +5 -0
- data/sig/orb/resources/dimensional_price_groups.rbs +1 -0
- data/sig/orb/resources/events/backfills.rbs +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae1a554ffa1f02c4a6389c6399a1ad669067740cb555aed61f1aa9f9431450f0
|
|
4
|
+
data.tar.gz: 61e554cca021010bd8a5fb9b05f6737277ebba9d41812e7f517c66c7263f1757
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 504c8ea65bf2ed7be2e1f88dc3a5cfef668638559902cecafaad975b8281019d86e3d25a0f9d20d06c758cc616b811bb22d5fd0fa980f8ac8cdb6724834f41ec
|
|
7
|
+
data.tar.gz: 9b751116050e2768715cdbc5b196c145f4efdcba8547c58fd1ac51d05208fa1d146c30b8bec593a4fa93954b8b8454275aaee2dd0535ae57885b4d40b6ab3772
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.40.0](https://github.com/orbcorp/orb-ruby/compare/v1.39.0...v1.40.0) (2026-10-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** add billable_metric_id filter, price_count, and prices list endpoint for dimensional price groups ([3b4e02a](https://github.com/orbcorp/orb-ruby/commit/3b4e02a8ad9286a0e1496a484e5255805c9a75ea))
|
|
9
|
+
|
|
10
|
+
## [1.39.0](https://github.com/orbcorp/orb-ruby/compare/v1.38.0...v1.39.0) (2026-10-01)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **api:** add `customer_id` and `status` filters to list backfills endpoint ([3d497bc](https://github.com/orbcorp/orb-ruby/commit/3d497bc1dde6257959f0bd502057e91b4229356e))
|
|
16
|
+
* **api:** add `payment_received_at` field to invoice responses ([959a88d](https://github.com/orbcorp/orb-ruby/commit/959a88d58c0fb54a2d9c28a8c9c91f5a1a42c5a8))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **api:** correct webhook doc page titles and remove inapplicable auth section ([959a88d](https://github.com/orbcorp/orb-ruby/commit/959a88d58c0fb54a2d9c28a8c9c91f5a1a42c5a8))
|
|
22
|
+
|
|
3
23
|
## [1.38.0](https://github.com/orbcorp/orb-ruby/compare/v1.37.0...v1.38.0) (2026-09-25)
|
|
4
24
|
|
|
5
25
|
|
data/README.md
CHANGED
|
@@ -399,6 +399,17 @@ module Orb
|
|
|
399
399
|
# @return [Time, nil]
|
|
400
400
|
required :payment_failed_at, Time, nil?: true
|
|
401
401
|
|
|
402
|
+
# @!attribute payment_received_at
|
|
403
|
+
# When payment for this invoice was received. For an invoice manually marked as
|
|
404
|
+
# paid, this is the `payment_received_date` that was supplied. For an invoice paid
|
|
405
|
+
# through a payment provider, this is the settlement time reported by that
|
|
406
|
+
# provider. It is `null` for an invoice that became `paid` without a payment, such
|
|
407
|
+
# as a $0 invoice or one fully covered by credit notes. By contrast, `paid_at` is
|
|
408
|
+
# when the invoice reached the `paid` status in Orb.
|
|
409
|
+
#
|
|
410
|
+
# @return [Time, nil]
|
|
411
|
+
required :payment_received_at, Time, nil?: true
|
|
412
|
+
|
|
402
413
|
# @!attribute payment_started_at
|
|
403
414
|
# If payment was attempted on this invoice, this will be the start time of the
|
|
404
415
|
# most recent attempt. This field is especially useful for delayed-notification
|
|
@@ -463,7 +474,7 @@ module Orb
|
|
|
463
474
|
# @return [Boolean]
|
|
464
475
|
required :will_auto_issue, Orb::Internal::Type::Boolean
|
|
465
476
|
|
|
466
|
-
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, discount:, discounts:, due_date:, eligible_to_issue_at:, hidden_line_item_count:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, is_payable_now:, issue_failed_at:, issued_at:, line_items:, maximum:, maximum_amount:, memo:, metadata:, minimum:, minimum_amount:, paid_at:, payment_attempts:, payment_failed_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, subtotal:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
|
|
477
|
+
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, discount:, discounts:, due_date:, eligible_to_issue_at:, hidden_line_item_count:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, is_payable_now:, issue_failed_at:, issued_at:, line_items:, maximum:, maximum_amount:, memo:, metadata:, minimum:, minimum_amount:, paid_at:, payment_attempts:, payment_failed_at:, payment_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, subtotal:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
|
|
467
478
|
# Some parameter documentations has been truncated, see
|
|
468
479
|
# {Orb::Models::ChangedSubscriptionResources::CreatedInvoice} for more details.
|
|
469
480
|
#
|
|
@@ -533,6 +544,8 @@ module Orb
|
|
|
533
544
|
#
|
|
534
545
|
# @param payment_failed_at [Time, nil] If payment was attempted on this invoice but failed, this will be the time of th
|
|
535
546
|
#
|
|
547
|
+
# @param payment_received_at [Time, nil] When payment for this invoice was received. For an invoice manually marked as pa
|
|
548
|
+
#
|
|
536
549
|
# @param payment_started_at [Time, nil] If payment was attempted on this invoice, this will be the start time of the mos
|
|
537
550
|
#
|
|
538
551
|
# @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
|
|
@@ -44,7 +44,14 @@ module Orb
|
|
|
44
44
|
# @return [String]
|
|
45
45
|
required :name, String
|
|
46
46
|
|
|
47
|
-
# @!
|
|
47
|
+
# @!attribute price_count
|
|
48
|
+
# The number of prices in this group. Archived prices and subscription overrides
|
|
49
|
+
# are excluded.
|
|
50
|
+
#
|
|
51
|
+
# @return [Integer]
|
|
52
|
+
required :price_count, Integer
|
|
53
|
+
|
|
54
|
+
# @!method initialize(id:, billable_metric_id:, dimensions:, external_dimensional_price_group_id:, metadata:, name:, price_count:)
|
|
48
55
|
# Some parameter documentations has been truncated, see
|
|
49
56
|
# {Orb::Models::DimensionalPriceGroup} for more details.
|
|
50
57
|
#
|
|
@@ -63,6 +70,8 @@ module Orb
|
|
|
63
70
|
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
|
|
64
71
|
#
|
|
65
72
|
# @param name [String] The name of the dimensional price group
|
|
73
|
+
#
|
|
74
|
+
# @param price_count [Integer] The number of prices in this group. Archived prices and subscription overrides a
|
|
66
75
|
end
|
|
67
76
|
end
|
|
68
77
|
end
|
|
@@ -7,6 +7,12 @@ module Orb
|
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute billable_metric_id
|
|
11
|
+
# Filter to groups that use this billable metric.
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :billable_metric_id, String, nil?: true
|
|
15
|
+
|
|
10
16
|
# @!attribute cursor
|
|
11
17
|
# Cursor for pagination. This can be populated by the `next_cursor` value returned
|
|
12
18
|
# from the initial request.
|
|
@@ -20,10 +26,12 @@ module Orb
|
|
|
20
26
|
# @return [Integer, nil]
|
|
21
27
|
optional :limit, Integer
|
|
22
28
|
|
|
23
|
-
# @!method initialize(cursor: nil, limit: nil, request_options: {})
|
|
29
|
+
# @!method initialize(billable_metric_id: nil, cursor: nil, limit: nil, request_options: {})
|
|
24
30
|
# Some parameter documentations has been truncated, see
|
|
25
31
|
# {Orb::Models::DimensionalPriceGroupListParams} for more details.
|
|
26
32
|
#
|
|
33
|
+
# @param billable_metric_id [String, nil] Filter to groups that use this billable metric.
|
|
34
|
+
#
|
|
27
35
|
# @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
|
|
28
36
|
#
|
|
29
37
|
# @param limit [Integer] The number of items to fetch. Defaults to 20.
|
|
@@ -15,21 +15,49 @@ module Orb
|
|
|
15
15
|
# @return [String, nil]
|
|
16
16
|
optional :cursor, String, nil?: true
|
|
17
17
|
|
|
18
|
+
# @!attribute customer_id
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :customer_id, String, nil?: true
|
|
22
|
+
|
|
18
23
|
# @!attribute limit
|
|
19
24
|
# The number of items to fetch. Defaults to 20.
|
|
20
25
|
#
|
|
21
26
|
# @return [Integer, nil]
|
|
22
27
|
optional :limit, Integer
|
|
23
28
|
|
|
24
|
-
# @!
|
|
29
|
+
# @!attribute status
|
|
30
|
+
# The status of the backfill.
|
|
31
|
+
#
|
|
32
|
+
# @return [Symbol, Orb::Models::Events::BackfillListParams::Status, nil]
|
|
33
|
+
optional :status, enum: -> { Orb::Events::BackfillListParams::Status }, nil?: true
|
|
34
|
+
|
|
35
|
+
# @!method initialize(cursor: nil, customer_id: nil, limit: nil, status: nil, request_options: {})
|
|
25
36
|
# Some parameter documentations has been truncated, see
|
|
26
37
|
# {Orb::Models::Events::BackfillListParams} for more details.
|
|
27
38
|
#
|
|
28
39
|
# @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
|
|
29
40
|
#
|
|
41
|
+
# @param customer_id [String, nil]
|
|
42
|
+
#
|
|
30
43
|
# @param limit [Integer] The number of items to fetch. Defaults to 20.
|
|
31
44
|
#
|
|
45
|
+
# @param status [Symbol, Orb::Models::Events::BackfillListParams::Status, nil] The status of the backfill.
|
|
46
|
+
#
|
|
32
47
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
48
|
+
|
|
49
|
+
# The status of the backfill.
|
|
50
|
+
module Status
|
|
51
|
+
extend Orb::Internal::Type::Enum
|
|
52
|
+
|
|
53
|
+
PENDING = :pending
|
|
54
|
+
REFLECTED = :reflected
|
|
55
|
+
PENDING_REVERT = :pending_revert
|
|
56
|
+
REVERTED = :reverted
|
|
57
|
+
|
|
58
|
+
# @!method self.values
|
|
59
|
+
# @return [Array<Symbol>]
|
|
60
|
+
end
|
|
33
61
|
end
|
|
34
62
|
end
|
|
35
63
|
end
|
data/lib/orb/models/invoice.rb
CHANGED
|
@@ -355,6 +355,17 @@ module Orb
|
|
|
355
355
|
# @return [Time, nil]
|
|
356
356
|
required :payment_failed_at, Time, nil?: true
|
|
357
357
|
|
|
358
|
+
# @!attribute payment_received_at
|
|
359
|
+
# When payment for this invoice was received. For an invoice manually marked as
|
|
360
|
+
# paid, this is the `payment_received_date` that was supplied. For an invoice paid
|
|
361
|
+
# through a payment provider, this is the settlement time reported by that
|
|
362
|
+
# provider. It is `null` for an invoice that became `paid` without a payment, such
|
|
363
|
+
# as a $0 invoice or one fully covered by credit notes. By contrast, `paid_at` is
|
|
364
|
+
# when the invoice reached the `paid` status in Orb.
|
|
365
|
+
#
|
|
366
|
+
# @return [Time, nil]
|
|
367
|
+
required :payment_received_at, Time, nil?: true
|
|
368
|
+
|
|
358
369
|
# @!attribute payment_started_at
|
|
359
370
|
# If payment was attempted on this invoice, this will be the start time of the
|
|
360
371
|
# most recent attempt. This field is especially useful for delayed-notification
|
|
@@ -419,7 +430,7 @@ module Orb
|
|
|
419
430
|
# @return [Boolean]
|
|
420
431
|
required :will_auto_issue, Orb::Internal::Type::Boolean
|
|
421
432
|
|
|
422
|
-
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, discount:, discounts:, due_date:, eligible_to_issue_at:, hidden_line_item_count:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, line_items:, maximum:, maximum_amount:, memo:, metadata:, minimum:, minimum_amount:, paid_at:, payment_attempts:, payment_failed_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, subtotal:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
|
|
433
|
+
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, discount:, discounts:, due_date:, eligible_to_issue_at:, hidden_line_item_count:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, line_items:, maximum:, maximum_amount:, memo:, metadata:, minimum:, minimum_amount:, paid_at:, payment_attempts:, payment_failed_at:, payment_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, subtotal:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
|
|
423
434
|
# Some parameter documentations has been truncated, see {Orb::Models::Invoice} for
|
|
424
435
|
# more details.
|
|
425
436
|
#
|
|
@@ -493,6 +504,8 @@ module Orb
|
|
|
493
504
|
#
|
|
494
505
|
# @param payment_failed_at [Time, nil] If payment was attempted on this invoice but failed, this will be the time of th
|
|
495
506
|
#
|
|
507
|
+
# @param payment_received_at [Time, nil] When payment for this invoice was received. For an invoice manually marked as pa
|
|
508
|
+
#
|
|
496
509
|
# @param payment_started_at [Time, nil] If payment was attempted on this invoice, this will be the start time of the mos
|
|
497
510
|
#
|
|
498
511
|
# @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
|
|
@@ -353,6 +353,17 @@ module Orb
|
|
|
353
353
|
# @return [Time, nil]
|
|
354
354
|
required :payment_failed_at, Time, nil?: true
|
|
355
355
|
|
|
356
|
+
# @!attribute payment_received_at
|
|
357
|
+
# When payment for this invoice was received. For an invoice manually marked as
|
|
358
|
+
# paid, this is the `payment_received_date` that was supplied. For an invoice paid
|
|
359
|
+
# through a payment provider, this is the settlement time reported by that
|
|
360
|
+
# provider. It is `null` for an invoice that became `paid` without a payment, such
|
|
361
|
+
# as a $0 invoice or one fully covered by credit notes. By contrast, `paid_at` is
|
|
362
|
+
# when the invoice reached the `paid` status in Orb.
|
|
363
|
+
#
|
|
364
|
+
# @return [Time, nil]
|
|
365
|
+
required :payment_received_at, Time, nil?: true
|
|
366
|
+
|
|
356
367
|
# @!attribute payment_started_at
|
|
357
368
|
# If payment was attempted on this invoice, this will be the start time of the
|
|
358
369
|
# most recent attempt. This field is especially useful for delayed-notification
|
|
@@ -423,7 +434,7 @@ module Orb
|
|
|
423
434
|
# @return [Boolean]
|
|
424
435
|
required :will_auto_issue, Orb::Internal::Type::Boolean
|
|
425
436
|
|
|
426
|
-
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, discount:, discounts:, due_date:, eligible_to_issue_at:, hidden_line_item_count:, hosted_invoice_url:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, line_items:, maximum:, maximum_amount:, memo:, metadata:, minimum:, minimum_amount:, paid_at:, payment_attempts:, payment_failed_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, subtotal:, sync_failed_at:, target_date:, total:, voided_at:, will_auto_issue:)
|
|
437
|
+
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, discount:, discounts:, due_date:, eligible_to_issue_at:, hidden_line_item_count:, hosted_invoice_url:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, line_items:, maximum:, maximum_amount:, memo:, metadata:, minimum:, minimum_amount:, paid_at:, payment_attempts:, payment_failed_at:, payment_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, subtotal:, sync_failed_at:, target_date:, total:, voided_at:, will_auto_issue:)
|
|
427
438
|
# Some parameter documentations has been truncated, see
|
|
428
439
|
# {Orb::Models::InvoiceFetchUpcomingResponse} for more details.
|
|
429
440
|
#
|
|
@@ -489,6 +500,8 @@ module Orb
|
|
|
489
500
|
#
|
|
490
501
|
# @param payment_failed_at [Time, nil] If payment was attempted on this invoice but failed, this will be the time of th
|
|
491
502
|
#
|
|
503
|
+
# @param payment_received_at [Time, nil] When payment for this invoice was received. For an invoice manually marked as pa
|
|
504
|
+
#
|
|
492
505
|
# @param payment_started_at [Time, nil] If payment was attempted on this invoice, this will be the start time of the mos
|
|
493
506
|
#
|
|
494
507
|
# @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
|
|
@@ -308,6 +308,17 @@ module Orb
|
|
|
308
308
|
# @return [Time, nil]
|
|
309
309
|
required :payment_failed_at, Time, nil?: true
|
|
310
310
|
|
|
311
|
+
# @!attribute payment_received_at
|
|
312
|
+
# When payment for this invoice was received. For an invoice manually marked as
|
|
313
|
+
# paid, this is the `payment_received_date` that was supplied. For an invoice paid
|
|
314
|
+
# through a payment provider, this is the settlement time reported by that
|
|
315
|
+
# provider. It is `null` for an invoice that became `paid` without a payment, such
|
|
316
|
+
# as a $0 invoice or one fully covered by credit notes. By contrast, `paid_at` is
|
|
317
|
+
# when the invoice reached the `paid` status in Orb.
|
|
318
|
+
#
|
|
319
|
+
# @return [Time, nil]
|
|
320
|
+
required :payment_received_at, Time, nil?: true
|
|
321
|
+
|
|
311
322
|
# @!attribute payment_started_at
|
|
312
323
|
# If payment was attempted on this invoice, this will be the start time of the
|
|
313
324
|
# most recent attempt. This field is especially useful for delayed-notification
|
|
@@ -366,7 +377,7 @@ module Orb
|
|
|
366
377
|
# @return [Boolean]
|
|
367
378
|
required :will_auto_issue, Orb::Internal::Type::Boolean
|
|
368
379
|
|
|
369
|
-
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, due_date:, eligible_to_issue_at:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, memo:, metadata:, paid_at:, payment_attempts:, payment_failed_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
|
|
380
|
+
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, due_date:, eligible_to_issue_at:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, memo:, metadata:, paid_at:, payment_attempts:, payment_failed_at:, payment_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
|
|
370
381
|
# Some parameter documentations has been truncated, see
|
|
371
382
|
# {Orb::Models::InvoiceIssueSummaryResponse} for more details.
|
|
372
383
|
#
|
|
@@ -420,6 +431,8 @@ module Orb
|
|
|
420
431
|
#
|
|
421
432
|
# @param payment_failed_at [Time, nil] If payment was attempted on this invoice but failed, this will be the time of th
|
|
422
433
|
#
|
|
434
|
+
# @param payment_received_at [Time, nil] When payment for this invoice was received. For an invoice manually marked as pa
|
|
435
|
+
#
|
|
423
436
|
# @param payment_started_at [Time, nil] If payment was attempted on this invoice, this will be the start time of the mos
|
|
424
437
|
#
|
|
425
438
|
# @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
|
|
@@ -352,6 +352,17 @@ module Orb
|
|
|
352
352
|
# @return [Time, nil]
|
|
353
353
|
required :payment_failed_at, Time, nil?: true
|
|
354
354
|
|
|
355
|
+
# @!attribute payment_received_at
|
|
356
|
+
# When payment for this invoice was received. For an invoice manually marked as
|
|
357
|
+
# paid, this is the `payment_received_date` that was supplied. For an invoice paid
|
|
358
|
+
# through a payment provider, this is the settlement time reported by that
|
|
359
|
+
# provider. It is `null` for an invoice that became `paid` without a payment, such
|
|
360
|
+
# as a $0 invoice or one fully covered by credit notes. By contrast, `paid_at` is
|
|
361
|
+
# when the invoice reached the `paid` status in Orb.
|
|
362
|
+
#
|
|
363
|
+
# @return [Time, nil]
|
|
364
|
+
required :payment_received_at, Time, nil?: true
|
|
365
|
+
|
|
355
366
|
# @!attribute payment_started_at
|
|
356
367
|
# If payment was attempted on this invoice, this will be the start time of the
|
|
357
368
|
# most recent attempt. This field is especially useful for delayed-notification
|
|
@@ -410,7 +421,7 @@ module Orb
|
|
|
410
421
|
# @return [Boolean]
|
|
411
422
|
required :will_auto_issue, Orb::Internal::Type::Boolean
|
|
412
423
|
|
|
413
|
-
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, due_date:, eligible_to_issue_at:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, memo:, metadata:, paid_at:, payment_attempts:, payment_failed_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
|
|
424
|
+
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, due_date:, eligible_to_issue_at:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, memo:, metadata:, paid_at:, payment_attempts:, payment_failed_at:, payment_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
|
|
414
425
|
# Some parameter documentations has been truncated, see
|
|
415
426
|
# {Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice} for more details.
|
|
416
427
|
#
|
|
@@ -464,6 +475,8 @@ module Orb
|
|
|
464
475
|
#
|
|
465
476
|
# @param payment_failed_at [Time, nil] If payment was attempted on this invoice but failed, this will be the time of th
|
|
466
477
|
#
|
|
478
|
+
# @param payment_received_at [Time, nil] When payment for this invoice was received. For an invoice manually marked as pa
|
|
479
|
+
#
|
|
467
480
|
# @param payment_started_at [Time, nil] If payment was attempted on this invoice, this will be the start time of the mos
|
|
468
481
|
#
|
|
469
482
|
# @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
|
|
@@ -308,6 +308,17 @@ module Orb
|
|
|
308
308
|
# @return [Time, nil]
|
|
309
309
|
required :payment_failed_at, Time, nil?: true
|
|
310
310
|
|
|
311
|
+
# @!attribute payment_received_at
|
|
312
|
+
# When payment for this invoice was received. For an invoice manually marked as
|
|
313
|
+
# paid, this is the `payment_received_date` that was supplied. For an invoice paid
|
|
314
|
+
# through a payment provider, this is the settlement time reported by that
|
|
315
|
+
# provider. It is `null` for an invoice that became `paid` without a payment, such
|
|
316
|
+
# as a $0 invoice or one fully covered by credit notes. By contrast, `paid_at` is
|
|
317
|
+
# when the invoice reached the `paid` status in Orb.
|
|
318
|
+
#
|
|
319
|
+
# @return [Time, nil]
|
|
320
|
+
required :payment_received_at, Time, nil?: true
|
|
321
|
+
|
|
311
322
|
# @!attribute payment_started_at
|
|
312
323
|
# If payment was attempted on this invoice, this will be the start time of the
|
|
313
324
|
# most recent attempt. This field is especially useful for delayed-notification
|
|
@@ -366,7 +377,7 @@ module Orb
|
|
|
366
377
|
# @return [Boolean]
|
|
367
378
|
required :will_auto_issue, Orb::Internal::Type::Boolean
|
|
368
379
|
|
|
369
|
-
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, due_date:, eligible_to_issue_at:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, memo:, metadata:, paid_at:, payment_attempts:, payment_failed_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
|
|
380
|
+
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, due_date:, eligible_to_issue_at:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, memo:, metadata:, paid_at:, payment_attempts:, payment_failed_at:, payment_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
|
|
370
381
|
# Some parameter documentations has been truncated, see
|
|
371
382
|
# {Orb::Models::InvoiceListSummaryResponse} for more details.
|
|
372
383
|
#
|
|
@@ -420,6 +431,8 @@ module Orb
|
|
|
420
431
|
#
|
|
421
432
|
# @param payment_failed_at [Time, nil] If payment was attempted on this invoice but failed, this will be the time of th
|
|
422
433
|
#
|
|
434
|
+
# @param payment_received_at [Time, nil] When payment for this invoice was received. For an invoice manually marked as pa
|
|
435
|
+
#
|
|
423
436
|
# @param payment_started_at [Time, nil] If payment was attempted on this invoice, this will be the start time of the mos
|
|
424
437
|
#
|
|
425
438
|
# @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
|
|
@@ -107,10 +107,15 @@ module Orb
|
|
|
107
107
|
# dimensions, and the prices in the group specify which partition their usage is
|
|
108
108
|
# derived from.
|
|
109
109
|
#
|
|
110
|
+
# Filter with `billable_metric_id`. Each group includes `price_count`:
|
|
111
|
+
# non-archived prices in the group. Subscription overrides are not counted.
|
|
112
|
+
#
|
|
110
113
|
# The response also includes pagination_metadata, which lets the caller retrieve
|
|
111
114
|
# the next page of results if they exist.
|
|
112
115
|
#
|
|
113
|
-
# @overload list(cursor: nil, limit: nil, request_options: {})
|
|
116
|
+
# @overload list(billable_metric_id: nil, cursor: nil, limit: nil, request_options: {})
|
|
117
|
+
#
|
|
118
|
+
# @param billable_metric_id [String, nil] Filter to groups that use this billable metric.
|
|
114
119
|
#
|
|
115
120
|
# @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
|
|
116
121
|
#
|
|
@@ -46,7 +46,10 @@ module Orb
|
|
|
46
46
|
# enables filtering using
|
|
47
47
|
# [computed properties](/extensibility/advanced-metrics#computed-properties). The
|
|
48
48
|
# expressiveness of computed properties allows you to deprecate existing events
|
|
49
|
-
# based on both a period of time and specific property values.
|
|
49
|
+
# based on both a period of time and specific property values. When
|
|
50
|
+
# `deprecation_filter` is provided, the timeframe may extend to `now` rather than
|
|
51
|
+
# the event reporting grace boundary. Matching events that arrive later with
|
|
52
|
+
# timestamps inside the timeframe will also be deprecated.
|
|
50
53
|
#
|
|
51
54
|
# You may not have multiple backfills in a pending or pending_revert state with
|
|
52
55
|
# overlapping timeframes.
|
|
@@ -93,12 +96,18 @@ module Orb
|
|
|
93
96
|
# [`pagination_metadata`](/api-reference/pagination), which lets the caller
|
|
94
97
|
# retrieve the next page of results if they exist.
|
|
95
98
|
#
|
|
96
|
-
#
|
|
99
|
+
# Use `customer_id` and `status` to filter the results.
|
|
100
|
+
#
|
|
101
|
+
# @overload list(cursor: nil, customer_id: nil, limit: nil, status: nil, request_options: {})
|
|
97
102
|
#
|
|
98
103
|
# @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
|
|
99
104
|
#
|
|
105
|
+
# @param customer_id [String, nil]
|
|
106
|
+
#
|
|
100
107
|
# @param limit [Integer] The number of items to fetch. Defaults to 20.
|
|
101
108
|
#
|
|
109
|
+
# @param status [Symbol, Orb::Models::Events::BackfillListParams::Status, nil] The status of the backfill.
|
|
110
|
+
#
|
|
102
111
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
103
112
|
#
|
|
104
113
|
# @return [Orb::Internal::Page<Orb::Models::Events::BackfillListResponse>]
|
data/lib/orb/version.rb
CHANGED
|
@@ -416,6 +416,15 @@ module Orb
|
|
|
416
416
|
sig { returns(T.nilable(Time)) }
|
|
417
417
|
attr_accessor :payment_failed_at
|
|
418
418
|
|
|
419
|
+
# When payment for this invoice was received. For an invoice manually marked as
|
|
420
|
+
# paid, this is the `payment_received_date` that was supplied. For an invoice paid
|
|
421
|
+
# through a payment provider, this is the settlement time reported by that
|
|
422
|
+
# provider. It is `null` for an invoice that became `paid` without a payment, such
|
|
423
|
+
# as a $0 invoice or one fully covered by credit notes. By contrast, `paid_at` is
|
|
424
|
+
# when the invoice reached the `paid` status in Orb.
|
|
425
|
+
sig { returns(T.nilable(Time)) }
|
|
426
|
+
attr_accessor :payment_received_at
|
|
427
|
+
|
|
419
428
|
# If payment was attempted on this invoice, this will be the start time of the
|
|
420
429
|
# most recent attempt. This field is especially useful for delayed-notification
|
|
421
430
|
# payment mechanisms (like bank transfers), where payment can take 3 days or more.
|
|
@@ -531,6 +540,7 @@ module Orb
|
|
|
531
540
|
Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::OrHash
|
|
532
541
|
],
|
|
533
542
|
payment_failed_at: T.nilable(Time),
|
|
543
|
+
payment_received_at: T.nilable(Time),
|
|
534
544
|
payment_started_at: T.nilable(Time),
|
|
535
545
|
scheduled_issue_at: T.nilable(Time),
|
|
536
546
|
shipping_address: T.nilable(Orb::Address::OrHash),
|
|
@@ -768,6 +778,13 @@ module Orb
|
|
|
768
778
|
# If payment was attempted on this invoice but failed, this will be the time of
|
|
769
779
|
# the most recent attempt.
|
|
770
780
|
payment_failed_at:,
|
|
781
|
+
# When payment for this invoice was received. For an invoice manually marked as
|
|
782
|
+
# paid, this is the `payment_received_date` that was supplied. For an invoice paid
|
|
783
|
+
# through a payment provider, this is the settlement time reported by that
|
|
784
|
+
# provider. It is `null` for an invoice that became `paid` without a payment, such
|
|
785
|
+
# as a $0 invoice or one fully covered by credit notes. By contrast, `paid_at` is
|
|
786
|
+
# when the invoice reached the `paid` status in Orb.
|
|
787
|
+
payment_received_at:,
|
|
771
788
|
# If payment was attempted on this invoice, this will be the start time of the
|
|
772
789
|
# most recent attempt. This field is especially useful for delayed-notification
|
|
773
790
|
# payment mechanisms (like bank transfers), where payment can take 3 days or more.
|
|
@@ -845,6 +862,7 @@ module Orb
|
|
|
845
862
|
Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt
|
|
846
863
|
],
|
|
847
864
|
payment_failed_at: T.nilable(Time),
|
|
865
|
+
payment_received_at: T.nilable(Time),
|
|
848
866
|
payment_started_at: T.nilable(Time),
|
|
849
867
|
scheduled_issue_at: T.nilable(Time),
|
|
850
868
|
shipping_address: T.nilable(Orb::Address),
|
|
@@ -36,6 +36,11 @@ module Orb
|
|
|
36
36
|
sig { returns(String) }
|
|
37
37
|
attr_accessor :name
|
|
38
38
|
|
|
39
|
+
# The number of prices in this group. Archived prices and subscription overrides
|
|
40
|
+
# are excluded.
|
|
41
|
+
sig { returns(Integer) }
|
|
42
|
+
attr_accessor :price_count
|
|
43
|
+
|
|
39
44
|
# A dimensional price group is used to partition the result of a billable metric
|
|
40
45
|
# by a set of dimensions. Prices in a price group must specify the partition used
|
|
41
46
|
# to derive their usage.
|
|
@@ -46,7 +51,8 @@ module Orb
|
|
|
46
51
|
dimensions: T::Array[String],
|
|
47
52
|
external_dimensional_price_group_id: T.nilable(String),
|
|
48
53
|
metadata: T::Hash[Symbol, String],
|
|
49
|
-
name: String
|
|
54
|
+
name: String,
|
|
55
|
+
price_count: Integer
|
|
50
56
|
).returns(T.attached_class)
|
|
51
57
|
end
|
|
52
58
|
def self.new(
|
|
@@ -65,7 +71,10 @@ module Orb
|
|
|
65
71
|
# `null`.
|
|
66
72
|
metadata:,
|
|
67
73
|
# The name of the dimensional price group
|
|
68
|
-
name
|
|
74
|
+
name:,
|
|
75
|
+
# The number of prices in this group. Archived prices and subscription overrides
|
|
76
|
+
# are excluded.
|
|
77
|
+
price_count:
|
|
69
78
|
)
|
|
70
79
|
end
|
|
71
80
|
|
|
@@ -77,7 +86,8 @@ module Orb
|
|
|
77
86
|
dimensions: T::Array[String],
|
|
78
87
|
external_dimensional_price_group_id: T.nilable(String),
|
|
79
88
|
metadata: T::Hash[Symbol, String],
|
|
80
|
-
name: String
|
|
89
|
+
name: String,
|
|
90
|
+
price_count: Integer
|
|
81
91
|
}
|
|
82
92
|
)
|
|
83
93
|
end
|
|
@@ -11,6 +11,10 @@ module Orb
|
|
|
11
11
|
T.any(Orb::DimensionalPriceGroupListParams, Orb::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# Filter to groups that use this billable metric.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_accessor :billable_metric_id
|
|
17
|
+
|
|
14
18
|
# Cursor for pagination. This can be populated by the `next_cursor` value returned
|
|
15
19
|
# from the initial request.
|
|
16
20
|
sig { returns(T.nilable(String)) }
|
|
@@ -25,12 +29,15 @@ module Orb
|
|
|
25
29
|
|
|
26
30
|
sig do
|
|
27
31
|
params(
|
|
32
|
+
billable_metric_id: T.nilable(String),
|
|
28
33
|
cursor: T.nilable(String),
|
|
29
34
|
limit: Integer,
|
|
30
35
|
request_options: Orb::RequestOptions::OrHash
|
|
31
36
|
).returns(T.attached_class)
|
|
32
37
|
end
|
|
33
38
|
def self.new(
|
|
39
|
+
# Filter to groups that use this billable metric.
|
|
40
|
+
billable_metric_id: nil,
|
|
34
41
|
# Cursor for pagination. This can be populated by the `next_cursor` value returned
|
|
35
42
|
# from the initial request.
|
|
36
43
|
cursor: nil,
|
|
@@ -43,6 +50,7 @@ module Orb
|
|
|
43
50
|
sig do
|
|
44
51
|
override.returns(
|
|
45
52
|
{
|
|
53
|
+
billable_metric_id: T.nilable(String),
|
|
46
54
|
cursor: T.nilable(String),
|
|
47
55
|
limit: Integer,
|
|
48
56
|
request_options: Orb::RequestOptions
|