@coinflowlabs/vue 1.4.2 → 1.5.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.
@@ -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;
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, CoinflowPurchaseProtection, CoinflowCvvOnlyInput, CoinflowCardNumberOnlyInput, CoinflowApplePayButton, CoinflowGooglePayButton, };
12
+ export { CoinflowIframe, CoinflowWithdraw, CoinflowCvvInput, CoinflowCardNumberInput, CoinflowPurchase, CoinflowCvvOnlyInput, CoinflowPurchaseProtection, CoinflowCardNumberOnlyInput, CoinflowApplePayButton, CoinflowGooglePayButton, };
@@ -16,7 +16,10 @@ 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",
21
+ WIRE = "wire",
22
+ INTERAC = "interac"
20
23
  }
21
24
  export declare enum SettlementType {
22
25
  Credits = "Credits",
@@ -185,7 +188,8 @@ export declare enum PaymentMethods {
185
188
  applePay = "applePay",
186
189
  credits = "credits",
187
190
  crypto = "crypto",
188
- instantBankTransfer = "instantBankTransfer"
191
+ instantBankTransfer = "instantBankTransfer",
192
+ wire = "wire"
189
193
  }
190
194
  export declare const paymentMethodLabels: Record<PaymentMethods, string>;
191
195
  export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
@@ -206,6 +210,7 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
206
210
  customerInfo?: CustomerInfo;
207
211
  settlementType?: SettlementType;
208
212
  authOnly?: boolean;
213
+ isZeroAuthorization?: boolean;
209
214
  /**
210
215
  * If true, pre-checks the partial USDC payment checkbox when USDC balance is available.
211
216
  * If false or undefined, maintains default behavior (unchecked).
@@ -213,9 +218,9 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
213
218
  partialUsdcChecked?: boolean;
214
219
  /**
215
220
  * The DeviceID gotten from the Coinflow SDK:
216
- * https://docs.coinflow.cash/docs/implement-chargeback-protection#how-to-add-chargeback-protection
221
+ * https://docs.coinflow.cash/guides/checkout/fraud-protection/chargeback-protection/implement-chargeback-protection#how-to-add-chargeback-protection
217
222
  *
218
- * window?.nSureSDK?.getDeviceId()
223
+ * nSureSDK.getDeviceId()
219
224
  */
220
225
  deviceId?: string;
221
226
  jwtToken?: string;
@@ -477,7 +482,7 @@ export interface DecentRedeem extends CommonEvmRedeem {
477
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.
478
483
  */
479
484
  export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem | DecentRedeem | ReservoirRedeem;
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'> {
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'> {
481
486
  walletPubkey: string | null | undefined;
482
487
  sessionKey?: string;
483
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;
@@ -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;
@@ -154,8 +165,17 @@ export declare const WithdrawCurrencies: {
154
165
  readonly BRL: Currency.BRL;
155
166
  readonly CAD: Currency.CAD;
156
167
  };
157
- export declare function getCurrencyDecimals(currency: Currency): number;
158
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;
159
179
  export interface Cents {
160
180
  /**
161
181
  * @isInt Cents must be an integer
@@ -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 {};
@@ -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('../index').CoinflowCardNumberInputProps & import('../index').MerchantIdOrCheckoutJwt>;
4
+ type: import('vue').PropType<import('..').CoinflowCardNumberInputProps & import('..').MerchantIdOrCheckoutJwt>;
5
5
  required: true;
6
6
  };
7
7
  }>> & Readonly<{}>, {
8
- getToken: () => Promise<import('../index').CoinflowCardTokenResponse>;
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('../index').CoinflowCardNumberInputProps & import('../index').MerchantIdOrCheckoutJwt>;
18
+ type: import('vue').PropType<import('..').CoinflowCardNumberInputProps & import('..').MerchantIdOrCheckoutJwt>;
19
19
  required: true;
20
20
  };
21
21
  }>> & Readonly<{}>, {
22
- getToken: () => Promise<import('../index').CoinflowCardTokenResponse>;
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.2",
4
+ "version": "1.5.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -25,30 +25,31 @@
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
+ "@rushstack/eslint-patch": "^1.15.0",
33
34
  "@types/bs58": "^4.0.4",
34
- "@rushstack/eslint-patch": "^1.12.0",
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.1.3",
40
+ "csstype": "^3.2.2",
41
41
  "eslint": "^8.57.1",
42
- "eslint-plugin-vue": "^10.4.0",
42
+ "eslint-plugin-vue": "^10.5.1",
43
43
  "prettier": "^3.6.2",
44
44
  "typescript": "^5.6.3",
45
- "vite": "^7.1.5",
45
+ "vite": "^7.2.4",
46
46
  "vite-plugin-dts": "^4.5.4",
47
47
  "vitepress": "^1.6.4",
48
- "vue": "^3.5.21",
49
- "vue-tsc": "^3.0.7"
48
+ "vue": "^3.5.25",
49
+ "vue-tsc": "^3.1.4"
50
50
  },
51
51
  "dependencies": {
52
+ "@nsure-ai/web-client-sdk": "^1.1.90",
52
53
  "lz-string": "^1.5.0"
53
54
  },
54
55
  "peerDependenciesMeta": {