backend-manager 5.0.106 → 5.0.107
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.
- package/CHANGELOG.md +8 -0
- package/CLAUDE.md +2 -2
- package/README.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
14
14
|
- `Fixed` for any bug fixes.
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
|
16
16
|
|
|
17
|
+
# [5.0.106] - 2026-03-04
|
|
18
|
+
### Added
|
|
19
|
+
- `GET /payments/trial-eligibility`: returns whether the authenticated user is eligible for a free trial (checks for any previous subscription orders in `payments-orders`).
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- Payment frequency mapping now supports `daily` and `weekly` in addition to `monthly` and `annually` across Stripe (`resolvePriceId`), PayPal (`resolvePlanId`), and test processor (`createSubscriptionIntent`). Previously, these frequencies silently fell back to `monthly`.
|
|
23
|
+
- Updated docs (CLAUDE.md, README.md) to list all four supported frequency values.
|
|
24
|
+
|
|
17
25
|
# [5.0.104] - 2026-03-02
|
|
18
26
|
### Added
|
|
19
27
|
- `POST /payments/cancel`: cancels subscription at period end via processor abstraction (Stripe sets `cancel_at_period_end=true`; test processor writes webhook directly into the Firestore pipeline).
|
package/CLAUDE.md
CHANGED
|
@@ -705,7 +705,7 @@ subscription: {
|
|
|
705
705
|
processor: null, // 'stripe' | 'paypal' | etc.
|
|
706
706
|
orderId: null, // BEM order ID (e.g., '1234-5678-9012')
|
|
707
707
|
resourceId: null, // provider subscription ID (e.g., 'sub_xxx')
|
|
708
|
-
frequency: null, // 'monthly' | 'annually'
|
|
708
|
+
frequency: null, // 'monthly' | 'annually' | 'weekly' | 'daily'
|
|
709
709
|
price: 0, // resolved from config (number, e.g., 4.99)
|
|
710
710
|
startDate: { timestamp, timestampUNIX },
|
|
711
711
|
updatedBy: {
|
|
@@ -911,7 +911,7 @@ payment: {
|
|
|
911
911
|
type: 'subscription',
|
|
912
912
|
limits: { requests: 1000 },
|
|
913
913
|
trial: { days: 14 },
|
|
914
|
-
prices: { monthly: 4.99, annually: 49.99 }, // Flat numbers
|
|
914
|
+
prices: { monthly: 4.99, annually: 49.99 }, // Flat numbers; also supports 'weekly' and 'daily'
|
|
915
915
|
stripe: { productId: 'prod_xxx', legacyProductIds: ['prod_OLD'] },
|
|
916
916
|
paypal: { productId: 'PROD-abc123' },
|
|
917
917
|
},
|
package/README.md
CHANGED
|
@@ -922,7 +922,7 @@ payment: {
|
|
|
922
922
|
{
|
|
923
923
|
id: 'plus', name: 'Plus', type: 'subscription',
|
|
924
924
|
limits: { requests: 100 }, trial: { days: 14 },
|
|
925
|
-
prices: { monthly: 28, annually: 276 },
|
|
925
|
+
prices: { monthly: 28, annually: 276 }, // also supports 'weekly' and 'daily'
|
|
926
926
|
stripe: { productId: 'prod_xxx' },
|
|
927
927
|
paypal: { productId: 'PROD-abc123' },
|
|
928
928
|
},
|
|
@@ -958,7 +958,7 @@ subscription: {
|
|
|
958
958
|
payment: {
|
|
959
959
|
processor: null, // 'stripe' | 'paypal' | etc.
|
|
960
960
|
resourceId: null, // provider subscription ID (e.g., 'sub_xxx')
|
|
961
|
-
frequency: null, // 'monthly' | 'annually'
|
|
961
|
+
frequency: null, // 'monthly' | 'annually' | 'weekly' | 'daily'
|
|
962
962
|
startDate: { timestamp, timestampUNIX },
|
|
963
963
|
updatedBy: {
|
|
964
964
|
event: { name: null, id: null },
|