@fantastic.dev/better-stripe 0.85.0 → 0.86.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/renewalAggregate/configure.d.ts.map +1 -1
- package/dist/client/billing/renewalAggregate/configure.js +4 -56
- package/dist/client/billing/renewalAggregate/configure.js.map +1 -1
- package/dist/client/billing/renewalAggregate/configureMaterial.d.ts +29 -0
- package/dist/client/billing/renewalAggregate/configureMaterial.d.ts.map +1 -0
- package/dist/client/billing/renewalAggregate/configureMaterial.js +63 -0
- package/dist/client/billing/renewalAggregate/configureMaterial.js.map +1 -0
- package/dist/client/billing/renewalAggregate/phases.d.ts +2 -2
- package/dist/client/billing/renewalAggregate/phases.d.ts.map +1 -1
- package/dist/client/billing/renewalAggregate/phases.js.map +1 -1
- package/dist/client/billing/renewalAggregate/preflight.d.ts +1 -118
- package/dist/client/billing/renewalAggregate/preflight.d.ts.map +1 -1
- package/dist/client/billing/renewalAggregate/preflight.js +3 -118
- package/dist/client/billing/renewalAggregate/preflight.js.map +1 -1
- package/dist/client/billing/renewalAggregate/readMaterial.d.ts +335 -0
- package/dist/client/billing/renewalAggregate/readMaterial.d.ts.map +1 -0
- package/dist/client/billing/renewalAggregate/readMaterial.js +121 -0
- package/dist/client/billing/renewalAggregate/readMaterial.js.map +1 -0
- package/dist/client/billing/renewalV2/binding.d.ts +1 -1
- package/dist/client/billing/renewalV2/binding.d.ts.map +1 -1
- package/dist/client/billing/renewalV2/binding.js.map +1 -1
- package/dist/client/billing/renewalV2/configureInput.d.ts +45 -0
- package/dist/client/billing/renewalV2/configureInput.d.ts.map +1 -0
- package/dist/client/billing/renewalV2/configureInput.js +69 -0
- package/dist/client/billing/renewalV2/configureInput.js.map +1 -0
- package/dist/client/billing/renewalV2/index.d.ts +21 -0
- package/dist/client/billing/renewalV2/index.d.ts.map +1 -1
- package/dist/client/billing/renewalV2/index.js +80 -1
- package/dist/client/billing/renewalV2/index.js.map +1 -1
- package/dist/client/billing/renewalV2/receipt.d.ts +1 -0
- package/dist/client/billing/renewalV2/receipt.d.ts.map +1 -1
- package/dist/client/billing/renewalV2/receipt.js +3 -3
- package/dist/client/billing/renewalV2/receipt.js.map +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +32 -32
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +16 -16
- package/dist/client/renewal.d.ts +2 -2
- package/dist/client/renewal.d.ts.map +1 -1
- package/dist/client/renewal.js +1 -1
- package/dist/client/renewal.js.map +1 -1
- package/dist/component/balanceFunding/mutations.d.ts +16 -16
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
- package/dist/component/earnings/triggers.d.ts +16 -16
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
- package/docs/renewal-context-reads.md +6 -2
- package/docs/renewal-phase-assembly.md +73 -0
- package/package.json +1 -1
- package/src/client/billing/renewalAggregate/configure.ts +12 -79
- package/src/client/billing/renewalAggregate/configureMaterial.ts +122 -0
- package/src/client/billing/renewalAggregate/phases.ts +2 -2
- package/src/client/billing/renewalAggregate/preflight.ts +6 -161
- package/src/client/billing/renewalAggregate/readMaterial.ts +173 -0
- package/src/client/billing/renewalV2/binding.ts +7 -1
- package/src/client/billing/renewalV2/configure.test.ts +362 -0
- package/src/client/billing/renewalV2/configureInput.ts +84 -0
- package/src/client/billing/renewalV2/index.ts +124 -0
- package/src/client/billing/renewalV2/receipt.ts +3 -3
- package/src/client/renewal.ts +4 -0
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { prepareRenewalPriceReplacement, } from "../renewalPriceReplacement.js";
|
|
3
3
|
import { renewalSnapshot } from "../renewalReplacementSnapshot.js";
|
|
4
|
-
import { supportedVersion, timestamp, resourceId, equal, } from "../renewalAggregate/shared.js";
|
|
4
|
+
import { supportedVersion, timestamp, resourceId, equal, conflict, failure, } from "../renewalAggregate/shared.js";
|
|
5
|
+
import { validateReadMaterial } from "../renewalAggregate/readMaterial.js";
|
|
6
|
+
import { configureMaterial, validateConfigureStart, } from "../renewalAggregate/configureMaterial.js";
|
|
5
7
|
import { idempotencyOptions } from "../../core/idempotency.js";
|
|
6
8
|
import { renewalBindingV2 } from "./binding.js";
|
|
7
9
|
import { captureAttachmentReceipt, assertAttachmentIdentity, } from "./receipt.js";
|
|
10
|
+
import { captureConfiguration } from "./configureInput.js";
|
|
8
11
|
/** Pure preparation. Protect retained full records under host authorization. */
|
|
9
12
|
export async function prepareRenewalPriceReplacementV2(options) {
|
|
10
13
|
// Reuse the existing raw constructor's semantic checks, not a stored V1 claim.
|
|
@@ -121,4 +124,80 @@ export async function constructRenewalScheduleAttachmentReceiptV2(options) {
|
|
|
121
124
|
binding: await renewalBindingV2("renewal-attach-receipt", receipt),
|
|
122
125
|
};
|
|
123
126
|
}
|
|
127
|
+
/** Pure raw-only configuration candidate; provider qualification remains required. */
|
|
128
|
+
export async function projectRenewalConfigurationV2(options) {
|
|
129
|
+
const args = captureConfiguration(options);
|
|
130
|
+
let ownedScheduleId;
|
|
131
|
+
try {
|
|
132
|
+
if (!equal(args.preparation, args.attachReceipt.attachRequest.preparation))
|
|
133
|
+
conflict("invalid_prepared_binding");
|
|
134
|
+
let prepared;
|
|
135
|
+
try {
|
|
136
|
+
prepared = await prepareRenewalPriceReplacementV2({
|
|
137
|
+
...args.preparation,
|
|
138
|
+
expected: args.preparation
|
|
139
|
+
.expected,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
catch {
|
|
143
|
+
conflict("invalid_prepared_binding");
|
|
144
|
+
}
|
|
145
|
+
let receipt;
|
|
146
|
+
try {
|
|
147
|
+
receipt = await constructRenewalScheduleAttachmentReceiptV2(args.attachReceipt);
|
|
148
|
+
}
|
|
149
|
+
catch {
|
|
150
|
+
conflict("invalid_attach_receipt_binding");
|
|
151
|
+
}
|
|
152
|
+
if (receipt.logicalBinding !== prepared.requestIdentity.binding ||
|
|
153
|
+
receipt.request.logicalBinding !== prepared.requestIdentity.binding ||
|
|
154
|
+
receipt.request.apiVersion !== args.apiVersion ||
|
|
155
|
+
receipt.request.payload.from_subscription !==
|
|
156
|
+
prepared.expected.subscriptionId ||
|
|
157
|
+
receipt.subscriptionId !== prepared.expected.subscriptionId ||
|
|
158
|
+
receipt.customerAccountId !== prepared.expected.customerAccountId ||
|
|
159
|
+
receipt.livemode !== prepared.expected.livemode ||
|
|
160
|
+
receipt.request.firstDispatchedAt > args.observedAt)
|
|
161
|
+
conflict("invalid_attach_receipt_binding");
|
|
162
|
+
ownedScheduleId = receipt.scheduleId;
|
|
163
|
+
const key = validateConfigureStart(args, receipt);
|
|
164
|
+
const reads = validateReadMaterial(args, prepared, receipt.scheduleId);
|
|
165
|
+
const { schedule, payload } = configureMaterial(
|
|
166
|
+
// Unlike V1's record parser, retain every own key of the captured body.
|
|
167
|
+
z
|
|
168
|
+
.custom((value) => value !== null &&
|
|
169
|
+
typeof value === "object" &&
|
|
170
|
+
!Array.isArray(value))
|
|
171
|
+
.parse(args.schedule), prepared, receipt, reads);
|
|
172
|
+
const request = {
|
|
173
|
+
version: 2,
|
|
174
|
+
stage: "configure",
|
|
175
|
+
scope: "platform",
|
|
176
|
+
apiVersion: args.apiVersion,
|
|
177
|
+
logicalBinding: prepared.requestIdentity.binding,
|
|
178
|
+
scheduleId: receipt.scheduleId,
|
|
179
|
+
method: "POST",
|
|
180
|
+
path: `/v1/subscription_schedules/${receipt.scheduleId}`,
|
|
181
|
+
key,
|
|
182
|
+
payload,
|
|
183
|
+
firstDispatchedAt: args.firstDispatchedAt,
|
|
184
|
+
attachReceiptBinding: receipt.binding,
|
|
185
|
+
baselineBinding: await renewalBindingV2("renewal-baseline", receipt.providerSnapshot),
|
|
186
|
+
defaultSettingsBinding: await renewalBindingV2("renewal-defaults", schedule.default_settings),
|
|
187
|
+
};
|
|
188
|
+
return renewalSnapshot({
|
|
189
|
+
...request,
|
|
190
|
+
status: "projected_configure_request",
|
|
191
|
+
providerQualification: "required",
|
|
192
|
+
profile: reads.profile,
|
|
193
|
+
requestIdentity: {
|
|
194
|
+
key,
|
|
195
|
+
binding: await renewalBindingV2("renewal-configure", request),
|
|
196
|
+
},
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
catch (error) {
|
|
200
|
+
return failure(error, ownedScheduleId);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
124
203
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/billing/renewalV2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,8BAA8B,GAG/B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/billing/renewalV2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,8BAA8B,GAG/B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,KAAK,EACL,QAAQ,EACR,OAAO,GAER,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EACL,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM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AG;gBACH,OAAO,EAAE,MAAM,gBAAgB,CAAC,mBAAmB,EAAE,OAAO,CAAC;aAC9D;SACF,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,OAAO,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IACzC,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"receipt.d.ts","sourceRoot":"","sources":["../../../../src/client/billing/renewalV2/receipt.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"receipt.d.ts","sourceRoot":"","sources":["../../../../src/client/billing/renewalV2/receipt.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,+BAA+B,CAAC;AA8DvC,wBAAgB,+BAA+B,CAAC,GAAG,EAAE,OAAO,QA2B3D;AACD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;EAMpD;AAED,mFAAmF;AACnF,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE;IACT,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;CACnB,QAiDF"}
|
|
@@ -54,7 +54,7 @@ function ownData(raw, required, optional = []) {
|
|
|
54
54
|
}
|
|
55
55
|
return result;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
export function validateAttachmentReceiptFields(raw) {
|
|
58
58
|
const root = ownData(raw, [
|
|
59
59
|
"attachRequest",
|
|
60
60
|
"actualDispatch",
|
|
@@ -79,10 +79,10 @@ function closed(raw) {
|
|
|
79
79
|
ownData(wire.payload, ["from_subscription"]);
|
|
80
80
|
}
|
|
81
81
|
export function captureAttachmentReceipt(raw) {
|
|
82
|
-
|
|
82
|
+
validateAttachmentReceiptFields(raw);
|
|
83
83
|
const captured = renewalSnapshot(raw);
|
|
84
84
|
// Recheck the detached object: hostile reflection can mutate the live source.
|
|
85
|
-
|
|
85
|
+
validateAttachmentReceiptFields(captured);
|
|
86
86
|
return input.parse(captured);
|
|
87
87
|
}
|
|
88
88
|
/** Available identity facts only, never response provenance or financial proof. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"receipt.js","sourceRoot":"","sources":["../../../../src/client/billing/renewalV2/receipt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EACL,WAAW,EACX,SAAS,GAEV,MAAM,+BAA+B,CAAC;AAEvC,MAAM,WAAW,GAAG,CAAC;KAClB,MAAM,CAAC;IACN,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;IACxB,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC;KACD,MAAM,EAAE,CAAC;AACZ,MAAM,aAAa,GAAG,CAAC;KACpB,MAAM,CAAC;IACN,WAAW;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,iBAAiB,EAAE,SAAS;CAC7B,CAAC;KACD,MAAM,EAAE,CAAC;AACZ,MAAM,QAAQ,GAAG,CAAC;KACf,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,CA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
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2361
2361
|
requestKey: string;
|
|
2362
2362
|
result?: {
|
|
2363
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2364
|
+
retryable: false;
|
|
2365
|
+
status: "conflict";
|
|
2366
|
+
} | {
|
|
2367
|
+
reason: "policy_invalid";
|
|
2368
|
+
retryable: false;
|
|
2369
|
+
status: "rejected";
|
|
2370
|
+
} | {
|
|
2363
2371
|
operation: {
|
|
2364
2372
|
accountId: string;
|
|
2365
2373
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2370,14 +2378,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2370
2378
|
} | {
|
|
2371
2379
|
enabled: boolean;
|
|
2372
2380
|
status: "unchanged";
|
|
2373
|
-
} | {
|
|
2374
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2375
|
-
retryable: false;
|
|
2376
|
-
status: "conflict";
|
|
2377
|
-
} | {
|
|
2378
|
-
reason: "policy_invalid";
|
|
2379
|
-
retryable: false;
|
|
2380
|
-
status: "rejected";
|
|
2381
2381
|
} | {
|
|
2382
2382
|
reason: "provider_pending";
|
|
2383
2383
|
retryable: true;
|
|
@@ -2388,6 +2388,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2388
2388
|
payload: import("convex/values").VString<string, "required">;
|
|
2389
2389
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2390
2390
|
result: import("convex/values").VUnion<{
|
|
2391
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2392
|
+
retryable: false;
|
|
2393
|
+
status: "conflict";
|
|
2394
|
+
} | {
|
|
2395
|
+
reason: "policy_invalid";
|
|
2396
|
+
retryable: false;
|
|
2397
|
+
status: "rejected";
|
|
2398
|
+
} | {
|
|
2391
2399
|
operation: {
|
|
2392
2400
|
accountId: string;
|
|
2393
2401
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2398,14 +2406,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2398
2406
|
} | {
|
|
2399
2407
|
enabled: boolean;
|
|
2400
2408
|
status: "unchanged";
|
|
2401
|
-
} | {
|
|
2402
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2403
|
-
retryable: false;
|
|
2404
|
-
status: "conflict";
|
|
2405
|
-
} | {
|
|
2406
|
-
reason: "policy_invalid";
|
|
2407
|
-
retryable: false;
|
|
2408
|
-
status: "rejected";
|
|
2409
2409
|
} | {
|
|
2410
2410
|
reason: "provider_pending";
|
|
2411
2411
|
retryable: true;
|
|
@@ -7215,6 +7215,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7215
7215
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
7216
7216
|
requestKey: string;
|
|
7217
7217
|
result?: {
|
|
7218
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7219
|
+
retryable: false;
|
|
7220
|
+
status: "conflict";
|
|
7221
|
+
} | {
|
|
7222
|
+
reason: "policy_invalid";
|
|
7223
|
+
retryable: false;
|
|
7224
|
+
status: "rejected";
|
|
7225
|
+
} | {
|
|
7218
7226
|
operation: {
|
|
7219
7227
|
accountId: string;
|
|
7220
7228
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7225,14 +7233,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7225
7233
|
} | {
|
|
7226
7234
|
enabled: boolean;
|
|
7227
7235
|
status: "unchanged";
|
|
7228
|
-
} | {
|
|
7229
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7230
|
-
retryable: false;
|
|
7231
|
-
status: "conflict";
|
|
7232
|
-
} | {
|
|
7233
|
-
reason: "policy_invalid";
|
|
7234
|
-
retryable: false;
|
|
7235
|
-
status: "rejected";
|
|
7236
7236
|
} | {
|
|
7237
7237
|
reason: "provider_pending";
|
|
7238
7238
|
retryable: true;
|
|
@@ -7243,6 +7243,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7243
7243
|
payload: import("convex/values").VString<string, "required">;
|
|
7244
7244
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
7245
7245
|
result: import("convex/values").VUnion<{
|
|
7246
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7247
|
+
retryable: false;
|
|
7248
|
+
status: "conflict";
|
|
7249
|
+
} | {
|
|
7250
|
+
reason: "policy_invalid";
|
|
7251
|
+
retryable: false;
|
|
7252
|
+
status: "rejected";
|
|
7253
|
+
} | {
|
|
7246
7254
|
operation: {
|
|
7247
7255
|
accountId: string;
|
|
7248
7256
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7253,14 +7261,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7253
7261
|
} | {
|
|
7254
7262
|
enabled: boolean;
|
|
7255
7263
|
status: "unchanged";
|
|
7256
|
-
} | {
|
|
7257
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7258
|
-
retryable: false;
|
|
7259
|
-
status: "conflict";
|
|
7260
|
-
} | {
|
|
7261
|
-
reason: "policy_invalid";
|
|
7262
|
-
retryable: false;
|
|
7263
|
-
status: "rejected";
|
|
7264
7264
|
} | {
|
|
7265
7265
|
reason: "provider_pending";
|
|
7266
7266
|
retryable: true;
|
|
@@ -2365,14 +2365,6 @@ export declare function setup(scope?: Scope): Promise<{
|
|
|
2365
2365
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2366
2366
|
requestKey: string;
|
|
2367
2367
|
result?: {
|
|
2368
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2369
|
-
retryable: false;
|
|
2370
|
-
status: "conflict";
|
|
2371
|
-
} | {
|
|
2372
|
-
reason: "policy_invalid";
|
|
2373
|
-
retryable: false;
|
|
2374
|
-
status: "rejected";
|
|
2375
|
-
} | {
|
|
2376
2368
|
operation: {
|
|
2377
2369
|
accountId: string;
|
|
2378
2370
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2383,6 +2375,14 @@ export declare function setup(scope?: Scope): Promise<{
|
|
|
2383
2375
|
} | {
|
|
2384
2376
|
enabled: boolean;
|
|
2385
2377
|
status: "unchanged";
|
|
2378
|
+
} | {
|
|
2379
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2380
|
+
retryable: false;
|
|
2381
|
+
status: "conflict";
|
|
2382
|
+
} | {
|
|
2383
|
+
reason: "policy_invalid";
|
|
2384
|
+
retryable: false;
|
|
2385
|
+
status: "rejected";
|
|
2386
2386
|
} | {
|
|
2387
2387
|
reason: "provider_pending";
|
|
2388
2388
|
retryable: true;
|
|
@@ -2393,14 +2393,6 @@ export declare function setup(scope?: Scope): Promise<{
|
|
|
2393
2393
|
payload: import("convex/values").VString<string, "required">;
|
|
2394
2394
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2395
2395
|
result: import("convex/values").VUnion<{
|
|
2396
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2397
|
-
retryable: false;
|
|
2398
|
-
status: "conflict";
|
|
2399
|
-
} | {
|
|
2400
|
-
reason: "policy_invalid";
|
|
2401
|
-
retryable: false;
|
|
2402
|
-
status: "rejected";
|
|
2403
|
-
} | {
|
|
2404
2396
|
operation: {
|
|
2405
2397
|
accountId: string;
|
|
2406
2398
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2411,6 +2403,14 @@ export declare function setup(scope?: Scope): Promise<{
|
|
|
2411
2403
|
} | {
|
|
2412
2404
|
enabled: boolean;
|
|
2413
2405
|
status: "unchanged";
|
|
2406
|
+
} | {
|
|
2407
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2408
|
+
retryable: false;
|
|
2409
|
+
status: "conflict";
|
|
2410
|
+
} | {
|
|
2411
|
+
reason: "policy_invalid";
|
|
2412
|
+
retryable: false;
|
|
2413
|
+
status: "rejected";
|
|
2414
2414
|
} | {
|
|
2415
2415
|
reason: "provider_pending";
|
|
2416
2416
|
retryable: true;
|
package/dist/client/renewal.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export type { RenewalPriceReplacementExpected } from "./billing/renewalReplaceme
|
|
|
5
5
|
export { prepareRenewalScheduleAttachment } from "./billing/renewalAttach/request.js";
|
|
6
6
|
export type { PrepareRenewalScheduleAttachmentOptions, PreparedRenewalScheduleAttachment, } from "./billing/renewalAttach/request.js";
|
|
7
7
|
export type { ReadRenewalPriceReplacementContextOptions } from "./billing/renewalAttach/reader.js";
|
|
8
|
-
export { prepareRenewalPriceReplacementV2, prepareRenewalScheduleAttachmentV2, constructRenewalScheduleAttachmentReceiptV2, } from "./billing/renewalV2/index.js";
|
|
9
|
-
export type { PrepareRenewalPriceReplacementV2Options, PreparedRenewalPriceReplacementV2, PrepareRenewalScheduleAttachmentV2Options, PreparedRenewalScheduleAttachmentV2, ConstructRenewalScheduleAttachmentReceiptV2Options, RenewalScheduleAttachmentReceiptV2, } from "./billing/renewalV2/index.js";
|
|
8
|
+
export { prepareRenewalPriceReplacementV2, prepareRenewalScheduleAttachmentV2, constructRenewalScheduleAttachmentReceiptV2, projectRenewalConfigurationV2, } from "./billing/renewalV2/index.js";
|
|
9
|
+
export type { PrepareRenewalPriceReplacementV2Options, PreparedRenewalPriceReplacementV2, PrepareRenewalScheduleAttachmentV2Options, PreparedRenewalScheduleAttachmentV2, ConstructRenewalScheduleAttachmentReceiptV2Options, RenewalScheduleAttachmentReceiptV2, ProjectRenewalConfigurationV2Options, ProjectedRenewalConfigurationV2, RenewalConfigurationProjectionFailure, } from "./billing/renewalV2/index.js";
|
|
10
10
|
//# sourceMappingURL=renewal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renewal.d.ts","sourceRoot":"","sources":["../../src/client/renewal.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,YAAY,EACV,qCAAqC,EACrC,+BAA+B,GAChC,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAC7F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,YAAY,EACV,uCAAuC,EACvC,iCAAiC,GAClC,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EAAE,yCAAyC,EAAE,MAAM,mCAAmC,CAAC;AACnG,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,2CAA2C,
|
|
1
|
+
{"version":3,"file":"renewal.d.ts","sourceRoot":"","sources":["../../src/client/renewal.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,YAAY,EACV,qCAAqC,EACrC,+BAA+B,GAChC,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAC7F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,YAAY,EACV,uCAAuC,EACvC,iCAAiC,GAClC,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EAAE,yCAAyC,EAAE,MAAM,mCAAmC,CAAC;AACnG,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,2CAA2C,EAC3C,6BAA6B,GAC9B,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,uCAAuC,EACvC,iCAAiC,EACjC,yCAAyC,EACzC,mCAAmC,EACnC,kDAAkD,EAClD,kCAAkC,EAClC,oCAAoC,EACpC,+BAA+B,EAC/B,qCAAqC,GACtC,MAAM,8BAA8B,CAAC"}
|
package/dist/client/renewal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Public pure renewal preparation functions and their input/result types. */
|
|
2
2
|
export { prepareRenewalPriceReplacement } from "./billing/renewalPriceReplacement.js";
|
|
3
3
|
export { prepareRenewalScheduleAttachment } from "./billing/renewalAttach/request.js";
|
|
4
|
-
export { prepareRenewalPriceReplacementV2, prepareRenewalScheduleAttachmentV2, constructRenewalScheduleAttachmentReceiptV2, } from "./billing/renewalV2/index.js";
|
|
4
|
+
export { prepareRenewalPriceReplacementV2, prepareRenewalScheduleAttachmentV2, constructRenewalScheduleAttachmentReceiptV2, projectRenewalConfigurationV2, } from "./billing/renewalV2/index.js";
|
|
5
5
|
//# sourceMappingURL=renewal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renewal.js","sourceRoot":"","sources":["../../src/client/renewal.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAMtF,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAMtF,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,2CAA2C,
|
|
1
|
+
{"version":3,"file":"renewal.js","sourceRoot":"","sources":["../../src/client/renewal.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAMtF,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAMtF,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,2CAA2C,EAC3C,6BAA6B,GAC9B,MAAM,8BAA8B,CAAC"}
|
|
@@ -22,6 +22,14 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
22
22
|
requestKey: string;
|
|
23
23
|
scopeKey: string;
|
|
24
24
|
}, Promise<{
|
|
25
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
26
|
+
retryable: false;
|
|
27
|
+
status: "conflict";
|
|
28
|
+
} | {
|
|
29
|
+
reason: "policy_invalid";
|
|
30
|
+
retryable: false;
|
|
31
|
+
status: "rejected";
|
|
32
|
+
} | {
|
|
25
33
|
operation: {
|
|
26
34
|
accountId: string;
|
|
27
35
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -32,14 +40,6 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
32
40
|
} | {
|
|
33
41
|
enabled: boolean;
|
|
34
42
|
status: "unchanged";
|
|
35
|
-
} | {
|
|
36
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
37
|
-
retryable: false;
|
|
38
|
-
status: "conflict";
|
|
39
|
-
} | {
|
|
40
|
-
reason: "policy_invalid";
|
|
41
|
-
retryable: false;
|
|
42
|
-
status: "rejected";
|
|
43
43
|
} | {
|
|
44
44
|
reason: "provider_pending";
|
|
45
45
|
retryable: true;
|
|
@@ -395,6 +395,14 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
395
395
|
requestKey: string;
|
|
396
396
|
scopeKey: string;
|
|
397
397
|
}, Promise<{
|
|
398
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
399
|
+
retryable: false;
|
|
400
|
+
status: "conflict";
|
|
401
|
+
} | {
|
|
402
|
+
reason: "policy_invalid";
|
|
403
|
+
retryable: false;
|
|
404
|
+
status: "rejected";
|
|
405
|
+
} | {
|
|
398
406
|
operation: {
|
|
399
407
|
accountId: string;
|
|
400
408
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -405,14 +413,6 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
405
413
|
} | {
|
|
406
414
|
enabled: boolean;
|
|
407
415
|
status: "unchanged";
|
|
408
|
-
} | {
|
|
409
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
410
|
-
retryable: false;
|
|
411
|
-
status: "conflict";
|
|
412
|
-
} | {
|
|
413
|
-
reason: "policy_invalid";
|
|
414
|
-
retryable: false;
|
|
415
|
-
status: "rejected";
|
|
416
416
|
} | {
|
|
417
417
|
reason: "provider_pending";
|
|
418
418
|
retryable: true;
|
|
@@ -2,6 +2,14 @@ import type { Infer } from "convex/values";
|
|
|
2
2
|
import type { MutationCtx } from "../_generated/server.js";
|
|
3
3
|
import { prepareArgs, finishPreparationArgs } from "./mutationValidators.js";
|
|
4
4
|
export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prepareArgs>): Promise<{
|
|
5
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
6
|
+
retryable: false;
|
|
7
|
+
status: "conflict";
|
|
8
|
+
} | {
|
|
9
|
+
reason: "policy_invalid";
|
|
10
|
+
retryable: false;
|
|
11
|
+
status: "rejected";
|
|
12
|
+
} | {
|
|
5
13
|
operation: {
|
|
6
14
|
accountId: string;
|
|
7
15
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -12,14 +20,6 @@ export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prep
|
|
|
12
20
|
} | {
|
|
13
21
|
enabled: boolean;
|
|
14
22
|
status: "unchanged";
|
|
15
|
-
} | {
|
|
16
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
17
|
-
retryable: false;
|
|
18
|
-
status: "conflict";
|
|
19
|
-
} | {
|
|
20
|
-
reason: "policy_invalid";
|
|
21
|
-
retryable: false;
|
|
22
|
-
status: "rejected";
|
|
23
23
|
} | {
|
|
24
24
|
reason: "provider_pending";
|
|
25
25
|
retryable: true;
|
|
@@ -5,14 +5,6 @@ export declare function savePreparationHandler(ctx: MutationCtx, args: Infer<typ
|
|
|
5
5
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
6
6
|
}>;
|
|
7
7
|
export declare function beginHandler(ctx: MutationCtx, args: Infer<typeof beginArgs>): Promise<{
|
|
8
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
9
|
-
retryable: false;
|
|
10
|
-
status: "conflict";
|
|
11
|
-
} | {
|
|
12
|
-
reason: "policy_invalid";
|
|
13
|
-
retryable: false;
|
|
14
|
-
status: "rejected";
|
|
15
|
-
} | {
|
|
16
8
|
operation: {
|
|
17
9
|
accountId: string;
|
|
18
10
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -23,6 +15,14 @@ export declare function beginHandler(ctx: MutationCtx, args: Infer<typeof beginA
|
|
|
23
15
|
} | {
|
|
24
16
|
enabled: boolean;
|
|
25
17
|
status: "unchanged";
|
|
18
|
+
} | {
|
|
19
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
20
|
+
retryable: false;
|
|
21
|
+
status: "conflict";
|
|
22
|
+
} | {
|
|
23
|
+
reason: "policy_invalid";
|
|
24
|
+
retryable: false;
|
|
25
|
+
status: "rejected";
|
|
26
26
|
} | {
|
|
27
27
|
reason: "provider_pending";
|
|
28
28
|
retryable: true;
|
|
@@ -372,14 +372,6 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
372
372
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
373
373
|
requestKey: string;
|
|
374
374
|
result?: {
|
|
375
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
376
|
-
retryable: false;
|
|
377
|
-
status: "conflict";
|
|
378
|
-
} | {
|
|
379
|
-
reason: "policy_invalid";
|
|
380
|
-
retryable: false;
|
|
381
|
-
status: "rejected";
|
|
382
|
-
} | {
|
|
383
375
|
operation: {
|
|
384
376
|
accountId: string;
|
|
385
377
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -390,6 +382,14 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
390
382
|
} | {
|
|
391
383
|
enabled: boolean;
|
|
392
384
|
status: "unchanged";
|
|
385
|
+
} | {
|
|
386
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
387
|
+
retryable: false;
|
|
388
|
+
status: "conflict";
|
|
389
|
+
} | {
|
|
390
|
+
reason: "policy_invalid";
|
|
391
|
+
retryable: false;
|
|
392
|
+
status: "rejected";
|
|
393
393
|
} | {
|
|
394
394
|
reason: "provider_pending";
|
|
395
395
|
retryable: true;
|
|
@@ -3270,14 +3270,6 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
3270
3270
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
3271
3271
|
requestKey: string;
|
|
3272
3272
|
result?: {
|
|
3273
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
3274
|
-
retryable: false;
|
|
3275
|
-
status: "conflict";
|
|
3276
|
-
} | {
|
|
3277
|
-
reason: "policy_invalid";
|
|
3278
|
-
retryable: false;
|
|
3279
|
-
status: "rejected";
|
|
3280
|
-
} | {
|
|
3281
3273
|
operation: {
|
|
3282
3274
|
accountId: string;
|
|
3283
3275
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -3288,6 +3280,14 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
3288
3280
|
} | {
|
|
3289
3281
|
enabled: boolean;
|
|
3290
3282
|
status: "unchanged";
|
|
3283
|
+
} | {
|
|
3284
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
3285
|
+
retryable: false;
|
|
3286
|
+
status: "conflict";
|
|
3287
|
+
} | {
|
|
3288
|
+
reason: "policy_invalid";
|
|
3289
|
+
retryable: false;
|
|
3290
|
+
status: "rejected";
|
|
3291
3291
|
} | {
|
|
3292
3292
|
reason: "provider_pending";
|
|
3293
3293
|
retryable: true;
|
|
@@ -163,10 +163,10 @@ export declare const snapshot: import("convex/server").RegisteredQuery<"public",
|
|
|
163
163
|
accountId: string;
|
|
164
164
|
ownerKey: string;
|
|
165
165
|
}, Promise<{
|
|
166
|
-
status: "held";
|
|
167
|
-
reason: "snapshot_limit";
|
|
168
166
|
transfers?: undefined;
|
|
169
167
|
claims?: undefined;
|
|
168
|
+
status: "held";
|
|
169
|
+
reason: "snapshot_limit";
|
|
170
170
|
} | {
|
|
171
171
|
reason?: undefined;
|
|
172
172
|
status: "ready";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRelease/queries.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIlB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiBd,CAAC;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BlB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;GAQf,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRelease/queries.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIlB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiBd,CAAC;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BlB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;GAQf,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,QAAQ;;;;;;YAsBE,MAAM;YAAmB,gBAAgB;;;YAS3C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAE1B,CAAC"}
|
|
@@ -14,7 +14,7 @@ export declare function checkRollback(ctx: MutationCtx, op: Doc<"processingCostR
|
|
|
14
14
|
readonly bindFunding?: undefined;
|
|
15
15
|
} | {
|
|
16
16
|
reason?: undefined;
|
|
17
|
-
|
|
17
|
+
retryable?: undefined;
|
|
18
18
|
readonly status: "ready";
|
|
19
19
|
readonly bindFunding: boolean;
|
|
20
20
|
}>;
|
|
@@ -180,8 +180,9 @@ and compares the entire result before constructing the request. A matching
|
|
|
180
180
|
digest alone is insufficient. V1 preparations are rejected by this builder;
|
|
181
181
|
there is no automatic migration or fallback. Existing V1 projection, receipt
|
|
182
182
|
and configure consumers do not accept V2 records. V2 adds pure preparation,
|
|
183
|
-
request and attachment-receipt construction,
|
|
184
|
-
|
|
183
|
+
request and attachment-receipt construction, plus
|
|
184
|
+
[raw configuration projection](renewal-phase-assembly.md#raw-v2-configuration-projection).
|
|
185
|
+
It does not add a provider writer or configured-response receipt constructor.
|
|
185
186
|
|
|
186
187
|
V2 retains the same raw preparation semantic checks and bounded JSON policy as
|
|
187
188
|
V1. It adds a limit of 500,000 UTF-8 bytes on each exact encoded hash preimage,
|
|
@@ -200,6 +201,9 @@ arrays retain their order and negative zero serializes as zero. The output is
|
|
|
200
201
|
Families are selected internally: `renewal` for preparation and
|
|
201
202
|
`renewal-attach` for the attachment request and `renewal-attach-receipt` for the
|
|
202
203
|
complete attachment receipt.
|
|
204
|
+
Configuration projection also selects `renewal-baseline`, `renewal-defaults`
|
|
205
|
+
and `renewal-configure` internally for its complete baseline, defaults and
|
|
206
|
+
unsigned request. No caller-supplied family selector is exposed.
|
|
203
207
|
|
|
204
208
|
The preparation preimage contains version, platform scope, expected selectors,
|
|
205
209
|
quantity and complete provider snapshot. Its logical key is separately retained
|