@flopay/js 1.4.3 → 1.4.5
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/dist/index.cjs +1 -3759
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.mjs +1 -3757
- package/package.json +4 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -295,6 +295,7 @@ interface RawCheckoutSession {
|
|
|
295
295
|
testEventCode?: string | null;
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
+
type AccountSnapshotTelemetryMode = 'blocking' | 'best_effort';
|
|
298
299
|
interface PaymentAPIOptions {
|
|
299
300
|
/** Flo-owned privacy-safe telemetry is enabled by default; set false to opt out. */
|
|
300
301
|
telemetry?: boolean;
|
|
@@ -315,6 +316,13 @@ declare class PaymentAPI {
|
|
|
315
316
|
/** Dispose the reporter owned by direct public usage. Internal hooks are never disposed here. */
|
|
316
317
|
destroy(): void;
|
|
317
318
|
private reportDirectFailure;
|
|
319
|
+
/**
|
|
320
|
+
* A hosted-vault snapshot timeout is an observed fallback, not a checkout
|
|
321
|
+
* failure: the widget charge is already proceeding with the session baseline.
|
|
322
|
+
* Every other snapshot failure and every default/direct timeout remains an
|
|
323
|
+
* alert-level technical error.
|
|
324
|
+
*/
|
|
325
|
+
private reportAccountSnapshotFailure;
|
|
318
326
|
private telemetryTimestamp;
|
|
319
327
|
private beginDirectTelemetryCheckout;
|
|
320
328
|
private beginDirectTelemetryOperation;
|
|
@@ -449,6 +457,12 @@ declare class PaymentAPI {
|
|
|
449
457
|
}, options?: {
|
|
450
458
|
signal?: AbortSignal;
|
|
451
459
|
timeoutMs?: number;
|
|
460
|
+
/**
|
|
461
|
+
* Downgrade only a timeout to `operation.fallback` when the caller can
|
|
462
|
+
* continue safely. The promise still rejects and all other failures stay
|
|
463
|
+
* technical errors. Defaults to `blocking`.
|
|
464
|
+
*/
|
|
465
|
+
telemetryMode?: AccountSnapshotTelemetryMode;
|
|
452
466
|
}): Promise<void>;
|
|
453
467
|
/** Create a wallet/APM/PayPal intent through the session-scoped contract. */
|
|
454
468
|
createSessionIntent(sessionId: string, nonce: string, request: CreateSessionIntentRequest, options?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -295,6 +295,7 @@ interface RawCheckoutSession {
|
|
|
295
295
|
testEventCode?: string | null;
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
+
type AccountSnapshotTelemetryMode = 'blocking' | 'best_effort';
|
|
298
299
|
interface PaymentAPIOptions {
|
|
299
300
|
/** Flo-owned privacy-safe telemetry is enabled by default; set false to opt out. */
|
|
300
301
|
telemetry?: boolean;
|
|
@@ -315,6 +316,13 @@ declare class PaymentAPI {
|
|
|
315
316
|
/** Dispose the reporter owned by direct public usage. Internal hooks are never disposed here. */
|
|
316
317
|
destroy(): void;
|
|
317
318
|
private reportDirectFailure;
|
|
319
|
+
/**
|
|
320
|
+
* A hosted-vault snapshot timeout is an observed fallback, not a checkout
|
|
321
|
+
* failure: the widget charge is already proceeding with the session baseline.
|
|
322
|
+
* Every other snapshot failure and every default/direct timeout remains an
|
|
323
|
+
* alert-level technical error.
|
|
324
|
+
*/
|
|
325
|
+
private reportAccountSnapshotFailure;
|
|
318
326
|
private telemetryTimestamp;
|
|
319
327
|
private beginDirectTelemetryCheckout;
|
|
320
328
|
private beginDirectTelemetryOperation;
|
|
@@ -449,6 +457,12 @@ declare class PaymentAPI {
|
|
|
449
457
|
}, options?: {
|
|
450
458
|
signal?: AbortSignal;
|
|
451
459
|
timeoutMs?: number;
|
|
460
|
+
/**
|
|
461
|
+
* Downgrade only a timeout to `operation.fallback` when the caller can
|
|
462
|
+
* continue safely. The promise still rejects and all other failures stay
|
|
463
|
+
* technical errors. Defaults to `blocking`.
|
|
464
|
+
*/
|
|
465
|
+
telemetryMode?: AccountSnapshotTelemetryMode;
|
|
452
466
|
}): Promise<void>;
|
|
453
467
|
/** Create a wallet/APM/PayPal intent through the session-scoped contract. */
|
|
454
468
|
createSessionIntent(sessionId: string, nonce: string, request: CreateSessionIntentRequest, options?: {
|