orb-billing 1.25.0 → 1.26.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 +7 -0
- data/README.md +1 -1
- data/lib/orb/resources/subscriptions.rb +39 -6
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/resources/subscriptions.rbi +39 -6
- 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: 2c12cf6290d59fdfbe36363756a6faa1e1b1edaafc01c4f4fbc6ab3dc898de7a
|
|
4
|
+
data.tar.gz: ffeb5a57b526735247d9256f825b1998b3fb5cc4f4e5017995ea0d4175917df5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b63ed1f28b0e9935bf91cde9c2e4685f984aec88f424d61673cc6609f7b3716a1c7b597818aabd4f7b28b4329ce1658604d01c88e7c41fb2dd17f0504ef4b1b
|
|
7
|
+
data.tar.gz: e87a204410f241783b196af74f0af0642d27bcc84aa68e99213b810622bc1a17a4b2ba4797373805a40026a2b3c3c8f1a02509cb4777b02200fb51a1e7beae9b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.26.0](https://github.com/orbcorp/orb-ruby/compare/v1.25.0...v1.26.0) (2026-08-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** api update ([4235146](https://github.com/orbcorp/orb-ruby/commit/4235146bb3f1dbc5993956b47bab93ad70c967a6))
|
|
9
|
+
|
|
3
10
|
## [1.25.0](https://github.com/orbcorp/orb-ruby/compare/v1.24.0...v1.25.0) (2026-08-05)
|
|
4
11
|
|
|
5
12
|
|
data/README.md
CHANGED
|
@@ -1081,6 +1081,17 @@ module Orb
|
|
|
1081
1081
|
# Note that one of `plan_id` or `external_plan_id` is required in the request body
|
|
1082
1082
|
# for this operation.
|
|
1083
1083
|
#
|
|
1084
|
+
# ## Interaction with scheduled cancellations
|
|
1085
|
+
#
|
|
1086
|
+
# Scheduling a plan change also unschedules a pending cancellation, as long as the
|
|
1087
|
+
# cancellation date is on or after the plan change date: Orb honors the plan
|
|
1088
|
+
# change over the scheduled cancellation, and the subscription continues on the
|
|
1089
|
+
# new plan. Scheduling a plan change after the subscription's end date returns a
|
|
1090
|
+
# validation error instead.
|
|
1091
|
+
#
|
|
1092
|
+
# Any plan changes already scheduled at or after the new plan change's date are
|
|
1093
|
+
# unscheduled and replaced by it.
|
|
1094
|
+
#
|
|
1084
1095
|
# ## Customize your customer's subscriptions
|
|
1085
1096
|
#
|
|
1086
1097
|
# Prices and adjustments in a plan can be added, removed, or replaced on the
|
|
@@ -1338,11 +1349,19 @@ module Orb
|
|
|
1338
1349
|
# cancellation. This operation will turn on auto-renew, ensuring that the
|
|
1339
1350
|
# subscription does not end at the currently scheduled cancellation time.
|
|
1340
1351
|
#
|
|
1341
|
-
#
|
|
1342
|
-
#
|
|
1343
|
-
#
|
|
1344
|
-
#
|
|
1345
|
-
#
|
|
1352
|
+
# A cancellation that has already taken effect cannot be unscheduled. This
|
|
1353
|
+
# includes backdated cancellations: once the subscription's end date is in the
|
|
1354
|
+
# past, this endpoint returns a validation error.
|
|
1355
|
+
#
|
|
1356
|
+
# Note: uncancellation is a lossy operation. Price and adjustment intervals that
|
|
1357
|
+
# were cut short by the cancellation are extended to infinity (original end dates
|
|
1358
|
+
# are lost), and future intervals or phases scheduled after the cancellation time
|
|
1359
|
+
# are permanently deleted. For complex subscriptions with phases or scheduled plan
|
|
1360
|
+
# changes, consider creating a new plan change instead of uncancelling.
|
|
1361
|
+
#
|
|
1362
|
+
# If the scheduled cancellation already produced invoices or credit notes (for
|
|
1363
|
+
# example, a proration refund credit note for an in-advance fee), uncancelling
|
|
1364
|
+
# voids and reissues them as needed to match the subscription's new state.
|
|
1346
1365
|
#
|
|
1347
1366
|
# @overload unschedule_cancellation(subscription_id, request_options: {})
|
|
1348
1367
|
#
|
|
@@ -1390,7 +1409,21 @@ module Orb
|
|
|
1390
1409
|
end
|
|
1391
1410
|
|
|
1392
1411
|
# This endpoint can be used to unschedule any pending plan changes on an existing
|
|
1393
|
-
# subscription. When called, all upcoming plan changes will be unscheduled
|
|
1412
|
+
# subscription. When called, all upcoming plan changes will be unscheduled; it is
|
|
1413
|
+
# not possible to unschedule a single plan change if multiple are scheduled.
|
|
1414
|
+
#
|
|
1415
|
+
# Note: unscheduling a plan change is a lossy operation, with the same semantics
|
|
1416
|
+
# as
|
|
1417
|
+
# [unscheduling a cancellation](/api-reference/subscription/unschedule-subscription-cancellation).
|
|
1418
|
+
# Prices and adjustments on the current plan that were scheduled to end at the
|
|
1419
|
+
# plan change time are extended to infinity (original end dates are lost), and
|
|
1420
|
+
# anything scheduled to start after the plan change time is permanently deleted.
|
|
1421
|
+
# Coupons redeemed as part of an unscheduled plan change are released and can be
|
|
1422
|
+
# redeemed again.
|
|
1423
|
+
#
|
|
1424
|
+
# A scheduled cancellation is not affected by this operation: if the subscription
|
|
1425
|
+
# has both a pending plan change and a scheduled cancellation, unscheduling the
|
|
1426
|
+
# plan change leaves the cancellation in place.
|
|
1394
1427
|
#
|
|
1395
1428
|
# @overload unschedule_pending_plan_changes(subscription_id, request_options: {})
|
|
1396
1429
|
#
|
data/lib/orb/version.rb
CHANGED
|
@@ -1103,6 +1103,17 @@ module Orb
|
|
|
1103
1103
|
# Note that one of `plan_id` or `external_plan_id` is required in the request body
|
|
1104
1104
|
# for this operation.
|
|
1105
1105
|
#
|
|
1106
|
+
# ## Interaction with scheduled cancellations
|
|
1107
|
+
#
|
|
1108
|
+
# Scheduling a plan change also unschedules a pending cancellation, as long as the
|
|
1109
|
+
# cancellation date is on or after the plan change date: Orb honors the plan
|
|
1110
|
+
# change over the scheduled cancellation, and the subscription continues on the
|
|
1111
|
+
# new plan. Scheduling a plan change after the subscription's end date returns a
|
|
1112
|
+
# validation error instead.
|
|
1113
|
+
#
|
|
1114
|
+
# Any plan changes already scheduled at or after the new plan change's date are
|
|
1115
|
+
# unscheduled and replaced by it.
|
|
1116
|
+
#
|
|
1106
1117
|
# ## Customize your customer's subscriptions
|
|
1107
1118
|
#
|
|
1108
1119
|
# Prices and adjustments in a plan can be added, removed, or replaced on the
|
|
@@ -1439,11 +1450,19 @@ module Orb
|
|
|
1439
1450
|
# cancellation. This operation will turn on auto-renew, ensuring that the
|
|
1440
1451
|
# subscription does not end at the currently scheduled cancellation time.
|
|
1441
1452
|
#
|
|
1442
|
-
#
|
|
1443
|
-
#
|
|
1444
|
-
#
|
|
1445
|
-
#
|
|
1446
|
-
#
|
|
1453
|
+
# A cancellation that has already taken effect cannot be unscheduled. This
|
|
1454
|
+
# includes backdated cancellations: once the subscription's end date is in the
|
|
1455
|
+
# past, this endpoint returns a validation error.
|
|
1456
|
+
#
|
|
1457
|
+
# Note: uncancellation is a lossy operation. Price and adjustment intervals that
|
|
1458
|
+
# were cut short by the cancellation are extended to infinity (original end dates
|
|
1459
|
+
# are lost), and future intervals or phases scheduled after the cancellation time
|
|
1460
|
+
# are permanently deleted. For complex subscriptions with phases or scheduled plan
|
|
1461
|
+
# changes, consider creating a new plan change instead of uncancelling.
|
|
1462
|
+
#
|
|
1463
|
+
# If the scheduled cancellation already produced invoices or credit notes (for
|
|
1464
|
+
# example, a proration refund credit note for an in-advance fee), uncancelling
|
|
1465
|
+
# voids and reissues them as needed to match the subscription's new state.
|
|
1447
1466
|
sig do
|
|
1448
1467
|
params(
|
|
1449
1468
|
subscription_id: String,
|
|
@@ -1474,7 +1493,21 @@ module Orb
|
|
|
1474
1493
|
end
|
|
1475
1494
|
|
|
1476
1495
|
# This endpoint can be used to unschedule any pending plan changes on an existing
|
|
1477
|
-
# subscription. When called, all upcoming plan changes will be unscheduled
|
|
1496
|
+
# subscription. When called, all upcoming plan changes will be unscheduled; it is
|
|
1497
|
+
# not possible to unschedule a single plan change if multiple are scheduled.
|
|
1498
|
+
#
|
|
1499
|
+
# Note: unscheduling a plan change is a lossy operation, with the same semantics
|
|
1500
|
+
# as
|
|
1501
|
+
# [unscheduling a cancellation](/api-reference/subscription/unschedule-subscription-cancellation).
|
|
1502
|
+
# Prices and adjustments on the current plan that were scheduled to end at the
|
|
1503
|
+
# plan change time are extended to infinity (original end dates are lost), and
|
|
1504
|
+
# anything scheduled to start after the plan change time is permanently deleted.
|
|
1505
|
+
# Coupons redeemed as part of an unscheduled plan change are released and can be
|
|
1506
|
+
# redeemed again.
|
|
1507
|
+
#
|
|
1508
|
+
# A scheduled cancellation is not affected by this operation: if the subscription
|
|
1509
|
+
# has both a pending plan change and a scheduled cancellation, unscheduling the
|
|
1510
|
+
# plan change leaves the cancellation in place.
|
|
1478
1511
|
sig do
|
|
1479
1512
|
params(
|
|
1480
1513
|
subscription_id: String,
|
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.
|
|
4
|
+
version: 1.26.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Orb
|
|
@@ -1407,7 +1407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1407
1407
|
- !ruby/object:Gem::Version
|
|
1408
1408
|
version: '0'
|
|
1409
1409
|
requirements: []
|
|
1410
|
-
rubygems_version: 4.0.
|
|
1410
|
+
rubygems_version: 4.0.18
|
|
1411
1411
|
specification_version: 4
|
|
1412
1412
|
summary: Ruby library to access the Orb API
|
|
1413
1413
|
test_files: []
|