@coinflowlabs/vue 1.3.1 → 1.4.0
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.
|
@@ -25,6 +25,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
25
25
|
transactionSigner?: string;
|
|
26
26
|
origins?: string[];
|
|
27
27
|
sessionKey?: string;
|
|
28
|
+
allowedWithdrawSpeeds?: import('../lib/common').WithdrawSpeed[];
|
|
28
29
|
merchantId: string;
|
|
29
30
|
env?: import('../lib/common').CoinflowEnvs;
|
|
30
31
|
loaderBackground?: string;
|
|
@@ -51,6 +52,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
51
52
|
transactionSigner?: string;
|
|
52
53
|
origins?: string[];
|
|
53
54
|
sessionKey?: string;
|
|
55
|
+
allowedWithdrawSpeeds?: import('../lib/common').WithdrawSpeed[];
|
|
54
56
|
merchantId: string;
|
|
55
57
|
env?: import('../lib/common').CoinflowEnvs;
|
|
56
58
|
loaderBackground?: string;
|
|
@@ -77,6 +79,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
77
79
|
transactionSigner?: string;
|
|
78
80
|
origins?: string[];
|
|
79
81
|
sessionKey?: string;
|
|
82
|
+
allowedWithdrawSpeeds?: import('../lib/common').WithdrawSpeed[];
|
|
80
83
|
merchantId: string;
|
|
81
84
|
env?: import('../lib/common').CoinflowEnvs;
|
|
82
85
|
loaderBackground?: string;
|
|
@@ -103,6 +106,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
103
106
|
transactionSigner?: string;
|
|
104
107
|
origins?: string[];
|
|
105
108
|
sessionKey?: string;
|
|
109
|
+
allowedWithdrawSpeeds?: import('../lib/common').WithdrawSpeed[];
|
|
106
110
|
merchantId: string;
|
|
107
111
|
env?: import('../lib/common').CoinflowEnvs;
|
|
108
112
|
loaderBackground?: string;
|
|
@@ -129,6 +133,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
129
133
|
transactionSigner?: string;
|
|
130
134
|
origins?: string[];
|
|
131
135
|
sessionKey?: string;
|
|
136
|
+
allowedWithdrawSpeeds?: import('../lib/common').WithdrawSpeed[];
|
|
132
137
|
merchantId: string;
|
|
133
138
|
env?: import('../lib/common').CoinflowEnvs;
|
|
134
139
|
loaderBackground?: string;
|
|
@@ -4,6 +4,20 @@ import { GiftCardCartItem } from './types/giftCardCartItem';
|
|
|
4
4
|
import { nftCartItem } from './types/nftCartItem';
|
|
5
5
|
import { CryptoCartItem } from './types/cryptoCartItem';
|
|
6
6
|
import { MoneyTopUpCartItem } from './types/moneyTopUpCartItem';
|
|
7
|
+
export declare enum WithdrawCategory {
|
|
8
|
+
USER = "user",
|
|
9
|
+
BUSINESS = "business"
|
|
10
|
+
}
|
|
11
|
+
export declare enum WithdrawSpeed {
|
|
12
|
+
ASAP = "asap",
|
|
13
|
+
SAME_DAY = "same_day",
|
|
14
|
+
STANDARD = "standard",
|
|
15
|
+
CARD = "card",
|
|
16
|
+
IBAN = "iban",
|
|
17
|
+
PIX = "pix",
|
|
18
|
+
EFT = "eft",
|
|
19
|
+
VENMO = "venmo"
|
|
20
|
+
}
|
|
7
21
|
export declare enum SettlementType {
|
|
8
22
|
Credits = "Credits",
|
|
9
23
|
USDC = "USDC",
|
|
@@ -293,6 +307,10 @@ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
|
293
307
|
* If the withdrawer is authenticated with a sessionKey pass it here.
|
|
294
308
|
*/
|
|
295
309
|
sessionKey?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Array of allowed withdrawal speeds. If not provided, all speeds are allowed.
|
|
312
|
+
*/
|
|
313
|
+
allowedWithdrawSpeeds?: WithdrawSpeed[];
|
|
296
314
|
}
|
|
297
315
|
export type WalletTypes = SolanaWallet | EthWallet;
|
|
298
316
|
export interface SolanaWalletProps {
|
|
@@ -456,7 +474,7 @@ export interface DecentRedeem extends CommonEvmRedeem {
|
|
|
456
474
|
* 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.
|
|
457
475
|
*/
|
|
458
476
|
export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem | DecentRedeem | ReservoirRedeem;
|
|
459
|
-
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'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey'> {
|
|
477
|
+
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'> {
|
|
460
478
|
walletPubkey: string | null | undefined;
|
|
461
479
|
sessionKey?: string;
|
|
462
480
|
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, }: 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, allowedWithdrawSpeeds, }: CoinflowIFrameProps): string;
|
|
10
10
|
static getTransaction(props: CoinflowPurchaseProps): string | undefined;
|
|
11
11
|
static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
|
|
12
12
|
solana: T;
|
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.4.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"eslint-plugin-vue": "^10.4.0",
|
|
43
43
|
"prettier": "^3.6.2",
|
|
44
44
|
"typescript": "^5.6.3",
|
|
45
|
-
"vite": "^7.1.
|
|
45
|
+
"vite": "^7.1.5",
|
|
46
46
|
"vite-plugin-dts": "^4.5.4",
|
|
47
47
|
"vitepress": "^1.6.4",
|
|
48
|
-
"vue": "^3.5.
|
|
48
|
+
"vue": "^3.5.21",
|
|
49
49
|
"vue-tsc": "^3.0.6"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|