@coinflowlabs/react-native 4.2.3 → 4.2.5-SNAPSHOT1

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.
Files changed (64) hide show
  1. package/build/CoinflowWebView.js +9 -3
  2. package/build/CoinflowWebView.js.map +1 -1
  3. package/package.json +1 -1
  4. package/build/CoinflowPurchase.d.ts +0 -4
  5. package/build/CoinflowPurchase.js +0 -20
  6. package/build/CoinflowPurchase.js.map +0 -1
  7. package/build/CoinflowPurchaseHistory.d.ts +0 -4
  8. package/build/CoinflowPurchaseHistory.js +0 -16
  9. package/build/CoinflowPurchaseHistory.js.map +0 -1
  10. package/build/CoinflowSkeleton.d.ts +0 -6
  11. package/build/CoinflowSkeleton.js +0 -96
  12. package/build/CoinflowSkeleton.js.map +0 -1
  13. package/build/CoinflowWebView.d.ts +0 -17
  14. package/build/CoinflowWithdraw.d.ts +0 -4
  15. package/build/CoinflowWithdraw.js +0 -16
  16. package/build/CoinflowWithdraw.js.map +0 -1
  17. package/build/CoinflowWithdrawHistory.d.ts +0 -4
  18. package/build/CoinflowWithdrawHistory.js +0 -16
  19. package/build/CoinflowWithdrawHistory.js.map +0 -1
  20. package/build/common/CoinflowLibMessageHandlers.d.ts +0 -35
  21. package/build/common/CoinflowLibMessageHandlers.js +0 -258
  22. package/build/common/CoinflowLibMessageHandlers.js.map +0 -1
  23. package/build/common/CoinflowTypes.d.ts +0 -423
  24. package/build/common/CoinflowTypes.js +0 -39
  25. package/build/common/CoinflowTypes.js.map +0 -1
  26. package/build/common/CoinflowUtils.d.ts +0 -24
  27. package/build/common/CoinflowUtils.js +0 -244
  28. package/build/common/CoinflowUtils.js.map +0 -1
  29. package/build/common/SolanaPeerDeps.d.ts +0 -5
  30. package/build/common/SolanaPeerDeps.js +0 -17
  31. package/build/common/SolanaPeerDeps.js.map +0 -1
  32. package/build/common/card-form/TokenEx.d.ts +0 -171
  33. package/build/common/card-form/TokenEx.js +0 -12
  34. package/build/common/card-form/TokenEx.js.map +0 -1
  35. package/build/common/card-form/tokenexHelpers.d.ts +0 -43
  36. package/build/common/card-form/tokenexHelpers.js +0 -293
  37. package/build/common/card-form/tokenexHelpers.js.map +0 -1
  38. package/build/common/index.d.ts +0 -10
  39. package/build/common/index.js +0 -11
  40. package/build/common/index.js.map +0 -1
  41. package/build/common/types/AnyObject.d.ts +0 -5
  42. package/build/common/types/AnyObject.js +0 -2
  43. package/build/common/types/AnyObject.js.map +0 -1
  44. package/build/common/types/CartitemCommon.d.ts +0 -163
  45. package/build/common/types/CartitemCommon.js +0 -2
  46. package/build/common/types/CartitemCommon.js.map +0 -1
  47. package/build/common/types/Subtotal.d.ts +0 -172
  48. package/build/common/types/Subtotal.js +0 -276
  49. package/build/common/types/Subtotal.js.map +0 -1
  50. package/build/common/types/cryptoCartItem.d.ts +0 -62
  51. package/build/common/types/cryptoCartItem.js +0 -2
  52. package/build/common/types/cryptoCartItem.js.map +0 -1
  53. package/build/common/types/giftCardCartItem.d.ts +0 -58
  54. package/build/common/types/giftCardCartItem.js +0 -2
  55. package/build/common/types/giftCardCartItem.js.map +0 -1
  56. package/build/common/types/moneyTopUpCartItem.d.ts +0 -44
  57. package/build/common/types/moneyTopUpCartItem.js +0 -2
  58. package/build/common/types/moneyTopUpCartItem.js.map +0 -1
  59. package/build/common/types/nftCartItem.d.ts +0 -99
  60. package/build/common/types/nftCartItem.js +0 -44
  61. package/build/common/types/nftCartItem.js.map +0 -1
  62. package/build/index.d.ts +0 -6
  63. package/build/index.js +0 -7
  64. package/build/index.js.map +0 -1
