@coinflowlabs/vue 3.0.0 → 3.1.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/dist/coinflow-vue.js +2280 -2245
- package/dist/coinflow-vue.umd.cjs +19 -18
- package/dist/components/card-form/CoinflowCardFormV2.vue.d.ts +1 -1
- package/dist/lib/common/CoinflowProtectionInit.native.d.ts +5 -1
- package/dist/lib/common/CoinflowProtectionSession.native.d.ts +5 -1
- package/dist/lib/common/CoinflowPurchaseHeaders.d.ts +11 -0
- package/dist/lib/common/CoinflowPurchaseProtectionHeaders.d.ts +3 -9
- package/dist/lib/common/CoinflowPurchaseProtectionHeaders.native.d.ts +10 -0
- package/dist/lib/common/ForterSnippet.d.ts +6 -0
- package/dist/lib/common/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export interface CardFormV2TokenResponse {
|
|
|
4
4
|
token: string;
|
|
5
5
|
expMonth?: string;
|
|
6
6
|
expYear?: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Device token captured in the card-form iframe. Forward it as the `x-forter-token` header on your charge request: the API uses it when the `x-device-id` header from `getCoinflowProtectionHeaders()` has no purchase token yet. Absent if device signals have not loaded. */
|
|
8
8
|
forterToken?: string;
|
|
9
9
|
bin?: string;
|
|
10
10
|
lastFour?: string;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { CoinflowEnvs } from './CoinflowTypes';
|
|
2
|
+
export declare function initProtectionSession(_args: {
|
|
3
|
+
merchantId: string;
|
|
4
|
+
env: CoinflowEnvs;
|
|
5
|
+
}): Promise<void>;
|
|
2
6
|
export declare function getProtectionSessionId(): string | null;
|
|
3
7
|
export default getProtectionSessionId;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const DEVICE_ID_HEADER = "x-device-id";
|
|
2
|
+
export declare const REFERRER_HEADER = "x-coinflow-referrer";
|
|
3
|
+
export declare const SESSION_ID_HEADER = "x-session-id";
|
|
4
|
+
export declare const FORTER_TOKEN_HEADER = "x-forter-token";
|
|
5
|
+
export type WithReferrerHeader<T> = T & {
|
|
6
|
+
[REFERRER_HEADER]: string | null;
|
|
7
|
+
};
|
|
8
|
+
export declare class CoinflowPurchaseHeaders {
|
|
9
|
+
static withReferrer<T extends object>(protectionHeaders: T): WithReferrerHeader<T>;
|
|
10
|
+
private static getReferrer;
|
|
11
|
+
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export declare const REFERRER_HEADER = "x-coinflow-referrer";
|
|
4
|
-
export declare const FORTER_TOKEN_HEADER = "x-forter-token";
|
|
1
|
+
import { DEVICE_ID_HEADER, WithReferrerHeader } from './CoinflowPurchaseHeaders';
|
|
2
|
+
export { DEVICE_ID_HEADER, REFERRER_HEADER, SESSION_ID_HEADER, FORTER_TOKEN_HEADER, } from './CoinflowPurchaseHeaders';
|
|
5
3
|
export type CoinflowProtectionHeadersType = {
|
|
6
4
|
[DEVICE_ID_HEADER]: string | null;
|
|
7
|
-
[SESSION_ID_HEADER]: string | null;
|
|
8
|
-
[FORTER_TOKEN_HEADER]: string | null;
|
|
9
5
|
};
|
|
10
6
|
export declare function getCoinflowProtectionHeaders(): CoinflowProtectionHeadersType;
|
|
11
|
-
export type CoinflowPurchaseHeadersType = CoinflowProtectionHeadersType
|
|
12
|
-
[REFERRER_HEADER]: string | null;
|
|
13
|
-
};
|
|
7
|
+
export type CoinflowPurchaseHeadersType = WithReferrerHeader<CoinflowProtectionHeadersType>;
|
|
14
8
|
export declare function getCoinflowPurchaseHeaders(): CoinflowPurchaseHeadersType;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DEVICE_ID_HEADER, FORTER_TOKEN_HEADER, SESSION_ID_HEADER, WithReferrerHeader } from './CoinflowPurchaseHeaders';
|
|
2
|
+
export { DEVICE_ID_HEADER, REFERRER_HEADER, SESSION_ID_HEADER, FORTER_TOKEN_HEADER, } from './CoinflowPurchaseHeaders';
|
|
3
|
+
export type CoinflowProtectionHeadersType = {
|
|
4
|
+
[DEVICE_ID_HEADER]: string | null;
|
|
5
|
+
[SESSION_ID_HEADER]: string | null;
|
|
6
|
+
[FORTER_TOKEN_HEADER]: string | null;
|
|
7
|
+
};
|
|
8
|
+
export declare function getCoinflowProtectionHeaders(): CoinflowProtectionHeadersType;
|
|
9
|
+
export type CoinflowPurchaseHeadersType = WithReferrerHeader<CoinflowProtectionHeadersType>;
|
|
10
|
+
export declare function getCoinflowPurchaseHeaders(): CoinflowPurchaseHeadersType;
|
|
@@ -18,6 +18,7 @@ export * from './types/lodgingCartItem';
|
|
|
18
18
|
export * from './CoinflowPurchaseProtectionHeaders';
|
|
19
19
|
export * from './CoinflowFraudProtectionHeader';
|
|
20
20
|
export * from './CoinflowProtectionInit';
|
|
21
|
+
export * from './ForterSnippet';
|
|
21
22
|
export { default as getForterToken, captureForterToken, awaitForterToken, } from './Forter';
|
|
22
23
|
export * from './plaidLinkTokenCache';
|
|
23
24
|
export * from './bankLinkCallback';
|