@coinflowlabs/angular 1.15.1 → 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 -446
- package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
- package/package.json +2 -1
- package/types/coinflowlabs-angular.d.ts +126 -165
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinflowlabs/angular",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.2.17",
|
|
6
6
|
"@angular/core": "^19.2.17",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"tweetnacl": "^1.0.3"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
+
"@nsure-ai/web-client-sdk": "^1.1.100",
|
|
14
15
|
"tslib": "^2.8.1"
|
|
15
16
|
},
|
|
16
17
|
"peerDependenciesMeta": {
|
|
@@ -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
|
/**
|
|
@@ -283,7 +282,12 @@ interface TokenSubtotal {
|
|
|
283
282
|
*/
|
|
284
283
|
address: string;
|
|
285
284
|
/**
|
|
286
|
-
* Number of tokens
|
|
285
|
+
* Number of tokens, from 0 to 1,000,000,000,000 inclusive.
|
|
286
|
+
* String values must be a plain decimal with at most 12 integer digits and
|
|
287
|
+
* 18 fractional digits.
|
|
288
|
+
* @minimum 0 amount must be non-negative
|
|
289
|
+
* @maximum 1000000000000 amount must be at most 1000000000000
|
|
290
|
+
* @pattern ^\d{1,12}(\.\d{1,18})?$ amount must be a non-negative decimal
|
|
287
291
|
*/
|
|
288
292
|
amount: number | string;
|
|
289
293
|
/**
|
|
@@ -1183,6 +1187,8 @@ declare const CARD_FIELD_ERROR_MESSAGES: {
|
|
|
1183
1187
|
readonly expiration: "Expiration is invalid. Please double check information.";
|
|
1184
1188
|
readonly cvv: "CVV is invalid. Please double check information.";
|
|
1185
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.";
|
|
1186
1192
|
};
|
|
1187
1193
|
declare function getCardFieldValidationError({ cardError, expirationError, cvvError, cvvEmpty, isCvvOnly, }: {
|
|
1188
1194
|
cardError: boolean;
|
|
@@ -1245,6 +1251,11 @@ declare enum SettlementType {
|
|
|
1245
1251
|
USDC = "USDC",
|
|
1246
1252
|
Bank = "Bank"
|
|
1247
1253
|
}
|
|
1254
|
+
type MerchantIdOrCheckoutJwt = {
|
|
1255
|
+
checkoutJwt: string;
|
|
1256
|
+
} | {
|
|
1257
|
+
merchantId: string;
|
|
1258
|
+
};
|
|
1248
1259
|
/**
|
|
1249
1260
|
* Configuration for a single custom pay-in fee line item.
|
|
1250
1261
|
* Pass via the `customPayInFees` field on `/checkout/link` or `/checkout/jwt-token`.
|
|
@@ -1513,6 +1524,11 @@ declare enum ThreeDsChallengePreference {
|
|
|
1513
1524
|
Frictionless = "Frictionless",
|
|
1514
1525
|
Challenge = "Challenge"
|
|
1515
1526
|
}
|
|
1527
|
+
declare enum CardFunding {
|
|
1528
|
+
debit = "debit",
|
|
1529
|
+
credit = "credit",
|
|
1530
|
+
prepaid = "prepaid"
|
|
1531
|
+
}
|
|
1516
1532
|
declare enum PaymentMethods {
|
|
1517
1533
|
card = "card",
|
|
1518
1534
|
ach = "ach",
|
|
@@ -1522,6 +1538,7 @@ declare enum PaymentMethods {
|
|
|
1522
1538
|
usdc = "usdc",
|
|
1523
1539
|
googlePay = "googlePay",
|
|
1524
1540
|
applePay = "applePay",
|
|
1541
|
+
paze = "paze",
|
|
1525
1542
|
credits = "credits",
|
|
1526
1543
|
crypto = "crypto",
|
|
1527
1544
|
wire = "wire",
|
|
@@ -1608,6 +1625,8 @@ interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
1608
1625
|
* The payment methods displayed on the UI. If omitted, all available payment methods will be displayed.
|
|
1609
1626
|
*/
|
|
1610
1627
|
allowedPaymentMethods?: PaymentMethods[];
|
|
1628
|
+
/** Apple Pay sheet filter only (not enforced); `prepaid` shows as debit and `cardSettings.debitOnly` wins. */
|
|
1629
|
+
allowedCardFunding?: CardFunding[];
|
|
1611
1630
|
customerInfo?: CustomerInfo;
|
|
1612
1631
|
settlementType?: SettlementType;
|
|
1613
1632
|
authOnly?: boolean;
|
|
@@ -1693,6 +1712,9 @@ interface CoinflowSolanaPurchaseProps extends CoinflowCommonPurchaseProps {
|
|
|
1693
1712
|
nativeSolToConvert?: {
|
|
1694
1713
|
lamports: string | number;
|
|
1695
1714
|
};
|
|
1715
|
+
/**
|
|
1716
|
+
* @deprecated No longer has any effect. Credits payments are always captured once the credits are delivered.
|
|
1717
|
+
*/
|
|
1696
1718
|
redemptionCheck?: boolean;
|
|
1697
1719
|
}
|
|
1698
1720
|
interface CoinflowSessionKeyPurchaseProps extends CoinflowCommonPurchaseProps {
|
|
@@ -1966,7 +1988,7 @@ interface CoinflowBankLinkProps extends Pick<CoinflowTypes, 'merchantId' | 'env'
|
|
|
1966
1988
|
*/
|
|
1967
1989
|
onAccountLinkError?: OnAccountLinkErrorMethod | undefined;
|
|
1968
1990
|
}
|
|
1969
|
-
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'
|
|
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 {
|
|
1970
1992
|
walletPubkey: string | null | undefined;
|
|
1971
1993
|
sessionKey?: string;
|
|
1972
1994
|
route: string;
|
|
@@ -2080,7 +2102,7 @@ declare class CoinflowUtils {
|
|
|
2080
2102
|
env?: CoinflowEnvs;
|
|
2081
2103
|
}): boolean;
|
|
2082
2104
|
static getCoinflowApiUrl(env?: CoinflowEnvs): string;
|
|
2083
|
-
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,
|
|
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 & {
|
|
2084
2106
|
baseUrl?: string;
|
|
2085
2107
|
} & WithGeo): string;
|
|
2086
2108
|
static getCoinflowIntentsUrl({ baseUrl, route, color, theme, env, origins, deviceId, merchantCss, loaderBackground, handleHeightChangeId, }: CoinflowIntentsIFrameProps & {
|
|
@@ -2180,111 +2202,6 @@ declare class EventBus {
|
|
|
2180
2202
|
static remove(type: string, callback: EventBusCallback): void;
|
|
2181
2203
|
}
|
|
2182
2204
|
|
|
2183
|
-
declare const TokenExCardNumberIframeId = "tokenExCardNumber";
|
|
2184
|
-
declare const TokenExCvvContainerID = "tokenExCardCvv";
|
|
2185
|
-
interface TokenExIframe extends ReturnType<typeof TokenEx.Iframe> {
|
|
2186
|
-
tokenize: () => Promise<TokenizationResponse>;
|
|
2187
|
-
}
|
|
2188
|
-
declare const CARD_TYPE_MAPPING: Record<CardType, string>;
|
|
2189
|
-
interface TokenExIFrameConfiguration {
|
|
2190
|
-
origin: string;
|
|
2191
|
-
timestamp: string;
|
|
2192
|
-
tokenExID: string;
|
|
2193
|
-
tokenScheme: string;
|
|
2194
|
-
authenticationKey: string;
|
|
2195
|
-
pci: true;
|
|
2196
|
-
token?: string;
|
|
2197
|
-
use3DS?: boolean;
|
|
2198
|
-
threeDSMethodNotificationUrl?: string;
|
|
2199
|
-
}
|
|
2200
|
-
interface CardFormInputStyles {
|
|
2201
|
-
base: Properties | string;
|
|
2202
|
-
placeholder?: Properties | string;
|
|
2203
|
-
focus?: Properties | string;
|
|
2204
|
-
error?: Properties | string;
|
|
2205
|
-
}
|
|
2206
|
-
type CoinflowCardTokenResponse = {
|
|
2207
|
-
token: string;
|
|
2208
|
-
};
|
|
2209
|
-
interface CoinflowCardNumberInputProps {
|
|
2210
|
-
env: CoinflowEnvs;
|
|
2211
|
-
css: CardFormInputStyles & {
|
|
2212
|
-
cvv: CardFormInputStyles;
|
|
2213
|
-
};
|
|
2214
|
-
debug?: boolean;
|
|
2215
|
-
origins: string[];
|
|
2216
|
-
font?: string;
|
|
2217
|
-
}
|
|
2218
|
-
interface CoinflowCvvOnlyInputProps {
|
|
2219
|
-
token: string;
|
|
2220
|
-
cardType: CardType;
|
|
2221
|
-
env: CoinflowEnvs;
|
|
2222
|
-
css: CardFormInputStyles & {
|
|
2223
|
-
cvv: CardFormInputStyles;
|
|
2224
|
-
};
|
|
2225
|
-
debug?: boolean;
|
|
2226
|
-
origins: string[];
|
|
2227
|
-
font?: string;
|
|
2228
|
-
}
|
|
2229
|
-
interface VersionDetail {
|
|
2230
|
-
threeDSMethodURL: string;
|
|
2231
|
-
acsStartProtocolVersion: string;
|
|
2232
|
-
acsEndProtocolVersion: string;
|
|
2233
|
-
threeDSServerStartVersion: string;
|
|
2234
|
-
threeDSServerEndVersion?: string;
|
|
2235
|
-
acsInfoInd: [string];
|
|
2236
|
-
directoryServerID: string;
|
|
2237
|
-
dsStartProtocolVersion: string;
|
|
2238
|
-
dsEndProtocolVersion: string;
|
|
2239
|
-
dsIdentifier: string;
|
|
2240
|
-
threeDSServerTransID: string;
|
|
2241
|
-
}
|
|
2242
|
-
interface TokenizationResponse {
|
|
2243
|
-
cardType: string;
|
|
2244
|
-
cvvIncluded: true;
|
|
2245
|
-
firstSix: string;
|
|
2246
|
-
lastFour: string;
|
|
2247
|
-
referenceNumber: string;
|
|
2248
|
-
token: string;
|
|
2249
|
-
tokenHMAC: string;
|
|
2250
|
-
recommended3dsVersion?: Record<string, string>;
|
|
2251
|
-
threeDSecureResponse?: VersionDetail[];
|
|
2252
|
-
}
|
|
2253
|
-
|
|
2254
|
-
type MerchantIdOrCheckoutJwt = {
|
|
2255
|
-
checkoutJwt: string;
|
|
2256
|
-
} | {
|
|
2257
|
-
merchantId: string;
|
|
2258
|
-
};
|
|
2259
|
-
interface CommonDoInitializeTokenExIframeArgs {
|
|
2260
|
-
css: string;
|
|
2261
|
-
debug?: boolean;
|
|
2262
|
-
font?: string;
|
|
2263
|
-
origins: string[];
|
|
2264
|
-
tokenExScriptLoaded: boolean;
|
|
2265
|
-
env: CoinflowEnvs;
|
|
2266
|
-
setCachedToken: (s: string | undefined) => void;
|
|
2267
|
-
setLoaded: (b: boolean) => void;
|
|
2268
|
-
}
|
|
2269
|
-
type DoInitializeTokenExIframeArgs = CommonDoInitializeTokenExIframeArgs & MerchantIdOrCheckoutJwt;
|
|
2270
|
-
type DoInitializeCvvOnlyTokenExIframeArgs = DoInitializeTokenExIframeArgs & {
|
|
2271
|
-
token: string;
|
|
2272
|
-
cardType: CardType;
|
|
2273
|
-
};
|
|
2274
|
-
type GetIFrameConfigArgs = {
|
|
2275
|
-
token?: string;
|
|
2276
|
-
origins: string[];
|
|
2277
|
-
env: CoinflowEnvs;
|
|
2278
|
-
} & MerchantIdOrCheckoutJwt;
|
|
2279
|
-
declare function getIframeConfig(args: GetIFrameConfigArgs): Promise<TokenExIFrameConfiguration>;
|
|
2280
|
-
declare function setTokenExScriptTag({ env, setTokenExScriptLoaded, }: {
|
|
2281
|
-
env: CoinflowEnvs;
|
|
2282
|
-
setTokenExScriptLoaded: (b: boolean) => void;
|
|
2283
|
-
}): void;
|
|
2284
|
-
declare function doInitializeCvvOnlyTokenExIframe(args: DoInitializeCvvOnlyTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|
|
2285
|
-
declare function doInitializeTokenExIframe(args: DoInitializeTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|
|
2286
|
-
declare function doInitializeTokenExCardOnlyIframe(args: DoInitializeTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|
|
2287
|
-
|
|
2288
2205
|
/**
|
|
2289
2206
|
* Framework-agnostic definitions for the V2 card-form skeleton loader.
|
|
2290
2207
|
*
|
|
@@ -2390,6 +2307,88 @@ declare function getSkeletonColors(theme?: {
|
|
|
2390
2307
|
background?: string;
|
|
2391
2308
|
}): SkeletonColors;
|
|
2392
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
|
+
|
|
2393
2392
|
declare const DEVICE_ID_HEADER = "x-device-id";
|
|
2394
2393
|
declare const SESSION_ID_HEADER = "x-session-id";
|
|
2395
2394
|
declare const REFERRER_HEADER = "x-coinflow-referrer";
|
|
@@ -2405,6 +2404,18 @@ type CoinflowPurchaseHeadersType = CoinflowProtectionHeadersType & {
|
|
|
2405
2404
|
};
|
|
2406
2405
|
declare function getCoinflowPurchaseHeaders(): CoinflowPurchaseHeadersType;
|
|
2407
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
|
+
|
|
2408
2419
|
declare function initCoinflowProtection({ coinflowEnv, merchantId, }: {
|
|
2409
2420
|
coinflowEnv: CoinflowEnvs;
|
|
2410
2421
|
merchantId: string;
|
|
@@ -2507,59 +2518,6 @@ declare class CoinflowWithdrawHistoryComponent {
|
|
|
2507
2518
|
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowWithdrawHistoryComponent, "lib-coinflow-withdraw-history", never, {}, {}, never, never, true, never>;
|
|
2508
2519
|
}
|
|
2509
2520
|
|
|
2510
|
-
declare class CoinflowCardNumberInput implements OnDestroy {
|
|
2511
|
-
private cardFormService;
|
|
2512
|
-
args: CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt;
|
|
2513
|
-
private iframe;
|
|
2514
|
-
private onScriptLoaded;
|
|
2515
|
-
private initializeTokenEx;
|
|
2516
|
-
reinitialize(): void;
|
|
2517
|
-
ngOnInit(): void;
|
|
2518
|
-
ngOnDestroy(): void;
|
|
2519
|
-
tokenize(): Promise<_coinflowlabs_angular.TokenizationResponse>;
|
|
2520
|
-
protected readonly TokenExCardNumberIframeId = "tokenExCardNumber";
|
|
2521
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCardNumberInput, never>;
|
|
2522
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCardNumberInput, "lib-coinflow-card-number-input", never, { "args": { "alias": "args"; "required": false; }; }, {}, never, never, true, never>;
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
declare class CoinflowCardNumberOnlyInput implements OnDestroy {
|
|
2526
|
-
private cardFormService;
|
|
2527
|
-
args: CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt;
|
|
2528
|
-
private iframe;
|
|
2529
|
-
private onScriptLoaded;
|
|
2530
|
-
private initializeTokenEx;
|
|
2531
|
-
reinitialize(): void;
|
|
2532
|
-
ngOnInit(): void;
|
|
2533
|
-
ngOnDestroy(): void;
|
|
2534
|
-
tokenize(): Promise<_coinflowlabs_angular.TokenizationResponse>;
|
|
2535
|
-
protected readonly TokenExCardNumberIframeId = "tokenExCardNumber";
|
|
2536
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCardNumberOnlyInput, never>;
|
|
2537
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCardNumberOnlyInput, "lib-coinflow-card-number-only-input", never, { "args": { "alias": "args"; "required": false; }; }, {}, never, never, true, never>;
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
declare class CoinflowCvvInputComponent {
|
|
2541
|
-
protected readonly TokenExCvvContainerID = "tokenExCardCvv";
|
|
2542
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCvvInputComponent, never>;
|
|
2543
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCvvInputComponent, "lib-coinflow-cvv-input", never, {}, {}, never, never, true, never>;
|
|
2544
|
-
}
|
|
2545
|
-
|
|
2546
|
-
declare class CoinflowCvvOnlyInputComponent implements OnDestroy {
|
|
2547
|
-
private cardFormService;
|
|
2548
|
-
args: CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt;
|
|
2549
|
-
private iframe;
|
|
2550
|
-
private onScriptLoaded;
|
|
2551
|
-
private cleanup;
|
|
2552
|
-
private initializeTokenEx;
|
|
2553
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
2554
|
-
reinitialize(): void;
|
|
2555
|
-
ngOnInit(): void;
|
|
2556
|
-
ngOnDestroy(): void;
|
|
2557
|
-
tokenize(): Promise<_coinflowlabs_angular.TokenizationResponse>;
|
|
2558
|
-
protected readonly TokenExCvvContainerID = "tokenExCardCvv";
|
|
2559
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCvvOnlyInputComponent, never>;
|
|
2560
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCvvOnlyInputComponent, "lib-coinflow-cvv-only-input", never, { "args": { "alias": "args"; "required": false; }; }, {}, never, never, true, never>;
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
2521
|
interface CardFormArgs {
|
|
2564
2522
|
merchantId: string;
|
|
2565
2523
|
env?: CoinflowEnvs;
|
|
@@ -2582,6 +2540,9 @@ interface CardFormTokenResponse {
|
|
|
2582
2540
|
token: string;
|
|
2583
2541
|
expMonth?: string;
|
|
2584
2542
|
expYear?: string;
|
|
2543
|
+
bin?: string;
|
|
2544
|
+
lastFour?: string;
|
|
2545
|
+
cardType?: CardType;
|
|
2585
2546
|
}
|
|
2586
2547
|
declare class CoinflowCardForm implements OnInit, OnDestroy {
|
|
2587
2548
|
private sanitizer;
|
|
@@ -2672,5 +2633,5 @@ type WithOnLoad = {
|
|
|
2672
2633
|
onLoad?: () => void | Promise<void>;
|
|
2673
2634
|
};
|
|
2674
2635
|
|
|
2675
|
-
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,
|
|
2676
|
-
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 };
|