@coinflowlabs/vue 1.4.3 → 1.5.1
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 +1305 -1321
- package/dist/coinflow-vue.umd.cjs +13 -18
- package/dist/components/CoinflowPurchase.vue.d.ts +6 -0
- package/dist/lib/common/CoinflowTypes.d.ts +8 -4
- package/dist/lib/common/CoinflowUtils.d.ts +1 -1
- package/dist/lib/common/types/nftCartItem.d.ts +15 -0
- package/package.json +8 -8
|
@@ -37,6 +37,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
37
37
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
38
38
|
settlementType?: import('../lib/common').SettlementType;
|
|
39
39
|
authOnly?: boolean;
|
|
40
|
+
isZeroAuthorization?: boolean;
|
|
40
41
|
partialUsdcChecked?: boolean;
|
|
41
42
|
deviceId?: string;
|
|
42
43
|
jwtToken?: string;
|
|
@@ -71,6 +72,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
71
72
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
72
73
|
settlementType?: import('../lib/common').SettlementType;
|
|
73
74
|
authOnly?: boolean;
|
|
75
|
+
isZeroAuthorization?: boolean;
|
|
74
76
|
partialUsdcChecked?: boolean;
|
|
75
77
|
deviceId?: string;
|
|
76
78
|
jwtToken?: string;
|
|
@@ -104,6 +106,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
104
106
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
105
107
|
settlementType?: import('../lib/common').SettlementType;
|
|
106
108
|
authOnly?: boolean;
|
|
109
|
+
isZeroAuthorization?: boolean;
|
|
107
110
|
partialUsdcChecked?: boolean;
|
|
108
111
|
deviceId?: string;
|
|
109
112
|
jwtToken?: string;
|
|
@@ -137,6 +140,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
137
140
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
138
141
|
settlementType?: import('../lib/common').SettlementType;
|
|
139
142
|
authOnly?: boolean;
|
|
143
|
+
isZeroAuthorization?: boolean;
|
|
140
144
|
partialUsdcChecked?: boolean;
|
|
141
145
|
deviceId?: string;
|
|
142
146
|
jwtToken?: string;
|
|
@@ -170,6 +174,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
170
174
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
171
175
|
settlementType?: import('../lib/common').SettlementType;
|
|
172
176
|
authOnly?: boolean;
|
|
177
|
+
isZeroAuthorization?: boolean;
|
|
173
178
|
partialUsdcChecked?: boolean;
|
|
174
179
|
deviceId?: string;
|
|
175
180
|
jwtToken?: string;
|
|
@@ -203,6 +208,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
203
208
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
204
209
|
settlementType?: import('../lib/common').SettlementType;
|
|
205
210
|
authOnly?: boolean;
|
|
211
|
+
isZeroAuthorization?: boolean;
|
|
206
212
|
partialUsdcChecked?: boolean;
|
|
207
213
|
deviceId?: string;
|
|
208
214
|
jwtToken?: string;
|
|
@@ -17,7 +17,9 @@ export declare enum WithdrawSpeed {
|
|
|
17
17
|
PIX = "pix",
|
|
18
18
|
EFT = "eft",
|
|
19
19
|
VENMO = "venmo",
|
|
20
|
-
PAYPAL = "paypal"
|
|
20
|
+
PAYPAL = "paypal",
|
|
21
|
+
WIRE = "wire",
|
|
22
|
+
INTERAC = "interac"
|
|
21
23
|
}
|
|
22
24
|
export declare enum SettlementType {
|
|
23
25
|
Credits = "Credits",
|
|
@@ -186,7 +188,8 @@ export declare enum PaymentMethods {
|
|
|
186
188
|
applePay = "applePay",
|
|
187
189
|
credits = "credits",
|
|
188
190
|
crypto = "crypto",
|
|
189
|
-
instantBankTransfer = "instantBankTransfer"
|
|
191
|
+
instantBankTransfer = "instantBankTransfer",
|
|
192
|
+
wire = "wire"
|
|
190
193
|
}
|
|
191
194
|
export declare const paymentMethodLabels: Record<PaymentMethods, string>;
|
|
192
195
|
export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
@@ -207,6 +210,7 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
207
210
|
customerInfo?: CustomerInfo;
|
|
208
211
|
settlementType?: SettlementType;
|
|
209
212
|
authOnly?: boolean;
|
|
213
|
+
isZeroAuthorization?: boolean;
|
|
210
214
|
/**
|
|
211
215
|
* If true, pre-checks the partial USDC payment checkbox when USDC balance is available.
|
|
212
216
|
* If false or undefined, maintains default behavior (unchecked).
|
|
@@ -214,7 +218,7 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
214
218
|
partialUsdcChecked?: boolean;
|
|
215
219
|
/**
|
|
216
220
|
* The DeviceID gotten from the Coinflow SDK:
|
|
217
|
-
* https://docs.coinflow.cash/
|
|
221
|
+
* https://docs.coinflow.cash/guides/checkout/fraud-protection/chargeback-protection/implement-chargeback-protection#how-to-add-chargeback-protection
|
|
218
222
|
*
|
|
219
223
|
* nSureSDK.getDeviceId()
|
|
220
224
|
*/
|
|
@@ -478,7 +482,7 @@ export interface DecentRedeem extends CommonEvmRedeem {
|
|
|
478
482
|
* Gas fees for the transaction will be automatically calculated and added to the total charged to the customer. Optionally the merchant can opt to pay for these gas fees.
|
|
479
483
|
*/
|
|
480
484
|
export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem | DecentRedeem | ReservoirRedeem;
|
|
481
|
-
export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'subtotal' | 'presentment' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'supportEmail' | 'allowedPaymentMethods' | 'accountFundingTransaction' | 'partialUsdcChecked'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins' | 'allowedWithdrawSpeeds'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey' | 'redemptionCheck'> {
|
|
485
|
+
export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'subtotal' | 'presentment' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'supportEmail' | 'allowedPaymentMethods' | 'accountFundingTransaction' | 'partialUsdcChecked' | 'isZeroAuthorization'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins' | 'allowedWithdrawSpeeds'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey' | 'redemptionCheck'> {
|
|
482
486
|
walletPubkey: string | null | undefined;
|
|
483
487
|
sessionKey?: string;
|
|
484
488
|
route: string;
|
|
@@ -6,7 +6,7 @@ export declare class CoinflowUtils {
|
|
|
6
6
|
getNSurePartnerId(merchantId: string): Promise<string | undefined>;
|
|
7
7
|
static getCoinflowBaseUrl(env?: CoinflowEnvs): string;
|
|
8
8
|
static getCoinflowApiUrl(env?: CoinflowEnvs): string;
|
|
9
|
-
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, presentment, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, redemptionCheck, allowedWithdrawSpeeds, }: CoinflowIFrameProps): string;
|
|
9
|
+
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, presentment, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, redemptionCheck, allowedWithdrawSpeeds, isZeroAuthorization, }: CoinflowIFrameProps): string;
|
|
10
10
|
static getTransaction(props: CoinflowPurchaseProps): string | undefined;
|
|
11
11
|
static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
|
|
12
12
|
solana: T;
|
|
@@ -53,6 +53,20 @@ export type nftCartItem = {
|
|
|
53
53
|
*/
|
|
54
54
|
rawProductData?: AnyObject;
|
|
55
55
|
seller?: SellerInfo;
|
|
56
|
+
transactionHistory?: TransactionHistoryItem[];
|
|
57
|
+
};
|
|
58
|
+
type TransactionHistoryItem = {
|
|
59
|
+
txHash: string;
|
|
60
|
+
blockNumber: number;
|
|
61
|
+
txTime: string;
|
|
62
|
+
assetID: string;
|
|
63
|
+
registryContract: string;
|
|
64
|
+
from: string;
|
|
65
|
+
to: string;
|
|
66
|
+
paymentToken: string;
|
|
67
|
+
paymentAmount: string;
|
|
68
|
+
chain: string;
|
|
69
|
+
txType: string;
|
|
56
70
|
};
|
|
57
71
|
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';
|
|
58
72
|
export declare namespace nftCartItem {
|
|
@@ -91,3 +105,4 @@ export declare namespace nftCartItem {
|
|
|
91
105
|
MONEY_TOP_UP_CART_ITEM = "moneyTopUpCartItem"
|
|
92
106
|
}
|
|
93
107
|
}
|
|
108
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinflowlabs/vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -30,26 +30,26 @@
|
|
|
30
30
|
"vue": "^3.4.30"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@rushstack/eslint-patch": "^1.
|
|
33
|
+
"@rushstack/eslint-patch": "^1.15.0",
|
|
34
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",
|
|
38
38
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
39
39
|
"copyfiles": "^2.4.1",
|
|
40
|
-
"csstype": "^3.
|
|
40
|
+
"csstype": "^3.2.2",
|
|
41
41
|
"eslint": "^8.57.1",
|
|
42
|
-
"eslint-plugin-vue": "^10.
|
|
42
|
+
"eslint-plugin-vue": "^10.5.1",
|
|
43
43
|
"prettier": "^3.6.2",
|
|
44
44
|
"typescript": "^5.6.3",
|
|
45
|
-
"vite": "^7.
|
|
45
|
+
"vite": "^7.2.4",
|
|
46
46
|
"vite-plugin-dts": "^4.5.4",
|
|
47
47
|
"vitepress": "^1.6.4",
|
|
48
|
-
"vue": "^3.5.
|
|
49
|
-
"vue-tsc": "^3.
|
|
48
|
+
"vue": "^3.5.25",
|
|
49
|
+
"vue-tsc": "^3.1.4"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@nsure-ai/web-client-sdk": "^1.1.
|
|
52
|
+
"@nsure-ai/web-client-sdk": "^1.1.90",
|
|
53
53
|
"lz-string": "^1.5.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|