@fantastic.dev/better-stripe 0.88.1 → 0.89.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 +6 -0
- package/README.md +1 -1
- package/dist/client/billing/renewalAttach/internal/originalOwner.d.ts +27 -0
- package/dist/client/billing/renewalAttach/internal/originalOwner.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/originalOwner.js +236 -0
- package/dist/client/billing/renewalAttach/internal/originalOwner.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/sourceBindings.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/sourceBindings.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/sourceBindings.js +9 -0
- package/dist/client/billing/renewalAttach/internal/sourceBindings.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/stockRawDelegate.d.ts +6 -0
- package/dist/client/billing/renewalAttach/internal/stockRawDelegate.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/stockRawDelegate.js +35 -0
- package/dist/client/billing/renewalAttach/internal/stockRawDelegate.js.map +1 -0
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +16 -16
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +32 -32
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
- package/dist/component/usage/allowance.fixtures.d.ts +16 -16
- package/dist/component/usageCredits/accounting.fixtures.d.ts +16 -16
- package/docs/renewal-context-reads.md +15 -0
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/originalOwner.test.ts +258 -0
- package/src/client/billing/renewalAttach/internal/originalOwner.ts +280 -0
- package/src/client/billing/renewalAttach/internal/sourceBindings.test.ts +13 -0
- package/src/client/billing/renewalAttach/internal/sourceBindings.ts +8 -0
- package/src/client/billing/renewalAttach/internal/stockRawDelegate.test.ts +156 -0
- package/src/client/billing/renewalAttach/internal/stockRawDelegate.ts +43 -0
package/CHANGELOG.md
CHANGED
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
- Remove internal tracker references from public documentation and add a
|
|
27
27
|
regression check that prevents their reintroduction.
|
|
28
28
|
|
|
29
|
+
## [0.89.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.88.1...v0.89.0) (2026-10-29)
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- **billing:** add internal renewal owner and stock delegate ([#416](https://github.com/FantasticDevHQ/better-stripe/issues/416)) ([2ea0ec7](https://github.com/FantasticDevHQ/better-stripe/commit/2ea0ec770ae80111e8ce5dba3d1d6f8dceaae3d2))
|
|
34
|
+
|
|
29
35
|
## [0.88.1](https://github.com/FantasticDevHQ/better-stripe/compare/v0.88.0...v0.88.1) (2026-10-29)
|
|
30
36
|
|
|
31
37
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ billing, and Connect marketplaces. It provides checkout, subscriptions, webhook
|
|
|
5
5
|
syncing, marketplace fees and splits, payouts, refunds, and disputes, with React
|
|
6
6
|
hooks and headless UI components.
|
|
7
7
|
|
|
8
|
-
**Version**: `0.
|
|
8
|
+
**Version**: `0.89.0` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
|
|
9
9
|
|
|
10
10
|
Connect platforms use the default GA API version. Non-Connect merchants using
|
|
11
11
|
customer-only Accounts v2 need preview access and an explicit preview version.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface OriginalBasis {
|
|
2
|
+
readonly startWallMs: number;
|
|
3
|
+
readonly startNs: bigint;
|
|
4
|
+
readonly workEndWallMs: number;
|
|
5
|
+
readonly workEndNs: bigint;
|
|
6
|
+
readonly endWallMs: number;
|
|
7
|
+
readonly endNs: bigint;
|
|
8
|
+
}
|
|
9
|
+
export interface OriginalSample {
|
|
10
|
+
readonly wallMs: number;
|
|
11
|
+
readonly ns: bigint;
|
|
12
|
+
readonly nowSeconds: number;
|
|
13
|
+
readonly retired: false;
|
|
14
|
+
}
|
|
15
|
+
declare function close(): void;
|
|
16
|
+
declare function check(): Readonly<OriginalSample>;
|
|
17
|
+
declare function subscribe(fn: () => void): () => void;
|
|
18
|
+
/** Stable internal identity. Importing it neither loads a Source nor samples a clock. */
|
|
19
|
+
export declare const OWNER: Readonly<{
|
|
20
|
+
readonly basis: Readonly<OriginalBasis>;
|
|
21
|
+
check: typeof check;
|
|
22
|
+
sample: typeof check;
|
|
23
|
+
subscribe: typeof subscribe;
|
|
24
|
+
retire: typeof close;
|
|
25
|
+
}>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=originalOwner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"originalOwner.d.ts","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/originalOwner.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;CACzB;AA+ED,iBAAS,KAAK,SAWb;AAuFD,iBAAS,KAAK,IAAI,QAAQ,CAAC,cAAc,CAAC,CAkDzC;AACD,iBAAS,SAAS,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAwB7C;AACD,yFAAyF;AACzF,eAAO,MAAM,KAAK;;;;;;EAQhB,CAAC"}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/** Internal owner mechanics; Source origin and production bindings remain unbound. */
|
|
2
|
+
import { types } from "node:util";
|
|
3
|
+
import { loadOwnedOriginalSource } from "./sourceBindings.js";
|
|
4
|
+
function stop() {
|
|
5
|
+
throw new Error("ORIGINAL_OWNER_STOP");
|
|
6
|
+
}
|
|
7
|
+
function need(value) {
|
|
8
|
+
if (!value)
|
|
9
|
+
stop();
|
|
10
|
+
}
|
|
11
|
+
const isProxy = types.isProxy;
|
|
12
|
+
const u64 = 18446744073709551615n;
|
|
13
|
+
const ms = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
14
|
+
const ns = (value) => typeof value === "bigint" && value >= 0n && value <= u64;
|
|
15
|
+
function own(value, names) {
|
|
16
|
+
need(!isProxy(value));
|
|
17
|
+
need(value !== null && typeof value === "object" && !Array.isArray(value));
|
|
18
|
+
const prototype = Object.getPrototypeOf(value);
|
|
19
|
+
need(prototype === Object.prototype || prototype === null);
|
|
20
|
+
const keys = Reflect.ownKeys(value);
|
|
21
|
+
need(keys.length === names.length &&
|
|
22
|
+
keys.every((key) => typeof key === "string" && names.includes(key)));
|
|
23
|
+
const result = Object.create(null);
|
|
24
|
+
for (const key of names) {
|
|
25
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
26
|
+
need(descriptor &&
|
|
27
|
+
descriptor.enumerable &&
|
|
28
|
+
Object.prototype.hasOwnProperty.call(descriptor, "value"));
|
|
29
|
+
Object.defineProperty(result, key, {
|
|
30
|
+
value: descriptor.value,
|
|
31
|
+
enumerable: true,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
let state = "unused";
|
|
37
|
+
let context = null;
|
|
38
|
+
let checking = false;
|
|
39
|
+
let last = null;
|
|
40
|
+
let detachClock = null;
|
|
41
|
+
let detached = false;
|
|
42
|
+
const waiters = new Set();
|
|
43
|
+
// Source registration can synchronously reenter and close the latch.
|
|
44
|
+
const isClosed = () => state === "closed";
|
|
45
|
+
function detach() {
|
|
46
|
+
if (!detached && detachClock) {
|
|
47
|
+
detached = true;
|
|
48
|
+
try {
|
|
49
|
+
Reflect.apply(detachClock, undefined, []);
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
/* Closing remains irreversible. */
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function notify(fn) {
|
|
57
|
+
try {
|
|
58
|
+
Reflect.apply(fn, undefined, []);
|
|
59
|
+
}
|
|
60
|
+
catch {
|
|
61
|
+
/* One waiter cannot prevent retirement. */
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function close() {
|
|
65
|
+
if (state === "closed")
|
|
66
|
+
return;
|
|
67
|
+
state = "closed";
|
|
68
|
+
detach();
|
|
69
|
+
const active = [...waiters];
|
|
70
|
+
waiters.clear();
|
|
71
|
+
for (const record of active)
|
|
72
|
+
if (record.active) {
|
|
73
|
+
record.active = false;
|
|
74
|
+
notify(record.fn);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function initialize() {
|
|
78
|
+
if (state === "closed")
|
|
79
|
+
stop();
|
|
80
|
+
if (state === "loading") {
|
|
81
|
+
close();
|
|
82
|
+
stop();
|
|
83
|
+
}
|
|
84
|
+
if (state === "live") {
|
|
85
|
+
need(context);
|
|
86
|
+
return context;
|
|
87
|
+
}
|
|
88
|
+
state = "loading";
|
|
89
|
+
try {
|
|
90
|
+
const loaded = loadOwnedOriginalSource();
|
|
91
|
+
need(state === "loading");
|
|
92
|
+
const source = own(loaded, [
|
|
93
|
+
"clock",
|
|
94
|
+
"originalPolicy",
|
|
95
|
+
"originAssociation",
|
|
96
|
+
]);
|
|
97
|
+
const clock = own(source.clock, ["basis", "sample", "subscribeRetirement"]);
|
|
98
|
+
const basis = own(clock.basis, [
|
|
99
|
+
"startWallMs",
|
|
100
|
+
"startNs",
|
|
101
|
+
"workEndWallMs",
|
|
102
|
+
"workEndNs",
|
|
103
|
+
"endWallMs",
|
|
104
|
+
"endNs",
|
|
105
|
+
]);
|
|
106
|
+
need(ms(basis.startWallMs) &&
|
|
107
|
+
ms(basis.workEndWallMs) &&
|
|
108
|
+
ms(basis.endWallMs) &&
|
|
109
|
+
ns(basis.startNs) &&
|
|
110
|
+
ns(basis.workEndNs) &&
|
|
111
|
+
ns(basis.endNs) &&
|
|
112
|
+
basis.startWallMs < basis.workEndWallMs &&
|
|
113
|
+
basis.workEndWallMs <= basis.endWallMs &&
|
|
114
|
+
basis.startNs < basis.workEndNs &&
|
|
115
|
+
basis.workEndNs <= basis.endNs);
|
|
116
|
+
const policy = own(source.originalPolicy, [
|
|
117
|
+
"firstDispatchedAt",
|
|
118
|
+
"periodStart",
|
|
119
|
+
"periodEnd",
|
|
120
|
+
]);
|
|
121
|
+
need(ms(policy.firstDispatchedAt) &&
|
|
122
|
+
ms(policy.periodStart) &&
|
|
123
|
+
ms(policy.periodEnd) &&
|
|
124
|
+
policy.periodStart < policy.periodEnd);
|
|
125
|
+
need(source.originAssociation !== null &&
|
|
126
|
+
typeof source.originAssociation === "object" &&
|
|
127
|
+
!isProxy(source.originAssociation));
|
|
128
|
+
need(typeof clock.sample === "function" &&
|
|
129
|
+
!isProxy(clock.sample) &&
|
|
130
|
+
typeof clock.subscribeRetirement === "function" &&
|
|
131
|
+
!isProxy(clock.subscribeRetirement));
|
|
132
|
+
// These assertions follow complete own-data validation above. Nothing is taken from a caller API.
|
|
133
|
+
context = Object.freeze({
|
|
134
|
+
basis: Object.freeze({ ...basis }),
|
|
135
|
+
policy: Object.freeze({ ...policy }),
|
|
136
|
+
sample: clock.sample,
|
|
137
|
+
clock: source.clock,
|
|
138
|
+
originAssociation: source.originAssociation,
|
|
139
|
+
});
|
|
140
|
+
const unsubscribe = Reflect.apply(clock.subscribeRetirement, source.clock, [close]);
|
|
141
|
+
need(typeof unsubscribe === "function" && !isProxy(unsubscribe));
|
|
142
|
+
detachClock = unsubscribe;
|
|
143
|
+
if (isClosed())
|
|
144
|
+
detach();
|
|
145
|
+
need(state === "loading");
|
|
146
|
+
state = "live";
|
|
147
|
+
return context;
|
|
148
|
+
}
|
|
149
|
+
catch {
|
|
150
|
+
close();
|
|
151
|
+
stop();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function check() {
|
|
155
|
+
if (state === "closed" || checking) {
|
|
156
|
+
close();
|
|
157
|
+
stop();
|
|
158
|
+
}
|
|
159
|
+
checking = true;
|
|
160
|
+
try {
|
|
161
|
+
const current = initialize();
|
|
162
|
+
need(state === "live");
|
|
163
|
+
const raw = Reflect.apply(current.sample, current.clock, []);
|
|
164
|
+
need(state === "live");
|
|
165
|
+
const value = own(raw, ["wallMs", "ns"]), basis = current.basis, policy = current.policy;
|
|
166
|
+
need(ms(value.wallMs) &&
|
|
167
|
+
ns(value.ns) &&
|
|
168
|
+
value.wallMs >= basis.startWallMs &&
|
|
169
|
+
value.ns >= basis.startNs &&
|
|
170
|
+
value.wallMs < basis.workEndWallMs &&
|
|
171
|
+
value.ns < basis.workEndNs &&
|
|
172
|
+
value.wallMs < basis.endWallMs &&
|
|
173
|
+
value.ns < basis.endNs &&
|
|
174
|
+
(!last || (value.wallMs >= last.wallMs && value.ns >= last.ns)));
|
|
175
|
+
const nowSeconds = Math.floor(value.wallMs / 1000), lastSeconds = last ? last.nowSeconds : policy.firstDispatchedAt;
|
|
176
|
+
need(Number.isSafeInteger(nowSeconds) &&
|
|
177
|
+
nowSeconds >= lastSeconds &&
|
|
178
|
+
nowSeconds >= policy.firstDispatchedAt &&
|
|
179
|
+
nowSeconds - policy.firstDispatchedAt < 86400 &&
|
|
180
|
+
nowSeconds >= policy.periodStart &&
|
|
181
|
+
nowSeconds < policy.periodEnd);
|
|
182
|
+
need(state === "live");
|
|
183
|
+
const accepted = Object.freeze({
|
|
184
|
+
wallMs: value.wallMs,
|
|
185
|
+
ns: value.ns,
|
|
186
|
+
nowSeconds,
|
|
187
|
+
retired: false,
|
|
188
|
+
});
|
|
189
|
+
last = accepted;
|
|
190
|
+
return accepted;
|
|
191
|
+
}
|
|
192
|
+
catch {
|
|
193
|
+
close();
|
|
194
|
+
stop();
|
|
195
|
+
}
|
|
196
|
+
finally {
|
|
197
|
+
checking = false;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
function subscribe(fn) {
|
|
201
|
+
if (typeof fn !== "function" || isProxy(fn)) {
|
|
202
|
+
close();
|
|
203
|
+
stop();
|
|
204
|
+
}
|
|
205
|
+
if (state !== "closed") {
|
|
206
|
+
try {
|
|
207
|
+
initialize();
|
|
208
|
+
}
|
|
209
|
+
catch {
|
|
210
|
+
/* Closed listeners are notified below. */
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (state === "closed") {
|
|
214
|
+
notify(fn);
|
|
215
|
+
return () => { };
|
|
216
|
+
}
|
|
217
|
+
const record = { fn, active: true };
|
|
218
|
+
waiters.add(record);
|
|
219
|
+
return () => {
|
|
220
|
+
if (record.active) {
|
|
221
|
+
record.active = false;
|
|
222
|
+
waiters.delete(record);
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
/** Stable internal identity. Importing it neither loads a Source nor samples a clock. */
|
|
227
|
+
export const OWNER = Object.freeze({
|
|
228
|
+
get basis() {
|
|
229
|
+
return initialize().basis;
|
|
230
|
+
},
|
|
231
|
+
check,
|
|
232
|
+
sample: check,
|
|
233
|
+
subscribe,
|
|
234
|
+
retire: close,
|
|
235
|
+
});
|
|
236
|
+
//# sourceMappingURL=originalOwner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"originalOwner.js","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/originalOwner.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,M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C5B,CAAC;IACD,KAAK;IACL,MAAM,EAAE,KAAK;IACb,SAAS;IACT,MAAM,EAAE,KAAK;CACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Internal adoption defaults. No production Source capability is bound. */
|
|
2
|
+
export declare const COMPILED_ENTRIES: readonly never[];
|
|
3
|
+
export declare function loadOwnedOriginalSource(): unknown;
|
|
4
|
+
export declare function loadFixedStockClient(): unknown;
|
|
5
|
+
//# sourceMappingURL=sourceBindings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceBindings.d.ts","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/sourceBindings.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,EAAE,SAAS,KAAK,EAAsB,CAAC;AACpE,wBAAgB,uBAAuB,IAAI,OAAO,CAEjD;AACD,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Internal adoption defaults. No production Source capability is bound. */
|
|
2
|
+
export const COMPILED_ENTRIES = Object.freeze([]);
|
|
3
|
+
export function loadOwnedOriginalSource() {
|
|
4
|
+
throw new Error("ORIGINAL_OWNER_UNBOUND");
|
|
5
|
+
}
|
|
6
|
+
export function loadFixedStockClient() {
|
|
7
|
+
throw new Error("STOCK_CLIENT_UNBOUND");
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=sourceBindings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceBindings.js","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/sourceBindings.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAqB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AACpE,MAAM,UAAU,uBAAuB;IACrC,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAC5C,CAAC;AACD,MAAM,UAAU,oBAAoB;IAClC,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Stripe from "stripe";
|
|
2
|
+
/** Internal fixed Source facade, not a public client or qualification selector. */
|
|
3
|
+
export declare function createSourceStockRawDelegate(): Readonly<{
|
|
4
|
+
rawRequest: Stripe["rawRequest"];
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=stockRawDelegate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stockRawDelegate.d.ts","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/stockRawDelegate.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAS5B,mFAAmF;AACnF,wBAAgB,4BAA4B,IAAI,QAAQ,CAAC;IACvD,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;CAClC,CAAC,CA8BD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Stripe from "stripe";
|
|
2
|
+
import { types } from "node:util";
|
|
3
|
+
import { OWNER } from "./originalOwner.js";
|
|
4
|
+
import { loadFixedStockClient } from "./sourceBindings.js";
|
|
5
|
+
function stop() {
|
|
6
|
+
throw new Error("STOCK_SOURCE_DELEGATE_UNBOUND");
|
|
7
|
+
}
|
|
8
|
+
const apply = Reflect.apply;
|
|
9
|
+
/** Internal fixed Source facade, not a public client or qualification selector. */
|
|
10
|
+
export function createSourceStockRawDelegate() {
|
|
11
|
+
if (arguments.length !== 0)
|
|
12
|
+
stop();
|
|
13
|
+
OWNER.check();
|
|
14
|
+
const client = loadFixedStockClient();
|
|
15
|
+
OWNER.check();
|
|
16
|
+
if (!client ||
|
|
17
|
+
typeof client !== "object" ||
|
|
18
|
+
types.isProxy(client) ||
|
|
19
|
+
Object.getPrototypeOf(client) !== Stripe.prototype ||
|
|
20
|
+
Object.prototype.hasOwnProperty.call(client, "rawRequest"))
|
|
21
|
+
stop();
|
|
22
|
+
const descriptor = Object.getOwnPropertyDescriptor(Stripe.prototype, "rawRequest");
|
|
23
|
+
if (!descriptor ||
|
|
24
|
+
!Object.prototype.hasOwnProperty.call(descriptor, "value") ||
|
|
25
|
+
typeof descriptor.value !== "function")
|
|
26
|
+
stop();
|
|
27
|
+
const method = descriptor.value;
|
|
28
|
+
OWNER.check();
|
|
29
|
+
return Object.freeze({
|
|
30
|
+
rawRequest(...args) {
|
|
31
|
+
return apply(method, client, args);
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=stockRawDelegate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stockRawDelegate.js","sourceRoot":"","sources":["../../../../../src/client/billing/renewalAttach/internal/stockRawDelegate.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,SAAS,IAAI;IACX,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;AACnD,CAAC;AACD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;AAC5B,mFAAmF;AACnF,MAAM,UAAU,4BAA4B;IAG1C,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,IAAI,EAAE,CAAC;IACnC,KAAK,CAAC,KAAK,EAAE,CAAC;IACd,MAAM,MAAM,GAAG,oBAAoB,EAAE,CAAC;IACtC,KAAK,CAAC,KAAK,EAAE,CAAC;IACd,IACE,CAAC,MAAM;QACP,OAAO,MAAM,KAAK,QAAQ;QAC1B,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QACrB,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC,SAAS;QAClD,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC;QAE1D,IAAI,EAAE,CAAC;IACT,MAAM,UAAU,GAAG,MAAM,CAAC,wBAAwB,CAChD,MAAM,CAAC,SAAS,EAChB,YAAY,CACb,CAAC;IACF,IACE,CAAC,UAAU;QACX,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;QAC1D,OAAO,UAAU,CAAC,KAAK,KAAK,UAAU;QAEtC,IAAI,EAAE,CAAC;IACT,MAAM,MAAM,GAAG,UAAU,CAAC,KAA6B,CAAC;IACxD,KAAK,CAAC,KAAK,EAAE,CAAC;IACd,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,UAAU,CAAC,GAAG,IAAsC;YAClD,OAAO,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAqC,CAAC;QACzE,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -2361,14 +2361,6 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
2361
2361
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2362
2362
|
requestKey: string;
|
|
2363
2363
|
result?: {
|
|
2364
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2365
|
-
retryable: false;
|
|
2366
|
-
status: "conflict";
|
|
2367
|
-
} | {
|
|
2368
|
-
reason: "policy_invalid";
|
|
2369
|
-
retryable: false;
|
|
2370
|
-
status: "rejected";
|
|
2371
|
-
} | {
|
|
2372
2364
|
operation: {
|
|
2373
2365
|
accountId: string;
|
|
2374
2366
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2379,6 +2371,14 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
2379
2371
|
} | {
|
|
2380
2372
|
enabled: boolean;
|
|
2381
2373
|
status: "unchanged";
|
|
2374
|
+
} | {
|
|
2375
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2376
|
+
retryable: false;
|
|
2377
|
+
status: "conflict";
|
|
2378
|
+
} | {
|
|
2379
|
+
reason: "policy_invalid";
|
|
2380
|
+
retryable: false;
|
|
2381
|
+
status: "rejected";
|
|
2382
2382
|
} | {
|
|
2383
2383
|
reason: "provider_pending";
|
|
2384
2384
|
retryable: true;
|
|
@@ -2389,14 +2389,6 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
2389
2389
|
payload: import("convex/values").VString<string, "required">;
|
|
2390
2390
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2391
2391
|
result: import("convex/values").VUnion<{
|
|
2392
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2393
|
-
retryable: false;
|
|
2394
|
-
status: "conflict";
|
|
2395
|
-
} | {
|
|
2396
|
-
reason: "policy_invalid";
|
|
2397
|
-
retryable: false;
|
|
2398
|
-
status: "rejected";
|
|
2399
|
-
} | {
|
|
2400
2392
|
operation: {
|
|
2401
2393
|
accountId: string;
|
|
2402
2394
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2407,6 +2399,14 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
2407
2399
|
} | {
|
|
2408
2400
|
enabled: boolean;
|
|
2409
2401
|
status: "unchanged";
|
|
2402
|
+
} | {
|
|
2403
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2404
|
+
retryable: false;
|
|
2405
|
+
status: "conflict";
|
|
2406
|
+
} | {
|
|
2407
|
+
reason: "policy_invalid";
|
|
2408
|
+
retryable: false;
|
|
2409
|
+
status: "rejected";
|
|
2410
2410
|
} | {
|
|
2411
2411
|
reason: "provider_pending";
|
|
2412
2412
|
retryable: true;
|
|
@@ -2351,6 +2351,14 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2351
2351
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2352
2352
|
requestKey: string;
|
|
2353
2353
|
result?: {
|
|
2354
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2355
|
+
retryable: false;
|
|
2356
|
+
status: "conflict";
|
|
2357
|
+
} | {
|
|
2358
|
+
reason: "policy_invalid";
|
|
2359
|
+
retryable: false;
|
|
2360
|
+
status: "rejected";
|
|
2361
|
+
} | {
|
|
2354
2362
|
operation: {
|
|
2355
2363
|
accountId: string;
|
|
2356
2364
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2361,14 +2369,6 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2361
2369
|
} | {
|
|
2362
2370
|
enabled: boolean;
|
|
2363
2371
|
status: "unchanged";
|
|
2364
|
-
} | {
|
|
2365
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2366
|
-
retryable: false;
|
|
2367
|
-
status: "conflict";
|
|
2368
|
-
} | {
|
|
2369
|
-
reason: "policy_invalid";
|
|
2370
|
-
retryable: false;
|
|
2371
|
-
status: "rejected";
|
|
2372
2372
|
} | {
|
|
2373
2373
|
reason: "provider_pending";
|
|
2374
2374
|
retryable: true;
|
|
@@ -2379,6 +2379,14 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2379
2379
|
payload: import("convex/values").VString<string, "required">;
|
|
2380
2380
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2381
2381
|
result: import("convex/values").VUnion<{
|
|
2382
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2383
|
+
retryable: false;
|
|
2384
|
+
status: "conflict";
|
|
2385
|
+
} | {
|
|
2386
|
+
reason: "policy_invalid";
|
|
2387
|
+
retryable: false;
|
|
2388
|
+
status: "rejected";
|
|
2389
|
+
} | {
|
|
2382
2390
|
operation: {
|
|
2383
2391
|
accountId: string;
|
|
2384
2392
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2389,14 +2397,6 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2389
2397
|
} | {
|
|
2390
2398
|
enabled: boolean;
|
|
2391
2399
|
status: "unchanged";
|
|
2392
|
-
} | {
|
|
2393
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2394
|
-
retryable: false;
|
|
2395
|
-
status: "conflict";
|
|
2396
|
-
} | {
|
|
2397
|
-
reason: "policy_invalid";
|
|
2398
|
-
retryable: false;
|
|
2399
|
-
status: "rejected";
|
|
2400
2400
|
} | {
|
|
2401
2401
|
reason: "provider_pending";
|
|
2402
2402
|
retryable: true;
|
|
@@ -7207,6 +7207,14 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7207
7207
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
7208
7208
|
requestKey: string;
|
|
7209
7209
|
result?: {
|
|
7210
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7211
|
+
retryable: false;
|
|
7212
|
+
status: "conflict";
|
|
7213
|
+
} | {
|
|
7214
|
+
reason: "policy_invalid";
|
|
7215
|
+
retryable: false;
|
|
7216
|
+
status: "rejected";
|
|
7217
|
+
} | {
|
|
7210
7218
|
operation: {
|
|
7211
7219
|
accountId: string;
|
|
7212
7220
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7217,14 +7225,6 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7217
7225
|
} | {
|
|
7218
7226
|
enabled: boolean;
|
|
7219
7227
|
status: "unchanged";
|
|
7220
|
-
} | {
|
|
7221
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7222
|
-
retryable: false;
|
|
7223
|
-
status: "conflict";
|
|
7224
|
-
} | {
|
|
7225
|
-
reason: "policy_invalid";
|
|
7226
|
-
retryable: false;
|
|
7227
|
-
status: "rejected";
|
|
7228
7228
|
} | {
|
|
7229
7229
|
reason: "provider_pending";
|
|
7230
7230
|
retryable: true;
|
|
@@ -7235,6 +7235,14 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7235
7235
|
payload: import("convex/values").VString<string, "required">;
|
|
7236
7236
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
7237
7237
|
result: import("convex/values").VUnion<{
|
|
7238
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7239
|
+
retryable: false;
|
|
7240
|
+
status: "conflict";
|
|
7241
|
+
} | {
|
|
7242
|
+
reason: "policy_invalid";
|
|
7243
|
+
retryable: false;
|
|
7244
|
+
status: "rejected";
|
|
7245
|
+
} | {
|
|
7238
7246
|
operation: {
|
|
7239
7247
|
accountId: string;
|
|
7240
7248
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7245,14 +7253,6 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
7245
7253
|
} | {
|
|
7246
7254
|
enabled: boolean;
|
|
7247
7255
|
status: "unchanged";
|
|
7248
|
-
} | {
|
|
7249
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7250
|
-
retryable: false;
|
|
7251
|
-
status: "conflict";
|
|
7252
|
-
} | {
|
|
7253
|
-
reason: "policy_invalid";
|
|
7254
|
-
retryable: false;
|
|
7255
|
-
status: "rejected";
|
|
7256
7256
|
} | {
|
|
7257
7257
|
reason: "provider_pending";
|
|
7258
7258
|
retryable: true;
|
|
@@ -9,6 +9,17 @@ export declare const bridge: import("convex/server").RegisteredAction<"internal"
|
|
|
9
9
|
stripeSubscriptionId: string;
|
|
10
10
|
version: number;
|
|
11
11
|
}, Promise<{
|
|
12
|
+
status: "ready";
|
|
13
|
+
value: {
|
|
14
|
+
customerAccount: string;
|
|
15
|
+
enabled?: boolean | undefined;
|
|
16
|
+
paymentMethodId: string | null;
|
|
17
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
18
|
+
phase: "apply" | "attach" | "create";
|
|
19
|
+
providerApiVersion: string;
|
|
20
|
+
stripeSubscriptionId: string;
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
12
23
|
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
13
24
|
retryable: false;
|
|
14
25
|
status: "unknown";
|
|
@@ -24,16 +35,5 @@ export declare const bridge: import("convex/server").RegisteredAction<"internal"
|
|
|
24
35
|
reason: "provider_pending";
|
|
25
36
|
retryable: true;
|
|
26
37
|
status: "not_ready";
|
|
27
|
-
} | {
|
|
28
|
-
status: "ready";
|
|
29
|
-
value: {
|
|
30
|
-
customerAccount: string;
|
|
31
|
-
enabled?: boolean | undefined;
|
|
32
|
-
paymentMethodId: string | null;
|
|
33
|
-
paymentMethodTypes?: string[] | null | undefined;
|
|
34
|
-
phase: "apply" | "attach" | "create";
|
|
35
|
-
providerApiVersion: string;
|
|
36
|
-
stripeSubscriptionId: string;
|
|
37
|
-
};
|
|
38
38
|
}>>;
|
|
39
39
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -9,9 +9,9 @@ export declare function legOwnership(ctx: MutationCtx, bucketKey: string, prior:
|
|
|
9
9
|
orgId: string | undefined;
|
|
10
10
|
ownershipStatus: "ambiguous";
|
|
11
11
|
} | {
|
|
12
|
-
registrationId?: undefined;
|
|
13
12
|
userId?: undefined;
|
|
14
13
|
orgId?: undefined;
|
|
14
|
+
registrationId?: undefined;
|
|
15
15
|
ownershipStatus: "ambiguous";
|
|
16
16
|
} | {
|
|
17
17
|
registrationId: import("convex/values").GenericId<"financialOwnership">;
|
|
@@ -19,9 +19,9 @@ export declare function legOwnership(ctx: MutationCtx, bucketKey: string, prior:
|
|
|
19
19
|
orgId: string | undefined;
|
|
20
20
|
ownershipStatus: "unknown";
|
|
21
21
|
} | {
|
|
22
|
-
registrationId?: undefined;
|
|
23
22
|
userId?: undefined;
|
|
24
23
|
orgId?: undefined;
|
|
24
|
+
registrationId?: undefined;
|
|
25
25
|
ownershipStatus: "unknown";
|
|
26
26
|
} | {
|
|
27
27
|
registrationId: import("convex/values").GenericId<"financialOwnership">;
|
|
@@ -29,9 +29,9 @@ export declare function legOwnership(ctx: MutationCtx, bucketKey: string, prior:
|
|
|
29
29
|
orgId: string | undefined;
|
|
30
30
|
ownershipStatus: "contradictory";
|
|
31
31
|
} | {
|
|
32
|
-
registrationId?: undefined;
|
|
33
32
|
userId?: undefined;
|
|
34
33
|
orgId?: undefined;
|
|
34
|
+
registrationId?: undefined;
|
|
35
35
|
ownershipStatus: "contradictory";
|
|
36
36
|
} | {
|
|
37
37
|
registrationId: import("convex/values").GenericId<"financialOwnership">;
|