@coinflowlabs/vue 1.8.0 → 1.9.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.
@@ -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;
@@ -32,6 +33,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
32
33
  };
33
34
  email?: string;
34
35
  chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
36
+ chargebackProtectionAccountType?: import('../lib/common').ChargebackProtectionAccountType;
35
37
  planCode?: string;
36
38
  allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
37
39
  customerInfo?: import('../lib/common').CustomerInfo;
@@ -60,6 +62,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
60
62
  wallet?: undefined;
61
63
  blockchain?: import('../lib/common').CoinflowBlockchain | undefined;
62
64
  subtotal?: import('../lib/common').Subtotal;
65
+ customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
63
66
  presentment?: import('../lib/common').Currency;
64
67
  onSuccess?: import('../lib/common').OnSuccessMethod;
65
68
  onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
@@ -68,6 +71,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
68
71
  };
69
72
  email?: string;
70
73
  chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
74
+ chargebackProtectionAccountType?: import('../lib/common').ChargebackProtectionAccountType;
71
75
  planCode?: string;
72
76
  allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
73
77
  customerInfo?: import('../lib/common').CustomerInfo;
@@ -95,6 +99,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
95
99
  blockchain: "polygon";
96
100
  wallet: import('../lib/common').EthWallet;
97
101
  subtotal?: import('../lib/common').Subtotal;
102
+ customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
98
103
  presentment?: import('../lib/common').Currency;
99
104
  onSuccess?: import('../lib/common').OnSuccessMethod;
100
105
  onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
@@ -103,6 +108,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
103
108
  };
104
109
  email?: string;
105
110
  chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
111
+ chargebackProtectionAccountType?: import('../lib/common').ChargebackProtectionAccountType;
106
112
  planCode?: string;
107
113
  allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
108
114
  customerInfo?: import('../lib/common').CustomerInfo;
@@ -130,6 +136,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
130
136
  blockchain: "eth";
131
137
  wallet: import('../lib/common').EthWallet;
132
138
  subtotal?: import('../lib/common').Subtotal;
139
+ customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
133
140
  presentment?: import('../lib/common').Currency;
134
141
  onSuccess?: import('../lib/common').OnSuccessMethod;
135
142
  onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
@@ -138,6 +145,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
138
145
  };
139
146
  email?: string;
140
147
  chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
148
+ chargebackProtectionAccountType?: import('../lib/common').ChargebackProtectionAccountType;
141
149
  planCode?: string;
142
150
  allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
143
151
  customerInfo?: import('../lib/common').CustomerInfo;
@@ -165,6 +173,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
165
173
  blockchain: "base";
166
174
  wallet: import('../lib/common').EthWallet;
167
175
  subtotal?: import('../lib/common').Subtotal;
176
+ customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
168
177
  presentment?: import('../lib/common').Currency;
169
178
  onSuccess?: import('../lib/common').OnSuccessMethod;
170
179
  onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
@@ -173,6 +182,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
173
182
  };
174
183
  email?: string;
175
184
  chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
185
+ chargebackProtectionAccountType?: import('../lib/common').ChargebackProtectionAccountType;
176
186
  planCode?: string;
177
187
  allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
178
188
  customerInfo?: import('../lib/common').CustomerInfo;
@@ -200,6 +210,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
200
210
  blockchain: "arbitrum";
201
211
  wallet: import('../lib/common').EthWallet;
202
212
  subtotal?: import('../lib/common').Subtotal;
213
+ customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
203
214
  presentment?: import('../lib/common').Currency;
204
215
  onSuccess?: import('../lib/common').OnSuccessMethod;
205
216
  onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
@@ -208,6 +219,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
208
219
  };
209
220
  email?: string;
210
221
  chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
222
+ chargebackProtectionAccountType?: import('../lib/common').ChargebackProtectionAccountType;
211
223
  planCode?: string;
212
224
  allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
213
225
  customerInfo?: import('../lib/common').CustomerInfo;
@@ -235,6 +247,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
235
247
  wallet: import('../lib/common').StellarWallet;
236
248
  blockchain: "stellar";
