@coinflowlabs/vue 1.19.2 → 2.0.1-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.
@@ -39,6 +39,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
39
39
  chargebackProtectionAccountType?: import('..').ChargebackProtectionAccountType;
40
40
  planCode?: string;
41
41
  allowedPaymentMethods?: import('..').PaymentMethods[];
42
+ allowedCardFunding?: import('..').CardFunding[];
42
43
  customerInfo?: import('..').CustomerInfo;
43
44
  settlementType?: import('..').SettlementType;
44
45
  authOnly?: boolean;
@@ -80,6 +81,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
80
81
  chargebackProtectionAccountType?: import('..').ChargebackProtectionAccountType;
81
82
  planCode?: string;
82
83
  allowedPaymentMethods?: import('..').PaymentMethods[];
84
+ allowedCardFunding?: import('..').CardFunding[];
83
85
  customerInfo?: import('..').CustomerInfo;
84
86
  settlementType?: import('..').SettlementType;
85
87
  authOnly?: boolean;
@@ -121,6 +123,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
121
123
  chargebackProtectionAccountType?: import('..').ChargebackProtectionAccountType;
122
124
  planCode?: string;
123
125
  allowedPaymentMethods?: import('..').PaymentMethods[];
126
+ allowedCardFunding?: import('..').CardFunding[];
124
127
  customerInfo?: import('..').CustomerInfo;
125
128
  settlementType?: import('..').SettlementType;
126
129
  authOnly?: boolean;
@@ -162,6 +165,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
162
165
  chargebackProtectionAccountType?: import('..').ChargebackProtectionAccountType;
163
166
  planCode?: string;
164
167
  allowedPaymentMethods?: import('..').PaymentMethods[];
168
+ allowedCardFunding?: import('..').CardFunding[];
165
169
  customerInfo?: import('..').CustomerInfo;
166
170
  settlementType?: import('..').SettlementType;
167
171
  authOnly?: boolean;
@@ -203,6 +207,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
203
207
  chargebackProtectionAccountType?: import('..').ChargebackProtectionAccountType;
204
208
  planCode?: string;
205
209
  allowedPaymentMethods?: import('..').PaymentMethods[];
210
+ allowedCardFunding?: import('..').CardFunding[];
206
211
  customerInfo?: import('..').CustomerInfo;
207
212
  settlementType?: import('..').SettlementType;
208
213
  authOnly?: boolean;
@@ -244,47 +249,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
244
249
  chargebackProtectionAccountType?: import('..').ChargebackProtectionAccountType;
245
250
  planCode?: string;
246
251
  allowedPaymentMethods?: import('..').PaymentMethods[];
