@coinflowlabs/angular 1.15.2 → 2.0.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 -444
- package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/types/coinflowlabs-angular.d.ts +117 -164
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`.
|
|
@@ -1518,6 +1524,11 @@ declare enum ThreeDsChallengePreference {
|
|
|
1518
1524
|
Frictionless = "Frictionless",
|
|
1519
1525
|
Challenge = "Challenge"
|
|
1520
1526
|
}
|
|
1527
|
+
declare enum CardFunding {
|
|
1528
|
+
debit = "debit",
|
|
1529
|
+
credit = "credit",
|
|
1530
|
+
prepaid = "prepaid"
|
|
1531
|
+
}
|
|
1521
1532
|
declare enum PaymentMethods {
|
|
1522
1533
|
card = "card",
|
|
1523
1534
|
ach = "ach",
|
|
@@ -1527,6 +1538,7 @@ declare enum PaymentMethods {
|
|
|
1527
1538
|
usdc = "usdc",
|
|
1528
1539
|
googlePay = "googlePay",
|
|
1529
1540
|
applePay = "applePay",
|
|
1541
|
+
paze = "paze",
|
|
1530
1542
|
credits = "credits",
|
|
1531
1543
|
crypto = "crypto",
|
|
1532
1544
|
wire = "wire",
|
|
@@ -1613,6 +1625,8 @@ interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
1613
1625
|
* The payment methods displayed on the UI. If omitted, all available payment methods will be displayed.
|
|
1614
1626
|
*/
|
|
1615
1627
|
allowedPaymentMethods?: PaymentMethods[];
|
|
1628
|
+
/** Apple Pay sheet filter only (not enforced); `prepaid` shows as debit and `cardSettings.debitOnly` wins. */
|
|
1629
|
+
allowedCardFunding?: CardFunding[];
|
|
1616
1630
|
customerInfo?: CustomerInfo;
|
|
1617
1631
|
settlementType?: SettlementType;
|
|
1618
1632
|
authOnly?: boolean;
|
|
@@ -1974,7 +1988,7 @@ interface CoinflowBankLinkProps extends Pick<CoinflowTypes, 'merchantId' | 'env'
|
|
|
1974
1988
|
*/
|
|
1975
1989
|
onAccountLinkError?: OnAccountLinkErrorMethod | undefined;
|
|
1976
1990
|
}
|
|
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 {
|
|
1991
|
+
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
1992
|
walletPubkey: string | null | undefined;
|
|
1979
1993
|
sessionKey?: string;
|
|
1980
1994
|
route: string;
|
|
@@ -2088,7 +2102,7 @@ declare class CoinflowUtils {
|
|
|
2088
2102
|
env?: CoinflowEnvs;
|
|
2089
2103
|
}): boolean;
|
|
2090
2104
|
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 & {
|
|
2105
|
+
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
2106
|
baseUrl?: string;
|
|
2093
2107
|
} & WithGeo): string;
|
|
2094
2108
|
static getCoinflowIntentsUrl({ baseUrl, route, color, theme, env, origins, deviceId, merchantCss, loaderBackground, handleHeightChangeId, }: CoinflowIntentsIFrameProps & {
|
|
@@ -2188,111 +2202,6 @@ declare class EventBus {
|
|
|
2188
2202
|
static remove(type: string, callback: EventBusCallback): void;
|
|
2189
2203
|
}
|
|
2190
2204
|
|
|
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
2205
|
/**
|
|
2297
2206
|
* Framework-agnostic definitions for the V2 card-form skeleton loader.
|
|
2298
2207
|
*
|
|
@@ -2398,6 +2307,88 @@ declare function getSkeletonColors(theme?: {
|
|
|
2398
2307
|
background?: string;
|
|
2399
2308
|
}): SkeletonColors;
|
|
2400
2309
|
|
|
2310
|
+
type L2L3Tax = {
|
|
2311
|
+
taxExempt: false;
|
|
2312
|
+
salesTax: Cents;
|
|
2313
|
+
} | {
|
|
2314
|
+
taxExempt: true;
|
|
2315
|
+
};
|
|
2316
|
+
type L2L3Level2 = L2L3Tax & {
|
|
2317
|
+
/**
|
|
2318
|
+
* @minLength 1
|
|
2319
|
+
* @maxLength 15
|
|
2320
|
+
* @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
|
|
2321
|
+
*/
|
|
2322
|
+
invoiceReference?: string;
|
|
2323
|
+
};
|
|
2324
|
+
interface L2L3Item {
|
|
2325
|
+
/**
|
|
2326
|
+
* @minLength 1
|
|
2327
|
+
* @maxLength 26
|
|
2328
|
+
* @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
|
|
2329
|
+
*/
|
|
2330
|
+
name: string;
|
|
2331
|
+
/**
|
|
2332
|
+
* @minLength 1
|
|
2333
|
+
* @maxLength 12
|
|
2334
|
+
* @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
|
|
2335
|
+
*/
|
|
2336
|
+
productCode: string;
|
|
2337
|
+
/**
|
|
2338
|
+
* @isInt
|
|
2339
|
+
* @minimum 1
|
|
2340
|
+
*/
|
|
2341
|
+
quantity: number;
|
|
2342
|
+
unitCost: Cents;
|
|
2343
|
+
/**
|
|
2344
|
+
* @minLength 1
|
|
2345
|
+
* @maxLength 8
|
|
2346
|
+
* @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
|
|
2347
|
+
*/
|
|
2348
|
+
unitOfMeasure: string;
|
|
2349
|
+
/**
|
|
2350
|
+
* NIGP commodity code
|
|
2351
|
+
* @minLength 1
|
|
2352
|
+
* @maxLength 12
|
|
2353
|
+
* @pattern ^[a-zA-Z0-9\x20@!£*#$)(+_=.,/;:'"-]+$
|
|
2354
|
+
*/
|
|
2355
|
+
commodityCode: string;
|
|
2356
|
+
totalTaxAmount: Cents;
|
|
2357
|
+
totalDiscountAmount: Cents;
|
|
2358
|
+
totalAmountNoTax: Cents;
|
|
2359
|
+
totalAmount: Cents;
|
|
2360
|
+
}
|
|
2361
|
+
interface L2L3Level3 {
|
|
2362
|
+
discountAmount: Cents;
|
|
2363
|
+
shippingAmount: Cents;
|
|
2364
|
+
dutyAmount: Cents;
|
|
2365
|
+
shipping: {
|
|
2366
|
+
/**
|
|
2367
|
+
* @minLength 1
|
|
2368
|
+
* @maxLength 10
|
|
2369
|
+
* @pattern ^[a-zA-Z0-9\x20]+$
|
|
2370
|
+
*/
|
|
2371
|
+
postalCode: string;
|
|
2372
|
+
/**
|
|
2373
|
+
* @pattern ^[A-Z]{2}$
|
|
2374
|
+
*/
|
|
2375
|
+
countryCode: string;
|
|
2376
|
+
};
|
|
2377
|
+
/**
|
|
2378
|
+
* @minItems 1
|
|
2379
|
+
* @maxItems 99
|
|
2380
|
+
*/
|
|
2381
|
+
items: L2L3Item[];
|
|
2382
|
+
}
|
|
2383
|
+
type L2L3Data = {
|
|
2384
|
+
level: 'level2';
|
|
2385
|
+
level2: L2L3Level2;
|
|
2386
|
+
} | {
|
|
2387
|
+
level: 'level3';
|
|
2388
|
+
level2: L2L3Level2;
|
|
2389
|
+
level3: L2L3Level3;
|
|
2390
|
+
};
|
|
2391
|
+
|
|
2401
2392
|
declare const DEVICE_ID_HEADER = "x-device-id";
|
|
2402
2393
|
declare const SESSION_ID_HEADER = "x-session-id";
|
|
2403
2394
|
declare const REFERRER_HEADER = "x-coinflow-referrer";
|
|
@@ -2413,6 +2404,18 @@ type CoinflowPurchaseHeadersType = CoinflowProtectionHeadersType & {
|
|
|
2413
2404
|
};
|
|
2414
2405
|
declare function getCoinflowPurchaseHeaders(): CoinflowPurchaseHeadersType;
|
|
2415
2406
|
|
|
2407
|
+
interface CoinflowFraudProtectionTokens {
|
|
2408
|
+
deviceId?: string | null;
|
|
2409
|
+
sessionId?: string | null;
|
|
2410
|
+
purchaseToken?: string | null;
|
|
2411
|
+
}
|
|
2412
|
+
declare class CoinflowFraudProtectionHeader {
|
|
2413
|
+
static readonly payloadVersion = 1;
|
|
2414
|
+
static readonly maxLength = 8192;
|
|
2415
|
+
static encode({ deviceId, sessionId, purchaseToken, }: CoinflowFraudProtectionTokens): string | null;
|
|
2416
|
+
private static base64UrlEncode;
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2416
2419
|
declare function initCoinflowProtection({ coinflowEnv, merchantId, }: {
|
|
2417
2420
|
coinflowEnv: CoinflowEnvs;
|
|
2418
2421
|
merchantId: string;
|
|
@@ -2515,59 +2518,6 @@ declare class CoinflowWithdrawHistoryComponent {
|
|
|
2515
2518
|
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowWithdrawHistoryComponent, "lib-coinflow-withdraw-history", never, {}, {}, never, never, true, never>;
|
|
2516
2519
|
}
|
|
2517
2520
|
|
|
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
2521
|
interface CardFormArgs {
|
|
2572
2522
|
merchantId: string;
|
|
2573
2523
|
env?: CoinflowEnvs;
|
|
@@ -2590,6 +2540,9 @@ interface CardFormTokenResponse {
|
|
|
2590
2540
|
token: string;
|
|
2591
2541
|
expMonth?: string;
|
|
2592
2542
|
expYear?: string;
|
|
2543
|
+
bin?: string;
|
|
2544
|
+
lastFour?: string;
|
|
2545
|
+
cardType?: CardType;
|
|
2593
2546
|
}
|
|
2594
2547
|
declare class CoinflowCardForm implements OnInit, OnDestroy {
|
|
2595
2548
|
private sanitizer;
|
|
@@ -2680,5 +2633,5 @@ type WithOnLoad = {
|
|
|
2680
2633
|
onLoad?: () => void | Promise<void>;
|
|
2681
2634
|
};
|
|
2682
2635
|
|
|
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,
|
|
2636
|
+
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 };
|
|
2637
|
+
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, CoinflowStellarHistoryProps, CoinflowStellarPurchaseProps, CoinflowStellarWithdrawProps, 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, StellarWallet, StellarWalletProps, Subtotal, TempoWalletProps, TokenRedeem, TokenSubtotal, TravelCartItem, TravelFirstFlight, TravelLodging, TravelLodgingHotel, TravelTrip, TypedCurrencyCents, WalletCall, WalletTypes, WithGeo, WithOnLoad, WithdrawCurrency, ZeroAuthSavedPaymentMethods, ZeroAuthVerifyCard, ZeroAuthorizationConfig };
|