@coinflowlabs/vue 1.4.1 → 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 +9 -0
- package/dist/coinflow-vue.js +18076 -8525
- package/dist/coinflow-vue.umd.cjs +21 -15
- package/dist/index.d.ts +1 -1
- package/dist/lib/common/CoinflowTypes.d.ts +7 -3
- package/dist/lib/common/types/Subtotal.d.ts +22 -1
- package/dist/lib/common/types/nftCartItem.d.ts +2 -8
- package/dist/testing/CardFormTest.vue.d.ts +4 -4
- package/package.json +6 -5
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",
|
|
@@ -55,6 +56,7 @@ interface BaseCustomerInfo {
|
|
|
55
56
|
* Date of birth in YYYY-MM-DD format
|
|
56
57
|
*/
|
|
57
58
|
dob?: string;
|
|
59
|
+
email?: string;
|
|
58
60
|
}
|
|
59
61
|
export interface NameCustomerInfo extends BaseCustomerInfo {
|
|
60
62
|
/**
|
|
@@ -186,6 +188,7 @@ export declare enum PaymentMethods {
|
|
|
186
188
|
crypto = "crypto",
|
|
187
189
|
instantBankTransfer = "instantBankTransfer"
|
|
188
190
|
}
|
|
191
|
+
export declare const paymentMethodLabels: Record<PaymentMethods, string>;
|
|
189
192
|
export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
190
193
|
subtotal?: Subtotal;
|
|
191
194
|
presentment?: Currency;
|
|
@@ -213,7 +216,7 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
213
216
|
* The DeviceID gotten from the Coinflow SDK:
|
|
214
217
|
* https://docs.coinflow.cash/docs/implement-chargeback-protection#how-to-add-chargeback-protection
|
|
215
218
|
*
|
|
216
|
-
*
|
|
219
|
+
* nSureSDK.getDeviceId()
|
|
217
220
|
*/
|
|
218
221
|
deviceId?: string;
|
|
219
222
|
jwtToken?: string;
|
|
@@ -527,9 +530,10 @@ export interface RecipientAftInfo {
|
|
|
527
530
|
*/
|
|
528
531
|
countryCode: string;
|
|
529
532
|
/**
|
|
533
|
+
* Recipients Date Of Birth in YYYMMDD format.
|
|
530
534
|
* @pattern ^\d{8}$
|
|
531
535
|
*/
|
|
532
|
-
dateOfBirth
|
|
536
|
+
dateOfBirth?: string;
|
|
533
537
|
/**
|
|
534
538
|
* @pattern ^\d+$
|
|
535
539
|
*/
|
|
@@ -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;
|
|
@@ -155,6 +166,16 @@ export declare const WithdrawCurrencies: {
|
|
|
155
166
|
readonly CAD: Currency.CAD;
|
|
156
167
|
};
|
|
157
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;
|
|
158
179
|
export interface Cents {
|
|
159
180
|
/**
|
|
160
181
|
* @isInt Cents must be an integer
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnyObject } from './AnyObject';
|
|
2
|
+
import { SellerInfo } from './CartitemCommon';
|
|
2
3
|
/**
|
|
3
4
|
* An nft cart item
|
|
4
5
|
*/
|
|
@@ -51,14 +52,7 @@ export type nftCartItem = {
|
|
|
51
52
|
* Any additional data that the store can provide on the product, e.g. description, link to image, etc.
|
|
52
53
|
*/
|
|
53
54
|
rawProductData?: AnyObject;
|
|
54
|
-
seller?:
|
|
55
|
-
id: string;
|
|
56
|
-
email: string;
|
|
57
|
-
firstName: string;
|
|
58
|
-
lastName: string;
|
|
59
|
-
dob: string;
|
|
60
|
-
rawSellerData: Record<string, any>;
|
|
61
|
-
};
|
|
55
|
+
seller?: SellerInfo;
|
|
62
56
|
};
|
|
63
57
|
export type productType = 'inGameProduct' | 'gameOfSkill' | 'dataStorage' | 'computingResources' | 'sportsTicket' | 'eSportsTicket' | 'musicTicket' | 'conferenceTicket' | 'virtualSportsTicket' | 'virtualESportsTicket' | 'virtualMusicTicket' | 'virtualConferenceTicket' | 'alcohol' | 'DLC' | 'subscription' | 'fundACause' | 'realEstate' | 'computingContract' | 'digitalArt' | 'topUp' | 'ownershipContract' | 'inGameCurrency' | 'digitalCollectibles' | 'digitalCollectiblesMarketplace' | 'digitalGiftingMarketplace' | 'sweepstakes' | 'virtualSportsEvents' | 'contractInvoicing' | 'onlineCasino' | 'cryptoOnramp' | 'gaming' | 'travelDocuments' | 'musicStreaming' | 'digitalContent' | 'eBooks' | 'digitalSubscriptionContent';
|
|
64
58
|
export declare namespace nftCartItem {
|
|
@@ -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",
|
|
@@ -46,9 +46,10 @@
|
|
|
46
46
|
"vite-plugin-dts": "^4.5.4",
|
|
47
47
|
"vitepress": "^1.6.4",
|
|
48
48
|
"vue": "^3.5.21",
|
|
49
|
-
"vue-tsc": "^3.0.
|
|
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": {
|