@coinflowlabs/vue 0.2.4 → 0.2.6
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 +10 -2
- package/dist/App.vue.d.ts +2 -0
- package/dist/coinflow-vue.js +7495 -6971
- package/dist/coinflow-vue.umd.cjs +12 -12
- package/dist/components/CoinflowIframe.vue.d.ts +6 -6
- package/dist/components/CoinflowPurchase.vue.d.ts +117 -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/CoinflowCvvInput.vue.d.ts +2 -4
- package/dist/components/card-form/CoinflowCvvOnlyInput.vue.d.ts +17 -0
- 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 +11 -11
- package/dist/lib/common/CoinflowTypes.d.ts +13 -3
- package/dist/lib/common/CoinflowUtils.d.ts +7 -2
- 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 -47
|
@@ -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
|
-
load: () => void;
|
|
12
|
-
on: (event: string, callback: (data?: any) => void) => void;
|
|
13
|
-
validate: () => void;
|
|
14
|
-
reset: () => void;
|
|
15
|
-
blur: () => void;
|
|
16
|
-
cvvBlur: () => void;
|
|
17
|
-
focus: () => void;
|
|
18
|
-
cvvFocus: () => void;
|
|
19
|
-
remove: () => void;
|
|
20
|
-
toggleMask: () => void;
|
|
21
|
-
toggleCvvMask: () => void;
|
|
22
|
-
setPAN: (pan: string) => void;
|
|
23
|
-
binLookup: () => void;
|
|
24
|
-
validateConfig: () => void;
|
|
25
|
-
setFraudServicesRequestDetails: (data: string) => void;
|
|
26
|
-
} | undefined>;
|
|
27
|
-
initializeTokenExCardOnlyIframe: ({ css, fontFamily, debug, origins, }: Omit<{
|
|
28
|
-
css: string;
|
|
29
|
-
debug?: boolean | undefined;
|
|
30
|
-
fontFamily?: string | undefined;
|
|
31
|
-
origins: string[] | undefined;
|
|
32
|
-
tokenExScriptLoaded: boolean;
|
|
33
|
-
env: import("../../lib/common").CoinflowEnvs;
|
|
34
|
-
setCachedToken: (s: string | undefined) => void;
|
|
35
|
-
setLoaded: (b: boolean) => void;
|
|
36
|
-
}, "env" | "setCachedToken" | "setLoaded" | "tokenExScriptLoaded">) => Promise<import("../../lib/common").TokenExIframe | 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;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
3
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
-
export default _sfc_main;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CoinflowCardTokenResponse, CoinflowCvvOnlyInputProps } from '../../lib/common';
|
|
3
|
+
declare function getToken(): Promise<CoinflowCardTokenResponse>;
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
|
+
args: {
|
|
6
|
+
type: PropType<CoinflowCvvOnlyInputProps>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
}, {
|
|
10
|
+
getToken: typeof getToken;
|
|
11
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
+
args: {
|
|
13
|
+
type: PropType<CoinflowCvvOnlyInputProps>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
}>>, {}, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, setTokenExScriptTag, TokenExIframe } from
|
|
2
|
-
import { CoinflowEnvs } from "../../lib/common";
|
|
1
|
+
import { doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, setTokenExScriptTag, TokenExIframe, CoinflowEnvs } from '../../lib/common';
|
|
3
2
|
declare const useCardFormIframe: (env: CoinflowEnvs) => {
|
|
4
|
-
tokenExIframe: import(
|
|
5
|
-
tokenize: () => Promise<import(
|
|
3
|
+
tokenExIframe: import('vue').Ref<{
|
|
4
|
+
tokenize: () => Promise<import('../../lib/common').TokenizationResponse>;
|
|
6
5
|
load: () => void;
|
|
7
6
|
on: (event: string, callback: (data?: any) => void) => void;
|
|
8
7
|
validate: () => void;
|
|
@@ -19,12 +18,12 @@ declare const useCardFormIframe: (env: CoinflowEnvs) => {
|
|
|
19
18
|
validateConfig: () => void;
|
|
20
19
|
setFraudServicesRequestDetails: (data: string) => void;
|
|
21
20
|
} | undefined>;
|
|
22
|
-
initializeTokenExIframe: (
|
|
23
|
-
initializeCvvOnlyTokenExIframe: (
|
|
24
|
-
initializeTokenExCardOnlyIframe: (
|
|
25
|
-
loaded: import(
|
|
26
|
-
cachedToken: import(
|
|
21
|
+
initializeTokenExIframe: (args: Omit<Parameters<typeof doInitializeTokenExIframe>[0], "env" | "tokenExScriptLoaded" | "setCachedToken" | "setLoaded">) => Promise<TokenExIframe | undefined>;
|
|
22
|
+
initializeCvvOnlyTokenExIframe: (args: Omit<Parameters<typeof doInitializeCvvOnlyTokenExIframe>[0], "env" | "tokenExScriptLoaded" | "setCachedToken" | "setLoaded">) => Promise<TokenExIframe | undefined>;
|
|
23
|
+
initializeTokenExCardOnlyIframe: (args: Omit<Parameters<typeof doInitializeTokenExCardOnlyIframe>[0], "env" | "tokenExScriptLoaded" | "setCachedToken" | "setLoaded">) => Promise<TokenExIframe | undefined>;
|
|
24
|
+
loaded: import('vue').Ref<boolean>;
|
|
25
|
+
cachedToken: import('vue').Ref<string | undefined>;
|
|
27
26
|
setTokenExScriptTag: typeof setTokenExScriptTag;
|
|
28
|
-
tokenExScriptLoaded: import(
|
|
27
|
+
tokenExScriptLoaded: import('vue').Ref<boolean>;
|
|
29
28
|
};
|
|
30
29
|
export default useCardFormIframe;
|
|
@@ -1,237 +1,18 @@
|
|
|
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
|
-
color:
|
|
6
|
+
color: "white" | "black";
|
|
8
7
|
}>;
|
|
9
8
|
required: true;
|
|
10
9
|
};
|
|
11
|
-
}, {
|
|
12
|
-
MobileWalletButton: import("vue").DefineComponent<{
|
|
13
|
-
args: {
|
|
14
|
-
type: PropType<CoinflowPurchaseProps & {
|
|
15
|
-
color: "white" | "black";
|
|
16
|
-
}>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
route: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
}, {
|
|
24
|
-
onSuccess: import("../../lib/common").OnSuccessMethod | undefined;
|
|
25
|
-
iframeProps: () => {
|
|
26
|
-
walletPubkey: string | null | undefined;
|
|
27
|
-
transaction: undefined;
|
|
28
|
-
routePrefix: string;
|
|
29
|
-
route: string;
|
|
30
|
-
wallet: import("../../lib/common").SolanaWallet;
|
|
31
|
-
partialSigners?: import("@solana/web3.js").Signer[] | undefined;
|
|
32
|
-
debugTx?: boolean | undefined;
|
|
33
|
-
connection: import("@solana/web3.js").Connection;
|
|
34
|
-
blockchain: "solana";
|
|
35
|
-
token?: string | import("@solana/web3.js").PublicKey | undefined;
|
|
36
|
-
rent?: {
|
|
37
|
-
lamports: string | number;
|
|
38
|
-
} | undefined;
|
|
39
|
-
nativeSolToConvert?: {
|
|
40
|
-
lamports: string | number;
|
|
41
|
-
} | undefined;
|
|
42
|
-
amount?: string | number | undefined;
|
|
43
|
-
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
44
|
-
webhookInfo?: object | undefined;
|
|
45
|
-
email?: string | undefined;
|
|
46
|
-
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
47
|
-
planCode?: string | undefined;
|
|
48
|
-
disableApplePay?: boolean | undefined;
|
|
49
|
-
disableGooglePay?: boolean | undefined;
|
|
50
|
-
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
51
|
-
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
52
|
-
authOnly?: boolean | undefined;
|
|
53
|
-
deviceId?: string | undefined;
|
|
54
|
-
jwtToken?: string | undefined;
|
|
55
|
-
origins?: string[] | undefined;
|
|
56
|
-
merchantId: string;
|
|
57
|
-
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
58
|
-
loaderBackground?: string | undefined;
|
|
59
|
-
handleHeightChange?: ((height: string) => void) | undefined;
|
|
60
|
-
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
61
|
-
color: "white" | "black";
|
|
62
|
-
} | {
|
|
63
|
-
walletPubkey: string | null | undefined;
|
|
64
|
-
transaction: undefined;
|
|
65
|
-
routePrefix: string;
|
|
66
|
-
route: string;
|
|
67
|
-
wallet: import("../../lib/common").NearWallet;
|
|
68
|
-
blockchain: "near";
|
|
69
|
-
action?: import("../../lib/common").NearFtTransferCallAction | undefined;
|
|
70
|
-
nearDeposit?: string | undefined;
|
|
71
|
-
amount?: string | number | undefined;
|
|
72
|
-
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
73
|
-
webhookInfo?: object | undefined;
|
|
74
|
-
email?: string | undefined;
|
|
75
|
-
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
76
|
-
planCode?: string | undefined;
|
|
77
|
-
disableApplePay?: boolean | undefined;
|
|
78
|
-
disableGooglePay?: boolean | undefined;
|
|
79
|
-
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
80
|
-
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
81
|
-
authOnly?: boolean | undefined;
|
|
82
|
-
deviceId?: string | undefined;
|
|
83
|
-
jwtToken?: string | undefined;
|
|
84
|
-
origins?: string[] | undefined;
|
|
85
|
-
merchantId: string;
|
|
86
|
-
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
87
|
-
loaderBackground?: string | undefined;
|
|
88
|
-
handleHeightChange?: ((height: string) => void) | undefined;
|
|
89
|
-
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
90
|
-
color: "white" | "black";
|
|
91
|
-
} | {
|
|
92
|
-
walletPubkey: string | null | undefined;
|
|
93
|
-
transaction: undefined;
|
|
94
|
-
routePrefix: string;
|
|
95
|
-
route: string;
|
|
96
|
-
blockchain: "polygon";
|
|
97
|
-
token?: string | undefined;
|
|
98
|
-
wallet: import("../../lib/common").EthWallet;
|
|
99
|
-
amount?: string | number | undefined;
|
|
100
|
-
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
101
|
-
webhookInfo?: object | undefined;
|
|
102
|
-
email?: string | undefined;
|
|
103
|
-
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
104
|
-
planCode?: string | undefined;
|
|
105
|
-
disableApplePay?: boolean | undefined;
|
|
106
|
-
disableGooglePay?: boolean | undefined;
|
|
107
|
-
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
108
|
-
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
109
|
-
authOnly?: boolean | undefined;
|
|
110
|
-
deviceId?: string | undefined;
|
|
111
|
-
jwtToken?: string | undefined;
|
|
112
|
-
origins?: string[] | undefined;
|
|
113
|
-
merchantId: string;
|
|
114
|
-
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
115
|
-
loaderBackground?: string | undefined;
|
|
116
|
-
handleHeightChange?: ((height: string) => void) | undefined;
|
|
117
|
-
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
118
|
-
color: "white" | "black";
|
|
119
|
-
} | {
|
|
120
|
-
walletPubkey: string | null | undefined;
|
|
121
|
-
transaction: undefined;
|
|
122
|
-
routePrefix: string;
|
|
123
|
-
route: string;
|
|
124
|
-
blockchain: "eth";
|
|
125
|
-
token?: string | undefined;
|
|
126
|
-
wallet: import("../../lib/common").EthWallet;
|
|
127
|
-
amount?: string | number | undefined;
|
|
128
|
-
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
129
|
-
webhookInfo?: object | undefined;
|
|
130
|
-
email?: string | undefined;
|
|
131
|
-
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
132
|
-
planCode?: string | undefined;
|
|
133
|
-
disableApplePay?: boolean | undefined;
|
|
134
|
-
disableGooglePay?: boolean | undefined;
|
|
135
|
-
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
136
|
-
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
137
|
-
authOnly?: boolean | undefined;
|
|
138
|
-
deviceId?: string | undefined;
|
|
139
|
-
jwtToken?: string | undefined;
|
|
140
|
-
origins?: string[] | undefined;
|
|
141
|
-
merchantId: string;
|
|
142
|
-
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
143
|
-
loaderBackground?: string | undefined;
|
|
144
|
-
handleHeightChange?: ((height: string) => void) | undefined;
|
|
145
|
-
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
146
|
-
color: "white" | "black";
|
|
147
|
-
} | {
|
|
148
|
-
walletPubkey: string | null | undefined;
|
|
149
|
-
transaction: undefined;
|
|
150
|
-
routePrefix: string;
|
|
151
|
-
route: string;
|
|
152
|
-
blockchain: "base";
|
|
153
|
-
token?: string | undefined;
|
|
154
|
-
wallet: import("../../lib/common").EthWallet;
|
|
155
|
-
amount?: string | number | undefined;
|
|
156
|
-
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
157
|
-
webhookInfo?: object | undefined;
|
|
158
|
-
email?: string | undefined;
|
|
159
|
-
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
160
|
-
planCode?: string | undefined;
|
|
161
|
-
disableApplePay?: boolean | undefined;
|
|
162
|
-
disableGooglePay?: boolean | undefined;
|
|
163
|
-
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
164
|
-
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
165
|
-
authOnly?: boolean | undefined;
|
|
166
|
-
deviceId?: string | undefined;
|
|
167
|
-
jwtToken?: string | undefined;
|
|
168
|
-
origins?: string[] | undefined;
|
|
169
|
-
merchantId: string;
|
|
170
|
-
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
171
|
-
loaderBackground?: string | undefined;
|
|
172
|
-
handleHeightChange?: ((height: string) => void) | undefined;
|
|
173
|
-
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
174
|
-
color: "white" | "black";
|
|
175
|
-
};
|
|
176
|
-
messageHandlers: () => {
|
|
177
|
-
handleHeightChange: ((height: string) => void) | undefined;
|
|
178
|
-
onSuccess: import("../../lib/common").OnSuccessMethod | undefined;
|
|
179
|
-
handleSendTransaction: (transaction: string) => Promise<string>;
|
|
180
|
-
handleSignMessage?: ((message: string) => Promise<string>) | undefined;
|
|
181
|
-
handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
|
|
182
|
-
};
|
|
183
|
-
handleMessage: ({ data }: {
|
|
184
|
-
data: string;
|
|
185
|
-
}) => void;
|
|
186
|
-
CoinflowIFrame: import("vue").DefineComponent<{
|
|
187
|
-
args: {
|
|
188
|
-
type: PropType<import("../../lib/common").CoinflowIFrameProps & import("../../lib/common").IFrameMessageHandlers>;
|
|
189
|
-
required: true;
|
|
190
|
-
};
|
|
191
|
-
}, unknown, unknown, {
|
|
192
|
-
url(): string;
|
|
193
|
-
}, {
|
|
194
|
-
sendMessage(message: string): void;
|
|
195
|
-
handleIframeMessages({ data, origin }: {
|
|
196
|
-
data: string;
|
|
197
|
-
origin: string;
|
|
198
|
-
}): void;
|
|
199
|
-
listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
|
|
200
|
-
sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
|
|
201
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
202
|
-
onMessage({ data, origin }: {
|
|
203
|
-
data: string;
|
|
204
|
-
origin: string;
|
|
205
|
-
}): true;
|
|
206
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
207
|
-
args: {
|
|
208
|
-
type: PropType<import("../../lib/common").CoinflowIFrameProps & import("../../lib/common").IFrameMessageHandlers>;
|
|
209
|
-
required: true;
|
|
210
|
-
};
|
|
211
|
-
}>> & {
|
|
212
|
-
onOnMessage?: ((args_0: {
|
|
213
|
-
data: string;
|
|
214
|
-
origin: string;
|
|
215
|
-
}) => any) | undefined;
|
|
216
|
-
}, {}, {}>;
|
|
217
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
218
|
-
args: {
|
|
219
|
-
type: PropType<CoinflowPurchaseProps & {
|
|
220
|
-
color: "white" | "black";
|
|
221
|
-
}>;
|
|
222
|
-
required: true;
|
|
223
|
-
};
|
|
224
|
-
route: {
|
|
225
|
-
type: StringConstructor;
|
|
226
|
-
required: true;
|
|
227
|
-
};
|
|
228
|
-
}>>, {}, {}>;
|
|
229
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
230
11
|
args: {
|
|
231
12
|
type: PropType<CoinflowPurchaseProps & {
|
|
232
|
-
color:
|
|
13
|
+
color: "white" | "black";
|
|
233
14
|
}>;
|
|
234
15
|
required: true;
|
|
235
16
|
};
|
|
236
17
|
}>>, {}, {}>;
|
|
237
|
-
export default
|
|
18
|
+
export default _default;
|
|
@@ -1,237 +1,18 @@
|
|
|
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
|
-
color:
|
|
6
|
+
color: "white" | "black";
|
|
8
7
|
}>;
|
|
9
8
|
required: true;
|
|
10
9
|
};
|
|
11
|
-
}, {
|
|
12
|
-
MobileWalletButton: import("vue").DefineComponent<{
|
|
13
|
-
args: {
|
|
14
|
-
type: PropType<CoinflowPurchaseProps & {
|
|
15
|
-
color: "white" | "black";
|
|
16
|
-
}>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
route: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
}, {
|
|
24
|
-
onSuccess: import("../../lib/common").OnSuccessMethod | undefined;
|
|
25
|
-
iframeProps: () => {
|
|
26
|
-
walletPubkey: string | null | undefined;
|
|
27
|
-
transaction: undefined;
|
|
28
|
-
routePrefix: string;
|
|
29
|
-
route: string;
|
|
30
|
-
wallet: import("../../lib/common").SolanaWallet;
|
|
31
|
-
partialSigners?: import("@solana/web3.js").Signer[] | undefined;
|
|
32
|
-
debugTx?: boolean | undefined;
|
|
33
|
-
connection: import("@solana/web3.js").Connection;
|
|
34
|
-
blockchain: "solana";
|
|
35
|
-
token?: string | import("@solana/web3.js").PublicKey | undefined;
|
|
36
|
-
rent?: {
|
|
37
|
-
lamports: string | number;
|
|
38
|
-
} | undefined;
|
|
39
|
-
nativeSolToConvert?: {
|
|
40
|
-
lamports: string | number;
|
|
41
|
-
} | undefined;
|
|
42
|
-
amount?: string | number | undefined;
|
|
43
|
-
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
44
|
-
webhookInfo?: object | undefined;
|
|
45
|
-
email?: string | undefined;
|
|
46
|
-
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
47
|
-
planCode?: string | undefined;
|
|
48
|
-
disableApplePay?: boolean | undefined;
|
|
49
|
-
disableGooglePay?: boolean | undefined;
|
|
50
|
-
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
51
|
-
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
52
|
-
authOnly?: boolean | undefined;
|
|
53
|
-
deviceId?: string | undefined;
|
|
54
|
-
jwtToken?: string | undefined;
|
|
55
|
-
origins?: string[] | undefined;
|
|
56
|
-
merchantId: string;
|
|
57
|
-
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
58
|
-
loaderBackground?: string | undefined;
|
|
59
|
-
handleHeightChange?: ((height: string) => void) | undefined;
|
|
60
|
-
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
61
|
-
color: "white" | "black";
|
|
62
|
-
} | {
|
|
63
|
-
walletPubkey: string | null | undefined;
|
|
64
|
-
transaction: undefined;
|
|
65
|
-
routePrefix: string;
|
|
66
|
-
route: string;
|
|
67
|
-
wallet: import("../../lib/common").NearWallet;
|
|
68
|
-
blockchain: "near";
|
|
69
|
-
action?: import("../../lib/common").NearFtTransferCallAction | undefined;
|
|
70
|
-
nearDeposit?: string | undefined;
|
|
71
|
-
amount?: string | number | undefined;
|
|
72
|
-
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
73
|
-
webhookInfo?: object | undefined;
|
|
74
|
-
email?: string | undefined;
|
|
75
|
-
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
76
|
-
planCode?: string | undefined;
|
|
77
|
-
disableApplePay?: boolean | undefined;
|
|
78
|
-
disableGooglePay?: boolean | undefined;
|
|
79
|
-
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
80
|
-
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
81
|
-
authOnly?: boolean | undefined;
|
|
82
|
-
deviceId?: string | undefined;
|
|
83
|
-
jwtToken?: string | undefined;
|
|
84
|
-
origins?: string[] | undefined;
|
|
85
|
-
merchantId: string;
|
|
86
|
-
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
87
|
-
loaderBackground?: string | undefined;
|
|
88
|
-
handleHeightChange?: ((height: string) => void) | undefined;
|
|
89
|
-
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
90
|
-
color: "white" | "black";
|
|
91
|
-
} | {
|
|
92
|
-
walletPubkey: string | null | undefined;
|
|
93
|
-
transaction: undefined;
|
|
94
|
-
routePrefix: string;
|
|
95
|
-
route: string;
|
|
96
|
-
blockchain: "polygon";
|
|
97
|
-
token?: string | undefined;
|
|
98
|
-
wallet: import("../../lib/common").EthWallet;
|
|
99
|
-
amount?: string | number | undefined;
|
|
100
|
-
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
101
|
-
webhookInfo?: object | undefined;
|
|
102
|
-
email?: string | undefined;
|
|
103
|
-
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
104
|
-
planCode?: string | undefined;
|
|
105
|
-
disableApplePay?: boolean | undefined;
|
|
106
|
-
disableGooglePay?: boolean | undefined;
|
|
107
|
-
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
108
|
-
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
109
|
-
authOnly?: boolean | undefined;
|
|
110
|
-
deviceId?: string | undefined;
|
|
111
|
-
jwtToken?: string | undefined;
|
|
112
|
-
origins?: string[] | undefined;
|
|
113
|
-
merchantId: string;
|
|
114
|
-
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
115
|
-
loaderBackground?: string | undefined;
|
|
116
|
-
handleHeightChange?: ((height: string) => void) | undefined;
|
|
117
|
-
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
118
|
-
color: "white" | "black";
|
|
119
|
-
} | {
|
|
120
|
-
walletPubkey: string | null | undefined;
|
|
121
|
-
transaction: undefined;
|
|
122
|
-
routePrefix: string;
|
|
123
|
-
route: string;
|
|
124
|
-
blockchain: "eth";
|
|
125
|
-
token?: string | undefined;
|
|
126
|
-
wallet: import("../../lib/common").EthWallet;
|
|
127
|
-
amount?: string | number | undefined;
|
|
128
|
-
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
129
|
-
webhookInfo?: object | undefined;
|
|
130
|
-
email?: string | undefined;
|
|
131
|
-
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
132
|
-
planCode?: string | undefined;
|
|
133
|
-
disableApplePay?: boolean | undefined;
|
|
134
|
-
disableGooglePay?: boolean | undefined;
|
|
135
|
-
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
136
|
-
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
137
|
-
authOnly?: boolean | undefined;
|
|
138
|
-
deviceId?: string | undefined;
|
|
139
|
-
jwtToken?: string | undefined;
|
|
140
|
-
origins?: string[] | undefined;
|
|
141
|
-
merchantId: string;
|
|
142
|
-
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
143
|
-
loaderBackground?: string | undefined;
|
|
144
|
-
handleHeightChange?: ((height: string) => void) | undefined;
|
|
145
|
-
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
146
|
-
color: "white" | "black";
|
|
147
|
-
} | {
|
|
148
|
-
walletPubkey: string | null | undefined;
|
|
149
|
-
transaction: undefined;
|
|
150
|
-
routePrefix: string;
|
|
151
|
-
route: string;
|
|
152
|
-
blockchain: "base";
|
|
153
|
-
token?: string | undefined;
|
|
154
|
-
wallet: import("../../lib/common").EthWallet;
|
|
155
|
-
amount?: string | number | undefined;
|
|
156
|
-
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
157
|
-
webhookInfo?: object | undefined;
|
|
158
|
-
email?: string | undefined;
|
|
159
|
-
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
160
|
-
planCode?: string | undefined;
|
|
161
|
-
disableApplePay?: boolean | undefined;
|
|
162
|
-
disableGooglePay?: boolean | undefined;
|
|
163
|
-
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
164
|
-
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
165
|
-
authOnly?: boolean | undefined;
|
|
166
|
-
deviceId?: string | undefined;
|
|
167
|
-
jwtToken?: string | undefined;
|
|
168
|
-
origins?: string[] | undefined;
|
|
169
|
-
merchantId: string;
|
|
170
|
-
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
171
|
-
loaderBackground?: string | undefined;
|
|
172
|
-
handleHeightChange?: ((height: string) => void) | undefined;
|
|
173
|
-
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
174
|
-
color: "white" | "black";
|
|
175
|
-
};
|
|
176
|
-
messageHandlers: () => {
|
|
177
|
-
handleHeightChange: ((height: string) => void) | undefined;
|
|
178
|
-
onSuccess: import("../../lib/common").OnSuccessMethod | undefined;
|
|
179
|
-
handleSendTransaction: (transaction: string) => Promise<string>;
|
|
180
|
-
handleSignMessage?: ((message: string) => Promise<string>) | undefined;
|
|
181
|
-
handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
|
|
182
|
-
};
|
|
183
|
-
handleMessage: ({ data }: {
|
|
184
|
-
data: string;
|
|
185
|
-
}) => void;
|
|
186
|
-
CoinflowIFrame: import("vue").DefineComponent<{
|
|
187
|
-
args: {
|
|
188
|
-
type: PropType<import("../../lib/common").CoinflowIFrameProps & import("../../lib/common").IFrameMessageHandlers>;
|
|
189
|
-
required: true;
|
|
190
|
-
};
|
|
191
|
-
}, unknown, unknown, {
|
|
192
|
-
url(): string;
|
|
193
|
-
}, {
|
|
194
|
-
sendMessage(message: string): void;
|
|
195
|
-
handleIframeMessages({ data, origin }: {
|
|
196
|
-
data: string;
|
|
197
|
-
origin: string;
|
|
198
|
-
}): void;
|
|
199
|
-
listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
|
|
200
|
-
sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
|
|
201
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
202
|
-
onMessage({ data, origin }: {
|
|
203
|
-
data: string;
|
|
204
|
-
origin: string;
|
|
205
|
-
}): true;
|
|
206
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
207
|
-
args: {
|
|
208
|
-
type: PropType<import("../../lib/common").CoinflowIFrameProps & import("../../lib/common").IFrameMessageHandlers>;
|
|
209
|
-
required: true;
|
|
210
|
-
};
|
|
211
|
-
}>> & {
|
|
212
|
-
onOnMessage?: ((args_0: {
|
|
213
|
-
data: string;
|
|
214
|
-
origin: string;
|
|
215
|
-
}) => any) | undefined;
|
|
216
|
-
}, {}, {}>;
|
|
217
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
218
|
-
args: {
|
|
219
|
-
type: PropType<CoinflowPurchaseProps & {
|
|
220
|
-
color: "white" | "black";
|
|
221
|
-
}>;
|
|
222
|
-
required: true;
|
|
223
|
-
};
|
|
224
|
-
route: {
|
|
225
|
-
type: StringConstructor;
|
|
226
|
-
required: true;
|
|
227
|
-
};
|
|
228
|
-
}>>, {}, {}>;
|
|
229
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
230
11
|
args: {
|
|
231
12
|
type: PropType<CoinflowPurchaseProps & {
|
|
232
|
-
color:
|
|
13
|
+
color: "white" | "black";
|
|
233
14
|
}>;
|
|
234
15
|
required: true;
|
|
235
16
|
};
|
|
236
17
|
}>>, {}, {}>;
|
|
237
|
-
export default
|
|
18
|
+
export default _default;
|