@@ -1,423 +0,0 @@
1
- import type { Connection, VersionedTransaction, PublicKey, Signer, Transaction } from '@solana/web3.js';
2
- import { Currency, Subtotal } from './types/Subtotal';
3
- import { GiftCardCartItem } from './types/giftCardCartItem';
4
- import { nftCartItem } from './types/nftCartItem';
5
- import { CryptoCartItem } from './types/cryptoCartItem';
6
- import { MoneyTopUpCartItem } from './types/moneyTopUpCartItem';
7
- export declare enum SettlementType {
8
- Credits = "Credits",
9
- USDC = "USDC",
10
- Bank = "Bank"
11
- }
12
- export declare enum MerchantStyle {
13
- Rounded = "rounded",
14
- Sharp = "sharp",
15
- Pill = "pill"
16
- }
17
- export type MerchantTheme = {
18
- primary?: string;
19
- background?: string;
20
- backgroundAccent?: string;
21
- backgroundAccent2?: string;
22
- textColor?: string;
23
- textColorAccent?: string;
24
- textColorAction?: string;
25
- ctaColor?: string;
26
- font?: string;
27
- style?: MerchantStyle;
28
- };
29
- interface BaseCustomerInfo {
30
- verificationId?: string;
31
- displayName?: string;
32
- address?: string;
33
- city?: string;
34
- state?: string;
35
- zip?: string;
36
- country?: string;
37
- ip?: string;
38
- lat?: string;
39
- lng?: string;
40
- /**
41
- * Date of birth in YYYY-MM-DD format
42
- */
43
- dob?: string;
44
- }
45
- export interface NameCustomerInfo extends BaseCustomerInfo {
46
- /**
47
- * @hidden
48
- */
49
- name?: string;
50
- }
51
- export interface SplitNameCustomerInfo extends BaseCustomerInfo {
52
- /**
53
- * @minLength 1
54
- */
55
- firstName: string;
56
- /**
57
- * @minLength 1
58
- */
59
- lastName: string;
60
- }
61
- export type CustomerInfo = SplitNameCustomerInfo | NameCustomerInfo;
62
- /** Coinflow Types **/
63
- export type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'user';
64
- export type CoinflowEnvs = 'prod' | 'staging' | 'staging-live' | 'sandbox' | 'local';
65
- export interface CoinflowTypes {
66
- merchantId: string;
67
- env?: CoinflowEnvs;
68
- loaderBackground?: string;
69
- blockchain?: CoinflowBlockchain | undefined;
70
- handleHeightChange?: (height: string) => void;
71
- theme?: MerchantTheme;
72
- }
73
- export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
74
- export type OnSuccessMethod = (args: {
75
- paymentId: string;
76
- hash?: string | undefined;
77
- } | string) => void | Promise<void>;
78
- export type AuthDeclinedWalletCallInfo = {
79
- title: string;
80
- code: string;
81
- action: string;
82
- message: string;
83
- total: string;
84
- };
85
- export type OnAuthDeclinedMethod = (args: AuthDeclinedWalletCallInfo) => void | Promise<void>;
86
- /** Wallets **/
87
- export interface SolanaWallet {
88
- publicKey: PublicKey | null;
89
- signTransaction?: <T extends Transaction | VersionedTransaction>(transaction: T) => Promise<T>;
90
- sendTransaction: <T extends Transaction | VersionedTransaction>(transaction: T) => Promise<string>;
91
- signMessage?: (message: Uint8Array) => Promise<Uint8Array>;
92
- }
93
- type AccessList = Array<{
94
- address: string;
95
- storageKeys: Array<string>;
96
- }>;
97
- type AccessListish = AccessList | Array<[string, Array<string>]> | Record<string, Array<string>>;
98
- export type EthWallet = {
99
- address: string | null | undefined;
100
- sendTransaction: (transaction: {
101
- to: string;
102
- from?: string;
103
- nonce?: Bytes | bigint | string | number;
104
- gasLimit?: Bytes | bigint | string | number;
105
- gasPrice?: Bytes | bigint | string | number;
106
- data?: BytesLike;
107
- value?: Bytes | bigint | string | number;
108
- chainId?: number;
109
- type?: number;
110
- accessList?: AccessListish;
111
- maxPriorityFeePerGas?: Bytes | bigint | string | number;
112
- maxFeePerGas?: Bytes | bigint | string | number;
113
- customData?: Record<string, any>;
114
- ccipReadEnabled?: boolean;
115
- }) => Promise<{
116
- hash: string;
117
- }>;
118
- signMessage: (message: string) => Promise<string>;
119
- };
120
- /** History **/
121
- export interface CoinflowSolanaHistoryProps extends CoinflowTypes {
122
- wallet: SolanaWallet;
123
- connection: Connection;
124
- blockchain: 'solana';
125
- }
126
- export interface CoinflowSessionKeyHistoryProps extends CoinflowTypes {
127
- sessionKey: string;
128
- blockchain?: undefined;
129
- }
130
- export interface CoinflowEvmHistoryProps extends CoinflowTypes {
131
- wallet: EthWallet;
132
- blockchain: 'eth' | 'polygon' | 'base' | 'arbitrum';
133
- }
134
- export interface CoinflowEthHistoryProps extends CoinflowEvmHistoryProps {
135
- blockchain: 'eth';
136
- }
137
- export interface CoinflowPolygonHistoryProps extends CoinflowEvmHistoryProps {
138
- blockchain: 'polygon';
139
- }
140
- export interface CoinflowBaseHistoryProps extends CoinflowEvmHistoryProps {
141
- blockchain: 'base';
142
- }
143
- export interface CoinflowArbitrumHistoryProps extends CoinflowEvmHistoryProps {
144
- blockchain: 'arbitrum';
145
- }
146
- export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps | CoinflowSessionKeyHistoryProps;
147
- type Bytes = ArrayLike<number>;
148
- type BytesLike = Bytes | string;
149
- /** Purchase **/
150
- export type CartClassOmitted = CartItemClassOmitted[];
151
- export type ChargebackProtectionData = CartClassOmitted;
152
- export type CartItemClassOmitted = NftCartItemClassOmitted | Omit<GiftCardCartItem, 'listPrice'> | CryptoCartItem | MoneyTopUpCartItem;
153
- export type ChargebackProtectionItem = CartItemClassOmitted;
154
- export type NftCartItemClassOmitted = Omit<nftCartItem, 'listPrice' | 'sellingPrice' | 'itemClass'>;
155
- export type Cart = CartItem[];
156
- export type CartItem = Omit<nftCartItem, 'listPrice' | 'sellingPrice'> | Omit<GiftCardCartItem, 'listPrice'> | CryptoCartItem | MoneyTopUpCartItem;
157
- export declare enum ThreeDsChallengePreference {
158
- NoPreference = "NoPreference",
159
- Frictionless = "Frictionless",
160
- Challenge = "Challenge"
161
- }
162
- export declare enum PaymentMethods {
163
- card = "card",
164
- ach = "ach",
165
- fasterPayments = "fasterPayments",
166
- sepa = "sepa",
167
- pix = "pix",
168
- usdc = "usdc",
169
- googlePay = "googlePay",
170
- applePay = "applePay",
171
- credits = "credits",
172
- crypto = "crypto"
173
- }
174
- export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
175
- subtotal?: Subtotal;
176
- presentment?: Currency;
177
- onSuccess?: OnSuccessMethod;
178
- onAuthDeclined?: OnAuthDeclinedMethod;
179
- webhookInfo?: {
180
- [key: string]: any;
181
- };
182
- email?: string;
183
- chargebackProtectionData?: ChargebackProtectionData;
184
- planCode?: string;
185
- /**
186
- * The payment methods displayed on the UI. If omitted, all available payment methods will be displayed.
187
- */
188
- allowedPaymentMethods?: PaymentMethods[];
189
- customerInfo?: CustomerInfo;
190
- settlementType?: SettlementType;
191
- authOnly?: boolean;
192
- /**
193
- * The DeviceID gotten from the Coinflow SDK:
194
- * https://docs.coinflow.cash/docs/implement-chargeback-protection#how-to-add-chargeback-protection
195
- *
196
- * window?.nSureSDK?.getDeviceId()
197
- */
198
- deviceId?: string;
199
- jwtToken?: string;
200
- /**
201
- * Your company email address that the customer can contact.
202
- */
203
- supportEmail?: string;
204
- /**
205
- * If rendering the Coinflow component within multiple nested iframes, all ancestors in the chain must be provided as a comma-separated list.
206
- *
207
- * Example:
208
- * Primary origin that will be interacting with the Coinflow iFrame: foo.com
209
- * Subsequent origins that will render foo.com: bar.com
210
- * The origin array would then be: [https://foo.com,https://bar.com]
211
- */
212
- origins?: string[];
213
- threeDsChallengePreference?: ThreeDsChallengePreference;
214
- destinationAuthKey?: string;
215
- }
216
- export interface CoinflowSolanaPurchaseProps extends CoinflowCommonPurchaseProps {
217
- wallet: SolanaWallet;
218
- transaction?: Transaction | VersionedTransaction;
219
- partialSigners?: Signer[];
220
- debugTx?: boolean;
221
- connection: Connection;
222
- blockchain: 'solana';
223
- rent?: {
224
- lamports: string | number;
225
- };
226
- nativeSolToConvert?: {
227
- lamports: string | number;
228
- };
229
- }
230
- export interface CoinflowSessionKeyPurchaseProps extends CoinflowCommonPurchaseProps {
231
- sessionKey: string;
232
- wallet?: undefined;
233
- blockchain?: CoinflowBlockchain | undefined;
234
- }
235
- export interface CoinflowEvmPurchaseProps extends CoinflowCommonPurchaseProps {
236
- transaction?: EvmTransactionData;
237
- wallet: EthWallet;
238
- }
239
- export interface CoinflowPolygonPurchaseProps extends CoinflowEvmPurchaseProps {
240
- blockchain: 'polygon';
241
- }
242
- export interface CoinflowEthPurchaseProps extends CoinflowEvmPurchaseProps {
243
- blockchain: 'eth';
244
- }
245
- export interface CoinflowBasePurchaseProps extends CoinflowEvmPurchaseProps {
246
- blockchain: 'base';
247
- }
248
- export interface CoinflowArbitrumPurchaseProps extends CoinflowEvmPurchaseProps {
249
- blockchain: 'arbitrum';
250
- }
251
- export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps;
252
- /** Withdraw **/
253
- export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
254
- onSuccess?: OnSuccessMethod;
255
- tokens?: string[];
256
- lockDefaultToken?: boolean;
257
- amount?: number;
258
- email?: string;
259
- bankAccountLinkRedirect?: string;
260
- additionalWallets?: {
261
- wallet: string;
262
- blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum';
263
- }[];
264
- lockAmount?: boolean;
265
- transactionSigner?: string;
266
- /**
267
- * If rendering the Coinflow component within multiple nested iframes, all ancestors in the chain must be provided as a comma-separated list.
268
- *
269
- * Example:
270
- * Primary origin that will be interacting with the Coinflow iFrame: foo.com
271
- * Subsequent origins that will render foo.com: bar.com
272
- * The origin array would then be: [https://foo.com,https://bar.com]
273
- */
274
- origins?: string[];
275
- /**
276
- * If the withdrawer is authenticated with a sessionKey pass it here.
277
- */
278
- sessionKey?: string;
279
- }
280
- export type WalletTypes = SolanaWallet | EthWallet;
281
- export interface SolanaWalletProps {
282
- wallet: SolanaWallet;
283
- connection: Connection;
284
- blockchain: 'solana';
285
- }
286
- export type CoinflowSolanaWithdrawProps = CoinflowCommonWithdrawProps & SolanaWalletProps;
287
- interface EvmWalletProps {
288
- wallet: EthWallet;
289
- usePermit?: boolean;
290
- }
291
- type CoinflowEvmWithdrawProps = CoinflowCommonWithdrawProps & EvmWalletProps;
292
- export interface EthWalletProps {
293
- blockchain: 'eth';
294
- }
295
- export type CoinflowEthWithdrawProps = CoinflowEvmWithdrawProps & EthWalletProps;
296
- export interface PolygonWalletProps {
297
- blockchain: 'polygon';
298
- }
299
- export type CoinflowPolygonWithdrawProps = CoinflowEvmWithdrawProps & PolygonWalletProps;
300
- export interface BaseWalletProps {
301
- blockchain: 'base';
302
- }
303
- export type CoinflowBaseWithdrawProps = CoinflowEvmWithdrawProps & BaseWalletProps;
304
- export interface ArbitrumWalletProps {
305
- blockchain: 'arbitrum';
306
- }
307
- export type CoinflowArbitrumWithdrawProps = CoinflowEvmWithdrawProps & ArbitrumWalletProps;
308
- export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps;
309
- export interface CommonEvmRedeem {
310
- /**
311
- * Whether the UI should wait
312
- * for the transaction to be sent and
313
- * the hash to be returned.
314
- */
315
- waitForHash?: boolean;
316
- }
317
- export interface NormalRedeem extends CommonEvmRedeem {
318
- transaction: {
319
- to: string;
320
- data: string;
321
- };
322
- }
323
- export interface KnownTokenIdRedeem extends NormalRedeem {
324
- /**
325
- * @minLength 42 Please provide a valid EVM Public Key (42 Characters Long)
326
- * @maxLength 42 Please provide a valid EVM Public Key (42 Characters Long)
327
- */
328
- nftContract: string;
329
- /**
330
- * @minLength 1 Please provide a valid Nft Id
331
- */
332
- nftId: string;
333
- }
334
- export interface SafeMintRedeem extends NormalRedeem {
335
- type: 'safeMint';
336
- nftContract?: string;
337
- }
338
- export interface ReturnedTokenIdRedeem extends NormalRedeem {
339
- type: 'returned';
340
- nftContract?: string;
341
- }
342
- /** @deprecated Reservoir decided to sunset Reservoir NFT, including their API and associated services, effective October 15, 2025. */
343
- export type ReservoirNftIdItem = Omit<KnownTokenIdRedeem, keyof NormalRedeem>;
344
- /** @deprecated Reservoir decided to sunset Reservoir NFT, including their API and associated services, effective October 15, 2025. */
345
- export interface ReservoirOrderIdItem {
346
- /** @deprecated Reservoir decided to sunset Reservoir NFT, including their API and associated services, effective October 15, 2025. */
347
- orderId: string;
348
- }
349
- /** @deprecated Reservoir decided to sunset Reservoir NFT, including their API and associated services, effective October 15, 2025. */
350
- export type ReservoirItem = ReservoirNftIdItem | ReservoirOrderIdItem;
351
- /** @deprecated Reservoir decided to sunset Reservoir NFT, including their API and associated services, effective October 15, 2025. */
352
- export type ReservoirItems = ReservoirItem | ReservoirItem[];
353
- /** @deprecated Reservoir decided to sunset Reservoir NFT, including their API and associated services, effective October 15, 2025. */
354
- export interface ReservoirRedeem extends CommonEvmRedeem {
355
- /** @deprecated Reservoir decided to sunset Reservoir NFT, including their API and associated services, effective October 15, 2025. */
356
- type: 'reservoir';
357
- /** @deprecated Reservoir decided to sunset Reservoir NFT, including their API and associated services, effective October 15, 2025. */
358
- items: ReservoirItems;
359
- /** @deprecated Reservoir decided to sunset Reservoir NFT, including their API and associated services, effective October 15, 2025. */
360
- taker?: string;
361
- }
362
- /** @deprecated */
363
- export interface TokenRedeem extends CommonEvmRedeem {
364
- /** @deprecated */
365
- type: 'token';
366
- /** @deprecated */
367
- destination: string;
368
- }
369
- export interface DecentRedeem extends CommonEvmRedeem {
370
- type: 'decent';
371
- /**
372
- * ID of the destination chain you will be using
373
- * Find your chain ID here: https://chainlist.org/
374
- */
375
- dstChainId: number;
376
- /**
377
- * Address on that chain of the token you will be receiving
378
- */
379
- dstToken: string;
380
- /**
381
- * The contract address which will be called on the destination chain
382
- */
383
- contractAddress: string;
384
- contractData: string;
385
- /**
386
- * Amount of the token on the destination chain you will be receiving
387
- */
388
- cost: {
389
- /**
390
- * This is the raw amount of the token
391
- * ex: 50000000000000n
392
- */
393
- amount: string;
394
- /**
395
- * Whether or not the token is the native token for the chain (ex: Ethereum - ETH, Polygon - POL).
396
- * If native dstToken should be the 0 address (0x00...)
397
- */
398
- isNative: boolean;
399
- };
400
- }
401
- export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem | DecentRedeem | ReservoirRedeem;
402
- export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'subtotal' | 'presentment' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'supportEmail' | 'allowedPaymentMethods'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey'> {
403
- walletPubkey: string | null | undefined;
404
- sessionKey?: string;
405
- route: string;
406
- routePrefix?: string;
407
- transaction?: string;
408
- tokens?: string[] | PublicKey[];
409
- merchantCss?: string;
410
- color?: 'white' | 'black';
411
- disableApplePay?: boolean;
412
- disableGooglePay?: boolean;
413
- theme?: MerchantTheme;
414
- usePermit?: boolean;
415
- handleHeightChangeId: string | number;
416
- }
417
- export declare enum CardType {
418
- VISA = "VISA",
419
- MASTERCARD = "MSTR",
420
- AMEX = "AMEX",
421
- DISCOVER = "DISC"
422
- }
423
- export {};
@@ -1,39 +0,0 @@
1
- export var SettlementType;
2
- (function (SettlementType) {
3
- SettlementType["Credits"] = "Credits";
4
- SettlementType["USDC"] = "USDC";
5
- SettlementType["Bank"] = "Bank";
6
- })(SettlementType || (SettlementType = {}));
7
- export var MerchantStyle;
8
- (function (MerchantStyle) {
9
- MerchantStyle["Rounded"] = "rounded";
10
- MerchantStyle["Sharp"] = "sharp";
11
- MerchantStyle["Pill"] = "pill";
12
- })(MerchantStyle || (MerchantStyle = {}));
13
- export var ThreeDsChallengePreference;
14
- (function (ThreeDsChallengePreference) {
15
- ThreeDsChallengePreference["NoPreference"] = "NoPreference";
16
- ThreeDsChallengePreference["Frictionless"] = "Frictionless";
17
- ThreeDsChallengePreference["Challenge"] = "Challenge";
18
- })(ThreeDsChallengePreference || (ThreeDsChallengePreference = {}));
19
- export var PaymentMethods;
20
- (function (PaymentMethods) {
21
- PaymentMethods["card"] = "card";
22
- PaymentMethods["ach"] = "ach";
23
- PaymentMethods["fasterPayments"] = "fasterPayments";
24
- PaymentMethods["sepa"] = "sepa";
25
- PaymentMethods["pix"] = "pix";
26
- PaymentMethods["usdc"] = "usdc";
27
- PaymentMethods["googlePay"] = "googlePay";
28
- PaymentMethods["applePay"] = "applePay";
29
- PaymentMethods["credits"] = "credits";
30
- PaymentMethods["crypto"] = "crypto";
31
- })(PaymentMethods || (PaymentMethods = {}));
32
- export var CardType;
33
- (function (CardType) {
34
- CardType["VISA"] = "VISA";
35
- CardType["MASTERCARD"] = "MSTR";
36
- CardType["AMEX"] = "AMEX";
37
- CardType["DISCOVER"] = "DISC";
38
- })(CardType || (CardType = {}));
39
- //# sourceMappingURL=CoinflowTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoinflowTypes.js","sourceRoot":"","sources":["../../src/common/CoinflowTypes.ts"],"names":[],"mappings":"AAaA,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;IACb,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAED,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;IACf,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAmND,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,2DAA6B,CAAA;IAC7B,2DAA6B,CAAA;IAC7B,qDAAuB,CAAA;AACzB,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;AAED,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,6BAAW,CAAA;IACX,mDAAiC,CAAA;IACjC,+BAAa,CAAA;IACb,6BAAW,CAAA;IACX,+BAAa,CAAA;IACb,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;AACnB,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;AA8UD,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,yBAAa,CAAA;IACb,6BAAiB,CAAA;AACnB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB"}
@@ -1,24 +0,0 @@
1
- import { CoinflowBlockchain, CoinflowEnvs, CoinflowIFrameProps, CoinflowPurchaseProps, CustomerInfo } from './CoinflowTypes';
2
- export declare class CoinflowUtils {
3
- env: CoinflowEnvs;
4
- url: string;
5
- constructor(env?: CoinflowEnvs);
6
- getNSurePartnerId(merchantId: string): Promise<string | undefined>;
7
- static getCoinflowBaseUrl(env?: CoinflowEnvs): string;
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, }: CoinflowIFrameProps): string;
10
- static getTransaction(props: CoinflowPurchaseProps): string | undefined;
11
- static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
12
- solana: T;
13
- eth: T;
14
- polygon: T;
15
- base: T;
16
- arbitrum: T;
17
- user: T;
18
- }): T;
19
- }
20
- export interface FullName {
21
- firstName: string;
22
- lastName: string;
23
- }
24
- export declare function getCustomerName(info: CustomerInfo | undefined): FullName | undefined;