247
- customerInfo?: import('..').CustomerInfo;
248
- settlementType?: import('..').SettlementType;
249
- authOnly?: boolean;
250
- isZeroAuthorization?: boolean;
251
- zeroAuthorizationConfig?: import('..').ZeroAuthorizationConfig;
252
- partialUsdcChecked?: boolean;
253
- deviceId?: string;
254
- jwtToken?: string;
255
- origins?: string[];
256
- threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
257
- destinationAuthKey?: string;
258
- accountFundingTransaction?: import('..').AccountFundingTransaction;
259
- depositAmounts?: number[];
260
- merchantId: string;
261
- env?: import('..').CoinflowEnvs;
262
- loaderBackground?: string;
263
- handleHeightChange?: (height: string) => void;
264
- theme?: import('..').MerchantTheme;
265
- supportEmail?: string;
266
- } | {
267
- walletPubkey: string | null | undefined;
268
- route: string;
269
- transaction: string | undefined;
270
- wallet: import('..').StellarWallet;
271
- blockchain: "stellar";
272
- subtotal?: import('..').Subtotal;
273
- useNativeSubtotal?: boolean;
274
- presentment?: import('..').Currency;
275
- onSuccess?: import('..').OnSuccessMethod;
276
- sessionKey?: string;
277
- onAuthDeclined?: import('..').OnAuthDeclinedMethod;
278
- onInputError?: import('..').OnInputErrorMethod;
279
- onInputValid?: import('..').OnInputValidMethod;
280
- webhookInfo?: {
281
- [key: string]: any;
282
- };
283
- email?: string;
284
- chargebackProtectionData?: import('..').ChargebackProtectionData;
285
- chargebackProtectionAccountType?: import('..').ChargebackProtectionAccountType;
286
- planCode?: string;
287
- allowedPaymentMethods?: import('..').PaymentMethods[];
252
+ allowedCardFunding?: import('..').CardFunding[];
288
253
  customerInfo?: import('..').CustomerInfo;
289
254
  settlementType?: import('..').SettlementType;
290
255
  authOnly?: boolean;
@@ -326,6 +291,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
326
291
  chargebackProtectionAccountType?: import('..').ChargebackProtectionAccountType;
327
292
  planCode?: string;
328
293
  allowedPaymentMethods?: import('..').PaymentMethods[];
294
+ allowedCardFunding?: import('..').CardFunding[];
329
295
  customerInfo?: import('..').CustomerInfo;
330
296
  settlementType?: import('..').SettlementType;
331
297
  authOnly?: boolean;
@@ -367,6 +333,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
367
333
  chargebackProtectionAccountType?: import('..').ChargebackProtectionAccountType;
368
334
  planCode?: string;
369
335
  allowedPaymentMethods?: import('..').PaymentMethods[];
336
+ allowedCardFunding?: import('..').CardFunding[];
370
337
  customerInfo?: import('..').CustomerInfo;
371
338
  settlementType?: import('..').SettlementType;
372
339
  authOnly?: boolean;
@@ -20,7 +20,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
20
20
  bankAccountLinkRedirect?: string;
21
21
  additionalWallets?: {
22
22
  wallet: string;
23
- blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
23
+ blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
24
24
  }[];
25
25
  lockAmount?: boolean;
26
26
  transactionSigner?: string;
@@ -55,7 +55,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
55
55
  bankAccountLinkRedirect?: string;
56
56
  additionalWallets?: {
57
57
  wallet: string;
58
- blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
58
+ blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
59
59
  }[];
60
60
  lockAmount?: boolean;
61
61
  transactionSigner?: string;
@@ -89,7 +89,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
89
89
  bankAccountLinkRedirect?: string;
90
90
  additionalWallets?: {
91
91
  wallet: string;
92
- blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
92
+ blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
93
93
  }[];
94
94
  lockAmount?: boolean;
95
95
  transactionSigner?: string;
@@ -123,7 +123,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
123
123
  bankAccountLinkRedirect?: string;
124
124
  additionalWallets?: {
125
125
  wallet: string;
126
- blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
126
+ blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
127
127
  }[];
128
128
  lockAmount?: boolean;
129
129
  transactionSigner?: string;
@@ -157,7 +157,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
157
157
  bankAccountLinkRedirect?: string;
158
158
  additionalWallets?: {
159
159
  wallet: string;
160
- blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
160
+ blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
161
161
  }[];
162
162
  lockAmount?: boolean;
163
163
  transactionSigner?: string;
@@ -191,40 +191,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
191
191
  bankAccountLinkRedirect?: string;
192
192
  additionalWallets?: {
193
193
  wallet: string;
194
- blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
195
- }[];
196
- lockAmount?: boolean;
197
- transactionSigner?: string;
198
- origins?: string[];
199
- sessionKey?: string;
200
- allowedWithdrawSpeeds?: import('..').WithdrawSpeed[];
201
- userLocation?: {
202
- lat: number;
203
- lng: number;
204
- };
205
- appReturnUrl?: string;
206
- merchantId: string;
207
- env?: import('..').CoinflowEnvs;
208
- loaderBackground?: string;
209
- blockchain: "stellar";
210
- handleHeightChange?: (height: string) => void;
211
- theme?: import('..').MerchantTheme;
212
- supportEmail?: string;
213
- wallet: import('..').StellarWallet;
214
- } | {
215
- walletPubkey: string | null | undefined;
216
- route: string;
217
- transaction: undefined;
218
- onSuccess?: import('..').OnSuccessMethod;
219
- onAccountLinkError?: import('..').OnAccountLinkErrorMethod;
220
- tokens?: string[];
221
- lockDefaultToken?: boolean;
222
- amount?: number;
223
- email?: string;
224
- bankAccountLinkRedirect?: string;
225
- additionalWallets?: {
226
- wallet: string;
227
- blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
194
+ blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
228
195
  }[];
229
196
  lockAmount?: boolean;
230
197
  transactionSigner?: string;
@@ -258,7 +225,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
258
225
  bankAccountLinkRedirect?: string;
259
226
  additionalWallets?: {
260
227
  wallet: string;
261
- blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
228
+ blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
262
229
  }[];
263
230
  lockAmount?: boolean;
264
231
  transactionSigner?: string;
@@ -1,11 +1,14 @@
1
1
  import { PropType } from 'vue';
2
- import { CardFormVariant, CoinflowEnvs, MerchantTheme } from '../../lib/common';
2
+ import { CardFormVariant, CardType, CoinflowEnvs, MerchantTheme } from '../../lib/common';
3
3
  export interface CardFormV2TokenResponse {
4
4
  token: string;
5
5
  expMonth?: string;
6
6
  expYear?: string;
7
7
  /** Forter device token captured in the card-form iframe; forward it as the `x-forter-token` header on your charge request so Forter can score the transaction. Absent if the Forter SDK has not loaded. */
8
8
  forterToken?: string;
9
+ bin?: string;
10
+ lastFour?: string;
11
+ cardType?: CardType;
9
12
  }
10
13
  declare function tokenize(): Promise<CardFormV2TokenResponse>;
11
14
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
package/dist/index.d.ts CHANGED
@@ -1,11 +1,7 @@
1
1
  import { default as CoinflowIframe } from './components/CoinflowIframe.vue';
2
2
  import { default as CoinflowWithdraw } from './components/CoinflowWithdraw.vue';
3
3
  import { default as CoinflowPurchase } from './components/CoinflowPurchase.vue';
4
- import { default as CoinflowCardNumberInput } from './components/card-form/CoinflowCardNumberInput.vue';
5
- import { default as CoinflowCvvInput } from './components/card-form/CoinflowCvvInput.vue';
6
- import { default as CoinflowCvvOnlyInput } from './components/card-form/CoinflowCvvOnlyInput.vue';
7
4
  import { default as CoinflowPurchaseProtection } from './components/CoinflowPurchaseProtection.vue';
8
- import { default as CoinflowCardNumberOnlyInput } from './components/card-form/CoinflowCardNumberOnlyInput.vue';
9
5
  import { default as CoinflowCardFormV2 } from './components/card-form/CoinflowCardFormV2.vue';
10
6
  import { default as CoinflowApplePayButton } from './components/mobile-wallet/CoinflowApplePayButton.vue';
11
7
  import { default as CoinflowGooglePayButton } from './components/mobile-wallet/CoinflowGooglePayButton.vue';
@@ -40,48 +36,4 @@ declare const CoinflowCardForm: import('vue').DefineComponent<import('vue').Extr
40
36
  wrapperRef: HTMLDivElement;
41
37
  iframeRef: HTMLIFrameElement;
42
38
  }, HTMLDivElement>;
