@coinflowlabs/vue 0.2.3 → 0.2.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/README.md +9 -1
- package/dist/App.vue.d.ts +2 -0
- package/dist/coinflow-vue.js +7414 -6924
- package/dist/coinflow-vue.umd.cjs +12 -12
- package/dist/components/CoinflowIframe.vue.d.ts +6 -6
- package/dist/components/CoinflowPurchase.vue.d.ts +112 -113
- package/dist/components/CoinflowPurchaseProtection.vue.d.ts +5 -9
- package/dist/components/CoinflowWithdraw.vue.d.ts +90 -91
- package/dist/components/card-form/CoinflowCardNumberInput.vue.d.ts +7 -36
- package/dist/components/card-form/CoinflowCardNumberOnlyInput.vue.d.ts +7 -36
- package/dist/components/card-form/CoinflowCardOnlyInput.vue.d.ts +17 -0
- package/dist/components/card-form/CoinflowCvvInput.vue.d.ts +2 -4
- package/dist/components/card-form/useCardformIframe.d.ts +9 -10
- package/dist/components/mobile-wallet/CoinflowApplePayButton.vue.d.ts +7 -226
- package/dist/components/mobile-wallet/CoinflowGooglePayButton.vue.d.ts +7 -226
- package/dist/components/mobile-wallet/MobileWalletButton.vue.d.ts +5 -200
- package/dist/index.d.ts +9 -10
- package/dist/lib/common/CoinflowTypes.d.ts +6 -2
- package/dist/lib/common/CoinflowUtils.d.ts +6 -1
- package/dist/lib/common/SolanaPeerDeps.d.ts +1 -1
- package/dist/lib/common/card-form/TokenEx.d.ts +50 -2
- package/dist/lib/common/card-form/tokenexHelpers.d.ts +17 -32
- package/dist/lib/common/index.d.ts +0 -1
- package/dist/main.d.ts +1 -0
- package/dist/testing/CardFormTest.vue.d.ts +2 -0
- package/dist/testing/MobileWalletButtonTest.vue.d.ts +2 -0
- package/dist/testing/PurchaseTest.vue.d.ts +2 -0
- package/dist/testing/SavedCardFormTest.vue.d.ts +2 -0
- package/dist/testing/WithdrawTest.vue.d.ts +2 -0
- package/package.json +18 -14
- package/dist/lib/common/card-form/cardFormTypes.d.ts +0 -46
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropType } from
|
|
2
|
-
import { CoinflowIFrameProps, IFrameMessageHandlers } from
|
|
3
|
-
declare const
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CoinflowIFrameProps, IFrameMessageHandlers } from '../lib/common';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
4
|
args: {
|
|
5
5
|
type: PropType<CoinflowIFrameProps & IFrameMessageHandlers>;
|
|
6
6
|
required: true;
|
|
@@ -15,12 +15,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
15
15
|
}): void;
|
|
16
16
|
listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
|
|
17
17
|
sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
|
|
18
|
-
}, import(
|
|
18
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
19
|
onMessage({ data, origin }: {
|
|
20
20
|
data: string;
|
|
21
21
|
origin: string;
|
|
22
22
|
}): true;
|
|
23
|
-
}, string, import(
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
24
|
args: {
|
|
25
25
|
type: PropType<CoinflowIFrameProps & IFrameMessageHandlers>;
|
|
26
26
|
required: true;
|
|
@@ -31,4 +31,4 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
31
31
|
origin: string;
|
|
32
32
|
}) => any) | undefined;
|
|
33
33
|
}, {}, {}>;
|
|
34
|
-
export default
|
|
34
|
+
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CoinflowPurchaseProps } from '../lib/common';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
4
|
args: {
|
|
6
5
|
type: PropType<CoinflowPurchaseProps>;
|
|
7
6
|
required: true;
|
|
@@ -11,154 +10,154 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
11
10
|
walletPubkey: string | null | undefined;
|
|
12
11
|
route: string;
|
|
13
12
|
transaction: string | undefined;
|
|
14
|
-
wallet: import(
|
|
15
|
-
partialSigners?: import(
|
|
16
|
-
debugTx?: boolean
|
|
17
|
-
connection: import(
|
|
13
|
+
wallet: import('../lib/common').SolanaWallet;
|
|
14
|
+
partialSigners?: import('@solana/web3.js').Signer[];
|
|
15
|
+
debugTx?: boolean;
|
|
16
|
+
connection: import('@solana/web3.js').Connection;
|
|
18
17
|
blockchain: "solana";
|
|
19
|
-
token?:
|
|
18
|
+
token?: import('@solana/web3.js').PublicKey | string;
|
|
20
19
|
rent?: {
|
|
21
20
|
lamports: string | number;
|
|
22
|
-
}
|
|
21
|
+
};
|
|
23
22
|
nativeSolToConvert?: {
|
|
24
23
|
lamports: string | number;
|
|
25
|
-
}
|
|
26
|
-
amount?:
|
|
27
|
-
onSuccess?: import(
|
|
28
|
-
webhookInfo?: object
|
|
29
|
-
email?: string
|
|
30
|
-
chargebackProtectionData?: import(
|
|
31
|
-
planCode?: string
|
|
32
|
-
disableApplePay?: boolean
|
|
33
|
-
disableGooglePay?: boolean
|
|
34
|
-
customerInfo?: import(
|
|
35
|
-
settlementType?: import(
|
|
36
|
-
authOnly?: boolean
|
|
37
|
-
deviceId?: string
|
|
38
|
-
jwtToken?: string
|
|
39
|
-
origins?: string[]
|
|
24
|
+
};
|
|
25
|
+
amount?: number | string;
|
|
26
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
27
|
+
webhookInfo?: object;
|
|
28
|
+
email?: string;
|
|
29
|
+
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
30
|
+
planCode?: string;
|
|
31
|
+
disableApplePay?: boolean;
|
|
32
|
+
disableGooglePay?: boolean;
|
|
33
|
+
customerInfo?: import('../lib/common').CustomerInfo;
|
|
34
|
+
settlementType?: import('../lib/common').SettlementType;
|
|
35
|
+
authOnly?: boolean;
|
|
36
|
+
deviceId?: string;
|
|
37
|
+
jwtToken?: string;
|
|
38
|
+
origins?: string[];
|
|
40
39
|
merchantId: string;
|
|
41
|
-
env?: import(
|
|
42
|
-
loaderBackground?: string
|
|
43
|
-
handleHeightChange?: (
|
|
44
|
-
theme?: import(
|
|
40
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
41
|
+
loaderBackground?: string;
|
|
42
|
+
handleHeightChange?: (height: string) => void;
|
|
43
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
45
44
|
} | {
|
|
46
45
|
walletPubkey: string | null | undefined;
|
|
47
46
|
route: string;
|
|
48
47
|
transaction: string | undefined;
|
|
49
|
-
wallet: import(
|
|
48
|
+
wallet: import('../lib/common').NearWallet;
|
|
50
49
|
blockchain: "near";
|
|
51
|
-
action?: import(
|
|
52
|
-
nearDeposit?: string
|
|
53
|
-
amount?:
|
|
54
|
-
onSuccess?: import(
|
|
55
|
-
webhookInfo?: object
|
|
56
|
-
email?: string
|
|
57
|
-
chargebackProtectionData?: import(
|
|
58
|
-
planCode?: string
|
|
59
|
-
disableApplePay?: boolean
|
|
60
|
-
disableGooglePay?: boolean
|
|
61
|
-
customerInfo?: import(
|
|
62
|
-
settlementType?: import(
|
|
63
|
-
authOnly?: boolean
|
|
64
|
-
deviceId?: string
|
|
65
|
-
jwtToken?: string
|
|
66
|
-
origins?: string[]
|
|
50
|
+
action?: import('../lib/common').NearFtTransferCallAction;
|
|
51
|
+
nearDeposit?: string;
|
|
52
|
+
amount?: number | string;
|
|
53
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
54
|
+
webhookInfo?: object;
|
|
55
|
+
email?: string;
|
|
56
|
+
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
57
|
+
planCode?: string;
|
|
58
|
+
disableApplePay?: boolean;
|
|
59
|
+
disableGooglePay?: boolean;
|
|
60
|
+
customerInfo?: import('../lib/common').CustomerInfo;
|
|
61
|
+
settlementType?: import('../lib/common').SettlementType;
|
|
62
|
+
authOnly?: boolean;
|
|
63
|
+
deviceId?: string;
|
|
64
|
+
jwtToken?: string;
|
|
65
|
+
origins?: string[];
|
|
67
66
|
merchantId: string;
|
|
68
|
-
env?: import(
|
|
69
|
-
loaderBackground?: string
|
|
70
|
-
handleHeightChange?: (
|
|
71
|
-
theme?: import(
|
|
67
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
68
|
+
loaderBackground?: string;
|
|
69
|
+
handleHeightChange?: (height: string) => void;
|
|
70
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
72
71
|
} | {
|
|
73
72
|
walletPubkey: string | null | undefined;
|
|
74
73
|
route: string;
|
|
75
74
|
transaction: string | undefined;
|
|
76
75
|
blockchain: "polygon";
|
|
77
|
-
token?: string
|
|
78
|
-
wallet: import(
|
|
79
|
-
amount?:
|
|
80
|
-
onSuccess?: import(
|
|
81
|
-
webhookInfo?: object
|
|
82
|
-
email?: string
|
|
83
|
-
chargebackProtectionData?: import(
|
|
84
|
-
planCode?: string
|
|
85
|
-
disableApplePay?: boolean
|
|
86
|
-
disableGooglePay?: boolean
|
|
87
|
-
customerInfo?: import(
|
|
88
|
-
settlementType?: import(
|
|
89
|
-
authOnly?: boolean
|
|
90
|
-
deviceId?: string
|
|
91
|
-
jwtToken?: string
|
|
92
|
-
origins?: string[]
|
|
76
|
+
token?: string;
|
|
77
|
+
wallet: import('../lib/common').EthWallet;
|
|
78
|
+
amount?: number | string;
|
|
79
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
80
|
+
webhookInfo?: object;
|
|
81
|
+
email?: string;
|
|
82
|
+
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
83
|
+
planCode?: string;
|
|
84
|
+
disableApplePay?: boolean;
|
|
85
|
+
disableGooglePay?: boolean;
|
|
86
|
+
customerInfo?: import('../lib/common').CustomerInfo;
|
|
87
|
+
settlementType?: import('../lib/common').SettlementType;
|
|
88
|
+
authOnly?: boolean;
|
|
89
|
+
deviceId?: string;
|
|
90
|
+
jwtToken?: string;
|
|
91
|
+
origins?: string[];
|
|
93
92
|
merchantId: string;
|
|
94
|
-
env?: import(
|
|
95
|
-
loaderBackground?: string
|
|
96
|
-
handleHeightChange?: (
|
|
97
|
-
theme?: import(
|
|
93
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
94
|
+
loaderBackground?: string;
|
|
95
|
+
handleHeightChange?: (height: string) => void;
|
|
96
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
98
97
|
} | {
|
|
99
98
|
walletPubkey: string | null | undefined;
|
|
100
99
|
route: string;
|
|
101
100
|
transaction: string | undefined;
|
|
102
101
|
blockchain: "eth";
|
|
103
|
-
token?: string
|
|
104
|
-
wallet: import(
|
|
105
|
-
amount?:
|
|
106
|
-
onSuccess?: import(
|
|
107
|
-
webhookInfo?: object
|
|
108
|
-
email?: string
|
|
109
|
-
chargebackProtectionData?: import(
|
|
110
|
-
planCode?: string
|
|
111
|
-
disableApplePay?: boolean
|
|
112
|
-
disableGooglePay?: boolean
|
|
113
|
-
customerInfo?: import(
|
|
114
|
-
settlementType?: import(
|
|
115
|
-
authOnly?: boolean
|
|
116
|
-
deviceId?: string
|
|
117
|
-
jwtToken?: string
|
|
118
|
-
origins?: string[]
|
|
102
|
+
token?: string;
|
|
103
|
+
wallet: import('../lib/common').EthWallet;
|
|
104
|
+
amount?: number | string;
|
|
105
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
106
|
+
webhookInfo?: object;
|
|
107
|
+
email?: string;
|
|
108
|
+
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
109
|
+
planCode?: string;
|
|
110
|
+
disableApplePay?: boolean;
|
|
111
|
+
disableGooglePay?: boolean;
|
|
112
|
+
customerInfo?: import('../lib/common').CustomerInfo;
|
|
113
|
+
settlementType?: import('../lib/common').SettlementType;
|
|
114
|
+
authOnly?: boolean;
|
|
115
|
+
deviceId?: string;
|
|
116
|
+
jwtToken?: string;
|
|
117
|
+
origins?: string[];
|
|
119
118
|
merchantId: string;
|
|
120
|
-
env?: import(
|
|
121
|
-
loaderBackground?: string
|
|
122
|
-
handleHeightChange?: (
|
|
123
|
-
theme?: import(
|
|
119
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
120
|
+
loaderBackground?: string;
|
|
121
|
+
handleHeightChange?: (height: string) => void;
|
|
122
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
124
123
|
} | {
|
|
125
124
|
walletPubkey: string | null | undefined;
|
|
126
125
|
route: string;
|
|
127
126
|
transaction: string | undefined;
|
|
128
127
|
blockchain: "base";
|
|
129
|
-
token?: string
|
|
130
|
-
wallet: import(
|
|
131
|
-
amount?:
|
|
132
|
-
onSuccess?: import(
|
|
133
|
-
webhookInfo?: object
|
|
134
|
-
email?: string
|
|
135
|
-
chargebackProtectionData?: import(
|
|
136
|
-
planCode?: string
|
|
137
|
-
disableApplePay?: boolean
|
|
138
|
-
disableGooglePay?: boolean
|
|
139
|
-
customerInfo?: import(
|
|
140
|
-
settlementType?: import(
|
|
141
|
-
authOnly?: boolean
|
|
142
|
-
deviceId?: string
|
|
143
|
-
jwtToken?: string
|
|
144
|
-
origins?: string[]
|
|
128
|
+
token?: string;
|
|
129
|
+
wallet: import('../lib/common').EthWallet;
|
|
130
|
+
amount?: number | string;
|
|
131
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
132
|
+
webhookInfo?: object;
|
|
133
|
+
email?: string;
|
|
134
|
+
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
135
|
+
planCode?: string;
|
|
136
|
+
disableApplePay?: boolean;
|
|
137
|
+
disableGooglePay?: boolean;
|
|
138
|
+
customerInfo?: import('../lib/common').CustomerInfo;
|
|
139
|
+
settlementType?: import('../lib/common').SettlementType;
|
|
140
|
+
authOnly?: boolean;
|
|
141
|
+
deviceId?: string;
|
|
142
|
+
jwtToken?: string;
|
|
143
|
+
origins?: string[];
|
|
145
144
|
merchantId: string;
|
|
146
|
-
env?: import(
|
|
147
|
-
loaderBackground?: string
|
|
148
|
-
handleHeightChange?: (
|
|
149
|
-
theme?: import(
|
|
145
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
146
|
+
loaderBackground?: string;
|
|
147
|
+
handleHeightChange?: (height: string) => void;
|
|
148
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
150
149
|
};
|
|
151
150
|
messageHandlers(): {
|
|
152
151
|
handleHeightChange: ((height: string) => void) | undefined;
|
|
153
|
-
onSuccess: import(
|
|
152
|
+
onSuccess: import('../lib/common').OnSuccessMethod | undefined;
|
|
154
153
|
handleSendTransaction: (transaction: string) => Promise<string>;
|
|
155
154
|
handleSignMessage?: ((message: string) => Promise<string>) | undefined;
|
|
156
155
|
handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
|
|
157
156
|
};
|
|
158
|
-
}, {}, import(
|
|
157
|
+
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
159
158
|
args: {
|
|
160
159
|
type: PropType<CoinflowPurchaseProps>;
|
|
161
160
|
required: true;
|
|
162
161
|
};
|
|
163
162
|
}>>, {}, {}>;
|
|
164
|
-
export default
|
|
163
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropType } from
|
|
2
|
-
import { CoinflowEnvs } from
|
|
3
|
-
declare const
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CoinflowEnvs } from '../lib/common';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
4
|
args: {
|
|
5
5
|
type: PropType<{
|
|
6
6
|
env: CoinflowEnvs;
|
|
@@ -8,11 +8,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
8
8
|
}>;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
|
-
}, {
|
|
12
|
-
partnerId: import("vue").Ref<string | undefined>;
|
|
13
|
-
applicationId: () => "9JBW2RHC7JNJN8ZQ" | "SANDBOX_CTCE4XK53ZW0R7V1";
|
|
14
|
-
sdkUrl: () => "https://sdk.nsureapi.com/sdk.js" | "https://sdk.nsureapi.com/sdk-sandbox.js";
|
|
15
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
12
|
args: {
|
|
17
13
|
type: PropType<{
|
|
18
14
|
env: CoinflowEnvs;
|
|
@@ -21,4 +17,4 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
21
17
|
required: true;
|
|
22
18
|
};
|
|
23
19
|
}>>, {}, {}>;
|
|
24
|
-
export default
|
|
20
|
+
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CoinflowWithdrawProps } from '../lib/common';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
4
|
args: {
|
|
6
5
|
type: PropType<CoinflowWithdrawProps>;
|
|
7
6
|
required: true;
|
|
@@ -11,138 +10,138 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
11
10
|
walletPubkey: string | null | undefined;
|
|
12
11
|
route: string;
|
|
13
12
|
transaction: undefined;
|
|
14
|
-
wallet: import(
|
|
15
|
-
connection: import(
|
|
13
|
+
wallet: import('../lib/common').SolanaWallet;
|
|
14
|
+
connection: import('@solana/web3.js').Connection;
|
|
16
15
|
blockchain: "solana";
|
|
17
|
-
onSuccess?: import(
|
|
18
|
-
tokens?: string[]
|
|
19
|
-
lockDefaultToken?: boolean
|
|
20
|
-
amount?: number
|
|
21
|
-
email?: string
|
|
22
|
-
bankAccountLinkRedirect?: string
|
|
16
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
17
|
+
tokens?: string[];
|
|
18
|
+
lockDefaultToken?: boolean;
|
|
19
|
+
amount?: number;
|
|
20
|
+
email?: string;
|
|
21
|
+
bankAccountLinkRedirect?: string;
|
|
23
22
|
additionalWallets?: {
|
|
24
23
|
wallet: string;
|
|
25
|
-
blockchain: "solana" | "
|
|
26
|
-
}[]
|
|
27
|
-
lockAmount?: boolean
|
|
28
|
-
transactionSigner?: string
|
|
29
|
-
origins?: string[]
|
|
24
|
+
blockchain: "solana" | "eth" | "near" | "polygon";
|
|
25
|
+
}[];
|
|
26
|
+
lockAmount?: boolean;
|
|
27
|
+
transactionSigner?: string;
|
|
28
|
+
origins?: string[];
|
|
30
29
|
merchantId: string;
|
|
31
|
-
env?: import(
|
|
32
|
-
loaderBackground?: string
|
|
33
|
-
handleHeightChange?: (
|
|
34
|
-
theme?: import(
|
|
30
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
31
|
+
loaderBackground?: string;
|
|
32
|
+
handleHeightChange?: (height: string) => void;
|
|
33
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
35
34
|
} | {
|
|
36
35
|
walletPubkey: string | null | undefined;
|
|
37
36
|
route: string;
|
|
38
37
|
transaction: undefined;
|
|
39
|
-
wallet: import(
|
|
38
|
+
wallet: import('../lib/common').NearWallet;
|
|
40
39
|
blockchain: "near";
|
|
41
|
-
onSuccess?: import(
|
|
42
|
-
tokens?: string[]
|
|
43
|
-
lockDefaultToken?: boolean
|
|
44
|
-
amount?: number
|
|
45
|
-
email?: string
|
|
46
|
-
bankAccountLinkRedirect?: string
|
|
40
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
41
|
+
tokens?: string[];
|
|
42
|
+
lockDefaultToken?: boolean;
|
|
43
|
+
amount?: number;
|
|
44
|
+
email?: string;
|
|
45
|
+
bankAccountLinkRedirect?: string;
|
|
47
46
|
additionalWallets?: {
|
|
48
47
|
wallet: string;
|
|
49
|
-
blockchain: "solana" | "
|
|
50
|
-
}[]
|
|
51
|
-
lockAmount?: boolean
|
|
52
|
-
transactionSigner?: string
|
|
53
|
-
origins?: string[]
|
|
48
|
+
blockchain: "solana" | "eth" | "near" | "polygon";
|
|
49
|
+
}[];
|
|
50
|
+
lockAmount?: boolean;
|
|
51
|
+
transactionSigner?: string;
|
|
52
|
+
origins?: string[];
|
|
54
53
|
merchantId: string;
|
|
55
|
-
env?: import(
|
|
56
|
-
loaderBackground?: string
|
|
57
|
-
handleHeightChange?: (
|
|
58
|
-
theme?: import(
|
|
54
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
55
|
+
loaderBackground?: string;
|
|
56
|
+
handleHeightChange?: (height: string) => void;
|
|
57
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
59
58
|
} | {
|
|
60
59
|
walletPubkey: string | null | undefined;
|
|
61
60
|
route: string;
|
|
62
61
|
transaction: undefined;
|
|
63
62
|
blockchain: "eth";
|
|
64
|
-
usePermit?: boolean
|
|
65
|
-
wallet: import(
|
|
66
|
-
onSuccess?: import(
|
|
67
|
-
tokens?: string[]
|
|
68
|
-
lockDefaultToken?: boolean
|
|
69
|
-
amount?: number
|
|
70
|
-
email?: string
|
|
71
|
-
bankAccountLinkRedirect?: string
|
|
63
|
+
usePermit?: boolean;
|
|
64
|
+
wallet: import('../lib/common').EthWallet;
|
|
65
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
66
|
+
tokens?: string[];
|
|
67
|
+
lockDefaultToken?: boolean;
|
|
68
|
+
amount?: number;
|
|
69
|
+
email?: string;
|
|
70
|
+
bankAccountLinkRedirect?: string;
|
|
72
71
|
additionalWallets?: {
|
|
73
72
|
wallet: string;
|
|
74
|
-
blockchain: "solana" | "
|
|
75
|
-
}[]
|
|
76
|
-
lockAmount?: boolean
|
|
77
|
-
transactionSigner?: string
|
|
78
|
-
origins?: string[]
|
|
73
|
+
blockchain: "solana" | "eth" | "near" | "polygon";
|
|
74
|
+
}[];
|
|
75
|
+
lockAmount?: boolean;
|
|
76
|
+
transactionSigner?: string;
|
|
77
|
+
origins?: string[];
|
|
79
78
|
merchantId: string;
|
|
80
|
-
env?: import(
|
|
81
|
-
loaderBackground?: string
|
|
82
|
-
handleHeightChange?: (
|
|
83
|
-
theme?: import(
|
|
79
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
80
|
+
loaderBackground?: string;
|
|
81
|
+
handleHeightChange?: (height: string) => void;
|
|
82
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
84
83
|
} | {
|
|
85
84
|
walletPubkey: string | null | undefined;
|
|
86
85
|
route: string;
|
|
87
86
|
transaction: undefined;
|
|
88
87
|
blockchain: "polygon";
|
|
89
|
-
wallet: import(
|
|
90
|
-
usePermit?: boolean
|
|
91
|
-
onSuccess?: import(
|
|
92
|
-
tokens?: string[]
|
|
93
|
-
lockDefaultToken?: boolean
|
|
94
|
-
amount?: number
|
|
95
|
-
email?: string
|
|
96
|
-
bankAccountLinkRedirect?: string
|
|
88
|
+
wallet: import('../lib/common').EthWallet;
|
|
89
|
+
usePermit?: boolean;
|
|
90
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
91
|
+
tokens?: string[];
|
|
92
|
+
lockDefaultToken?: boolean;
|
|
93
|
+
amount?: number;
|
|
94
|
+
email?: string;
|
|
95
|
+
bankAccountLinkRedirect?: string;
|
|
97
96
|
additionalWallets?: {
|
|
98
97
|
wallet: string;
|
|
99
|
-
blockchain: "solana" | "
|
|
100
|
-
}[]
|
|
101
|
-
lockAmount?: boolean
|
|
102
|
-
transactionSigner?: string
|
|
103
|
-
origins?: string[]
|
|
98
|
+
blockchain: "solana" | "eth" | "near" | "polygon";
|
|
99
|
+
}[];
|
|
100
|
+
lockAmount?: boolean;
|
|
101
|
+
transactionSigner?: string;
|
|
102
|
+
origins?: string[];
|
|
104
103
|
merchantId: string;
|
|
105
|
-
env?: import(
|
|
106
|
-
loaderBackground?: string
|
|
107
|
-
handleHeightChange?: (
|
|
108
|
-
theme?: import(
|
|
104
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
105
|
+
loaderBackground?: string;
|
|
106
|
+
handleHeightChange?: (height: string) => void;
|
|
107
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
109
108
|
} | {
|
|
110
109
|
walletPubkey: string | null | undefined;
|
|
111
110
|
route: string;
|
|
112
111
|
transaction: undefined;
|
|
113
112
|
blockchain: "base";
|
|
114
|
-
wallet: import(
|
|
115
|
-
usePermit?: boolean
|
|
116
|
-
onSuccess?: import(
|
|
117
|
-
tokens?: string[]
|
|
118
|
-
lockDefaultToken?: boolean
|
|
119
|
-
amount?: number
|
|
120
|
-
email?: string
|
|
121
|
-
bankAccountLinkRedirect?: string
|
|
113
|
+
wallet: import('../lib/common').EthWallet;
|
|
114
|
+
usePermit?: boolean;
|
|
115
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
116
|
+
tokens?: string[];
|
|
117
|
+
lockDefaultToken?: boolean;
|
|
118
|
+
amount?: number;
|
|
119
|
+
email?: string;
|
|
120
|
+
bankAccountLinkRedirect?: string;
|
|
122
121
|
additionalWallets?: {
|
|
123
122
|
wallet: string;
|
|
124
|
-
blockchain: "solana" | "
|
|
125
|
-
}[]
|
|
126
|
-
lockAmount?: boolean
|
|
127
|
-
transactionSigner?: string
|
|
128
|
-
origins?: string[]
|
|
123
|
+
blockchain: "solana" | "eth" | "near" | "polygon";
|
|
124
|
+
}[];
|
|
125
|
+
lockAmount?: boolean;
|
|
126
|
+
transactionSigner?: string;
|
|
127
|
+
origins?: string[];
|
|
129
128
|
merchantId: string;
|
|
130
|
-
env?: import(
|
|
131
|
-
loaderBackground?: string
|
|
132
|
-
handleHeightChange?: (
|
|
133
|
-
theme?: import(
|
|
129
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
130
|
+
loaderBackground?: string;
|
|
131
|
+
handleHeightChange?: (height: string) => void;
|
|
132
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
134
133
|
};
|
|
135
134
|
messageHandlers(): {
|
|
136
135
|
handleHeightChange: ((height: string) => void) | undefined;
|
|
137
|
-
onSuccess: import(
|
|
136
|
+
onSuccess: import('../lib/common').OnSuccessMethod | undefined;
|
|
138
137
|
handleSendTransaction: (transaction: string) => Promise<string>;
|
|
139
138
|
handleSignMessage?: ((message: string) => Promise<string>) | undefined;
|
|
140
139
|
handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
|
|
141
140
|
};
|
|
142
|
-
}, {}, import(
|
|
141
|
+
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
143
142
|
args: {
|
|
144
143
|
type: PropType<CoinflowWithdrawProps>;
|
|
145
144
|
required: true;
|
|
146
145
|
};
|
|
147
146
|
}>>, {}, {}>;
|
|
148
|
-
export default
|
|
147
|
+
export default _default;
|
|
@@ -1,46 +1,17 @@
|
|
|
1
|
-
import { CoinflowCardNumberInputProps, CoinflowCardTokenResponse } from
|
|
2
|
-
import { PropType } from
|
|
3
|
-
declare
|
|
1
|
+
import { CoinflowCardNumberInputProps, CoinflowCardTokenResponse } from '../../lib/common';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
declare function getToken(): Promise<CoinflowCardTokenResponse>;
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
5
|
args: {
|
|
5
6
|
type: PropType<CoinflowCardNumberInputProps>;
|
|
6
7
|
required: true;
|
|
7
8
|
};
|
|
8
9
|
}, {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
debug?: boolean | undefined;
|
|
12
|
-
fontFamily?: string | undefined;
|
|
13
|
-
origins: string[] | undefined;
|
|
14
|
-
tokenExScriptLoaded: boolean;
|
|
15
|
-
env: import("../../lib/common").CoinflowEnvs;
|
|
16
|
-
setCachedToken: (s: string | undefined) => void;
|
|
17
|
-
setLoaded: (b: boolean) => void;
|
|
18
|
-
}, "env" | "setCachedToken" | "setLoaded" | "tokenExScriptLoaded">) => Promise<import("../../lib/common").TokenExIframe | undefined>;
|
|
19
|
-
tokenExIframe: import("vue").Ref<{
|
|
20
|
-
tokenize: () => Promise<import("../../lib/common").TokenizationResponse>;
|
|
21
|
-
load: () => void;
|
|
22
|
-
on: (event: string, callback: (data?: any) => void) => void;
|
|
23
|
-
validate: () => void;
|
|
24
|
-
reset: () => void;
|
|
25
|
-
blur: () => void;
|
|
26
|
-
cvvBlur: () => void;
|
|
27
|
-
focus: () => void;
|
|
28
|
-
cvvFocus: () => void;
|
|
29
|
-
remove: () => void;
|
|
30
|
-
toggleMask: () => void;
|
|
31
|
-
toggleCvvMask: () => void;
|
|
32
|
-
setPAN: (pan: string) => void;
|
|
33
|
-
binLookup: () => void;
|
|
34
|
-
validateConfig: () => void;
|
|
35
|
-
setFraudServicesRequestDetails: (data: string) => void;
|
|
36
|
-
} | undefined>;
|
|
37
|
-
getToken: () => Promise<CoinflowCardTokenResponse>;
|
|
38
|
-
css: () => string;
|
|
39
|
-
readonly TokenExCardNumberIframeId: string;
|
|
40
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
getToken: typeof getToken;
|
|
11
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
41
12
|
args: {
|
|
42
13
|
type: PropType<CoinflowCardNumberInputProps>;
|
|
43
14
|
required: true;
|
|
44
15
|
};
|
|
45
16
|
}>>, {}, {}>;
|
|
46
|
-
export default
|
|
17
|
+
export default _default;
|