@fantastic.dev/better-stripe 0.27.0 → 0.28.1
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 +12 -0
- package/MIGRATION.md +13 -0
- package/README.md +1 -1
- package/dist/component/_generated/component.d.ts +8 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/affiliatePayouts/queries.d.ts.map +1 -1
- package/dist/component/affiliatePayouts/queries.js +3 -1
- package/dist/component/affiliatePayouts/queries.js.map +1 -1
- package/dist/component/costRecovery/queries.d.ts.map +1 -1
- package/dist/component/costRecovery/queries.js +3 -1
- package/dist/component/costRecovery/queries.js.map +1 -1
- package/dist/component/payoutPolicy/queries.d.ts.map +1 -1
- package/dist/component/payoutPolicy/queries.js +3 -1
- package/dist/component/payoutPolicy/queries.js.map +1 -1
- package/dist/component/payoutRelease/allocationTotals.d.ts +8 -0
- package/dist/component/payoutRelease/allocationTotals.d.ts.map +1 -0
- package/dist/component/payoutRelease/allocationTotals.js +43 -0
- package/dist/component/payoutRelease/allocationTotals.js.map +1 -0
- package/dist/component/payoutRelease/planning.d.ts.map +1 -1
- package/dist/component/payoutRelease/planning.js +2 -0
- package/dist/component/payoutRelease/planning.js.map +1 -1
- package/dist/component/payoutRelease/preview.d.ts +35 -2
- package/dist/component/payoutRelease/preview.d.ts.map +1 -1
- package/dist/component/payoutRelease/preview.js +6 -11
- package/dist/component/payoutRelease/preview.js.map +1 -1
- package/dist/component/payoutRelease/progress.d.ts +29 -0
- package/dist/component/payoutRelease/progress.d.ts.map +1 -0
- package/dist/component/payoutRelease/progress.js +40 -0
- package/dist/component/payoutRelease/progress.js.map +1 -0
- package/dist/component/payoutRelease/queries.d.ts +8 -0
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/payoutSnapshots/mutations.d.ts.map +1 -1
- package/dist/component/payoutSnapshots/mutations.js +6 -4
- package/dist/component/payoutSnapshots/mutations.js.map +1 -1
- package/dist/component/payoutWorker/queries.d.ts.map +1 -1
- package/dist/component/payoutWorker/queries.js +5 -3
- package/dist/component/payoutWorker/queries.js.map +1 -1
- package/dist/react/workflows/PayoutProgress.d.ts.map +1 -1
- package/dist/react/workflows/PayoutProgress.js +2 -2
- package/dist/react/workflows/PayoutProgress.js.map +1 -1
- package/dist/react/workflows/payout-progress-state.d.ts +8 -1
- package/dist/react/workflows/payout-progress-state.d.ts.map +1 -1
- package/dist/react/workflows/payout-progress-state.js +31 -0
- package/dist/react/workflows/payout-progress-state.js.map +1 -1
- package/dist/testing/component-db.d.ts +3 -0
- package/dist/testing/component-db.d.ts.map +1 -0
- package/dist/testing/component-db.js +26 -0
- package/dist/testing/component-db.js.map +1 -0
- package/docs/react-workflows.md +8 -1
- package/docs/settlement.md +33 -0
- package/package.json +1 -1
- package/src/client/connect/payoutPreview.test.ts +145 -0
- package/src/component/_generated/api.ts +4 -0
- package/src/component/_generated/component.ts +8 -0
- package/src/component/affiliate-component-pagination.test.ts +1 -25
- package/src/component/affiliatePayouts/queries.ts +3 -1
- package/src/component/costRecovery/queries.ts +3 -1
- package/src/component/payout-component-pagination.test.ts +212 -0
- package/src/component/payoutPolicy/queries.ts +3 -1
- package/src/component/payoutRelease/allocationTotals.ts +56 -0
- package/src/component/payoutRelease/planning.ts +2 -0
- package/src/component/payoutRelease/preview.ts +10 -20
- package/src/component/payoutRelease/progress.test.ts +63 -0
- package/src/component/payoutRelease/progress.ts +56 -0
- package/src/component/payoutSnapshots/mutations.ts +6 -4
- package/src/component/payoutWorker/queries.ts +5 -3
- package/src/react/workflows/PayoutProgress.test.tsx +39 -0
- package/src/react/workflows/PayoutProgress.tsx +14 -0
- package/src/react/workflows/payout-progress-state.ts +48 -1
- package/src/testing/component-db.ts +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -26,6 +26,18 @@
|
|
|
26
26
|
- Remove internal tracker references from public documentation and add a
|
|
27
27
|
regression check that prevents their reintroduction.
|
|
28
28
|
|
|
29
|
+
## [0.28.1](https://github.com/FantasticDevHQ/better-stripe/compare/v0.28.0...v0.28.1) (2026-10-15)
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
- **payouts:** repair scheduled scans and preserve safe reset ([#210](https://github.com/FantasticDevHQ/better-stripe/issues/210)) ([5869570](https://github.com/FantasticDevHQ/better-stripe/commit/586957006690ae7e63efd57db82bcd6859d29a5e))
|
|
34
|
+
|
|
35
|
+
## [0.28.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.27.0...v0.28.0) (2026-10-15)
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
- **payouts:** expose verified carry-forward and payout accounting ([#208](https://github.com/FantasticDevHQ/better-stripe/issues/208)) ([bb3f1aa](https://github.com/FantasticDevHQ/better-stripe/commit/bb3f1aa12a947f463ee43a57c916b8f7bb8a2a8b))
|
|
40
|
+
|
|
29
41
|
## [0.27.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.26.0...v0.27.0) (2026-10-15)
|
|
30
42
|
|
|
31
43
|
### Features
|
package/MIGRATION.md
CHANGED
|
@@ -11,8 +11,21 @@ liabilities on the server before calling it. See the
|
|
|
11
11
|
for detailed versus unavailable assessments, shared deductions, and the
|
|
12
12
|
difference between an application attempt and a bank arrival.
|
|
13
13
|
|
|
14
|
+
Detailed previews now include optional `accounting` totals and per-source
|
|
15
|
+
reserved/paid amounts. Regenerate component bindings and deploy the component
|
|
16
|
+
before using them. `PayoutProgress` renders these fields when supplied; older
|
|
17
|
+
results continue to render without them. Custom renderers must treat missing
|
|
18
|
+
fields as unavailable rather than zero. No table migration is required.
|
|
19
|
+
|
|
14
20
|
## Package and runtime
|
|
15
21
|
|
|
22
|
+
Payout worker discovery, expiry, local snapshot collection, pending affiliate
|
|
23
|
+
payouts and seller cost history now use component-compatible pagination. The
|
|
24
|
+
page result shape is unchanged. Clear cached pagination cursors and reload from
|
|
25
|
+
null after upgrading these readers. Component bindings must be regenerated and
|
|
26
|
+
the component deployed; no table migration or schedule change is required.
|
|
27
|
+
See [collection restart safeguards](docs/settlement.md#resumable-local-collections).
|
|
28
|
+
|
|
16
29
|
Install `@fantastic.dev/better-stripe@0.5.0`. The old
|
|
17
30
|
`@getdojo/better-stripe` name is deprecated. Replace imports and the component
|
|
18
31
|
config import with the new name, retaining your existing component instance
|
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ claim execution are completed.
|
|
|
70
70
|
|
|
71
71
|
## Status
|
|
72
72
|
|
|
73
|
-
**Version**: `0.
|
|
73
|
+
**Version**: `0.28.1` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
|
|
74
74
|
|
|
75
75
|
Used in production by its authors. Webhook pipeline is covered by unit tests and a live E2E harness (`npm run e2e:webhooks`) that fires real Stripe-signed events and asserts the ledger.
|
|
76
76
|
|
|
@@ -2901,6 +2901,12 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
2901
2901
|
reason: string;
|
|
2902
2902
|
status: "held";
|
|
2903
2903
|
} | {
|
|
2904
|
+
accounting?: {
|
|
2905
|
+
carriedForwardAmount: number;
|
|
2906
|
+
releasedAmount: number;
|
|
2907
|
+
reservedAmount: number;
|
|
2908
|
+
withheldAmount: number;
|
|
2909
|
+
};
|
|
2904
2910
|
amount: number;
|
|
2905
2911
|
confirmedFees: number;
|
|
2906
2912
|
currency: string;
|
|
@@ -2914,6 +2920,8 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
2914
2920
|
sources: Array<{
|
|
2915
2921
|
matureUnpaid: number;
|
|
2916
2922
|
pendingCredits: number;
|
|
2923
|
+
releasedAmount?: number;
|
|
2924
|
+
reservedAmount?: number;
|
|
2917
2925
|
role: "store" | "affiliate" | "other";
|
|
2918
2926
|
}>;
|
|
2919
2927
|
status: "held" | "qualified";
|