43
- /** @deprecated Use CoinflowCardForm instead */
44
- declare const CoinflowLegacyCardNumberInput: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
45
- args: {
46
- type: import('vue').PropType<import('.').CoinflowCardNumberInputProps & import('.').MerchantIdOrCheckoutJwt>;
47
- required: true;
48
- };
49
- }>, {
50
- getToken: () => Promise<import('.').CoinflowCardTokenResponse>;
51
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
52
- args: {
53
- type: import('vue').PropType<import('.').CoinflowCardNumberInputProps & import('.').MerchantIdOrCheckoutJwt>;
54
- required: true;
55
- };
56
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
57
- /** @deprecated Use CoinflowCardForm instead */
58
- declare const CoinflowLegacyCvvInput: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
59
- /** @deprecated Use CoinflowCardForm instead */
60
- declare const CoinflowLegacyCvvOnlyInput: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
61
- args: {
62
- type: import('vue').PropType<import('.').CoinflowCvvOnlyInputProps & import('.').MerchantIdOrCheckoutJwt>;
63
- required: true;
64
- };
65
- }>, {
66
- getToken: () => Promise<import('.').CoinflowCardTokenResponse>;
67
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
68
- args: {
69
- type: import('vue').PropType<import('.').CoinflowCvvOnlyInputProps & import('.').MerchantIdOrCheckoutJwt>;
70
- required: true;
71
- };
72
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
73
- /** @deprecated Use CoinflowCardForm instead */
74
- declare const CoinflowLegacyCardNumberOnlyInput: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
75
- args: {
76
- type: import('vue').PropType<import('.').CoinflowCardNumberInputProps & import('.').MerchantIdOrCheckoutJwt>;
77
- required: true;
78
- };
79
- }>, {
80
- getToken: () => Promise<import('.').CoinflowCardTokenResponse>;
81
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
82
- args: {
83
- type: import('vue').PropType<import('.').CoinflowCardNumberInputProps & import('.').MerchantIdOrCheckoutJwt>;
84
- required: true;
85
- };
86
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
87
- export { CoinflowIframe, CoinflowWithdraw, CoinflowPurchase, CoinflowPurchaseProtection, CoinflowApplePayButton, CoinflowGooglePayButton, CoinflowCardForm, CoinflowCardFormV2, CoinflowLegacyCardNumberInput, CoinflowLegacyCvvInput, CoinflowLegacyCvvOnlyInput, CoinflowLegacyCardNumberOnlyInput, CoinflowCardNumberInput, CoinflowCvvInput, CoinflowCvvOnlyInput, CoinflowCardNumberOnlyInput, };
39
+ export { CoinflowIframe, CoinflowWithdraw, CoinflowPurchase, CoinflowPurchaseProtection, CoinflowApplePayButton, CoinflowGooglePayButton, CoinflowCardForm, CoinflowCardFormV2, };
@@ -0,0 +1,11 @@
1
+ export interface CoinflowFraudProtectionTokens {
2
+ deviceId?: string | null;
3
+ sessionId?: string | null;
4
+ purchaseToken?: string | null;
5
+ }
6
+ export declare class CoinflowFraudProtectionHeader {
7
+ static readonly payloadVersion = 1;
8
+ static readonly maxLength = 8192;
9
+ static encode({ deviceId, sessionId, purchaseToken, }: CoinflowFraudProtectionTokens): string | null;
10
+ private static base64UrlEncode;
11
+ }
@@ -35,6 +35,11 @@ export declare enum SettlementType {
35
35
  USDC = "USDC",
36
36
  Bank = "Bank"
37
37
  }
38
+ export type MerchantIdOrCheckoutJwt = {
39
+ checkoutJwt: string;
40
+ } | {
41
+ merchantId: string;
42
+ };
38
43
  /**
39
44
  * Configuration for a single custom pay-in fee line item.
40
45
  * Pass via the `customPayInFees` field on `/checkout/link` or `/checkout/jwt-token`.
@@ -139,7 +144,7 @@ export interface SplitNameCustomerInfo extends BaseCustomerInfo {
139
144
  }
140
145
  export type CustomerInfo = SplitNameCustomerInfo | NameCustomerInfo;
141
146
  /** Coinflow Types **/
142
- export type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'stellar' | 'monad' | 'tempo' | 'user';
147
+ export type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo' | 'user';
143
148
  export type CoinflowEnvs = 'prod' | 'staging' | 'sandbox' | 'local';
144
149
  export interface CoinflowTypes {
145
150
  merchantId: string;
@@ -238,12 +243,6 @@ export type EthWallet = {
238
243
  }>;
239
244
  signMessage: (message: string) => Promise<string>;
240
245
  };
241
- export interface StellarWallet {
242
- address: string | null;
243
- sendTransaction: (base64Xdr: string) => Promise<string>;
244
- signTransaction: (base64Xdr: string) => Promise<string>;
245
- signMessage: (message: string) => Promise<string>;
246
- }
247
246
  /** History **/
248
247
  export interface CoinflowSolanaHistoryProps extends CoinflowTypes {
249
248
  wallet: SolanaWallet;
@@ -270,17 +269,13 @@ export interface CoinflowBaseHistoryProps extends CoinflowEvmHistoryProps {
270
269
  export interface CoinflowArbitrumHistoryProps extends CoinflowEvmHistoryProps {
271
270
  blockchain: 'arbitrum';
272
271
  }
273
- export interface CoinflowStellarHistoryProps extends CoinflowTypes {
274
- wallet: StellarWallet;
275
- blockchain: 'stellar';
276
- }
277
272
  export interface CoinflowMonadHistoryProps extends CoinflowEvmHistoryProps {
278
273
  blockchain: 'monad';
279
274
  }
280
275
  export interface CoinflowTempoHistoryProps extends CoinflowEvmHistoryProps {
281
276
  blockchain: 'tempo';
282
277
  }
283
- export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps | CoinflowStellarHistoryProps | CoinflowMonadHistoryProps | CoinflowTempoHistoryProps | CoinflowSessionKeyHistoryProps;
278
+ export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps | CoinflowMonadHistoryProps | CoinflowTempoHistoryProps | CoinflowSessionKeyHistoryProps;
284
279
  type Bytes = ArrayLike<number>;
285
280
  type BytesLike = Bytes | string;
286
281
  /**
@@ -303,6 +298,11 @@ export declare enum ThreeDsChallengePreference {
303
298
  Frictionless = "Frictionless",
304
299
  Challenge = "Challenge"
305
300
  }
301
+ export declare enum CardFunding {
302
+ debit = "debit",
303
+ credit = "credit",
304
+ prepaid = "prepaid"
305
+ }
306
306
  export declare enum PaymentMethods {
307
307
  card = "card",
308
308
  ach = "ach",
@@ -312,6 +312,7 @@ export declare enum PaymentMethods {
312
312
  usdc = "usdc",
313
313
  googlePay = "googlePay",
314
314
  applePay = "applePay",
315
+ paze = "paze",
315
316
  credits = "credits",
316
317
  crypto = "crypto",
317
318
  wire = "wire",
@@ -359,12 +360,12 @@ export interface CoinflowCommonPaymentIntentProps extends Omit<CoinflowTypes, 'b
359
360
  * End-user wallet used for wallet-authenticated payment-intent checkout flows.
360
361
  *
361
362
  * Required when the target payment intent type depends on a customer wallet
362
- * (for example: EVM/Solana/Stellar transaction intents or credits/USDC signing flows).
363
+ * (for example: EVM/Solana transaction intents or credits/USDC signing flows).
363
364
  *
364
365
  * The wallet implementation must match the active blockchain.
365
366
  */
366
367
  wallet?: WalletTypes;
367
- blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'stellar' | 'monad';
368
+ blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad';
368
369
  }
369
370
  export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
370
371
  subtotal?: Subtotal;
@@ -398,6 +399,8 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
398
399
  * The payment methods displayed on the UI. If omitted, all available payment methods will be displayed.
399
400
  */
400
401
  allowedPaymentMethods?: PaymentMethods[];
402
+ /** Apple Pay sheet filter only (not enforced); `prepaid` shows as debit and `cardSettings.debitOnly` wins. */
403
+ allowedCardFunding?: CardFunding[];
401
404
  customerInfo?: CustomerInfo;
402
405
  settlementType?: SettlementType;
403
406
  authOnly?: boolean;
@@ -509,18 +512,13 @@ export interface CoinflowBasePurchaseProps extends CoinflowEvmPurchaseProps {
509
512
  export interface CoinflowArbitrumPurchaseProps extends CoinflowEvmPurchaseProps {
510
513
  blockchain: 'arbitrum';
511
514
  }
512
- export interface CoinflowStellarPurchaseProps extends CoinflowCommonPurchaseProps {
513
- wallet: StellarWallet;
514
- transaction?: string;
515
- blockchain: 'stellar';
516
- }
517
515
  export interface CoinflowMonadPurchaseProps extends CoinflowEvmPurchaseProps {
518
516
  blockchain: 'monad';
519
517
  }
520
518
  export interface CoinflowTempoPurchaseProps extends CoinflowEvmPurchaseProps {
521
519
  blockchain: 'tempo';
522
520
  }
523
- export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps | CoinflowStellarPurchaseProps | CoinflowMonadPurchaseProps | CoinflowTempoPurchaseProps;
521
+ export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps | CoinflowMonadPurchaseProps | CoinflowTempoPurchaseProps;
524
522
  /** Withdraw **/
525
523
  export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
526
524
  onSuccess?: OnSuccessMethod;
@@ -532,7 +530,7 @@ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
532
530
  bankAccountLinkRedirect?: string;
533
531
  additionalWallets?: {
534
532
  wallet: string;
535
- blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo' | 'stellar';
533
+ blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo';
536
534
  }[];
537
535
  lockAmount?: boolean;
538
536
  transactionSigner?: string;
@@ -574,7 +572,7 @@ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
574
572
  */
575
573
  appReturnUrl?: string;
576
574
  }
577
- export type WalletTypes = SolanaWallet | EthWallet | StellarWallet;
575
+ export type WalletTypes = SolanaWallet | EthWallet;
578
576
  export interface SolanaWalletProps {
579
577
  wallet: SolanaWallet;
580
578
  connection: Connection;
@@ -603,11 +601,6 @@ export interface ArbitrumWalletProps {
603
601
  blockchain: 'arbitrum';
604
602
  }
605
603
  export type CoinflowArbitrumWithdrawProps = CoinflowEvmWithdrawProps & ArbitrumWalletProps;
606
- export interface StellarWalletProps {
607
- wallet: StellarWallet;
608
- blockchain: 'stellar';
609
- }
610
- export type CoinflowStellarWithdrawProps = CoinflowCommonWithdrawProps & StellarWalletProps;
611
604
  export interface MonadWalletProps {
612
605
  blockchain: 'monad';
613
606
  }
@@ -616,7 +609,7 @@ export interface TempoWalletProps {
616
609
  blockchain: 'tempo';
617
610
  }
618
611
  export type CoinflowTempoWithdrawProps = CoinflowEvmWithdrawProps & TempoWalletProps;
619
- export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps | CoinflowStellarWithdrawProps | CoinflowMonadWithdrawProps | CoinflowTempoWithdrawProps;
612
+ export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps | CoinflowMonadWithdrawProps | CoinflowTempoWithdrawProps;
620
613
  export interface CommonEvmRedeem {
621
614
  /**
622
615
  * Whether the UI should wait
@@ -759,7 +752,7 @@ export interface CoinflowBankLinkProps extends Pick<CoinflowTypes, 'merchantId'
759
752
  */
760
753
  onAccountLinkError?: OnAccountLinkErrorMethod | undefined;
761
754
  }
762
- export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'chargebackProtectionAccountType' | 'webhookInfo' | 'subtotal' | 'useNativeSubtotal' | 'presentment' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'allowedPaymentMethods' | 'accountFundingTransaction' | 'partialUsdcChecked' | 'isZeroAuthorization' | 'zeroAuthorizationConfig' | 'depositAmounts'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'amount' | 'lockAmount' | 'lockDefaultToken' | 'origins' | 'allowedWithdrawSpeeds'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey'>, WithGeo {
755
+ export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'chargebackProtectionAccountType' | 'webhookInfo' | 'subtotal' | 'useNativeSubtotal' | 'presentment' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'allowedPaymentMethods' | 'allowedCardFunding' | 'accountFundingTransaction' | 'partialUsdcChecked' | 'isZeroAuthorization' | 'zeroAuthorizationConfig' | 'depositAmounts'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'amount' | 'lockAmount' | 'lockDefaultToken' | 'origins' | 'allowedWithdrawSpeeds'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey'>, WithGeo {
763
756
  walletPubkey: string | null | undefined;
764
757
  sessionKey?: string;
765
758
  route: string;
@@ -809,7 +802,7 @@ export interface CoinflowIntentsIFrameProps {
809
802
  origins?: string[];
810
803
  deviceId?: string;
811
804
  walletPubkey?: string | undefined | null;
812
- blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'stellar' | 'monad';
805
+ blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad';
813
806
  }
814
807
  export declare enum CardType {
815
808
  VISA = "VISA",
@@ -12,7 +12,7 @@ export declare class CoinflowUtils {
12
12
  env?: CoinflowEnvs;
13
13
  }): boolean;
14
14
  static getCoinflowApiUrl(env?: CoinflowEnvs): string;
15
- static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, useNativeSubtotal, presentment, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, amount, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, appReturnUrl, depositAmounts, ownerOverride, bridgeId, bankLinkOnly, baseUrl, }: CoinflowIFrameProps & {
15
+ static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, useNativeSubtotal, presentment, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, amount, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, allowedCardFunding, accountFundingTransaction, partialUsdcChecked, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, appReturnUrl, depositAmounts, ownerOverride, bridgeId, bankLinkOnly, baseUrl, }: CoinflowIFrameProps & {
16
16
  baseUrl?: string;
17
17
  } & WithGeo): string;
18
18
  static getCoinflowIntentsUrl({ baseUrl, route, color, theme, env, origins, deviceId, merchantCss, loaderBackground, handleHeightChangeId, }: CoinflowIntentsIFrameProps & {
@@ -25,7 +25,6 @@ export declare class CoinflowUtils {
25
25
  polygon: T;
26
26
  base: T;
27
27
  arbitrum: T;
28
- stellar: T;
29
28
  monad: T;
30
29
  tempo: T;
31
30
  user: T;
@@ -12,6 +12,8 @@ export declare const CARD_FIELD_ERROR_MESSAGES: {
12
12
  readonly expiration: "Expiration is invalid. Please double check information.";
13
13
  readonly cvv: "CVV is invalid. Please double check information.";
14
14
  readonly cvvEmpty: "Please enter your CVV to proceed.";
15
+ readonly invalidCardToken: "Card token is invalid. Please add a new card";
16
+ readonly cardEntryUnavailable: "Card entry is unavailable. Please re-enter your card details.";
15
17
  };
16
18
  export declare function getCardFieldValidationError({ cardError, expirationError, cvvError, cvvEmpty, isCvvOnly, }: {
17
19
  cardError: boolean;
@@ -2,12 +2,11 @@ export * from './CoinflowTypes';
2
2
  export * from './CoinflowUtils';
3
3
  export * from './CoinflowLibMessageHandlers';
4
4
  export * from './EventBus';
5
- export * from './card-form/TokenEx';
6
- export * from './card-form/tokenexHelpers';
7
5
  export * from './card-form/cardEntryLayout';
8
6
  export * from './card-form/cardFormSkeleton';
9
7
  export * from './card-form/cardFieldValidationError';
10
8
  export * from './types/Subtotal';
9
+ export * from './types/L2L3Data';
11
10
  export * from './types/AnyObject';
12
11
  export * from './types/giftCardCartItem';
13
12
  export * from './types/nftCartItem';
@@ -17,6 +16,7 @@ export * from './types/flightTicketCartItem';
17
16
  export * from './types/flightUpgradeCartItem';
18
17
  export * from './types/lodgingCartItem';
19
18
  export * from './CoinflowPurchaseProtectionHeaders';
19
+ export * from './CoinflowFraudProtectionHeader';
20
20
  export * from './CoinflowProtectionInit';
21
21
  export { default as getForterToken, captureForterToken, awaitForterToken, } from './Forter';
22
22
  export * from './plaidLinkTokenCache';
@@ -0,0 +1,82 @@
1
+ import { Cents } from './Subtotal';
2
+ export type L2L3Tax = {
3
+ taxExempt: false;
4
+ salesTax: Cents;
5
+ } | {
6
+ taxExempt: true;
7
+ };
8
+ export type L2L3Level2 = L2L3Tax & {
9
+ /**
10
+ * @minLength 1
11
+ * @maxLength 15
12
+ * @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
13
+ */
14
+ invoiceReference?: string;
15
+ };
16
+ export interface L2L3Item {
17
+ /**
18
+ * @minLength 1
19
+ * @maxLength 26
20
+ * @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
21
+ */
22
+ name: string;
23
+ /**
24
+ * @minLength 1
25
+ * @maxLength 12
26
+ * @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
27
+ */
28
+ productCode: string;
29
+ /**
30
+ * @isInt
31
+ * @minimum 1
32
+ */
33
+ quantity: number;
34
+ unitCost: Cents;
35
+ /**
36
+ * @minLength 1
37
+ * @maxLength 8
38
+ * @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
39
+ */
40
+ unitOfMeasure: string;
41
+ /**
42
+ * NIGP commodity code
43
+ * @minLength 1
44
+ * @maxLength 12
45
+ * @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
46
+ */
47
+ commodityCode: string;
48
+ totalTaxAmount: Cents;
49
+ totalDiscountAmount: Cents;
50
+ totalAmountNoTax: Cents;
51
+ totalAmount: Cents;
52
+ }
53
+ export interface L2L3Level3 {
54
+ discountAmount: Cents;
55
+ shippingAmount: Cents;
56
+ dutyAmount: Cents;
57
+ shipping: {
58
+ /**
59
+ * @minLength 1
60
+ * @maxLength 10
61
+ * @pattern ^[a-zA-Z0-9\x20]+$
62
+ */
63
+ postalCode: string;
64
+ /**
65
+ * @pattern ^[A-Z]{2}$
66
+ */
67
+ countryCode: string;
68
+ };
69
+ /**
70
+ * @minItems 1
71
+ * @maxItems 99
72
+ */
73
+ items: L2L3Item[];
74
+ }
75
+ export type L2L3Data = {
76
+ level: 'level2';
77
+ level2: L2L3Level2;
78
+ } | {
79
+ level: 'level3';
80
+ level2: L2L3Level2;
81
+ level3: L2L3Level3;
82
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coinflowlabs/vue",
3
3
  "private": false,
4
- "version": "1.19.2",
4
+ "version": "2.0.1-0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -1,17 +0,0 @@
1
- import { CoinflowCardNumberInputProps, CoinflowCardTokenResponse, MerchantIdOrCheckoutJwt } from '../../lib/common';
2
- import { PropType } from 'vue';
3
- declare function getToken(): Promise<CoinflowCardTokenResponse>;
4
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
- args: {
6
- type: PropType<CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt>;
7
- required: true;
8
- };
9
- }>, {
10
- getToken: typeof getToken;
11
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
- args: {
13
- type: PropType<CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt>;
14
- required: true;
15
- };
16
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
17
- export default _default;
@@ -1,17 +0,0 @@
1
- import { CoinflowCardNumberInputProps, CoinflowCardTokenResponse, MerchantIdOrCheckoutJwt } from '../../lib/common';
2
- import { PropType } from 'vue';
3
- declare function getToken(): Promise<CoinflowCardTokenResponse>;
4
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
- args: {
6
- type: PropType<CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt>;
7
- required: true;
8
- };
9
- }>, {
10
- getToken: typeof getToken;
11
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
- args: {
13
- type: PropType<CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt>;
14
- required: true;
15
- };
16
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
17
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;