237
249
  subtotal?: import('../lib/common').Subtotal;
250
+ customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
238
251
  presentment?: import('../lib/common').Currency;
239
252
  onSuccess?: import('../lib/common').OnSuccessMethod;
240
253
  onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
@@ -243,6 +256,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
243
256
  };
244
257
  email?: string;
245
258
  chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
259
+ chargebackProtectionAccountType?: import('../lib/common').ChargebackProtectionAccountType;
246
260
  planCode?: string;
247
261
  allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
248
262
  customerInfo?: import('../lib/common').CustomerInfo;
@@ -270,6 +284,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
270
284
  blockchain: "monad";
271
285
  wallet: import('../lib/common').EthWallet;
272
286
  subtotal?: import('../lib/common').Subtotal;
287
+ customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
273
288
  presentment?: import('../lib/common').Currency;
274
289
  onSuccess?: import('../lib/common').OnSuccessMethod;
275
290
  onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
@@ -278,6 +293,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
278
293
  };
279
294
  email?: string;
280
295
  chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
296
+ chargebackProtectionAccountType?: import('../lib/common').ChargebackProtectionAccountType;
281
297
  planCode?: string;
282
298
  allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
283
299
  customerInfo?: import('../lib/common').CustomerInfo;
@@ -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
  */
@@ -204,9 +222,16 @@ export interface CoinflowMonadHistoryProps extends CoinflowEvmHistoryProps {
204
222
  export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps | CoinflowStellarHistoryProps | CoinflowMonadHistoryProps | CoinflowSessionKeyHistoryProps;
205
223
  type Bytes = ArrayLike<number>;
206
224
  type BytesLike = Bytes | string;
207
- /** Purchase **/
225
+ /**
226
+ * Cart item details required for Coinflow Chargeback Protection. Required if the merchant uses chargeback protection.
227
+ */
208
228
  export type CartClassOmitted = CartItemClassOmitted[];
209
229
  export type ChargebackProtectionData = CartClassOmitted;
230
+ export declare enum ChargebackProtectionAccountType {
231
+ GUEST = "guest",
232
+ PRIVATE = "private",
233
+ BUSINESS = "business"
234
+ }
210
235
  export type CartItemClassOmitted = NftCartItemClassOmitted | Omit<GiftCardCartItem, 'listPrice'> | CryptoCartItem | MoneyTopUpCartItem;
211
236
  export type ChargebackProtectionItem = CartItemClassOmitted;
212
237
  export type NftCartItemClassOmitted = Omit<nftCartItem, 'sellingPrice' | 'itemClass'>;
@@ -234,6 +259,11 @@ export declare enum PaymentMethods {
234
259
  export declare const paymentMethodLabels: Record<PaymentMethods, string>;
235
260
  export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
236
261
  subtotal?: Subtotal;
262
+ /**
263
+ * Custom pay-in fees to add to checkout. Each fee appears as a separate line item.
264
+ * These fees are added to the subtotal and displayed to the customer.
265
+ */
266
+ customPayInFees?: PurchaseCustomPayInFee[];
237
267
  presentment?: Currency;
238
268
  onSuccess?: OnSuccessMethod;
239
269
  onAuthDeclined?: OnAuthDeclinedMethod;
@@ -242,6 +272,7 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
242
272
  };
243
273
  email?: string;
244
274
  chargebackProtectionData?: ChargebackProtectionData;
275
+ chargebackProtectionAccountType?: ChargebackProtectionAccountType;
245
276
  planCode?: string;
246
277
  /**
247
278
  * The payment methods displayed on the UI. If omitted, all available payment methods will be displayed.
@@ -528,7 +559,7 @@ export interface DecentRedeem extends CommonEvmRedeem {
528
559
  * 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
560
  */
530
561
  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'> {
562
+ export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'chargebackProtectionAccountType' | '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
563
  walletPubkey: string | null | undefined;
533
564
  sessionKey?: string;
534
565
  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, chargebackProtectionAccountType, 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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coinflowlabs/vue",
3
3
  "private": false,
4
- "version": "1.8.0",
4
+ "version": "1.9.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",