@coinflowlabs/angular 1.15.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.
- package/README.md +4 -0
- package/fesm2022/coinflowlabs-angular.mjs +82 -489
- package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/types/coinflowlabs-angular.d.ts +126 -194
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PublicKey, Transaction, VersionedTransaction, Signer, Connection } from '@solana/web3.js';
|
|
2
|
-
import { Properties } from 'csstype';
|
|
3
2
|
import * as _coinflowlabs_angular from '@coinflowlabs/angular';
|
|
4
3
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { EventEmitter, ElementRef,
|
|
4
|
+
import { EventEmitter, ElementRef, OnInit, OnDestroy, NgZone } from '@angular/core';
|
|
6
5
|
import { SafeResourceUrl, DomSanitizer } from '@angular/platform-browser';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -1188,6 +1187,8 @@ declare const CARD_FIELD_ERROR_MESSAGES: {
|
|
|
1188
1187
|
readonly expiration: "Expiration is invalid. Please double check information.";
|
|
1189
1188
|
readonly cvv: "CVV is invalid. Please double check information.";
|
|
1190
1189
|
readonly cvvEmpty: "Please enter your CVV to proceed.";
|
|
1190
|
+
readonly invalidCardToken: "Card token is invalid. Please add a new card";
|
|
1191
|
+
readonly cardEntryUnavailable: "Card entry is unavailable. Please re-enter your card details.";
|
|
1191
1192
|
};
|
|
1192
1193
|
declare function getCardFieldValidationError({ cardError, expirationError, cvvError, cvvEmpty, isCvvOnly, }: {
|
|
1193
1194
|
cardError: boolean;
|
|
@@ -1250,6 +1251,11 @@ declare enum SettlementType {
|
|
|
1250
1251
|
USDC = "USDC",
|
|
1251
1252
|
Bank = "Bank"
|
|
1252
1253
|
}
|
|
1254
|
+
type MerchantIdOrCheckoutJwt = {
|
|
1255
|
+
checkoutJwt: string;
|
|
1256
|
+
} | {
|
|
1257
|
+
merchantId: string;
|
|
1258
|
+
};
|
|
1253
1259
|
/**
|
|
1254
1260
|
* Configuration for a single custom pay-in fee line item.
|
|
1255
1261
|
* Pass via the `customPayInFees` field on `/checkout/link` or `/checkout/jwt-token`.
|
|
@@ -1354,7 +1360,7 @@ interface SplitNameCustomerInfo extends BaseCustomerInfo {
|
|
|
1354
1360
|
}
|
|
1355
1361
|
type CustomerInfo = SplitNameCustomerInfo | NameCustomerInfo;
|
|
1356
1362
|
/** Coinflow Types **/
|
|
1357
|
-
type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | '
|
|
1363
|
+
type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo' | 'user';
|
|
1358
1364
|
type CoinflowEnvs = 'prod' | 'staging' | 'sandbox' | 'local';
|
|
1359
1365
|
interface CoinflowTypes {
|
|
1360
1366
|
merchantId: string;
|
|
@@ -1453,12 +1459,6 @@ type EthWallet = {
|
|
|
1453
1459
|
}>;
|
|
1454
1460
|
signMessage: (message: string) => Promise<string>;
|
|
1455
1461
|
};
|
|
1456
|
-
interface StellarWallet {
|
|
1457
|
-
address: string | null;
|
|
1458
|
-
sendTransaction: (base64Xdr: string) => Promise<string>;
|
|
1459
|
-
signTransaction: (base64Xdr: string) => Promise<string>;
|
|
1460
|
-
signMessage: (message: string) => Promise<string>;
|
|
1461
|
-
}
|
|
1462
1462
|
/** History **/
|
|
1463
1463
|
interface CoinflowSolanaHistoryProps extends CoinflowTypes {
|
|
1464
1464
|
wallet: SolanaWallet;
|
|
@@ -1485,17 +1485,13 @@ interface CoinflowBaseHistoryProps extends CoinflowEvmHistoryProps {
|
|
|
1485
1485
|
interface CoinflowArbitrumHistoryProps extends CoinflowEvmHistoryProps {
|
|
1486
1486
|
blockchain: 'arbitrum';
|
|
1487
1487
|
}
|
|
1488
|
-
interface CoinflowStellarHistoryProps extends CoinflowTypes {
|
|
1489
|
-
wallet: StellarWallet;
|
|
1490
|
-
blockchain: 'stellar';
|
|
1491
|
-
}
|
|
1492
1488
|
interface CoinflowMonadHistoryProps extends CoinflowEvmHistoryProps {
|
|
1493
1489
|
blockchain: 'monad';
|
|
1494
1490
|
}
|
|
1495
1491
|
interface CoinflowTempoHistoryProps extends CoinflowEvmHistoryProps {
|
|
1496
1492
|
blockchain: 'tempo';
|
|
1497
1493
|
}
|
|
1498
|
-
type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps |
|
|
1494
|
+
type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps | CoinflowMonadHistoryProps | CoinflowTempoHistoryProps | CoinflowSessionKeyHistoryProps;
|
|
1499
1495
|
type Bytes = ArrayLike<number>;
|
|
1500
1496
|
type BytesLike = Bytes | string;
|
|
1501
1497
|
/**
|
|
@@ -1518,6 +1514,11 @@ declare enum ThreeDsChallengePreference {
|
|
|
1518
1514
|
Frictionless = "Frictionless",
|
|
1519
1515
|
Challenge = "Challenge"
|
|
1520
1516
|
}
|
|
1517
|
+
declare enum CardFunding {
|
|
1518
|
+
debit = "debit",
|
|
1519
|
+
credit = "credit",
|
|
1520
|
+
prepaid = "prepaid"
|
|
1521
|
+
}
|
|
1521
1522
|
declare enum PaymentMethods {
|
|
1522
1523
|
card = "card",
|
|
1523
1524
|
ach = "ach",
|
|
@@ -1527,6 +1528,7 @@ declare enum PaymentMethods {
|
|
|
1527
1528
|
usdc = "usdc",
|
|
1528
1529
|
googlePay = "googlePay",
|
|
1529
1530
|
applePay = "applePay",
|
|
1531
|
+
paze = "paze",
|
|
1530
1532
|
credits = "credits",
|
|
1531
1533
|
crypto = "crypto",
|
|
1532
1534
|
wire = "wire",
|
|
@@ -1574,12 +1576,12 @@ interface CoinflowCommonPaymentIntentProps extends Omit<CoinflowTypes, 'blockcha
|
|
|
1574
1576
|
* End-user wallet used for wallet-authenticated payment-intent checkout flows.
|
|
1575
1577
|
*
|
|
1576
1578
|
* Required when the target payment intent type depends on a customer wallet
|
|
1577
|
-
* (for example: EVM/Solana
|
|
1579
|
+
* (for example: EVM/Solana transaction intents or credits/USDC signing flows).
|
|
1578
1580
|
*
|
|
1579
1581
|
* The wallet implementation must match the active blockchain.
|
|
1580
1582
|
*/
|
|
1581
1583
|
wallet?: WalletTypes;
|
|
1582
|
-
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | '
|
|
1584
|
+
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad';
|
|
1583
1585
|
}
|
|
1584
1586
|
interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
1585
1587
|
subtotal?: Subtotal;
|
|
@@ -1613,6 +1615,8 @@ interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
1613
1615
|
* The payment methods displayed on the UI. If omitted, all available payment methods will be displayed.
|
|
1614
1616
|
*/
|
|
1615
1617
|
allowedPaymentMethods?: PaymentMethods[];
|
|
1618
|
+
/** Apple Pay sheet filter only (not enforced); `prepaid` shows as debit and `cardSettings.debitOnly` wins. */
|
|
1619
|
+
allowedCardFunding?: CardFunding[];
|
|
1616
1620
|
customerInfo?: CustomerInfo;
|
|
1617
1621
|
settlementType?: SettlementType;
|
|
1618
1622
|
authOnly?: boolean;
|
|
@@ -1724,18 +1728,13 @@ interface CoinflowBasePurchaseProps extends CoinflowEvmPurchaseProps {
|
|
|
1724
1728
|
interface CoinflowArbitrumPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
1725
1729
|
blockchain: 'arbitrum';
|
|
1726
1730
|
}
|
|
1727
|
-
interface CoinflowStellarPurchaseProps extends CoinflowCommonPurchaseProps {
|
|
1728
|
-
wallet: StellarWallet;
|
|
1729
|
-
transaction?: string;
|
|
1730
|
-
blockchain: 'stellar';
|
|
1731
|
-
}
|
|
1732
1731
|
interface CoinflowMonadPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
1733
1732
|
blockchain: 'monad';
|
|
1734
1733
|
}
|
|
1735
1734
|
interface CoinflowTempoPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
1736
1735
|
blockchain: 'tempo';
|
|
1737
1736
|
}
|
|
1738
|
-
type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps |
|
|
1737
|
+
type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps | CoinflowMonadPurchaseProps | CoinflowTempoPurchaseProps;
|
|
1739
1738
|
/** Withdraw **/
|
|
1740
1739
|
interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
1741
1740
|
onSuccess?: OnSuccessMethod;
|
|
@@ -1747,7 +1746,7 @@ interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
|
1747
1746
|
bankAccountLinkRedirect?: string;
|
|
1748
1747
|
additionalWallets?: {
|
|
1749
1748
|
wallet: string;
|
|
1750
|
-
blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo'
|
|
1749
|
+
blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo';
|
|
1751
1750
|
}[];
|
|
1752
1751
|
lockAmount?: boolean;
|
|
1753
1752
|
transactionSigner?: string;
|
|
@@ -1789,7 +1788,7 @@ interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
|
1789
1788
|
*/
|
|
1790
1789
|
appReturnUrl?: string;
|
|
1791
1790
|
}
|
|
1792
|
-
type WalletTypes = SolanaWallet | EthWallet
|
|
1791
|
+
type WalletTypes = SolanaWallet | EthWallet;
|
|
1793
1792
|
interface SolanaWalletProps {
|
|
1794
1793
|
wallet: SolanaWallet;
|
|
1795
1794
|
connection: Connection;
|
|
@@ -1818,11 +1817,6 @@ interface ArbitrumWalletProps {
|
|
|
1818
1817
|
blockchain: 'arbitrum';
|
|
1819
1818
|
}
|
|
1820
1819
|
type CoinflowArbitrumWithdrawProps = CoinflowEvmWithdrawProps & ArbitrumWalletProps;
|
|
1821
|
-
interface StellarWalletProps {
|
|
1822
|
-
wallet: StellarWallet;
|
|
1823
|
-
blockchain: 'stellar';
|
|
1824
|
-
}
|
|
1825
|
-
type CoinflowStellarWithdrawProps = CoinflowCommonWithdrawProps & StellarWalletProps;
|
|
1826
1820
|
interface MonadWalletProps {
|
|
1827
1821
|
blockchain: 'monad';
|
|
1828
1822
|
}
|
|
@@ -1831,7 +1825,7 @@ interface TempoWalletProps {
|
|
|
1831
1825
|
blockchain: 'tempo';
|
|
1832
1826
|
}
|
|
1833
1827
|
type CoinflowTempoWithdrawProps = CoinflowEvmWithdrawProps & TempoWalletProps;
|
|
1834
|
-
type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps |
|
|
1828
|
+
type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps | CoinflowMonadWithdrawProps | CoinflowTempoWithdrawProps;
|
|
1835
1829
|
interface CommonEvmRedeem {
|
|
1836
1830
|
/**
|
|
1837
1831
|
* Whether the UI should wait
|
|
@@ -1974,7 +1968,7 @@ interface CoinflowBankLinkProps extends Pick<CoinflowTypes, 'merchantId' | 'env'
|
|
|
1974
1968
|
*/
|
|
1975
1969
|
onAccountLinkError?: OnAccountLinkErrorMethod | undefined;
|
|
1976
1970
|
}
|
|
1977
|
-
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 {
|
|
1971
|
+
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 {
|
|
1978
1972
|
walletPubkey: string | null | undefined;
|
|
1979
1973
|
sessionKey?: string;
|
|
1980
1974
|
route: string;
|
|
@@ -2024,7 +2018,7 @@ interface CoinflowIntentsIFrameProps {
|
|
|
2024
2018
|
origins?: string[];
|
|
2025
2019
|
deviceId?: string;
|
|
2026
2020
|
walletPubkey?: string | undefined | null;
|
|
2027
|
-
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | '
|
|
2021
|
+
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad';
|
|
2028
2022
|
}
|
|
2029
2023
|
declare enum CardType {
|
|
2030
2024
|
VISA = "VISA",
|
|
@@ -2088,7 +2082,7 @@ declare class CoinflowUtils {
|
|
|
2088
2082
|
env?: CoinflowEnvs;
|
|
2089
2083
|
}): boolean;
|
|
2090
2084
|
static getCoinflowApiUrl(env?: CoinflowEnvs): string;
|
|
2091
|
-
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 & {
|
|
2085
|
+
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 & {
|
|
2092
2086
|
baseUrl?: string;
|
|
2093
2087
|
} & WithGeo): string;
|
|
2094
2088
|
static getCoinflowIntentsUrl({ baseUrl, route, color, theme, env, origins, deviceId, merchantCss, loaderBackground, handleHeightChangeId, }: CoinflowIntentsIFrameProps & {
|
|
@@ -2101,7 +2095,6 @@ declare class CoinflowUtils {
|
|
|
2101
2095
|
polygon: T;
|
|
2102
2096
|
base: T;
|
|
2103
2097
|
arbitrum: T;
|
|
2104
|
-
stellar: T;
|
|
2105
2098
|
monad: T;
|
|
2106
2099
|
tempo: T;
|
|
2107
2100
|
user: T;
|
|
@@ -2188,111 +2181,6 @@ declare class EventBus {
|
|
|
2188
2181
|
static remove(type: string, callback: EventBusCallback): void;
|
|
2189
2182
|
}
|
|
2190
2183
|
|
|
2191
|
-
declare const TokenExCardNumberIframeId = "tokenExCardNumber";
|
|
2192
|
-
declare const TokenExCvvContainerID = "tokenExCardCvv";
|
|
2193
|
-
interface TokenExIframe extends ReturnType<typeof TokenEx.Iframe> {
|
|
2194
|
-
tokenize: () => Promise<TokenizationResponse>;
|
|
2195
|
-
}
|
|
2196
|
-
declare const CARD_TYPE_MAPPING: Record<CardType, string>;
|
|
2197
|
-
interface TokenExIFrameConfiguration {
|
|
2198
|
-
origin: string;
|
|
2199
|
-
timestamp: string;
|
|
2200
|
-
tokenExID: string;
|
|
2201
|
-
tokenScheme: string;
|
|
2202
|
-
authenticationKey: string;
|
|
2203
|
-
pci: true;
|
|
2204
|
-
token?: string;
|
|
2205
|
-
use3DS?: boolean;
|
|
2206
|
-
threeDSMethodNotificationUrl?: string;
|
|
2207
|
-
}
|
|
2208
|
-
interface CardFormInputStyles {
|
|
2209
|
-
base: Properties | string;
|
|
2210
|
-
placeholder?: Properties | string;
|
|
2211
|
-
focus?: Properties | string;
|
|
2212
|
-
error?: Properties | string;
|
|
2213
|
-
}
|
|
2214
|
-
type CoinflowCardTokenResponse = {
|
|
2215
|
-
token: string;
|
|
2216
|
-
};
|
|
2217
|
-
interface CoinflowCardNumberInputProps {
|
|
2218
|
-
env: CoinflowEnvs;
|
|
2219
|
-
css: CardFormInputStyles & {
|
|
2220
|
-
cvv: CardFormInputStyles;
|
|
2221
|
-
};
|
|
2222
|
-
debug?: boolean;
|
|
2223
|
-
origins: string[];
|
|
2224
|
-
font?: string;
|
|
2225
|
-
}
|
|
2226
|
-
interface CoinflowCvvOnlyInputProps {
|
|
2227
|
-
token: string;
|
|
2228
|
-
cardType: CardType;
|
|
2229
|
-
env: CoinflowEnvs;
|
|
2230
|
-
css: CardFormInputStyles & {
|
|
2231
|
-
cvv: CardFormInputStyles;
|
|
2232
|
-
};
|
|
2233
|
-
debug?: boolean;
|
|
2234
|
-
origins: string[];
|
|
2235
|
-
font?: string;
|
|
2236
|
-
}
|
|
2237
|
-
interface VersionDetail {
|
|
2238
|
-
threeDSMethodURL: string;
|
|
2239
|
-
acsStartProtocolVersion: string;
|
|
2240
|
-
acsEndProtocolVersion: string;
|
|
2241
|
-
threeDSServerStartVersion: string;
|
|
2242
|
-
threeDSServerEndVersion?: string;
|
|
2243
|
-
acsInfoInd: [string];
|
|
2244
|
-
directoryServerID: string;
|
|
2245
|
-
dsStartProtocolVersion: string;
|
|
2246
|
-
dsEndProtocolVersion: string;
|
|
2247
|
-
dsIdentifier: string;
|
|
2248
|
-
threeDSServerTransID: string;
|
|
2249
|
-
}
|
|
2250
|
-
interface TokenizationResponse {
|
|
2251
|
-
cardType: string;
|
|
2252
|
-
cvvIncluded: true;
|
|
2253
|
-
firstSix: string;
|
|
2254
|
-
lastFour: string;
|
|
2255
|
-
referenceNumber: string;
|
|
2256
|
-
token: string;
|
|
2257
|
-
tokenHMAC: string;
|
|
2258
|
-
recommended3dsVersion?: Record<string, string>;
|
|
2259
|
-
threeDSecureResponse?: VersionDetail[];
|
|
2260
|
-
}
|
|
2261
|
-
|
|
2262
|
-
type MerchantIdOrCheckoutJwt = {
|
|
2263
|
-
checkoutJwt: string;
|
|
2264
|
-
} | {
|
|
2265
|
-
merchantId: string;
|
|
2266
|
-
};
|
|
2267
|
-
interface CommonDoInitializeTokenExIframeArgs {
|
|
2268
|
-
css: string;
|
|
2269
|
-
debug?: boolean;
|
|
2270
|
-
font?: string;
|
|
2271
|
-
origins: string[];
|
|
2272
|
-
tokenExScriptLoaded: boolean;
|
|
2273
|
-
env: CoinflowEnvs;
|
|
2274
|
-
setCachedToken: (s: string | undefined) => void;
|
|
2275
|
-
setLoaded: (b: boolean) => void;
|
|
2276
|
-
}
|
|
2277
|
-
type DoInitializeTokenExIframeArgs = CommonDoInitializeTokenExIframeArgs & MerchantIdOrCheckoutJwt;
|
|
2278
|
-
type DoInitializeCvvOnlyTokenExIframeArgs = DoInitializeTokenExIframeArgs & {
|
|
2279
|
-
token: string;
|
|
2280
|
-
cardType: CardType;
|
|
2281
|
-
};
|
|
2282
|
-
type GetIFrameConfigArgs = {
|
|
2283
|
-
token?: string;
|
|
2284
|
-
origins: string[];
|
|
2285
|
-
env: CoinflowEnvs;
|
|
2286
|
-
} & MerchantIdOrCheckoutJwt;
|
|
2287
|
-
declare function getIframeConfig(args: GetIFrameConfigArgs): Promise<TokenExIFrameConfiguration>;
|
|
2288
|
-
declare function setTokenExScriptTag({ env, setTokenExScriptLoaded, }: {
|
|
2289
|
-
env: CoinflowEnvs;
|
|
2290
|
-
setTokenExScriptLoaded: (b: boolean) => void;
|
|
2291
|
-
}): void;
|
|
2292
|
-
declare function doInitializeCvvOnlyTokenExIframe(args: DoInitializeCvvOnlyTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|
|
2293
|
-
declare function doInitializeTokenExIframe(args: DoInitializeTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|
|
2294
|
-
declare function doInitializeTokenExCardOnlyIframe(args: DoInitializeTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|
|
2295
|
-
|
|
2296
2184
|
/**
|
|
2297
2185
|
* Framework-agnostic definitions for the V2 card-form skeleton loader.
|
|
2298
2186
|
*
|
|
@@ -2398,6 +2286,88 @@ declare function getSkeletonColors(theme?: {
|
|
|
2398
2286
|
background?: string;
|
|
2399
2287
|
}): SkeletonColors;
|
|
2400
2288
|
|
|
2289
|
+
type L2L3Tax = {
|
|
2290
|
+
taxExempt: false;
|
|
2291
|
+
salesTax: Cents;
|
|
2292
|
+
} | {
|
|
2293
|
+
taxExempt: true;
|
|
2294
|
+
};
|
|
2295
|
+
type L2L3Level2 = L2L3Tax & {
|
|
2296
|
+
/**
|
|
2297
|
+
* @minLength 1
|
|
2298
|
+
* @maxLength 15
|
|
2299
|
+
* @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
|
|
2300
|
+
*/
|
|
2301
|
+
invoiceReference?: string;
|
|
2302
|
+
};
|
|
2303
|
+
interface L2L3Item {
|
|
2304
|
+
/**
|
|
2305
|
+
* @minLength 1
|
|
2306
|
+
* @maxLength 26
|
|
2307
|
+
* @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
|
|
2308
|
+
*/
|
|
2309
|
+
name: string;
|
|
2310
|
+
/**
|
|
2311
|
+
* @minLength 1
|
|
2312
|
+
* @maxLength 12
|
|
2313
|
+
* @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
|
|
2314
|
+
*/
|
|
2315
|
+
productCode: string;
|
|
2316
|
+
/**
|
|
2317
|
+
* @isInt
|
|
2318
|
+
* @minimum 1
|
|
2319
|
+
*/
|
|
2320
|
+
quantity: number;
|
|
2321
|
+
unitCost: Cents;
|
|
2322
|
+
/**
|
|
2323
|
+
* @minLength 1
|
|
2324
|
+
* @maxLength 8
|
|
2325
|
+
* @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
|
|
2326
|
+
*/
|
|
2327
|
+
unitOfMeasure: string;
|
|
2328
|
+
/**
|
|
2329
|
+
* NIGP commodity code
|
|
2330
|
+
* @minLength 1
|
|
2331
|
+
* @maxLength 12
|
|
2332
|
+
* @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
|
|
2333
|
+
*/
|
|
2334
|
+
commodityCode: string;
|
|
2335
|
+
totalTaxAmount: Cents;
|
|
2336
|
+
totalDiscountAmount: Cents;
|
|
2337
|
+
totalAmountNoTax: Cents;
|
|
2338
|
+
totalAmount: Cents;
|
|
2339
|
+
}
|
|
2340
|
+
interface L2L3Level3 {
|
|
2341
|
+
discountAmount: Cents;
|
|
2342
|
+
shippingAmount: Cents;
|
|
2343
|
+
dutyAmount: Cents;
|
|
2344
|
+
shipping: {
|
|
2345
|
+
/**
|
|
2346
|
+
* @minLength 1
|
|
2347
|
+
* @maxLength 10
|
|
2348
|
+
* @pattern ^[a-zA-Z0-9\x20]+$
|
|
2349
|
+
*/
|
|
2350
|
+
postalCode: string;
|
|
2351
|
+
/**
|
|
2352
|
+
* @pattern ^[A-Z]{2}$
|
|
2353
|
+
*/
|
|
2354
|
+
countryCode: string;
|
|
2355
|
+
};
|
|
2356
|
+
/**
|
|
2357
|
+
* @minItems 1
|
|
2358
|
+
* @maxItems 99
|
|
2359
|
+
*/
|
|
2360
|
+
items: L2L3Item[];
|
|
2361
|
+
}
|
|
2362
|
+
type L2L3Data = {
|
|
2363
|
+
level: 'level2';
|
|
2364
|
+
level2: L2L3Level2;
|
|
2365
|
+
} | {
|
|
2366
|
+
level: 'level3';
|
|
2367
|
+
level2: L2L3Level2;
|
|
2368
|
+
level3: L2L3Level3;
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2401
2371
|
declare const DEVICE_ID_HEADER = "x-device-id";
|
|
2402
2372
|
declare const SESSION_ID_HEADER = "x-session-id";
|
|
2403
2373
|
declare const REFERRER_HEADER = "x-coinflow-referrer";
|
|
@@ -2413,6 +2383,18 @@ type CoinflowPurchaseHeadersType = CoinflowProtectionHeadersType & {
|
|
|
2413
2383
|
};
|
|
2414
2384
|
declare function getCoinflowPurchaseHeaders(): CoinflowPurchaseHeadersType;
|
|
2415
2385
|
|
|
2386
|
+
interface CoinflowFraudProtectionTokens {
|
|
2387
|
+
deviceId?: string | null;
|
|
2388
|
+
sessionId?: string | null;
|
|
2389
|
+
purchaseToken?: string | null;
|
|
2390
|
+
}
|
|
2391
|
+
declare class CoinflowFraudProtectionHeader {
|
|
2392
|
+
static readonly payloadVersion = 1;
|
|
2393
|
+
static readonly maxLength = 8192;
|
|
2394
|
+
static encode({ deviceId, sessionId, purchaseToken, }: CoinflowFraudProtectionTokens): string | null;
|
|
2395
|
+
private static base64UrlEncode;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2416
2398
|
declare function initCoinflowProtection({ coinflowEnv, merchantId, }: {
|
|
2417
2399
|
coinflowEnv: CoinflowEnvs;
|
|
2418
2400
|
merchantId: string;
|
|
@@ -2515,59 +2497,6 @@ declare class CoinflowWithdrawHistoryComponent {
|
|
|
2515
2497
|
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowWithdrawHistoryComponent, "lib-coinflow-withdraw-history", never, {}, {}, never, never, true, never>;
|
|
2516
2498
|
}
|
|
2517
2499
|
|
|
2518
|
-
declare class CoinflowCardNumberInput implements OnDestroy {
|
|
2519
|
-
private cardFormService;
|
|
2520
|
-
args: CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt;
|
|
2521
|
-
private iframe;
|
|
2522
|
-
private onScriptLoaded;
|
|
2523
|
-
private initializeTokenEx;
|
|
2524
|
-
reinitialize(): void;
|
|
2525
|
-
ngOnInit(): void;
|
|
2526
|
-
ngOnDestroy(): void;
|
|
2527
|
-
tokenize(): Promise<_coinflowlabs_angular.TokenizationResponse>;
|
|
2528
|
-
protected readonly TokenExCardNumberIframeId = "tokenExCardNumber";
|
|
2529
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCardNumberInput, never>;
|
|
2530
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCardNumberInput, "lib-coinflow-card-number-input", never, { "args": { "alias": "args"; "required": false; }; }, {}, never, never, true, never>;
|
|
2531
|
-
}
|
|
2532
|
-
|
|
2533
|
-
declare class CoinflowCardNumberOnlyInput implements OnDestroy {
|
|
2534
|
-
private cardFormService;
|
|
2535
|
-
args: CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt;
|
|
2536
|
-
private iframe;
|
|
2537
|
-
private onScriptLoaded;
|
|
2538
|
-
private initializeTokenEx;
|
|
2539
|
-
reinitialize(): void;
|
|
2540
|
-
ngOnInit(): void;
|
|
2541
|
-
ngOnDestroy(): void;
|
|
2542
|
-
tokenize(): Promise<_coinflowlabs_angular.TokenizationResponse>;
|
|
2543
|
-
protected readonly TokenExCardNumberIframeId = "tokenExCardNumber";
|
|
2544
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCardNumberOnlyInput, never>;
|
|
2545
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCardNumberOnlyInput, "lib-coinflow-card-number-only-input", never, { "args": { "alias": "args"; "required": false; }; }, {}, never, never, true, never>;
|
|
2546
|
-
}
|
|
2547
|
-
|
|
2548
|
-
declare class CoinflowCvvInputComponent {
|
|
2549
|
-
protected readonly TokenExCvvContainerID = "tokenExCardCvv";
|
|
2550
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCvvInputComponent, never>;
|
|
2551
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCvvInputComponent, "lib-coinflow-cvv-input", never, {}, {}, never, never, true, never>;
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
declare class CoinflowCvvOnlyInputComponent implements OnDestroy {
|
|
2555
|
-
private cardFormService;
|
|
2556
|
-
args: CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt;
|
|
2557
|
-
private iframe;
|
|
2558
|
-
private onScriptLoaded;
|
|
2559
|
-
private cleanup;
|
|
2560
|
-
private initializeTokenEx;
|
|
2561
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
2562
|
-
reinitialize(): void;
|
|
2563
|
-
ngOnInit(): void;
|
|
2564
|
-
ngOnDestroy(): void;
|
|
2565
|
-
tokenize(): Promise<_coinflowlabs_angular.TokenizationResponse>;
|
|
2566
|
-
protected readonly TokenExCvvContainerID = "tokenExCardCvv";
|
|
2567
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCvvOnlyInputComponent, never>;
|
|
2568
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCvvOnlyInputComponent, "lib-coinflow-cvv-only-input", never, { "args": { "alias": "args"; "required": false; }; }, {}, never, never, true, never>;
|
|
2569
|
-
}
|
|
2570
|
-
|
|
2571
2500
|
interface CardFormArgs {
|
|
2572
2501
|
merchantId: string;
|
|
2573
2502
|
env?: CoinflowEnvs;
|
|
@@ -2590,6 +2519,9 @@ interface CardFormTokenResponse {
|
|
|
2590
2519
|
token: string;
|
|
2591
2520
|
expMonth?: string;
|
|
2592
2521
|
expYear?: string;
|
|
2522
|
+
bin?: string;
|
|
2523
|
+
lastFour?: string;
|
|
2524
|
+
cardType?: CardType;
|
|
2593
2525
|
}
|
|
2594
2526
|
declare class CoinflowCardForm implements OnInit, OnDestroy {
|
|
2595
2527
|
private sanitizer;
|
|
@@ -2680,5 +2612,5 @@ type WithOnLoad = {
|
|
|
2680
2612
|
onLoad?: () => void | Promise<void>;
|
|
2681
2613
|
};
|
|
2682
2614
|
|
|
2683
|
-
export { BANK_LINK_REVEAL_DELAY_MS, BANK_LINK_STATUS_PARAM, BankingCurrencies, CARD_ENTRY_BORDER_PX, CARD_ENTRY_DIVIDER_PX, CARD_ENTRY_MARGIN_PX, CARD_ENTRY_MIN_WIDTHS, CARD_ENTRY_ROW_HEIGHT, CARD_ENTRY_ROW_HEIGHT_PX, CARD_ENTRY_SLOT_GAP_PX, CARD_FIELD_ERROR_MESSAGES,
|
|
2684
|
-
export type { AccountFundingTransaction, AccountLinkErrorInfo, AccountLinkedInfo, AccountLinkedType, AccountNotLinkedInfo, AccountNotLinkedReason, AnyObject, ArbitrumWalletProps, AuthDeclinedWalletCallInfo, BankLinkCompletion, BankLinkStatus, BankingCurrency, BaseWalletProps, CachedLinkToken, CardEntryConfig, CardEntryDivider, CardEntryInputName, CardEntryLayout, CardFieldInputEvent, CardFormArgs,
|
|
2615
|
+
export { BANK_LINK_REVEAL_DELAY_MS, BANK_LINK_STATUS_PARAM, BankingCurrencies, CARD_ENTRY_BORDER_PX, CARD_ENTRY_DIVIDER_PX, CARD_ENTRY_MARGIN_PX, CARD_ENTRY_MIN_WIDTHS, CARD_ENTRY_ROW_HEIGHT, CARD_ENTRY_ROW_HEIGHT_PX, CARD_ENTRY_SLOT_GAP_PX, CARD_FIELD_ERROR_MESSAGES, COMPACT_SKELETON_HEIGHT_PX, CardFunding, CardType, ChargebackProtectionAccountType, CoinflowApplePayButtonComponent, CoinflowCardForm, CoinflowCardFormV2, CoinflowFraudProtectionHeader, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, DEVICE_ID_HEADER, EventBus, FORTER_TOKEN_HEADER, IFrameMessageMethods, INLINE_SKELETON_HEIGHT_PX, MerchantStyle, PaymentMethods, REFERRER_HEADER, RN_REDIRECT_MESSAGE_NAME, SESSION_ID_HEADER, SKELETON_BOX_STYLE, SKELETON_FADE_MS, SKELETON_LAYOUTS, SKELETON_PULSE_ANIMATION_NAME, SKELETON_ROOT_PADDING_PX, SettlementType, ThreeDsChallengePreference, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, awaitForterToken, bankLinkCallbackParams, buildCardEntryGridCss, buildCardEntryLayout, buildSkeletonCss, canReuseLinkToken, captureForterToken, getCardFieldInputEvents, getCardFieldValidationError, getCoinflowProtectionHeaders, getCoinflowPurchaseHeaders, getCurrencyDecimals, getCustomerName, getForterToken, getHandlers, getSkeletonColors, getSkeletonGridClass, getSkeletonGridTemplate, getWalletPubkey, guessSkeletonHeightPx, handleIFrameMessage, initCoinflowProtection, invertRate, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, parseCachedLinkToken, paymentMethodLabels, productType, recordFrontendError, resolveBankLinkCompletion, serializeCachedLinkToken, shouldStackSkeleton };
|
|
2616
|
+
export type { AccountFundingTransaction, AccountLinkErrorInfo, AccountLinkedInfo, AccountLinkedType, AccountNotLinkedInfo, AccountNotLinkedReason, AnyObject, ArbitrumWalletProps, AuthDeclinedWalletCallInfo, BankLinkCompletion, BankLinkStatus, BankingCurrency, BaseWalletProps, CachedLinkToken, CardEntryConfig, CardEntryDivider, CardEntryInputName, CardEntryLayout, CardFieldInputEvent, CardFormArgs, CardFormTokenResponse, CardFormVariant, Cart, CartClassOmitted, CartItem, CartItemClassOmitted, Cents, ChargebackProtectionData, ChargebackProtectionItem, CoinflowArbitrumHistoryProps, CoinflowArbitrumPurchaseProps, CoinflowArbitrumWithdrawProps, CoinflowBankLinkProps, CoinflowBaseHistoryProps, CoinflowBasePurchaseProps, CoinflowBaseWithdrawProps, CoinflowBlockchain, CoinflowCommonPaymentIntentProps, CoinflowCommonPurchaseProps, CoinflowCommonWithdrawProps, CoinflowEnvs, CoinflowEthHistoryProps, CoinflowEthPurchaseProps, CoinflowEthWithdrawProps, CoinflowEvmHistoryProps, CoinflowEvmPurchaseProps, CoinflowFraudProtectionTokens, CoinflowHistoryProps, CoinflowIFrameProps, CoinflowIntentsIFrameProps, CoinflowMonadHistoryProps, CoinflowMonadPurchaseProps, CoinflowMonadWithdrawProps, CoinflowPolygonHistoryProps, CoinflowPolygonPurchaseProps, CoinflowPolygonWithdrawProps, CoinflowProtectionHeadersType, CoinflowPurchaseHeadersType, CoinflowPurchaseProps, CoinflowSessionKeyHistoryProps, CoinflowSessionKeyPurchaseProps, CoinflowSolanaHistoryProps, CoinflowSolanaPurchaseProps, CoinflowSolanaWithdrawProps, CoinflowTempoHistoryProps, CoinflowTempoPurchaseProps, CoinflowTempoWithdrawProps, CoinflowTypes, CoinflowWithdrawProps, CommonEvmRedeem, CryptoCartItem, CurrencyCents, CustomerInfo, DecentRedeem, EthWallet, EthWalletProps, EventBusCallback, EvmTransactionData, ExchangeRate, FlightTicketCartItem, FlightUpgradeCartItem, FullName, GiftCardCartItem, IFrameMessageHandlers, InputErrorWalletCallInfo, InputValidWalletCallInfo, KnownTokenIdRedeem, L2L3Data, L2L3Item, L2L3Level2, L2L3Level3, L2L3Tax, LamportsAmount, LodgingCartItem, MerchantIdOrCheckoutJwt, MerchantTheme, MergeWithOptionalDiff, MonadWalletProps, NameCustomerInfo, NftCartItemClassOmitted, NormalRedeem, OnAccountLinkErrorMethod, OnAccountLinkedMethod, OnAccountNotLinkedMethod, OnAuthDeclinedMethod, OnInputErrorMethod, OnInputValidMethod, OnSuccessMethod, PartialBy, PolygonWalletProps, PurchaseCustomPayInFee, RecipientAftInfo, RemainingLimit, ReturnedTokenIdRedeem, SafeMintRedeem, SkeletonColors, SkeletonLayout, SolanaWallet, SolanaWalletProps, SplitNameCustomerInfo, Subtotal, TempoWalletProps, TokenRedeem, TokenSubtotal, TravelCartItem, TravelFirstFlight, TravelLodging, TravelLodgingHotel, TravelTrip, TypedCurrencyCents, WalletCall, WalletTypes, WithGeo, WithOnLoad, WithdrawCurrency, ZeroAuthSavedPaymentMethods, ZeroAuthVerifyCard, ZeroAuthorizationConfig };
|