reveclicat 0.2.0 → 0.3.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.
- package/CHANGELOG.md +11 -1
- package/README.md +3 -3
- package/dist/cli.js +60 -19
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +17 -7
- package/dist/index.js +62 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scenarios/stripe-billing-issue-recovers.yaml +19 -0
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: stripe-billing-issue-recovers
|
|
2
|
+
description: Stripe subscription — trial converts, the next charge fails (RevenueCat sends BILLING_ISSUE and a BILLING_ERROR cancellation together), then the customer pays and recovers
|
|
3
|
+
subscriber:
|
|
4
|
+
app_user_id: auto
|
|
5
|
+
store: stripe # si_… ids that never change; renewal_number on every event; no UNCANCELLATION/TEST
|
|
6
|
+
product_id: prod_RccPremiumMonthly # Stripe Product id
|
|
7
|
+
period: P1M
|
|
8
|
+
trial: P1W
|
|
9
|
+
steps:
|
|
10
|
+
- event: INITIAL_PURCHASE # trial (renewal_number 1)
|
|
11
|
+
- advance: P1W
|
|
12
|
+
- event: RENEWAL # conversion (renewal_number 2)
|
|
13
|
+
- advance: P1M
|
|
14
|
+
- event: BILLING_ISSUE # failed attempt: expiration already extended, grace_period_expiration_at_ms null
|
|
15
|
+
- event: CANCELLATION # dispatched by RevenueCat together with the billing issue (cancel_reason BILLING_ERROR)
|
|
16
|
+
- advance: P3D
|
|
17
|
+
- event: RENEWAL # invoice paid: recovery, expiration unchanged
|
|
18
|
+
expect:
|
|
19
|
+
all_responses_status: 200
|