@coinflowlabs/vue 1.4.2 → 1.4.3
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 +4 -0
- package/dist/coinflow-vue.js +18035 -8530
- package/dist/coinflow-vue.umd.cjs +21 -15
- package/dist/index.d.ts +1 -1
- package/dist/lib/common/CoinflowTypes.d.ts +3 -2
- package/dist/lib/common/types/Subtotal.d.ts +22 -2
- package/dist/testing/CardFormTest.vue.d.ts +4 -4
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ import { default as CoinflowCardNumberOnlyInput } from './components/card-form/C
|
|
|
9
9
|
import { default as CoinflowApplePayButton } from './components/mobile-wallet/CoinflowApplePayButton.vue';
|
|
10
10
|
import { default as CoinflowGooglePayButton } from './components/mobile-wallet/CoinflowGooglePayButton.vue';
|
|
11
11
|
export * from './lib/common';
|
|
12
|
-
export { CoinflowIframe, CoinflowWithdraw, CoinflowCvvInput, CoinflowCardNumberInput, CoinflowPurchase,
|
|
12
|
+
export { CoinflowIframe, CoinflowWithdraw, CoinflowCvvInput, CoinflowCardNumberInput, CoinflowPurchase, CoinflowCvvOnlyInput, CoinflowPurchaseProtection, CoinflowCardNumberOnlyInput, CoinflowApplePayButton, CoinflowGooglePayButton, };
|
|
@@ -16,7 +16,8 @@ export declare enum WithdrawSpeed {
|
|
|
16
16
|
IBAN = "iban",
|
|
17
17
|
PIX = "pix",
|
|
18
18
|
EFT = "eft",
|
|
19
|
-
VENMO = "venmo"
|
|
19
|
+
VENMO = "venmo",
|
|
20
|
+
PAYPAL = "paypal"
|
|
20
21
|
}
|
|
21
22
|
export declare enum SettlementType {
|
|
22
23
|
Credits = "Credits",
|
|
@@ -215,7 +216,7 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
215
216
|
* The DeviceID gotten from the Coinflow SDK:
|
|
216
217
|
* https://docs.coinflow.cash/docs/implement-chargeback-protection#how-to-add-chargeback-protection
|
|
217
218
|
*
|
|
218
|
-
*
|
|
219
|
+
* nSureSDK.getDeviceId()
|
|
219
220
|
*/
|
|
220
221
|
deviceId?: string;
|
|
221
222
|
jwtToken?: string;
|
|
@@ -3,6 +3,7 @@ export declare enum Currency {
|
|
|
3
3
|
AED = "AED",
|
|
4
4
|
AFN = "AFN",
|
|
5
5
|
ALL = "ALL",
|
|
6
|
+
AMD = "AMD",
|
|
6
7
|
ANG = "ANG",
|
|
7
8
|
AOA = "AOA",
|
|
8
9
|
ARS = "ARS",
|
|
@@ -136,6 +137,7 @@ export declare enum Currency {
|
|
|
136
137
|
UZS = "UZS",
|
|
137
138
|
VND = "VND",
|
|
138
139
|
VUV = "VUV",
|
|
140
|
+
WST = "WST",
|
|
139
141
|
XAF = "XAF",
|
|
140
142
|
XCD = "XCD",
|
|
141
143
|
XOF = "XOF",
|
|
@@ -143,7 +145,16 @@ export declare enum Currency {
|
|
|
143
145
|
YER = "YER",
|
|
144
146
|
ZAR = "ZAR",
|
|
145
147
|
ZMW = "ZMW",
|
|
146
|
-
ZWL = "ZWL"
|
|
148
|
+
ZWL = "ZWL",
|
|
149
|
+
CDF = "CDF",
|
|
150
|
+
ERN = "ERN",
|
|
151
|
+
FKP = "FKP",
|
|
152
|
+
KPW = "KPW",
|
|
153
|
+
RUB = "RUB",
|
|
154
|
+
SBD = "SBD",
|
|
155
|
+
SHP = "SHP",
|
|
156
|
+
SSP = "SSP",
|
|
157
|
+
VES = "VES"
|
|
147
158
|
}
|
|
148
159
|
export declare const CurrencyToISO4217: Record<Currency, string>;
|
|
149
160
|
export type WithdrawCurrency = Currency.USD | Currency.EUR | Currency.GBP | Currency.BRL | Currency.CAD;
|
|
@@ -154,8 +165,17 @@ export declare const WithdrawCurrencies: {
|
|
|
154
165
|
readonly BRL: Currency.BRL;
|
|
155
166
|
readonly CAD: Currency.CAD;
|
|
156
167
|
};
|
|
157
|
-
export declare function getCurrencyDecimals(currency: Currency): number;
|
|
158
168
|
export declare function isWithdrawCurrency(currency: Currency): currency is WithdrawCurrency;
|
|
169
|
+
export type BankingCurrency = Currency.USD | Currency.EUR | Currency.GBP | Currency.CAD | Currency.BRL;
|
|
170
|
+
export declare const BankingCurrencies: {
|
|
171
|
+
readonly USD: Currency.USD;
|
|
172
|
+
readonly EUR: Currency.EUR;
|
|
173
|
+
readonly GBP: Currency.GBP;
|
|
174
|
+
readonly CAD: Currency.CAD;
|
|
175
|
+
readonly BRL: Currency.BRL;
|
|
176
|
+
};
|
|
177
|
+
export declare function isBankingCurrency(currency: Currency): currency is BankingCurrency;
|
|
178
|
+
export declare function getCurrencyDecimals(currency: Currency): number;
|
|
159
179
|
export interface Cents {
|
|
160
180
|
/**
|
|
161
181
|
* @isInt Cents must be an integer
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
2
|
cardNumberInput: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
3
|
args: {
|
|
4
|
-
type: import('vue').PropType<import('
|
|
4
|
+
type: import('vue').PropType<import('..').CoinflowCardNumberInputProps & import('..').MerchantIdOrCheckoutJwt>;
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
7
|
}>> & Readonly<{}>, {
|
|
8
|
-
getToken: () => Promise<import('
|
|
8
|
+
getToken: () => Promise<import('..').CoinflowCardTokenResponse>;
|
|
9
9
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
10
10
|
P: {};
|
|
11
11
|
B: {};
|
|
@@ -15,11 +15,11 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
15
15
|
Defaults: {};
|
|
16
16
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
17
17
|
args: {
|
|
18
|
-
type: import('vue').PropType<import('
|
|
18
|
+
type: import('vue').PropType<import('..').CoinflowCardNumberInputProps & import('..').MerchantIdOrCheckoutJwt>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
21
|
}>> & Readonly<{}>, {
|
|
22
|
-
getToken: () => Promise<import('
|
|
22
|
+
getToken: () => Promise<import('..').CoinflowCardTokenResponse>;
|
|
23
23
|
}, {}, {}, {}, {}> | null;
|
|
24
24
|
}, HTMLDivElement>;
|
|
25
25
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinflowlabs/vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"codegen": "mkdir -p ./src/lib/common/ && cp -r '../../packages/lib-common/src/.' './src/lib/common'"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"vue": "^3.4.30",
|
|
29
28
|
"@solana/web3.js": ">=1.54.0",
|
|
30
|
-
"bs58": "^4.0.1"
|
|
29
|
+
"bs58": "^4.0.1",
|
|
30
|
+
"vue": "^3.4.30"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/bs58": "^4.0.4",
|
|
34
33
|
"@rushstack/eslint-patch": "^1.12.0",
|
|
34
|
+
"@types/bs58": "^4.0.4",
|
|
35
35
|
"@types/node": "^22.15.30",
|
|
36
36
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
37
37
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"vue-tsc": "^3.0.7"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
+
"@nsure-ai/web-client-sdk": "^1.1.89",
|
|
52
53
|
"lz-string": "^1.5.0"
|
|
53
54
|
},
|
|
54
55
|
"peerDependenciesMeta": {
|