@fantastic.dev/better-stripe 0.34.0 → 0.35.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 +35 -0
- package/README.md +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +486 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +243 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +486 -2
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +243 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/refundCommandEvidence.d.ts +14 -0
- package/dist/client/connect/refundCommandEvidence.d.ts.map +1 -0
- package/dist/client/connect/refundCommandEvidence.js +20 -0
- package/dist/client/connect/refundCommandEvidence.js.map +1 -0
- package/dist/client/connect/refundCommandNormalization.d.ts +11 -0
- package/dist/client/connect/refundCommandNormalization.d.ts.map +1 -0
- package/dist/client/connect/refundCommandNormalization.js +12 -0
- package/dist/client/connect/refundCommandNormalization.js.map +1 -0
- package/dist/client/financialObservations.d.ts +42 -0
- package/dist/client/financialObservations.d.ts.map +1 -0
- package/dist/client/financialObservations.js +58 -0
- package/dist/client/financialObservations.js.map +1 -0
- package/dist/client/financialOwnership.d.ts +52 -0
- package/dist/client/financialOwnership.d.ts.map +1 -0
- package/dist/client/financialOwnership.js +72 -0
- package/dist/client/financialOwnership.js.map +1 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/observationPagination.d.ts +10 -0
- package/dist/client/observationPagination.d.ts.map +1 -0
- package/dist/client/observationPagination.js +12 -0
- package/dist/client/observationPagination.js.map +1 -0
- package/dist/client/publicTypes.d.ts +5 -0
- package/dist/client/publicTypes.d.ts.map +1 -1
- package/dist/client/readContracts.d.ts +29 -0
- package/dist/client/readContracts.d.ts.map +1 -1
- package/dist/client/readContracts.js +10 -0
- package/dist/client/readContracts.js.map +1 -1
- package/dist/client/transferObservations.d.ts +59 -0
- package/dist/client/transferObservations.d.ts.map +1 -0
- package/dist/client/transferObservations.js +82 -0
- package/dist/client/transferObservations.js.map +1 -0
- package/dist/component/_generated/component.d.ts +506 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/affiliateRecovery/mutations.d.ts.map +1 -1
- package/dist/component/affiliateRecovery/mutations.js +4 -1
- package/dist/component/affiliateRecovery/mutations.js.map +1 -1
- package/dist/component/connect/mutations.d.ts.map +1 -1
- package/dist/component/connect/mutations.js +18 -2
- package/dist/component/connect/mutations.js.map +1 -1
- package/dist/component/connect/queries.d.ts +8 -0
- package/dist/component/connect/queries.d.ts.map +1 -1
- package/dist/component/connect/reversalClaims.d.ts.map +1 -1
- package/dist/component/connect/reversalClaims.js +7 -1
- package/dist/component/connect/reversalClaims.js.map +1 -1
- package/dist/component/connect/reversalReceipts.d.ts.map +1 -1
- package/dist/component/connect/reversalReceipts.js +2 -0
- package/dist/component/connect/reversalReceipts.js.map +1 -1
- package/dist/component/connect/schema.d.ts +11 -1
- package/dist/component/connect/schema.d.ts.map +1 -1
- package/dist/component/connect/schema.js +9 -1
- package/dist/component/connect/schema.js.map +1 -1
- package/dist/component/connect/validators.d.ts +9 -1
- package/dist/component/connect/validators.d.ts.map +1 -1
- package/dist/component/connect/validators.js +2 -0
- package/dist/component/connect/validators.js.map +1 -1
- package/dist/component/earnings/triggers.d.ts +426 -2
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/earnings/triggers.js +7 -1
- package/dist/component/earnings/triggers.js.map +1 -1
- package/dist/component/financialObservations/continuation.d.ts +7 -0
- package/dist/component/financialObservations/continuation.d.ts.map +1 -0
- package/dist/component/financialObservations/continuation.js +131 -0
- package/dist/component/financialObservations/continuation.js.map +1 -0
- package/dist/component/financialObservations/generations.d.ts +6 -0
- package/dist/component/financialObservations/generations.d.ts.map +1 -0
- package/dist/component/financialObservations/generations.js +46 -0
- package/dist/component/financialObservations/generations.js.map +1 -0
- package/dist/component/financialObservations/mutations.d.ts +62 -0
- package/dist/component/financialObservations/mutations.d.ts.map +1 -0
- package/dist/component/financialObservations/mutations.js +69 -0
- package/dist/component/financialObservations/mutations.js.map +1 -0
- package/dist/component/financialObservations/queries.d.ts +307 -0
- package/dist/component/financialObservations/queries.d.ts.map +1 -0
- package/dist/component/financialObservations/queries.js +219 -0
- package/dist/component/financialObservations/queries.js.map +1 -0
- package/dist/component/financialObservations/schema.d.ts +182 -0
- package/dist/component/financialObservations/schema.d.ts.map +1 -0
- package/dist/component/financialObservations/schema.js +53 -0
- package/dist/component/financialObservations/schema.js.map +1 -0
- package/dist/component/financialObservations/settlement.d.ts +7 -0
- package/dist/component/financialObservations/settlement.d.ts.map +1 -0
- package/dist/component/financialObservations/settlement.js +118 -0
- package/dist/component/financialObservations/settlement.js.map +1 -0
- package/dist/component/financialObservations/settlementHelpers.d.ts +46 -0
- package/dist/component/financialObservations/settlementHelpers.d.ts.map +1 -0
- package/dist/component/financialObservations/settlementHelpers.js +70 -0
- package/dist/component/financialObservations/settlementHelpers.js.map +1 -0
- package/dist/component/financialObservations/transferBatches.d.ts +12 -0
- package/dist/component/financialObservations/transferBatches.d.ts.map +1 -0
- package/dist/component/financialObservations/transferBatches.js +76 -0
- package/dist/component/financialObservations/transferBatches.js.map +1 -0
- package/dist/component/financialObservations/transferContinuation.d.ts +5 -0
- package/dist/component/financialObservations/transferContinuation.d.ts.map +1 -0
- package/dist/component/financialObservations/transferContinuation.js +35 -0
- package/dist/component/financialObservations/transferContinuation.js.map +1 -0
- package/dist/component/financialObservations/transferContinuationState.d.ts +8 -0
- package/dist/component/financialObservations/transferContinuationState.d.ts.map +1 -0
- package/dist/component/financialObservations/transferContinuationState.js +69 -0
- package/dist/component/financialObservations/transferContinuationState.js.map +1 -0
- package/dist/component/financialObservations/transferContinuationSteps.d.ts +5 -0
- package/dist/component/financialObservations/transferContinuationSteps.d.ts.map +1 -0
- package/dist/component/financialObservations/transferContinuationSteps.js +174 -0
- package/dist/component/financialObservations/transferContinuationSteps.js.map +1 -0
- package/dist/component/financialObservations/transferHelpers.d.ts +18 -0
- package/dist/component/financialObservations/transferHelpers.d.ts.map +1 -0
- package/dist/component/financialObservations/transferHelpers.js +37 -0
- package/dist/component/financialObservations/transferHelpers.js.map +1 -0
- package/dist/component/financialObservations/transferReferenceSchema.d.ts +56 -0
- package/dist/component/financialObservations/transferReferenceSchema.d.ts.map +1 -0
- package/dist/component/financialObservations/transferReferenceSchema.js +21 -0
- package/dist/component/financialObservations/transferReferenceSchema.js.map +1 -0
- package/dist/component/financialObservations/transferSchema.d.ts +237 -0
- package/dist/component/financialObservations/transferSchema.d.ts.map +1 -0
- package/dist/component/financialObservations/transferSchema.js +65 -0
- package/dist/component/financialObservations/transferSchema.js.map +1 -0
- package/dist/component/financialObservations/transfers.d.ts +7 -0
- package/dist/component/financialObservations/transfers.d.ts.map +1 -0
- package/dist/component/financialObservations/transfers.js +79 -0
- package/dist/component/financialObservations/transfers.js.map +1 -0
- package/dist/component/financialOwnership/helpers.d.ts +37 -0
- package/dist/component/financialOwnership/helpers.d.ts.map +1 -0
- package/dist/component/financialOwnership/helpers.js +76 -0
- package/dist/component/financialOwnership/helpers.js.map +1 -0
- package/dist/component/financialOwnership/mutations.d.ts +28 -0
- package/dist/component/financialOwnership/mutations.d.ts.map +1 -0
- package/dist/component/financialOwnership/mutations.js +74 -0
- package/dist/component/financialOwnership/mutations.js.map +1 -0
- package/dist/component/financialOwnership/queries.d.ts +57 -0
- package/dist/component/financialOwnership/queries.d.ts.map +1 -0
- package/dist/component/financialOwnership/queries.js +50 -0
- package/dist/component/financialOwnership/queries.js.map +1 -0
- package/dist/component/financialOwnership/schema.d.ts +140 -0
- package/dist/component/financialOwnership/schema.d.ts.map +1 -0
- package/dist/component/financialOwnership/schema.js +35 -0
- package/dist/component/financialOwnership/schema.js.map +1 -0
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/refundHistory/commandBinding.d.ts +17 -0
- package/dist/component/refundHistory/commandBinding.d.ts.map +1 -0
- package/dist/component/refundHistory/commandBinding.js +41 -0
- package/dist/component/refundHistory/commandBinding.js.map +1 -0
- package/dist/component/refundHistory/commandEvidence.d.ts +50 -0
- package/dist/component/refundHistory/commandEvidence.d.ts.map +1 -0
- package/dist/component/refundHistory/commandEvidence.js +54 -0
- package/dist/component/refundHistory/commandEvidence.js.map +1 -0
- package/dist/component/refundHistory/commandEvidenceValidator.d.ts +89 -0
- package/dist/component/refundHistory/commandEvidenceValidator.d.ts.map +1 -0
- package/dist/component/refundHistory/commandEvidenceValidator.js +8 -0
- package/dist/component/refundHistory/commandEvidenceValidator.js.map +1 -0
- package/dist/component/refundHistory/commandFields.d.ts +8 -0
- package/dist/component/refundHistory/commandFields.d.ts.map +1 -0
- package/dist/component/refundHistory/commandFields.js +9 -0
- package/dist/component/refundHistory/commandFields.js.map +1 -0
- package/dist/component/refundHistory/mutations.d.ts +8 -0
- package/dist/component/refundHistory/mutations.d.ts.map +1 -0
- package/dist/component/refundHistory/mutations.js +25 -0
- package/dist/component/refundHistory/mutations.js.map +1 -0
- package/dist/component/refundHistory/queries.d.ts +51 -0
- package/dist/component/refundHistory/queries.d.ts.map +1 -1
- package/dist/component/refundHistory/queries.js +14 -0
- package/dist/component/refundHistory/queries.js.map +1 -1
- package/dist/component/schema.d.ts +243 -1
- package/dist/component/schema.js +12 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/settlement/mutations.d.ts.map +1 -1
- package/dist/component/settlement/mutations.js +5 -1
- package/dist/component/settlement/mutations.js.map +1 -1
- package/dist/shared/refundCommandScope.d.ts +10 -0
- package/dist/shared/refundCommandScope.d.ts.map +1 -0
- package/dist/shared/refundCommandScope.js +9 -0
- package/dist/shared/refundCommandScope.js.map +1 -0
- package/docs/financial-observations.md +159 -0
- package/docs/financial-ownership.md +54 -0
- package/docs/refund-command-evidence.md +49 -0
- package/package.json +5 -2
- package/src/client/connect/refundCommandEvidence.ts +41 -0
- package/src/client/connect/refundCommandNormalization.ts +28 -0
- package/src/client/financialObservations.test.ts +109 -0
- package/src/client/financialObservations.ts +106 -0
- package/src/client/financialOwnership.test.ts +80 -0
- package/src/client/financialOwnership.ts +116 -0
- package/src/client/index.ts +2 -2
- package/src/client/observationPagination.ts +11 -0
- package/src/client/publicTypes.ts +37 -0
- package/src/client/readContracts.ts +21 -0
- package/src/client/refund-command-evidence.test.ts +68 -0
- package/src/client/refund-command-normalization.test.ts +61 -0
- package/src/client/transferContinuation.test.ts +94 -0
- package/src/client/transferObservations.test.ts +98 -0
- package/src/client/transferObservations.ts +180 -0
- package/src/component/_generated/api.ts +44 -0
- package/src/component/_generated/component.ts +590 -0
- package/src/component/affiliateRecovery/mutations.ts +10 -1
- package/src/component/connect/mutations.ts +29 -2
- package/src/component/connect/reversalClaims.ts +19 -1
- package/src/component/connect/reversalReceipts.ts +2 -0
- package/src/component/connect/schema.ts +9 -1
- package/src/component/connect/validators.ts +2 -0
- package/src/component/core/reset.test.ts +8 -1
- package/src/component/earnings/earnings-totals.test.ts +14 -10
- package/src/component/earnings/triggers.ts +9 -1
- package/src/component/financialObservations/continuation.test.ts +445 -0
- package/src/component/financialObservations/continuation.ts +159 -0
- package/src/component/financialObservations/generations.ts +53 -0
- package/src/component/financialObservations/mutations.ts +75 -0
- package/src/component/financialObservations/observation-boundaries.test.ts +466 -0
- package/src/component/financialObservations/queries.ts +246 -0
- package/src/component/financialObservations/schema.ts +68 -0
- package/src/component/financialObservations/settlement-observations.test.ts +86 -0
- package/src/component/financialObservations/settlement.ts +142 -0
- package/src/component/financialObservations/settlementHelpers.ts +92 -0
- package/src/component/financialObservations/transfer-batches.test.ts +61 -0
- package/src/component/financialObservations/transfer-boundaries.test.ts +116 -0
- package/src/component/financialObservations/transfer-continuation-guards.test.ts +428 -0
- package/src/component/financialObservations/transfer-continuation.test.ts +154 -0
- package/src/component/financialObservations/transfer-observations.test.ts +212 -0
- package/src/component/financialObservations/transfer-overflow.test.ts +181 -0
- package/src/component/financialObservations/transfer-writers.test.ts +162 -0
- package/src/component/financialObservations/transferBatches.ts +96 -0
- package/src/component/financialObservations/transferContinuation.ts +53 -0
- package/src/component/financialObservations/transferContinuationState.ts +85 -0
- package/src/component/financialObservations/transferContinuationSteps.ts +232 -0
- package/src/component/financialObservations/transferHelpers.ts +38 -0
- package/src/component/financialObservations/transferReferenceSchema.ts +20 -0
- package/src/component/financialObservations/transferSchema.ts +74 -0
- package/src/component/financialObservations/transfers.ts +99 -0
- package/src/component/financialOwnership/financial-ownership.test.ts +102 -0
- package/src/component/financialOwnership/helpers.ts +98 -0
- package/src/component/financialOwnership/mutations.ts +83 -0
- package/src/component/financialOwnership/ownership-boundaries.test.ts +308 -0
- package/src/component/financialOwnership/queries.ts +65 -0
- package/src/component/financialOwnership/schema.ts +35 -0
- package/src/component/refundHistory/command-evidence.test.ts +288 -0
- package/src/component/refundHistory/command-normalization-resource.test.ts +77 -0
- package/src/component/refundHistory/command-normalization.test.ts +229 -0
- package/src/component/refundHistory/command-provenance.test.ts +59 -0
- package/src/component/refundHistory/commandBinding.ts +54 -0
- package/src/component/refundHistory/commandEvidence.ts +71 -0
- package/src/component/refundHistory/commandEvidenceValidator.ts +18 -0
- package/src/component/refundHistory/commandFields.ts +9 -0
- package/src/component/refundHistory/mutations.ts +33 -0
- package/src/component/refundHistory/queries.ts +15 -0
- package/src/component/schema.ts +22 -0
- package/src/component/settlement/mutations.ts +5 -1
- package/src/shared/refundCommandScope.ts +19 -0
|
@@ -1367,6 +1367,10 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1367
1367
|
failureReason?: string;
|
|
1368
1368
|
metadata?: any;
|
|
1369
1369
|
reason?: "duplicate" | "fraudulent" | "requested_by_customer" | "expired_uncaptured_charge";
|
|
1370
|
+
refundCommandConflict?: boolean;
|
|
1371
|
+
refundCommandKey?: string;
|
|
1372
|
+
refundCommandNormalizationVersion?: 1;
|
|
1373
|
+
refundCommandObservedAt?: number;
|
|
1370
1374
|
status: "pending" | "requires_action" | "succeeded" | "failed" | "canceled";
|
|
1371
1375
|
stripeChargeId?: string;
|
|
1372
1376
|
stripePaymentIntentId?: string;
|
|
@@ -1473,6 +1477,10 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1473
1477
|
failureReason?: string;
|
|
1474
1478
|
metadata?: any;
|
|
1475
1479
|
reason?: "duplicate" | "fraudulent" | "requested_by_customer" | "expired_uncaptured_charge";
|
|
1480
|
+
refundCommandConflict?: boolean;
|
|
1481
|
+
refundCommandKey?: string;
|
|
1482
|
+
refundCommandNormalizationVersion?: 1;
|
|
1483
|
+
refundCommandObservedAt?: number;
|
|
1476
1484
|
status: "pending" | "requires_action" | "succeeded" | "failed" | "canceled";
|
|
1477
1485
|
stripeChargeId?: string;
|
|
1478
1486
|
stripePaymentIntentId?: string;
|
|
@@ -2166,6 +2174,462 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
2166
2174
|
}, Name>;
|
|
2167
2175
|
};
|
|
2168
2176
|
};
|
|
2177
|
+
financialObservations: {
|
|
2178
|
+
mutations: {
|
|
2179
|
+
resume: FunctionReference<"mutation", "internal", {
|
|
2180
|
+
allocationId: string;
|
|
2181
|
+
expectedGeneration: number;
|
|
2182
|
+
}, {
|
|
2183
|
+
coverage: "unknown";
|
|
2184
|
+
observation: {
|
|
2185
|
+
_creationTime: number;
|
|
2186
|
+
_id: string;
|
|
2187
|
+
allocationId: string;
|
|
2188
|
+
continuation?: {
|
|
2189
|
+
nextLeg: number;
|
|
2190
|
+
state: "indexing" | "validating" | "complete" | "held";
|
|
2191
|
+
validatedLegs: number;
|
|
2192
|
+
};
|
|
2193
|
+
fingerprint: string;
|
|
2194
|
+
generation: number;
|
|
2195
|
+
indexedLegCount: number;
|
|
2196
|
+
isContradictory: boolean;
|
|
2197
|
+
isOverflow: boolean;
|
|
2198
|
+
legCount: number;
|
|
2199
|
+
observedFingerprint: string;
|
|
2200
|
+
ownershipFingerprint: string;
|
|
2201
|
+
producer: "settlement_allocation";
|
|
2202
|
+
producerVersion: 1;
|
|
2203
|
+
sourceChargeId: string;
|
|
2204
|
+
} | null;
|
|
2205
|
+
}, Name>;
|
|
2206
|
+
resumeTransferBatch: FunctionReference<"mutation", "internal", {
|
|
2207
|
+
batchId: string;
|
|
2208
|
+
expectedGeneration: number;
|
|
2209
|
+
}, {
|
|
2210
|
+
batch: {
|
|
2211
|
+
_creationTime: number;
|
|
2212
|
+
_id: string;
|
|
2213
|
+
continuation?: {
|
|
2214
|
+
nextReference: number;
|
|
2215
|
+
producerGeneration: number;
|
|
2216
|
+
sourceFingerprint: string;
|
|
2217
|
+
state: "indexing" | "validating" | "complete" | "held";
|
|
2218
|
+
validatedReferences: number;
|
|
2219
|
+
};
|
|
2220
|
+
fingerprint: string;
|
|
2221
|
+
generation: number;
|
|
2222
|
+
isContradictory: boolean;
|
|
2223
|
+
isOverflow: true;
|
|
2224
|
+
observedFingerprint: string;
|
|
2225
|
+
operationId: string;
|
|
2226
|
+
originalOperationId: string;
|
|
2227
|
+
producer: "transfer_frontier_release" | "transfer_frontier_claim";
|
|
2228
|
+
producerVersion: 1;
|
|
2229
|
+
referenceCount: number;
|
|
2230
|
+
sourceChargeId: string;
|
|
2231
|
+
state: "pending" | "complete";
|
|
2232
|
+
transferIds: Array<string>;
|
|
2233
|
+
} | null;
|
|
2234
|
+
coverage: "unknown";
|
|
2235
|
+
hasDeferredWork: boolean;
|
|
2236
|
+
producerGeneration: number | null;
|
|
2237
|
+
}, Name>;
|
|
2238
|
+
};
|
|
2239
|
+
queries: {
|
|
2240
|
+
bucket: FunctionReference<"query", "internal", {
|
|
2241
|
+
bucketKey: string;
|
|
2242
|
+
paginationOpts: {
|
|
2243
|
+
cursor: string | null;
|
|
2244
|
+
endCursor?: string | null;
|
|
2245
|
+
id?: number;
|
|
2246
|
+
maximumBytesRead?: number;
|
|
2247
|
+
maximumRowsRead?: number;
|
|
2248
|
+
numItems: number;
|
|
2249
|
+
};
|
|
2250
|
+
}, {
|
|
2251
|
+
continueCursor: string;
|
|
2252
|
+
coverage: "unknown";
|
|
2253
|
+
generation: number | null;
|
|
2254
|
+
isDone: boolean;
|
|
2255
|
+
page: Array<{
|
|
2256
|
+
_creationTime: number;
|
|
2257
|
+
_id: string;
|
|
2258
|
+
allocationId: string;
|
|
2259
|
+
bucketKey: string;
|
|
2260
|
+
legIndex: number;
|
|
2261
|
+
orgId?: string;
|
|
2262
|
+
ownershipStatus: "registered" | "unknown" | "ambiguous" | "contradictory";
|
|
2263
|
+
registrationId?: string;
|
|
2264
|
+
role: "store" | "affiliate" | "other";
|
|
2265
|
+
sourceChargeId: string;
|
|
2266
|
+
userId?: string;
|
|
2267
|
+
}>;
|
|
2268
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
2269
|
+
splitCursor?: string | null;
|
|
2270
|
+
}, Name>;
|
|
2271
|
+
owner: FunctionReference<"query", "internal", {
|
|
2272
|
+
orgId?: string;
|
|
2273
|
+
paginationOpts: {
|
|
2274
|
+
cursor: string | null;
|
|
2275
|
+
endCursor?: string | null;
|
|
2276
|
+
id?: number;
|
|
2277
|
+
maximumBytesRead?: number;
|
|
2278
|
+
maximumRowsRead?: number;
|
|
2279
|
+
numItems: number;
|
|
2280
|
+
};
|
|
2281
|
+
userId: string;
|
|
2282
|
+
}, {
|
|
2283
|
+
continueCursor: string;
|
|
2284
|
+
coverage: "unknown";
|
|
2285
|
+
generation: number | null;
|
|
2286
|
+
isDone: boolean;
|
|
2287
|
+
page: Array<{
|
|
2288
|
+
_creationTime: number;
|
|
2289
|
+
_id: string;
|
|
2290
|
+
allocationId: string;
|
|
2291
|
+
bucketKey: string;
|
|
2292
|
+
legIndex: number;
|
|
2293
|
+
orgId?: string;
|
|
2294
|
+
ownershipStatus: "registered" | "unknown" | "ambiguous" | "contradictory";
|
|
2295
|
+
registrationId?: string;
|
|
2296
|
+
role: "store" | "affiliate" | "other";
|
|
2297
|
+
sourceChargeId: string;
|
|
2298
|
+
userId?: string;
|
|
2299
|
+
}>;
|
|
2300
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
2301
|
+
splitCursor?: string | null;
|
|
2302
|
+
}, Name>;
|
|
2303
|
+
source: FunctionReference<"query", "internal", {
|
|
2304
|
+
allocationId: string;
|
|
2305
|
+
}, {
|
|
2306
|
+
coverage: "unknown";
|
|
2307
|
+
observation: null | {
|
|
2308
|
+
_creationTime: number;
|
|
2309
|
+
_id: string;
|
|
2310
|
+
allocationId: string;
|
|
2311
|
+
continuation?: {
|
|
2312
|
+
nextLeg: number;
|
|
2313
|
+
state: "indexing" | "validating" | "complete" | "held";
|
|
2314
|
+
validatedLegs: number;
|
|
2315
|
+
};
|
|
2316
|
+
fingerprint: string;
|
|
2317
|
+
generation: number;
|
|
2318
|
+
indexedLegCount: number;
|
|
2319
|
+
isContradictory: boolean;
|
|
2320
|
+
isOverflow: boolean;
|
|
2321
|
+
legCount: number;
|
|
2322
|
+
observedFingerprint: string;
|
|
2323
|
+
ownershipFingerprint: string;
|
|
2324
|
+
producer: "settlement_allocation";
|
|
2325
|
+
producerVersion: 1;
|
|
2326
|
+
sourceChargeId: string;
|
|
2327
|
+
};
|
|
2328
|
+
}, Name>;
|
|
2329
|
+
transfer: FunctionReference<"query", "internal", {
|
|
2330
|
+
transferId: string;
|
|
2331
|
+
}, {
|
|
2332
|
+
coverage: "unknown";
|
|
2333
|
+
hasDeferredWork: boolean;
|
|
2334
|
+
observation: {
|
|
2335
|
+
_creationTime: number;
|
|
2336
|
+
_id: string;
|
|
2337
|
+
bucketKey: string;
|
|
2338
|
+
fingerprint: string;
|
|
2339
|
+
generation: number;
|
|
2340
|
+
isContradictory: boolean;
|
|
2341
|
+
observedFingerprint: string;
|
|
2342
|
+
orgId?: string;
|
|
2343
|
+
ownershipFingerprint: string;
|
|
2344
|
+
ownershipStatus: "registered" | "unknown" | "ambiguous" | "contradictory";
|
|
2345
|
+
producer: "transfer_fact";
|
|
2346
|
+
producerVersion: 1;
|
|
2347
|
+
registrationId?: string;
|
|
2348
|
+
role?: "store" | "affiliate" | "other";
|
|
2349
|
+
sourceChargeId?: string;
|
|
2350
|
+
sourceInvoiceId?: string;
|
|
2351
|
+
stripeTransferId: string;
|
|
2352
|
+
transferId: string;
|
|
2353
|
+
userId?: string;
|
|
2354
|
+
} | null;
|
|
2355
|
+
producerGeneration: number | null;
|
|
2356
|
+
}, Name>;
|
|
2357
|
+
transferBatch: FunctionReference<"query", "internal", {
|
|
2358
|
+
batchId: string;
|
|
2359
|
+
}, {
|
|
2360
|
+
batch: {
|
|
2361
|
+
_creationTime: number;
|
|
2362
|
+
_id: string;
|
|
2363
|
+
continuation?: {
|
|
2364
|
+
nextReference: number;
|
|
2365
|
+
producerGeneration: number;
|
|
2366
|
+
sourceFingerprint: string;
|
|
2367
|
+
state: "indexing" | "validating" | "complete" | "held";
|
|
2368
|
+
validatedReferences: number;
|
|
2369
|
+
};
|
|
2370
|
+
fingerprint: string;
|
|
2371
|
+
generation: number;
|
|
2372
|
+
isContradictory: boolean;
|
|
2373
|
+
isOverflow: true;
|
|
2374
|
+
observedFingerprint: string;
|
|
2375
|
+
operationId: string;
|
|
2376
|
+
originalOperationId: string;
|
|
2377
|
+
producer: "transfer_frontier_release" | "transfer_frontier_claim";
|
|
2378
|
+
producerVersion: 1;
|
|
2379
|
+
referenceCount: number;
|
|
2380
|
+
sourceChargeId: string;
|
|
2381
|
+
state: "pending" | "complete";
|
|
2382
|
+
transferIds: Array<string>;
|
|
2383
|
+
} | null;
|
|
2384
|
+
coverage: "unknown";
|
|
2385
|
+
hasDeferredWork: boolean;
|
|
2386
|
+
producerGeneration: number | null;
|
|
2387
|
+
}, Name>;
|
|
2388
|
+
transferBatches: FunctionReference<"query", "internal", {
|
|
2389
|
+
operationId: string;
|
|
2390
|
+
paginationOpts: {
|
|
2391
|
+
cursor: string | null;
|
|
2392
|
+
endCursor?: string | null;
|
|
2393
|
+
id?: number;
|
|
2394
|
+
maximumBytesRead?: number;
|
|
2395
|
+
maximumRowsRead?: number;
|
|
2396
|
+
numItems: number;
|
|
2397
|
+
};
|
|
2398
|
+
}, {
|
|
2399
|
+
continueCursor: string;
|
|
2400
|
+
coverage: "unknown";
|
|
2401
|
+
hasDeferredWork: boolean;
|
|
2402
|
+
isDone: boolean;
|
|
2403
|
+
page: Array<{
|
|
2404
|
+
_creationTime: number;
|
|
2405
|
+
_id: string;
|
|
2406
|
+
continuation?: {
|
|
2407
|
+
nextReference: number;
|
|
2408
|
+
producerGeneration: number;
|
|
2409
|
+
sourceFingerprint: string;
|
|
2410
|
+
state: "indexing" | "validating" | "complete" | "held";
|
|
2411
|
+
validatedReferences: number;
|
|
2412
|
+
};
|
|
2413
|
+
fingerprint: string;
|
|
2414
|
+
generation: number;
|
|
2415
|
+
isContradictory: boolean;
|
|
2416
|
+
isOverflow: true;
|
|
2417
|
+
observedFingerprint: string;
|
|
2418
|
+
operationId: string;
|
|
2419
|
+
originalOperationId: string;
|
|
2420
|
+
producer: "transfer_frontier_release" | "transfer_frontier_claim";
|
|
2421
|
+
producerVersion: 1;
|
|
2422
|
+
referenceCount: number;
|
|
2423
|
+
sourceChargeId: string;
|
|
2424
|
+
state: "pending" | "complete";
|
|
2425
|
+
transferIds: Array<string>;
|
|
2426
|
+
}>;
|
|
2427
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
2428
|
+
producerGeneration: number | null;
|
|
2429
|
+
splitCursor?: string | null;
|
|
2430
|
+
}, Name>;
|
|
2431
|
+
transferBucket: FunctionReference<"query", "internal", {
|
|
2432
|
+
bucketKey: string;
|
|
2433
|
+
paginationOpts: {
|
|
2434
|
+
cursor: string | null;
|
|
2435
|
+
endCursor?: string | null;
|
|
2436
|
+
id?: number;
|
|
2437
|
+
maximumBytesRead?: number;
|
|
2438
|
+
maximumRowsRead?: number;
|
|
2439
|
+
numItems: number;
|
|
2440
|
+
};
|
|
2441
|
+
}, {
|
|
2442
|
+
continueCursor: string;
|
|
2443
|
+
coverage: "unknown";
|
|
2444
|
+
generation: number | null;
|
|
2445
|
+
hasDeferredWork: boolean;
|
|
2446
|
+
isDone: boolean;
|
|
2447
|
+
page: Array<{
|
|
2448
|
+
_creationTime: number;
|
|
2449
|
+
_id: string;
|
|
2450
|
+
bucketKey: string;
|
|
2451
|
+
fingerprint: string;
|
|
2452
|
+
generation: number;
|
|
2453
|
+
isContradictory: boolean;
|
|
2454
|
+
observedFingerprint: string;
|
|
2455
|
+
orgId?: string;
|
|
2456
|
+
ownershipFingerprint: string;
|
|
2457
|
+
ownershipStatus: "registered" | "unknown" | "ambiguous" | "contradictory";
|
|
2458
|
+
producer: "transfer_fact";
|
|
2459
|
+
producerVersion: 1;
|
|
2460
|
+
registrationId?: string;
|
|
2461
|
+
role?: "store" | "affiliate" | "other";
|
|
2462
|
+
sourceChargeId?: string;
|
|
2463
|
+
sourceInvoiceId?: string;
|
|
2464
|
+
stripeTransferId: string;
|
|
2465
|
+
transferId: string;
|
|
2466
|
+
userId?: string;
|
|
2467
|
+
}>;
|
|
2468
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
2469
|
+
producerGeneration: number | null;
|
|
2470
|
+
splitCursor?: string | null;
|
|
2471
|
+
}, Name>;
|
|
2472
|
+
transferOwner: FunctionReference<"query", "internal", {
|
|
2473
|
+
orgId?: string;
|
|
2474
|
+
paginationOpts: {
|
|
2475
|
+
cursor: string | null;
|
|
2476
|
+
endCursor?: string | null;
|
|
2477
|
+
id?: number;
|
|
2478
|
+
maximumBytesRead?: number;
|
|
2479
|
+
maximumRowsRead?: number;
|
|
2480
|
+
numItems: number;
|
|
2481
|
+
};
|
|
2482
|
+
userId: string;
|
|
2483
|
+
}, {
|
|
2484
|
+
continueCursor: string;
|
|
2485
|
+
coverage: "unknown";
|
|
2486
|
+
generation: number | null;
|
|
2487
|
+
hasDeferredWork: boolean;
|
|
2488
|
+
isDone: boolean;
|
|
2489
|
+
page: Array<{
|
|
2490
|
+
_creationTime: number;
|
|
2491
|
+
_id: string;
|
|
2492
|
+
bucketKey: string;
|
|
2493
|
+
fingerprint: string;
|
|
2494
|
+
generation: number;
|
|
2495
|
+
isContradictory: boolean;
|
|
2496
|
+
observedFingerprint: string;
|
|
2497
|
+
orgId?: string;
|
|
2498
|
+
ownershipFingerprint: string;
|
|
2499
|
+
ownershipStatus: "registered" | "unknown" | "ambiguous" | "contradictory";
|
|
2500
|
+
producer: "transfer_fact";
|
|
2501
|
+
producerVersion: 1;
|
|
2502
|
+
registrationId?: string;
|
|
2503
|
+
role?: "store" | "affiliate" | "other";
|
|
2504
|
+
sourceChargeId?: string;
|
|
2505
|
+
sourceInvoiceId?: string;
|
|
2506
|
+
stripeTransferId: string;
|
|
2507
|
+
transferId: string;
|
|
2508
|
+
userId?: string;
|
|
2509
|
+
}>;
|
|
2510
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
2511
|
+
producerGeneration: number | null;
|
|
2512
|
+
splitCursor?: string | null;
|
|
2513
|
+
}, Name>;
|
|
2514
|
+
transferReferences: FunctionReference<"query", "internal", {
|
|
2515
|
+
batchId: string;
|
|
2516
|
+
paginationOpts: {
|
|
2517
|
+
cursor: string | null;
|
|
2518
|
+
endCursor?: string | null;
|
|
2519
|
+
id?: number;
|
|
2520
|
+
maximumBytesRead?: number;
|
|
2521
|
+
maximumRowsRead?: number;
|
|
2522
|
+
numItems: number;
|
|
2523
|
+
};
|
|
2524
|
+
}, {
|
|
2525
|
+
continueCursor: string;
|
|
2526
|
+
coverage: "unknown";
|
|
2527
|
+
hasDeferredWork: boolean;
|
|
2528
|
+
isDone: boolean;
|
|
2529
|
+
page: Array<{
|
|
2530
|
+
_creationTime: number;
|
|
2531
|
+
_id: string;
|
|
2532
|
+
batchId: string;
|
|
2533
|
+
observationGeneration: number;
|
|
2534
|
+
observationId: string;
|
|
2535
|
+
observedFingerprint: string;
|
|
2536
|
+
ownershipFingerprint: string;
|
|
2537
|
+
position: number;
|
|
2538
|
+
sourceFingerprint: string;
|
|
2539
|
+
transferId: string;
|
|
2540
|
+
}>;
|
|
2541
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
2542
|
+
producerGeneration: number | null;
|
|
2543
|
+
splitCursor?: string | null;
|
|
2544
|
+
}, Name>;
|
|
2545
|
+
};
|
|
2546
|
+
};
|
|
2547
|
+
financialOwnership: {
|
|
2548
|
+
mutations: {
|
|
2549
|
+
register: FunctionReference<"mutation", "internal", {
|
|
2550
|
+
bucketKey: string;
|
|
2551
|
+
kind: "stripe_account" | "logical";
|
|
2552
|
+
orgId?: string;
|
|
2553
|
+
source?: {
|
|
2554
|
+
integration: string;
|
|
2555
|
+
recordId: string;
|
|
2556
|
+
};
|
|
2557
|
+
userId: string;
|
|
2558
|
+
}, {
|
|
2559
|
+
coverage: "unknown";
|
|
2560
|
+
registration: {
|
|
2561
|
+
_creationTime: number;
|
|
2562
|
+
_id: string;
|
|
2563
|
+
bucketKey: string;
|
|
2564
|
+
generation: number;
|
|
2565
|
+
kind: "stripe_account" | "logical";
|
|
2566
|
+
orgId?: string;
|
|
2567
|
+
source: {
|
|
2568
|
+
integration: string;
|
|
2569
|
+
recordId: string;
|
|
2570
|
+
};
|
|
2571
|
+
userId: string;
|
|
2572
|
+
};
|
|
2573
|
+
status: "registered";
|
|
2574
|
+
}, Name>;
|
|
2575
|
+
};
|
|
2576
|
+
queries: {
|
|
2577
|
+
discover: FunctionReference<"query", "internal", {
|
|
2578
|
+
orgId?: string;
|
|
2579
|
+
paginationOpts: {
|
|
2580
|
+
cursor: string | null;
|
|
2581
|
+
endCursor?: string | null;
|
|
2582
|
+
id?: number;
|
|
2583
|
+
maximumBytesRead?: number;
|
|
2584
|
+
maximumRowsRead?: number;
|
|
2585
|
+
numItems: number;
|
|
2586
|
+
};
|
|
2587
|
+
userId: string;
|
|
2588
|
+
}, {
|
|
2589
|
+
continueCursor: string;
|
|
2590
|
+
coverage: "unknown";
|
|
2591
|
+
generation: number;
|
|
2592
|
+
isDone: boolean;
|
|
2593
|
+
page: Array<{
|
|
2594
|
+
_creationTime: number;
|
|
2595
|
+
_id: string;
|
|
2596
|
+
bucketKey: string;
|
|
2597
|
+
generation: number;
|
|
2598
|
+
kind: "stripe_account" | "logical";
|
|
2599
|
+
orgId?: string;
|
|
2600
|
+
source: {
|
|
2601
|
+
integration: string;
|
|
2602
|
+
recordId: string;
|
|
2603
|
+
};
|
|
2604
|
+
userId: string;
|
|
2605
|
+
}>;
|
|
2606
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
2607
|
+
splitCursor?: string | null;
|
|
2608
|
+
}, Name>;
|
|
2609
|
+
lookup: FunctionReference<"query", "internal", {
|
|
2610
|
+
bucketKey: string;
|
|
2611
|
+
}, {
|
|
2612
|
+
coverage: "unknown";
|
|
2613
|
+
registration: {
|
|
2614
|
+
_creationTime: number;
|
|
2615
|
+
_id: string;
|
|
2616
|
+
bucketKey: string;
|
|
2617
|
+
generation: number;
|
|
2618
|
+
kind: "stripe_account" | "logical";
|
|
2619
|
+
orgId?: string;
|
|
2620
|
+
source: {
|
|
2621
|
+
integration: string;
|
|
2622
|
+
recordId: string;
|
|
2623
|
+
};
|
|
2624
|
+
userId: string;
|
|
2625
|
+
};
|
|
2626
|
+
status: "registered";
|
|
2627
|
+
} | {
|
|
2628
|
+
coverage: "unknown";
|
|
2629
|
+
status: "unknown";
|
|
2630
|
+
}, Name>;
|
|
2631
|
+
};
|
|
2632
|
+
};
|
|
2169
2633
|
payoutPolicy: {
|
|
2170
2634
|
mutations: {
|
|
2171
2635
|
beginAttempt: FunctionReference<"mutation", "internal", {
|
|
@@ -4009,7 +4473,45 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
4009
4473
|
};
|
|
4010
4474
|
};
|
|
4011
4475
|
refundHistory: {
|
|
4476
|
+
mutations: {
|
|
4477
|
+
normalizeRefundCommandBindings: FunctionReference<"mutation", "internal", {
|
|
4478
|
+
limit: number;
|
|
4479
|
+
}, {
|
|
4480
|
+
hasMore: boolean;
|
|
4481
|
+
normalized: number;
|
|
4482
|
+
}, Name>;
|
|
4483
|
+
};
|
|
4012
4484
|
queries: {
|
|
4485
|
+
getRefundCommandEvidence: FunctionReference<"query", "internal", {
|
|
4486
|
+
accountId: string;
|
|
4487
|
+
commandKey: string;
|
|
4488
|
+
currency: string;
|
|
4489
|
+
stripeChargeId: string;
|
|
4490
|
+
stripePaymentIntentId: string;
|
|
4491
|
+
}, {
|
|
4492
|
+
refund: {
|
|
4493
|
+
_creationTime: number;
|
|
4494
|
+
_id: string;
|
|
4495
|
+
accountId?: string;
|
|
4496
|
+
amount: number;
|
|
4497
|
+
currency: string;
|
|
4498
|
+
failureReason?: string;
|
|
4499
|
+
metadata?: any;
|
|
4500
|
+
reason?: "duplicate" | "fraudulent" | "requested_by_customer" | "expired_uncaptured_charge";
|
|
4501
|
+
refundCommandConflict?: boolean;
|
|
4502
|
+
refundCommandKey?: string;
|
|
4503
|
+
refundCommandNormalizationVersion?: 1;
|
|
4504
|
+
refundCommandObservedAt?: number;
|
|
4505
|
+
status: "pending" | "requires_action" | "succeeded" | "failed" | "canceled";
|
|
4506
|
+
stripeChargeId?: string;
|
|
4507
|
+
stripePaymentIntentId?: string;
|
|
4508
|
+
stripeRefundId: string;
|
|
4509
|
+
};
|
|
4510
|
+
status: "observed";
|
|
4511
|
+
} | {
|
|
4512
|
+
reason: "missing" | "normalization_incomplete" | "ambiguous" | "correlation_conflict" | "scope_mismatch" | "invalid_receipt";
|
|
4513
|
+
status: "unavailable";
|
|
4514
|
+
}, Name>;
|
|
4013
4515
|
paginateRefunds: FunctionReference<"query", "internal", {
|
|
4014
4516
|
accountId?: string;
|
|
4015
4517
|
paginationOpts: {
|
|
@@ -4034,6 +4536,10 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
4034
4536
|
failureReason?: string;
|
|
4035
4537
|
metadata?: any;
|
|
4036
4538
|
reason?: "duplicate" | "fraudulent" | "requested_by_customer" | "expired_uncaptured_charge";
|
|
4539
|
+
refundCommandConflict?: boolean;
|
|
4540
|
+
refundCommandKey?: string;
|
|
4541
|
+
refundCommandNormalizationVersion?: 1;
|
|
4542
|
+
refundCommandObservedAt?: number;
|
|
4037
4543
|
status: "pending" | "requires_action" | "succeeded" | "failed" | "canceled";
|
|
4038
4544
|
stripeChargeId?: string;
|
|
4039
4545
|
stripePaymentIntentId?: string;
|