@coinflowlabs/vue 1.8.0 → 1.8.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 +4 -0
- package/dist/coinflow-vue.js +13243 -18662
- package/dist/coinflow-vue.umd.cjs +14 -19
- package/dist/components/CoinflowPurchase.vue.d.ts +8 -0
- package/dist/lib/common/CoinflowTypes.d.ts +24 -1
- package/dist/lib/common/CoinflowUtils.d.ts +1 -1
- package/dist/lib/common/types/Subtotal.d.ts +3 -0
- package/package.json +1 -1
|
@@ -24,6 +24,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
24
24
|
};
|
|
25
25
|
redemptionCheck?: boolean;
|
|
26
26
|
subtotal?: import('../lib/common').Subtotal;
|
|
27
|
+
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
27
28
|
presentment?: import('../lib/common').Currency;
|
|
28
29
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
29
30
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
@@ -60,6 +61,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
60
61
|
wallet?: undefined;
|
|
61
62
|
blockchain?: import('../lib/common').CoinflowBlockchain | undefined;
|
|
62
63
|
subtotal?: import('../lib/common').Subtotal;
|
|
64
|
+
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
63
65
|
presentment?: import('../lib/common').Currency;
|
|
64
66
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
65
67
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
@@ -95,6 +97,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
95
97
|
blockchain: "polygon";
|
|
96
98
|
wallet: import('../lib/common').EthWallet;
|
|
97
99
|
subtotal?: import('../lib/common').Subtotal;
|
|
100
|
+
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
98
101
|
presentment?: import('../lib/common').Currency;
|
|
99
102
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
100
103
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
@@ -130,6 +133,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
130
133
|
blockchain: "eth";
|
|
131
134
|
wallet: import('../lib/common').EthWallet;
|
|
132
135
|
subtotal?: import('../lib/common').Subtotal;
|
|
136
|
+
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
133
137
|
presentment?: import('../lib/common').Currency;
|
|
134
138
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
135
139
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
@@ -165,6 +169,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
165
169
|
blockchain: "base";
|
|
166
170
|
wallet: import('../lib/common').EthWallet;
|
|
167
171
|
subtotal?: import('../lib/common').Subtotal;
|
|
172
|
+
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
168
173
|
presentment?: import('../lib/common').Currency;
|
|
169
174
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
170
175
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
@@ -200,6 +205,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
200
205
|
blockchain: "arbitrum";
|
|
201
206
|
wallet: import('../lib/common').EthWallet;
|
|
202
207
|
subtotal?: import('../lib/common').Subtotal;
|
|
208
|
+
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
203
209
|
presentment?: import('../lib/common').Currency;
|
|
204
210
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
205
211
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
@@ -235,6 +241,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
235
241
|
wallet: import('../lib/common').StellarWallet;
|
|
236
242
|
blockchain: "stellar";
|
|
237
243
|
subtotal?: import('../lib/common').Subtotal;
|
|
244
|
+
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
238
245
|
presentment?: import('../lib/common').Currency;
|
|
239
246
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
240
247
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
@@ -270,6 +277,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
270
277
|
blockchain: "monad";
|
|
271
278
|
wallet: import('../lib/common').EthWallet;
|
|
272
279
|
subtotal?: import('../lib/common').Subtotal;
|
|
280
|
+
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
273
281
|
presentment?: import('../lib/common').Currency;
|
|
274
282
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
275
283
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
@@ -26,6 +26,24 @@ export declare enum SettlementType {
|
|
|
26
26
|
USDC = "USDC",
|
|
27
27
|
Bank = "Bank"
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Configuration for a single custom pay-in fee line item.
|
|
31
|
+
* Use with customPayInFees prop on purchase flows.
|
|
32
|
+
*/
|
|
33
|
+
export interface PurchaseCustomPayInFee {
|
|
34
|
+
lineItemLabel: string;
|
|
35
|
+
fee: {
|
|
36
|
+
isFixed: true;
|
|
37
|
+
percent: null;
|
|
38
|
+
currency: Currency;
|
|
39
|
+
cents: number;
|
|
40
|
+
} | {
|
|
41
|
+
isFixed: false;
|
|
42
|
+
percent: number;
|
|
43
|
+
currency: null;
|
|
44
|
+
cents: null;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
29
47
|
/**
|
|
30
48
|
* Configuration for zero authorization flow - controls saved payment method visibility.
|
|
31
49
|
*/
|
|
@@ -234,6 +252,11 @@ export declare enum PaymentMethods {
|
|
|
234
252
|
export declare const paymentMethodLabels: Record<PaymentMethods, string>;
|
|
235
253
|
export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
236
254
|
subtotal?: Subtotal;
|
|
255
|
+
/**
|
|
256
|
+
* Custom pay-in fees to add to checkout. Each fee appears as a separate line item.
|
|
257
|
+
* These fees are added to the subtotal and displayed to the customer.
|
|
258
|
+
*/
|
|
259
|
+
customPayInFees?: PurchaseCustomPayInFee[];
|
|
237
260
|
presentment?: Currency;
|
|
238
261
|
onSuccess?: OnSuccessMethod;
|
|
239
262
|
onAuthDeclined?: OnAuthDeclinedMethod;
|
|
@@ -528,7 +551,7 @@ export interface DecentRedeem extends CommonEvmRedeem {
|
|
|
528
551
|
* 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.
|
|
529
552
|
*/
|
|
530
553
|
export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem | DecentRedeem;
|
|
531
|
-
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' | 'zeroAuthorizationConfig'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins' | 'allowedWithdrawSpeeds'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey' | 'redemptionCheck'> {
|
|
554
|
+
export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'subtotal' | 'customPayInFees' | 'presentment' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'supportEmail' | 'allowedPaymentMethods' | 'accountFundingTransaction' | 'partialUsdcChecked' | 'isZeroAuthorization' | 'zeroAuthorizationConfig'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins' | 'allowedWithdrawSpeeds'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey' | 'redemptionCheck'> {
|
|
532
555
|
walletPubkey: string | null | undefined;
|
|
533
556
|
sessionKey?: string;
|
|
534
557
|
route: string;
|
|
@@ -7,7 +7,7 @@ export declare class CoinflowUtils {
|
|
|
7
7
|
static getCoinflowBaseUrl(env?: CoinflowEnvs): string;
|
|
8
8
|
static getCoinflowAppBaseUrl(env?: CoinflowEnvs): string;
|
|
9
9
|
static getCoinflowApiUrl(env?: CoinflowEnvs): string;
|
|
10
|
-
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, zeroAuthorizationConfig, baseUrl, }: CoinflowIFrameProps & {
|
|
10
|
+
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, customPayInFees, 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, zeroAuthorizationConfig, baseUrl, }: CoinflowIFrameProps & {
|
|
11
11
|
baseUrl?: string;
|
|
12
12
|
}): string;
|
|
13
13
|
static getTransaction(props: CoinflowPurchaseProps): string | undefined;
|
|
@@ -186,6 +186,9 @@ export interface Cents {
|
|
|
186
186
|
export interface CurrencyCents extends Cents {
|
|
187
187
|
currency: Currency;
|
|
188
188
|
}
|
|
189
|
+
export interface RemainingLimit extends CurrencyCents {
|
|
190
|
+
type: 'single transaction' | 'daily' | 'monthly';
|
|
191
|
+
}
|
|
189
192
|
export interface TypedCurrencyCents<T extends Currency> extends Cents {
|
|
190
193
|
currency: T;
|
|
191
194
|
}
|