@coinflowlabs/vue 1.4.0 → 1.4.2
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 +8 -0
- package/dist/coinflow-vue.js +1042 -995
- package/dist/coinflow-vue.umd.cjs +7 -7
- package/dist/components/CoinflowPurchase.vue.d.ts +1 -0
- package/dist/lib/common/CoinflowTypes.d.ts +6 -2
- package/dist/lib/common/CoinflowUtils.d.ts +1 -1
- package/dist/lib/common/types/Subtotal.d.ts +1 -0
- package/dist/lib/common/types/nftCartItem.d.ts +2 -8
- package/package.json +2 -2
|
@@ -22,6 +22,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
22
22
|
nativeSolToConvert?: {
|
|
23
23
|
lamports: string | number;
|
|
24
24
|
};
|
|
25
|
+
redemptionCheck?: boolean;
|
|
25
26
|
subtotal?: import('../lib/common').Subtotal;
|
|
26
27
|
presentment?: import('../lib/common').Currency;
|
|
27
28
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
@@ -55,6 +55,7 @@ interface BaseCustomerInfo {
|
|
|
55
55
|
* Date of birth in YYYY-MM-DD format
|
|
56
56
|
*/
|
|
57
57
|
dob?: string;
|
|
58
|
+
email?: string;
|
|
58
59
|
}
|
|
59
60
|
export interface NameCustomerInfo extends BaseCustomerInfo {
|
|
60
61
|
/**
|
|
@@ -186,6 +187,7 @@ export declare enum PaymentMethods {
|
|
|
186
187
|
crypto = "crypto",
|
|
187
188
|
instantBankTransfer = "instantBankTransfer"
|
|
188
189
|
}
|
|
190
|
+
export declare const paymentMethodLabels: Record<PaymentMethods, string>;
|
|
189
191
|
export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
190
192
|
subtotal?: Subtotal;
|
|
191
193
|
presentment?: Currency;
|
|
@@ -257,6 +259,7 @@ export interface CoinflowSolanaPurchaseProps extends CoinflowCommonPurchaseProps
|
|
|
257
259
|
nativeSolToConvert?: {
|
|
258
260
|
lamports: string | number;
|
|
259
261
|
};
|
|
262
|
+
redemptionCheck?: boolean;
|
|
260
263
|
}
|
|
261
264
|
export interface CoinflowSessionKeyPurchaseProps extends CoinflowCommonPurchaseProps {
|
|
262
265
|
sessionKey: string;
|
|
@@ -474,7 +477,7 @@ export interface DecentRedeem extends CommonEvmRedeem {
|
|
|
474
477
|
* 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.
|
|
475
478
|
*/
|
|
476
479
|
export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem | DecentRedeem | ReservoirRedeem;
|
|
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'> {
|
|
480
|
+
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'> {
|
|
478
481
|
walletPubkey: string | null | undefined;
|
|
479
482
|
sessionKey?: string;
|
|
480
483
|
route: string;
|
|
@@ -526,9 +529,10 @@ export interface RecipientAftInfo {
|
|
|
526
529
|
*/
|
|
527
530
|
countryCode: string;
|
|
528
531
|
/**
|
|
532
|
+
* Recipients Date Of Birth in YYYMMDD format.
|
|
529
533
|
* @pattern ^\d{8}$
|
|
530
534
|
*/
|
|
531
|
-
dateOfBirth
|
|
535
|
+
dateOfBirth?: string;
|
|
532
536
|
/**
|
|
533
537
|
* @pattern ^\d+$
|
|
534
538
|
*/
|
|
@@ -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, 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, }: CoinflowIFrameProps): string;
|
|
10
10
|
static getTransaction(props: CoinflowPurchaseProps): string | undefined;
|
|
11
11
|
static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
|
|
12
12
|
solana: T;
|
|
@@ -154,6 +154,7 @@ export declare const WithdrawCurrencies: {
|
|
|
154
154
|
readonly BRL: Currency.BRL;
|
|
155
155
|
readonly CAD: Currency.CAD;
|
|
156
156
|
};
|
|
157
|
+
export declare function getCurrencyDecimals(currency: Currency): number;
|
|
157
158
|
export declare function isWithdrawCurrency(currency: Currency): currency is WithdrawCurrency;
|
|
158
159
|
export interface Cents {
|
|
159
160
|
/**
|
|
@@ -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 {
|
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.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -46,7 +46,7 @@
|
|
|
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
52
|
"lz-string": "^1.5.0"
|