@coinflowlabs/react 5.2.2 → 5.3.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.
- package/README.md +6 -2
- package/build/cjs/common/CoinflowTypes.d.ts +104 -7
- package/build/cjs/common/CoinflowTypes.js +1 -0
- package/build/cjs/common/CoinflowTypes.js.map +1 -1
- package/build/cjs/common/CoinflowUtils.d.ts +1 -1
- package/build/cjs/common/CoinflowUtils.js +5 -1
- package/build/cjs/common/CoinflowUtils.js.map +1 -1
- package/build/cjs/common/EventBus.d.ts +6 -0
- package/build/cjs/common/EventBus.js +19 -0
- package/build/cjs/common/EventBus.js.map +1 -0
- package/build/cjs/common/card-form/tokenexHelpers.js +1 -1
- package/build/cjs/common/card-form/tokenexHelpers.js.map +1 -1
- package/build/cjs/common/index.d.ts +1 -0
- package/build/cjs/common/index.js +1 -0
- package/build/cjs/common/index.js.map +1 -1
- package/build/cjs/common/types/Subtotal.d.ts +18 -1
- package/build/cjs/common/types/Subtotal.js +34 -0
- package/build/cjs/common/types/Subtotal.js.map +1 -1
- package/build/cjs/common/types/cryptoCartItem.d.ts +2 -1
- package/build/esm/common/CoinflowTypes.d.ts +104 -7
- package/build/esm/common/CoinflowTypes.js +1 -0
- package/build/esm/common/CoinflowTypes.js.map +1 -1
- package/build/esm/common/CoinflowUtils.d.ts +1 -1
- package/build/esm/common/CoinflowUtils.js +5 -1
- package/build/esm/common/CoinflowUtils.js.map +1 -1
- package/build/esm/common/EventBus.d.ts +6 -0
- package/build/esm/common/EventBus.js +16 -0
- package/build/esm/common/EventBus.js.map +1 -0
- package/build/esm/common/card-form/tokenexHelpers.js +1 -1
- package/build/esm/common/card-form/tokenexHelpers.js.map +1 -1
- package/build/esm/common/index.d.ts +1 -0
- package/build/esm/common/index.js +1 -0
- package/build/esm/common/index.js.map +1 -1
- package/build/esm/common/types/Subtotal.d.ts +18 -1
- package/build/esm/common/types/Subtotal.js +34 -0
- package/build/esm/common/types/Subtotal.js.map +1 -1
- package/build/esm/common/types/cryptoCartItem.d.ts +2 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ import {useWallet} from '@solana/wallet-adapter-react';
|
|
|
7
7
|
const wallet = useWallet();
|
|
8
8
|
const connection = useConnection();
|
|
9
9
|
|
|
10
|
-
<CoinflowWithdraw wallet={wallet} merchantId='<YOUR MERCHANT ID>' env='prod|sandbox
|
|
10
|
+
<CoinflowWithdraw wallet={wallet} merchantId='<YOUR MERCHANT ID>' env='prod|sandbox' connection={connection} />;
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Props:
|
|
@@ -16,7 +16,7 @@ Props:
|
|
|
16
16
|
- `merchantId`: Your Merchant ID (Contact Coinflow support for this)
|
|
17
17
|
- `connection`: Solana Connection
|
|
18
18
|
- `env` (optional): This defaults to `prod`
|
|
19
|
-
- For testing set to `
|
|
19
|
+
- For testing set to `sandbox`
|
|
20
20
|
- `onSuccess` (optional): function to run when the withdrawal process is successful
|
|
21
21
|
- `lockAmount` (optional): Whether to let the user select the amount to withdraw or to disable the input
|
|
22
22
|
- `amount` (optional): The amount to withdraw - required if `lockAmount=true`
|
|
@@ -69,6 +69,10 @@ Props:
|
|
|
69
69
|
|
|
70
70
|
# Changelog
|
|
71
71
|
|
|
72
|
+
## 5.3.0
|
|
73
|
+
|
|
74
|
+
- Added `partialUsdcChecked` property to pre-check partial USDC payment checkbox
|
|
75
|
+
|
|
72
76
|
## 5.1.0
|
|
73
77
|
|
|
74
78
|
- Added Multi-Currency Presentment via the `presentment` property
|
|
@@ -169,7 +169,8 @@ export declare enum PaymentMethods {
|
|
|
169
169
|
googlePay = "googlePay",
|
|
170
170
|
applePay = "applePay",
|
|
171
171
|
credits = "credits",
|
|
172
|
-
crypto = "crypto"
|
|
172
|
+
crypto = "crypto",
|
|
173
|
+
instantBankTransfer = "instantBankTransfer"
|
|
173
174
|
}
|
|
174
175
|
export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
175
176
|
subtotal?: Subtotal;
|
|
@@ -189,6 +190,11 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
189
190
|
customerInfo?: CustomerInfo;
|
|
190
191
|
settlementType?: SettlementType;
|
|
191
192
|
authOnly?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* If true, pre-checks the partial USDC payment checkbox when USDC balance is available.
|
|
195
|
+
* If false or undefined, maintains default behavior (unchecked).
|
|
196
|
+
*/
|
|
197
|
+
partialUsdcChecked?: boolean;
|
|
192
198
|
/**
|
|
193
199
|
* The DeviceID gotten from the Coinflow SDK:
|
|
194
200
|
* https://docs.coinflow.cash/docs/implement-chargeback-protection#how-to-add-chargeback-protection
|
|
@@ -212,6 +218,17 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
212
218
|
origins?: string[];
|
|
213
219
|
threeDsChallengePreference?: ThreeDsChallengePreference;
|
|
214
220
|
destinationAuthKey?: string;
|
|
221
|
+
accountFundingTransaction?: AccountFundingTransaction;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Used for Account Funding Transactions
|
|
225
|
+
*/
|
|
226
|
+
export interface AccountFundingTransaction {
|
|
227
|
+
/**
|
|
228
|
+
* Recipient information for Account Funding Transactions (AFT).
|
|
229
|
+
* Required when AFT is enabled and type requires it.
|
|
230
|
+
*/
|
|
231
|
+
recipientAftInfo?: RecipientAftInfo;
|
|
215
232
|
}
|
|
216
233
|
export interface CoinflowSolanaPurchaseProps extends CoinflowCommonPurchaseProps {
|
|
217
234
|
wallet: SolanaWallet;
|
|
@@ -314,27 +331,62 @@ export interface CommonEvmRedeem {
|
|
|
314
331
|
*/
|
|
315
332
|
waitForHash?: boolean;
|
|
316
333
|
}
|
|
334
|
+
/**
|
|
335
|
+
* (EVM only) If your contract sends the item/service being purchased via a custom "receiver" field, then utilize this object.
|
|
336
|
+
*
|
|
337
|
+
* The coinflow contract calls the "to" contract, which transfers the NFT/item to the "receiver" address defined in the contract function arguments.
|
|
338
|
+
*/
|
|
317
339
|
export interface NormalRedeem extends CommonEvmRedeem {
|
|
340
|
+
/**
|
|
341
|
+
* Transaction to be called.
|
|
342
|
+
*/
|
|
318
343
|
transaction: {
|
|
344
|
+
/**
|
|
345
|
+
* The merchant's whitelisted contract
|
|
346
|
+
*/
|
|
319
347
|
to: string;
|
|
348
|
+
/**
|
|
349
|
+
* The data to call this contract with, HEX encoded.
|
|
350
|
+
*
|
|
351
|
+
* The coinflow contract calls the "to" contract, contract pulls USDC from msg.sender, and transfers the NFT/item to the "receiver" address defined in the contract function arguments.
|
|
352
|
+
*/
|
|
320
353
|
data: string;
|
|
321
354
|
};
|
|
322
355
|
}
|
|
356
|
+
/**
|
|
357
|
+
* (EVM only) If your know the ID of the NFT being purchased, then utilize this object.
|
|
358
|
+
*
|
|
359
|
+
* The contract transfers the NFT to msg.sender (which is the Coinflow contract), the Coinflow contract fwd's the NFT to the end user's wallet.
|
|
360
|
+
*/
|
|
323
361
|
export interface KnownTokenIdRedeem extends NormalRedeem {
|
|
324
362
|
/**
|
|
325
|
-
*
|
|
326
|
-
*
|
|
363
|
+
* The address of the Nft's Contract
|
|
364
|
+
*
|
|
365
|
+
* @minLength 42 Please provide a valid EVM Address (42 Characters Long)
|
|
366
|
+
* @maxLength 42 Please provide a valid EVM Address (42 Characters Long)
|
|
327
367
|
*/
|
|
328
368
|
nftContract: string;
|
|
329
369
|
/**
|
|
370
|
+
* The ID of the NFT being purchased. Will be forwarded by the Coinflow contract to the customer's wallet.
|
|
371
|
+
*
|
|
330
372
|
* @minLength 1 Please provide a valid Nft Id
|
|
331
373
|
*/
|
|
332
374
|
nftId: string;
|
|
333
375
|
}
|
|
376
|
+
/**
|
|
377
|
+
* (EVM only) If your contract mints an NFT via a OpenZeppelin Safe Mint Call, then utilize this object.
|
|
378
|
+
*
|
|
379
|
+
* The contract mints the NFT to msg.sender (which is the Coinflow contract), the Coinflow contract picks up the SafeMint event, and fwd's the NFT to the end user's wallet.
|
|
380
|
+
*/
|
|
334
381
|
export interface SafeMintRedeem extends NormalRedeem {
|
|
335
382
|
type: 'safeMint';
|
|
336
383
|
nftContract?: string;
|
|
337
384
|
}
|
|
385
|
+
/**
|
|
386
|
+
* (EVM only) If your contract returns the NFT ID, then utilize this object.
|
|
387
|
+
*
|
|
388
|
+
* The contract mints the NFT to msg.sender (which is the Coinflow contract), the Coinflow contract picks up the returned NFT ID, and fwd's the NFT to the end user's wallet.
|
|
389
|
+
*/
|
|
338
390
|
export interface ReturnedTokenIdRedeem extends NormalRedeem {
|
|
339
391
|
type: 'returned';
|
|
340
392
|
nftContract?: string;
|
|
@@ -359,13 +411,13 @@ export interface ReservoirRedeem extends CommonEvmRedeem {
|
|
|
359
411
|
/** @deprecated Reservoir decided to sunset Reservoir NFT, including their API and associated services, effective October 15, 2025. */
|
|
360
412
|
taker?: string;
|
|
361
413
|
}
|
|
362
|
-
/** @deprecated */
|
|
363
414
|
export interface TokenRedeem extends CommonEvmRedeem {
|
|
364
|
-
/** @deprecated */
|
|
365
415
|
type: 'token';
|
|
366
|
-
/** @deprecated */
|
|
367
416
|
destination: string;
|
|
368
417
|
}
|
|
418
|
+
/**
|
|
419
|
+
* If your contract exists on a chain supported by Decent, pass this object in order to call it.
|
|
420
|
+
*/
|
|
369
421
|
export interface DecentRedeem extends CommonEvmRedeem {
|
|
370
422
|
type: 'decent';
|
|
371
423
|
/**
|
|
@@ -398,8 +450,13 @@ export interface DecentRedeem extends CommonEvmRedeem {
|
|
|
398
450
|
isNative: boolean;
|
|
399
451
|
};
|
|
400
452
|
}
|
|
453
|
+
/**
|
|
454
|
+
* (EVM only) if you want to execute an EVM transaction on a successful purchase, you can pass a transaction request here.
|
|
455
|
+
*
|
|
456
|
+
* 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.
|
|
457
|
+
*/
|
|
401
458
|
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'> {
|
|
459
|
+
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'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey'> {
|
|
403
460
|
walletPubkey: string | null | undefined;
|
|
404
461
|
sessionKey?: string;
|
|
405
462
|
route: string;
|
|
@@ -420,4 +477,44 @@ export declare enum CardType {
|
|
|
420
477
|
AMEX = "AMEX",
|
|
421
478
|
DISCOVER = "DISC"
|
|
422
479
|
}
|
|
480
|
+
export interface RecipientAftInfo {
|
|
481
|
+
/**
|
|
482
|
+
* @minLength 2
|
|
483
|
+
*/
|
|
484
|
+
firstName: string;
|
|
485
|
+
/**
|
|
486
|
+
* @minLength 2
|
|
487
|
+
*/
|
|
488
|
+
lastName: string;
|
|
489
|
+
/**
|
|
490
|
+
* @minLength 2
|
|
491
|
+
*/
|
|
492
|
+
address1: string;
|
|
493
|
+
/**
|
|
494
|
+
* @minLength 2
|
|
495
|
+
*/
|
|
496
|
+
city: string;
|
|
497
|
+
/**
|
|
498
|
+
* @minLength 2
|
|
499
|
+
*/
|
|
500
|
+
postalCode: string;
|
|
501
|
+
/**
|
|
502
|
+
* @minLength 2
|
|
503
|
+
*/
|
|
504
|
+
state?: string;
|
|
505
|
+
/**
|
|
506
|
+
* @minLength 2
|
|
507
|
+
* @maxLength 2
|
|
508
|
+
*/
|
|
509
|
+
countryCode: string;
|
|
510
|
+
/**
|
|
511
|
+
* @pattern ^\d{8}$
|
|
512
|
+
*/
|
|
513
|
+
dateOfBirth: string;
|
|
514
|
+
/**
|
|
515
|
+
* @pattern ^\d+$
|
|
516
|
+
*/
|
|
517
|
+
phoneNumber?: string;
|
|
518
|
+
documentReference?: string;
|
|
519
|
+
}
|
|
423
520
|
export {};
|
|
@@ -31,6 +31,7 @@ var PaymentMethods;
|
|
|
31
31
|
PaymentMethods["applePay"] = "applePay";
|
|
32
32
|
PaymentMethods["credits"] = "credits";
|
|
33
33
|
PaymentMethods["crypto"] = "crypto";
|
|
34
|
+
PaymentMethods["instantBankTransfer"] = "instantBankTransfer";
|
|
34
35
|
})(PaymentMethods || (exports.PaymentMethods = PaymentMethods = {}));
|
|
35
36
|
var CardType;
|
|
36
37
|
(function (CardType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowTypes.js","sourceRoot":"","sources":["../../../src/common/CoinflowTypes.ts"],"names":[],"mappings":";;;AAaA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;IACb,+BAAa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mB,CAAA;IACnB,yBAAa,CAAA;IACb,6BAAiB,CAAA;AACnB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB"}
|
|
@@ -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, }: 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, }: CoinflowIFrameProps): string;
|
|
10
10
|
static getTransaction(props: CoinflowPurchaseProps): string | undefined;
|
|
11
11
|
static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
|
|
12
12
|
solana: T;
|
|
@@ -48,7 +48,7 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
48
48
|
};
|
|
49
49
|
CoinflowUtils.getCoinflowUrl = function (_a) {
|
|
50
50
|
var _b;
|
|
51
|
-
var walletPubkey = _a.walletPubkey, sessionKey = _a.sessionKey, route = _a.route, routePrefix = _a.routePrefix, env = _a.env, subtotal = _a.subtotal, presentment = _a.presentment, transaction = _a.transaction, _c = _a.blockchain, blockchain = _c === void 0 ? 'solana' : _c, webhookInfo = _a.webhookInfo, email = _a.email, loaderBackground = _a.loaderBackground, handleHeightChangeId = _a.handleHeightChangeId, bankAccountLinkRedirect = _a.bankAccountLinkRedirect, additionalWallets = _a.additionalWallets, chargebackProtectionData = _a.chargebackProtectionData, merchantCss = _a.merchantCss, color = _a.color, rent = _a.rent, lockDefaultToken = _a.lockDefaultToken, tokens = _a.tokens, planCode = _a.planCode, disableApplePay = _a.disableApplePay, disableGooglePay = _a.disableGooglePay, customerInfo = _a.customerInfo, settlementType = _a.settlementType, lockAmount = _a.lockAmount, nativeSolToConvert = _a.nativeSolToConvert, theme = _a.theme, usePermit = _a.usePermit, transactionSigner = _a.transactionSigner, authOnly = _a.authOnly, deviceId = _a.deviceId, jwtToken = _a.jwtToken, origins = _a.origins, threeDsChallengePreference = _a.threeDsChallengePreference, supportEmail = _a.supportEmail, destinationAuthKey = _a.destinationAuthKey, allowedPaymentMethods = _a.allowedPaymentMethods;
|
|
51
|
+
var walletPubkey = _a.walletPubkey, sessionKey = _a.sessionKey, route = _a.route, routePrefix = _a.routePrefix, env = _a.env, subtotal = _a.subtotal, presentment = _a.presentment, transaction = _a.transaction, _c = _a.blockchain, blockchain = _c === void 0 ? 'solana' : _c, webhookInfo = _a.webhookInfo, email = _a.email, loaderBackground = _a.loaderBackground, handleHeightChangeId = _a.handleHeightChangeId, bankAccountLinkRedirect = _a.bankAccountLinkRedirect, additionalWallets = _a.additionalWallets, chargebackProtectionData = _a.chargebackProtectionData, merchantCss = _a.merchantCss, color = _a.color, rent = _a.rent, lockDefaultToken = _a.lockDefaultToken, tokens = _a.tokens, planCode = _a.planCode, disableApplePay = _a.disableApplePay, disableGooglePay = _a.disableGooglePay, customerInfo = _a.customerInfo, settlementType = _a.settlementType, lockAmount = _a.lockAmount, nativeSolToConvert = _a.nativeSolToConvert, theme = _a.theme, usePermit = _a.usePermit, transactionSigner = _a.transactionSigner, authOnly = _a.authOnly, deviceId = _a.deviceId, jwtToken = _a.jwtToken, origins = _a.origins, threeDsChallengePreference = _a.threeDsChallengePreference, supportEmail = _a.supportEmail, destinationAuthKey = _a.destinationAuthKey, allowedPaymentMethods = _a.allowedPaymentMethods, accountFundingTransaction = _a.accountFundingTransaction, partialUsdcChecked = _a.partialUsdcChecked;
|
|
52
52
|
var prefix = routePrefix
|
|
53
53
|
? "/".concat(routePrefix, "/").concat(blockchain)
|
|
54
54
|
: "/".concat(blockchain);
|
|
@@ -145,6 +145,8 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
145
145
|
url.searchParams.append('transactionSigner', transactionSigner);
|
|
146
146
|
if (authOnly === true)
|
|
147
147
|
url.searchParams.append('authOnly', 'true');
|
|
148
|
+
if (partialUsdcChecked === true)
|
|
149
|
+
url.searchParams.append('partialUsdcChecked', 'true');
|
|
148
150
|
if (jwtToken)
|
|
149
151
|
url.searchParams.append('jwtToken', jwtToken);
|
|
150
152
|
if (origins)
|
|
@@ -155,6 +157,8 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
155
157
|
url.searchParams.append('threeDsChallengePreference', threeDsChallengePreference);
|
|
156
158
|
if (destinationAuthKey)
|
|
157
159
|
url.searchParams.append('destinationAuthKey', destinationAuthKey);
|
|
160
|
+
if (accountFundingTransaction)
|
|
161
|
+
url.searchParams.append('accountFundingTransaction', lz_string_1.default.compressToEncodedURIComponent(JSON.stringify(accountFundingTransaction)));
|
|
158
162
|
return url.toString();
|
|
159
163
|
};
|
|
160
164
|
CoinflowUtils.getTransaction = function (props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowUtils.js","sourceRoot":"","sources":["../../../src/common/CoinflowUtils.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CoinflowUtils.js","sourceRoot":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ACnB,KAAK,UAAU;gBACb,OAAO,IAAI,CAAC,QAAQ,CAAC;YACvB,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,IAAI,CAAC;YACnB;gBACE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AApUD,IAoUC;AApUY,sCAAa;AA2U1B,SAAgB,eAAe,CAC7B,IAA8B;IAE9B,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAC;IAE5B,IAAI,SAA6B,EAAE,QAA4B,CAAC;IAChE,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QAChC,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACpC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,WAAW,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS;QAAE,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;IAEtE,IAAI,UAAU,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ;QAAE,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAElE,IAAI,SAAS,IAAI,QAAQ;QACvB,OAAO;YACL,SAAS,WAAA;YACT,QAAQ,UAAA;SACT,CAAC;IACJ,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventBus = void 0;
|
|
4
|
+
var EventBus = /** @class */ (function () {
|
|
5
|
+
function EventBus() {
|
|
6
|
+
}
|
|
7
|
+
EventBus.on = function (type, callback) {
|
|
8
|
+
document.addEventListener(type, callback);
|
|
9
|
+
};
|
|
10
|
+
EventBus.dispatch = function (type, data) {
|
|
11
|
+
document.dispatchEvent(new CustomEvent(type, { detail: data }));
|
|
12
|
+
};
|
|
13
|
+
EventBus.remove = function (type, callback) {
|
|
14
|
+
document.removeEventListener(type, callback);
|
|
15
|
+
};
|
|
16
|
+
return EventBus;
|
|
17
|
+
}());
|
|
18
|
+
exports.EventBus = EventBus;
|
|
19
|
+
//# sourceMappingURL=EventBus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventBus.js","sourceRoot":"","sources":["../../../src/common/EventBus.ts"],"names":[],"mappings":";;;AAEA;IAAA;IAYA,CAAC;IAXe,WAAE,GAAhB,UAAiB,IAAY,EAAE,QAA0B;QACvD,QAAQ,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAEa,iBAAQ,GAAtB,UAAuB,IAAY,EAAE,IAAS;QAC5C,QAAQ,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,IAAI,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;IAChE,CAAC;IAEa,eAAM,GAApB,UAAqB,IAAY,EAAE,QAA0B;QAC3D,QAAQ,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC;IACH,eAAC;AAAD,CAAC,AAZD,IAYC;AAZY,4BAAQ"}
|
|
@@ -15,7 +15,7 @@ function getIframeConfig(args) {
|
|
|
15
15
|
return tslib_1.__generator(this, function (_a) {
|
|
16
16
|
token = args.token, origins = args.origins, env = args.env;
|
|
17
17
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
18
|
-
fetch(new CoinflowUtils_1.CoinflowUtils(env).url + '/api/
|
|
18
|
+
fetch(new CoinflowUtils_1.CoinflowUtils(env).url + '/api/tokenize/iframe/config', {
|
|
19
19
|
method: 'POST',
|
|
20
20
|
headers: {
|
|
21
21
|
'Content-Type': 'application/json',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenexHelpers.js","sourceRoot":"","sources":["../../../../src/common/card-form/tokenexHelpers.ts"],"names":[],"mappings":";;AA0CA,0CAsBC;AAED,kDAyBC;AAqDD,4EAYC;AAED,8DAQC;AAED,8EAIC;;AA3KD,qCAOmB;AACnB,kDAA+C;AAiC/C,SAAsB,eAAe,CACnC,IAAyB;;;;;YAElB,KAAK,GAAkB,IAAI,MAAtB,EAAE,OAAO,GAAS,IAAI,QAAb,EAAE,GAAG,GAAI,IAAI,IAAR,CAAS;YACnC,sBAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;oBACjC,KAAK,CAAC,IAAI,6BAAa,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"tokenexHelpers.js","sourceRoot":"","sources":["../../../../src/common/card-form/tokenexHelpers.ts"],"names":[],"mappings":";;AA0CA,0CAsBC;AAED,kDAyBC;AAqDD,4EAYC;AAED,8DAQC;AAED,8EAIC;;AA3KD,qCAOmB;AACnB,kDAA+C;AAiC/C,SAAsB,eAAe,CACnC,IAAyB;;;;;YAElB,KAAK,GAAkB,IAAI,MAAtB,EAAE,OAAO,GAAS,IAAI,QAAb,EAAE,GAAG,GAAI,IAAI,IAAR,CAAS;YACnC,sBAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;oBACjC,KAAK,CAAC,IAAI,6BAAa,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,6BAA6B,EAAE;wBAChE,MAAM,EAAE,MAAM;wBACd,OAAO,EAAE;4BACP,cAAc,EAAE,kBAAkB;yBACnC;wBACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;4BACnB,OAAO,SAAA;4BACP,KAAK,OAAA;4BACL,UAAU,EAAE,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS;4BAC9D,WAAW,EAAE,aA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,GAAG,0CAAE,KAAK,CAAC;YAC/C,KAAK,EAAE,wBAAwB,CAAC,MAAA,GAAG,CAAC,GAAG,0CAAE,KAAK,CAAC;YAC/C,WAAW,EAAE,wBAAwB,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,WAAW,CAAC;SACxD;KACF,CAAC;IAEF,OAAO,EAAC,MAAM,QAAA,EAAC,CAAC;AAClB,CAAC;AAED,SAAS,wBAAwB,CAC/B,IAAwC;IAExC,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IACrB,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IAE1C,IAAI,GAAG,GAAG,EAAE,CAAC;4BACD,GAAG,EAAE,KAAK;QACpB,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,UAAA,EAAE;YACtB,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE,CAAC;gBAC5B,GAAG,IAAI,GAAG,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC;YAChC,CAAC;iBAAM,CAAC;gBACN,GAAG,IAAI,EAAE,CAAC;YACZ,CAAC;QACH,CAAC,CAAC,CAAC;QACH,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC;;IATjC,KAA2B,UAAoB,EAApB,KAAA,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAApB,cAAoB,EAApB,IAAoB;QAApC,IAAA,WAAY,EAAX,GAAG,QAAA,EAAE,KAAK,QAAA;gBAAV,GAAG,EAAE,KAAK;KAUrB;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -4,6 +4,7 @@ var tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./CoinflowTypes"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CoinflowUtils"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CoinflowLibMessageHandlers"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./EventBus"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./card-form/TokenEx"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./card-form/tokenexHelpers"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./types/Subtotal"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,0DAAgC;AAChC,uEAA6C;AAC7C,8DAAoC;AACpC,qEAA2C;AAC3C,2DAAiC;AACjC,4DAAkC;AAClC,mEAAyC;AACzC,8DAAoC;AACpC,iEAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,0DAAgC;AAChC,uEAA6C;AAC7C,qDAA2B;AAC3B,8DAAoC;AACpC,qEAA2C;AAC3C,2DAAiC;AACjC,4DAAkC;AAClC,mEAAyC;AACzC,8DAAoC;AACpC,iEAAuC"}
|
|
@@ -5,6 +5,7 @@ export declare enum Currency {
|
|
|
5
5
|
ALL = "ALL",
|
|
6
6
|
ANG = "ANG",
|
|
7
7
|
AOA = "AOA",
|
|
8
|
+
ARS = "ARS",
|
|
8
9
|
AUD = "AUD",
|
|
9
10
|
AWG = "AWG",
|
|
10
11
|
AZN = "AZN",
|
|
@@ -14,18 +15,23 @@ export declare enum Currency {
|
|
|
14
15
|
BGN = "BGN",
|
|
15
16
|
BHD = "BHD",
|
|
16
17
|
BIF = "BIF",
|
|
18
|
+
BMD = "BMD",
|
|
17
19
|
BND = "BND",
|
|
18
20
|
BOB = "BOB",
|
|
19
21
|
BRL = "BRL",
|
|
22
|
+
BSD = "BSD",
|
|
20
23
|
BTN = "BTN",
|
|
21
24
|
BWP = "BWP",
|
|
25
|
+
BYN = "BYN",
|
|
22
26
|
BZD = "BZD",
|
|
23
27
|
CAD = "CAD",
|
|
24
28
|
CHF = "CHF",
|
|
29
|
+
CLF = "CLF",
|
|
25
30
|
CLP = "CLP",
|
|
26
31
|
CNY = "CNY",
|
|
27
32
|
COP = "COP",
|
|
28
33
|
CRC = "CRC",
|
|
34
|
+
CUP = "CUP",
|
|
29
35
|
CVE = "CVE",
|
|
30
36
|
CZK = "CZK",
|
|
31
37
|
DJF = "DJF",
|
|
@@ -35,6 +41,7 @@ export declare enum Currency {
|
|
|
35
41
|
EGP = "EGP",
|
|
36
42
|
ETB = "ETB",
|
|
37
43
|
EUR = "EUR",
|
|
44
|
+
FJD = "FJD",
|
|
38
45
|
GBP = "GBP",
|
|
39
46
|
GEL = "GEL",
|
|
40
47
|
GHS = "GHS",
|
|
@@ -47,6 +54,7 @@ export declare enum Currency {
|
|
|
47
54
|
HTG = "HTG",
|
|
48
55
|
HUF = "HUF",
|
|
49
56
|
IDR = "IDR",
|
|
57
|
+
ILS = "ILS",
|
|
50
58
|
INR = "INR",
|
|
51
59
|
IQD = "IQD",
|
|
52
60
|
IRR = "IRR",
|
|
@@ -62,6 +70,8 @@ export declare enum Currency {
|
|
|
62
70
|
KWD = "KWD",
|
|
63
71
|
KYD = "KYD",
|
|
64
72
|
KZT = "KZT",
|
|
73
|
+
LAK = "LAK",
|
|
74
|
+
LBP = "LBP",
|
|
65
75
|
LKR = "LKR",
|
|
66
76
|
LRD = "LRD",
|
|
67
77
|
LSL = "LSL",
|
|
@@ -75,9 +85,11 @@ export declare enum Currency {
|
|
|
75
85
|
MOP = "MOP",
|
|
76
86
|
MRU = "MRU",
|
|
77
87
|
MUR = "MUR",
|
|
88
|
+
MWK = "MWK",
|
|
78
89
|
MVR = "MVR",
|
|
79
90
|
MXN = "MXN",
|
|
80
91
|
MYR = "MYR",
|
|
92
|
+
MZN = "MZN",
|
|
81
93
|
NAD = "NAD",
|
|
82
94
|
NGN = "NGN",
|
|
83
95
|
NIO = "NIO",
|
|
@@ -87,6 +99,7 @@ export declare enum Currency {
|
|
|
87
99
|
OMR = "OMR",
|
|
88
100
|
PAB = "PAB",
|
|
89
101
|
PEN = "PEN",
|
|
102
|
+
PGK = "PGK",
|
|
90
103
|
PHP = "PHP",
|
|
91
104
|
PKR = "PKR",
|
|
92
105
|
PLN = "PLN",
|
|
@@ -103,6 +116,7 @@ export declare enum Currency {
|
|
|
103
116
|
SLE = "SLE",
|
|
104
117
|
SLL = "SLL",
|
|
105
118
|
SOS = "SOS",
|
|
119
|
+
SRD = "SRD",
|
|
106
120
|
STN = "STN",
|
|
107
121
|
SVC = "SVC",
|
|
108
122
|
SYP = "SYP",
|
|
@@ -111,6 +125,7 @@ export declare enum Currency {
|
|
|
111
125
|
TJS = "TJS",
|
|
112
126
|
TMT = "TMT",
|
|
113
127
|
TND = "TND",
|
|
128
|
+
TOP = "TOP",
|
|
114
129
|
TRY = "TRY",
|
|
115
130
|
TTD = "TTD",
|
|
116
131
|
TWD = "TWD",
|
|
@@ -120,13 +135,15 @@ export declare enum Currency {
|
|
|
120
135
|
UYU = "UYU",
|
|
121
136
|
UZS = "UZS",
|
|
122
137
|
VND = "VND",
|
|
138
|
+
VUV = "VUV",
|
|
123
139
|
XAF = "XAF",
|
|
124
140
|
XCD = "XCD",
|
|
125
141
|
XOF = "XOF",
|
|
126
142
|
XPF = "XPF",
|
|
127
143
|
YER = "YER",
|
|
128
144
|
ZAR = "ZAR",
|
|
129
|
-
ZMW = "ZMW"
|
|
145
|
+
ZMW = "ZMW",
|
|
146
|
+
ZWL = "ZWL"
|
|
130
147
|
}
|
|
131
148
|
export declare const CurrencyToISO4217: Record<Currency, string>;
|
|
132
149
|
export type WithdrawCurrency = Currency.USD | Currency.EUR | Currency.GBP | Currency.BRL | Currency.CAD;
|
|
@@ -12,6 +12,7 @@ var Currency;
|
|
|
12
12
|
Currency["ALL"] = "ALL";
|
|
13
13
|
Currency["ANG"] = "ANG";
|
|
14
14
|
Currency["AOA"] = "AOA";
|
|
15
|
+
Currency["ARS"] = "ARS";
|
|
15
16
|
Currency["AUD"] = "AUD";
|
|
16
17
|
Currency["AWG"] = "AWG";
|
|
17
18
|
Currency["AZN"] = "AZN";
|
|
@@ -21,18 +22,23 @@ var Currency;
|
|
|
21
22
|
Currency["BGN"] = "BGN";
|
|
22
23
|
Currency["BHD"] = "BHD";
|
|
23
24
|
Currency["BIF"] = "BIF";
|
|
25
|
+
Currency["BMD"] = "BMD";
|
|
24
26
|
Currency["BND"] = "BND";
|
|
25
27
|
Currency["BOB"] = "BOB";
|
|
26
28
|
Currency["BRL"] = "BRL";
|
|
29
|
+
Currency["BSD"] = "BSD";
|
|
27
30
|
Currency["BTN"] = "BTN";
|
|
28
31
|
Currency["BWP"] = "BWP";
|
|
32
|
+
Currency["BYN"] = "BYN";
|
|
29
33
|
Currency["BZD"] = "BZD";
|
|
30
34
|
Currency["CAD"] = "CAD";
|
|
31
35
|
Currency["CHF"] = "CHF";
|
|
36
|
+
Currency["CLF"] = "CLF";
|
|
32
37
|
Currency["CLP"] = "CLP";
|
|
33
38
|
Currency["CNY"] = "CNY";
|
|
34
39
|
Currency["COP"] = "COP";
|
|
35
40
|
Currency["CRC"] = "CRC";
|
|
41
|
+
Currency["CUP"] = "CUP";
|
|
36
42
|
Currency["CVE"] = "CVE";
|
|
37
43
|
Currency["CZK"] = "CZK";
|
|
38
44
|
Currency["DJF"] = "DJF";
|
|
@@ -42,6 +48,7 @@ var Currency;
|
|
|
42
48
|
Currency["EGP"] = "EGP";
|
|
43
49
|
Currency["ETB"] = "ETB";
|
|
44
50
|
Currency["EUR"] = "EUR";
|
|
51
|
+
Currency["FJD"] = "FJD";
|
|
45
52
|
Currency["GBP"] = "GBP";
|
|
46
53
|
Currency["GEL"] = "GEL";
|
|
47
54
|
Currency["GHS"] = "GHS";
|
|
@@ -54,6 +61,7 @@ var Currency;
|
|
|
54
61
|
Currency["HTG"] = "HTG";
|
|
55
62
|
Currency["HUF"] = "HUF";
|
|
56
63
|
Currency["IDR"] = "IDR";
|
|
64
|
+
Currency["ILS"] = "ILS";
|
|
57
65
|
Currency["INR"] = "INR";
|
|
58
66
|
Currency["IQD"] = "IQD";
|
|
59
67
|
Currency["IRR"] = "IRR";
|
|
@@ -69,6 +77,8 @@ var Currency;
|
|
|
69
77
|
Currency["KWD"] = "KWD";
|
|
70
78
|
Currency["KYD"] = "KYD";
|
|
71
79
|
Currency["KZT"] = "KZT";
|
|
80
|
+
Currency["LAK"] = "LAK";
|
|
81
|
+
Currency["LBP"] = "LBP";
|
|
72
82
|
Currency["LKR"] = "LKR";
|
|
73
83
|
Currency["LRD"] = "LRD";
|
|
74
84
|
Currency["LSL"] = "LSL";
|
|
@@ -82,9 +92,11 @@ var Currency;
|
|
|
82
92
|
Currency["MOP"] = "MOP";
|
|
83
93
|
Currency["MRU"] = "MRU";
|
|
84
94
|
Currency["MUR"] = "MUR";
|
|
95
|
+
Currency["MWK"] = "MWK";
|
|
85
96
|
Currency["MVR"] = "MVR";
|
|
86
97
|
Currency["MXN"] = "MXN";
|
|
87
98
|
Currency["MYR"] = "MYR";
|
|
99
|
+
Currency["MZN"] = "MZN";
|
|
88
100
|
Currency["NAD"] = "NAD";
|
|
89
101
|
Currency["NGN"] = "NGN";
|
|
90
102
|
Currency["NIO"] = "NIO";
|
|
@@ -94,6 +106,7 @@ var Currency;
|
|
|
94
106
|
Currency["OMR"] = "OMR";
|
|
95
107
|
Currency["PAB"] = "PAB";
|
|
96
108
|
Currency["PEN"] = "PEN";
|
|
109
|
+
Currency["PGK"] = "PGK";
|
|
97
110
|
Currency["PHP"] = "PHP";
|
|
98
111
|
Currency["PKR"] = "PKR";
|
|
99
112
|
Currency["PLN"] = "PLN";
|
|
@@ -110,6 +123,7 @@ var Currency;
|
|
|
110
123
|
Currency["SLE"] = "SLE";
|
|
111
124
|
Currency["SLL"] = "SLL";
|
|
112
125
|
Currency["SOS"] = "SOS";
|
|
126
|
+
Currency["SRD"] = "SRD";
|
|
113
127
|
Currency["STN"] = "STN";
|
|
114
128
|
Currency["SVC"] = "SVC";
|
|
115
129
|
Currency["SYP"] = "SYP";
|
|
@@ -118,6 +132,7 @@ var Currency;
|
|
|
118
132
|
Currency["TJS"] = "TJS";
|
|
119
133
|
Currency["TMT"] = "TMT";
|
|
120
134
|
Currency["TND"] = "TND";
|
|
135
|
+
Currency["TOP"] = "TOP";
|
|
121
136
|
Currency["TRY"] = "TRY";
|
|
122
137
|
Currency["TTD"] = "TTD";
|
|
123
138
|
Currency["TWD"] = "TWD";
|
|
@@ -127,6 +142,7 @@ var Currency;
|
|
|
127
142
|
Currency["UYU"] = "UYU";
|
|
128
143
|
Currency["UZS"] = "UZS";
|
|
129
144
|
Currency["VND"] = "VND";
|
|
145
|
+
Currency["VUV"] = "VUV";
|
|
130
146
|
Currency["XAF"] = "XAF";
|
|
131
147
|
Currency["XCD"] = "XCD";
|
|
132
148
|
Currency["XOF"] = "XOF";
|
|
@@ -134,6 +150,7 @@ var Currency;
|
|
|
134
150
|
Currency["YER"] = "YER";
|
|
135
151
|
Currency["ZAR"] = "ZAR";
|
|
136
152
|
Currency["ZMW"] = "ZMW";
|
|
153
|
+
Currency["ZWL"] = "ZWL";
|
|
137
154
|
})(Currency || (exports.Currency = Currency = {}));
|
|
138
155
|
exports.CurrencyToISO4217 = (_a = {},
|
|
139
156
|
_a[Currency.AED] = '784',
|
|
@@ -264,6 +281,23 @@ exports.CurrencyToISO4217 = (_a = {},
|
|
|
264
281
|
_a[Currency.YER] = '886',
|
|
265
282
|
_a[Currency.ZAR] = '710',
|
|
266
283
|
_a[Currency.ZMW] = '967',
|
|
284
|
+
_a[Currency.ARS] = '032',
|
|
285
|
+
_a[Currency.BMD] = '060',
|
|
286
|
+
_a[Currency.BSD] = '044',
|
|
287
|
+
_a[Currency.BYN] = '933',
|
|
288
|
+
_a[Currency.CUP] = '192',
|
|
289
|
+
_a[Currency.FJD] = '242',
|
|
290
|
+
_a[Currency.ILS] = '376',
|
|
291
|
+
_a[Currency.LAK] = '418',
|
|
292
|
+
_a[Currency.LBP] = '422',
|
|
293
|
+
_a[Currency.MWK] = '454',
|
|
294
|
+
_a[Currency.MZN] = '943',
|
|
295
|
+
_a[Currency.PGK] = '598',
|
|
296
|
+
_a[Currency.SRD] = '968',
|
|
297
|
+
_a[Currency.TOP] = '776',
|
|
298
|
+
_a[Currency.VUV] = '548',
|
|
299
|
+
_a[Currency.ZWL] = '932',
|
|
300
|
+
_a[Currency.CLF] = '990',
|
|
267
301
|
_a);
|
|
268
302
|
exports.WithdrawCurrencies = (_b = {},
|
|
269
303
|
_b[Currency.USD] = Currency.USD,
|