@paydock/client-sdk 1.122.3-beta → 1.123.2-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +161 -5
  2. package/bundles/index.cjs +2472 -1735
  3. package/bundles/index.cjs.d.ts +314 -25
  4. package/bundles/index.mjs +2471 -1736
  5. package/bundles/index.mjs.d.ts +314 -25
  6. package/bundles/types/api/api-base.d.ts +1 -1
  7. package/bundles/types/api/api-base.d.ts.map +1 -1
  8. package/bundles/types/checkout/helpers/instruction-module.d.ts +1 -1
  9. package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -1
  10. package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -1
  11. package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts +21 -0
  12. package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts.map +1 -0
  13. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -1
  14. package/bundles/types/checkout/layout-widgets/additionals.d.ts +1 -1
  15. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +6 -4
  16. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -1
  17. package/bundles/types/configs/env/environment.cba.d.ts +8 -7
  18. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -1
  19. package/bundles/types/configs/env/environment.interface.d.ts +6 -6
  20. package/bundles/types/configs/env/environment.interface.d.ts.map +1 -1
  21. package/bundles/types/configs/env/environment.paydock.d.ts +8 -7
  22. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -1
  23. package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts +9 -0
  24. package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts.map +1 -0
  25. package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts +42 -0
  26. package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts.map +1 -0
  27. package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts +163 -0
  28. package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts.map +1 -0
  29. package/bundles/types/fraud-prevention/index.d.ts +3 -0
  30. package/bundles/types/fraud-prevention/index.d.ts.map +1 -0
  31. package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts +79 -0
  32. package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts.map +1 -0
  33. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts +2 -0
  34. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts.map +1 -0
  35. package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts +20 -0
  36. package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts.map +1 -0
  37. package/bundles/types/helper/access-token.d.ts +1 -0
  38. package/bundles/types/helper/access-token.d.ts.map +1 -1
  39. package/bundles/types/helper/browser.d.ts.map +1 -1
  40. package/bundles/types/helper/deep-clone.d.ts +13 -0
  41. package/bundles/types/helper/deep-clone.d.ts.map +1 -0
  42. package/bundles/types/index-cba.d.ts +1 -0
  43. package/bundles/types/index-cba.d.ts.map +1 -1
  44. package/bundles/types/index.d.ts +2 -1
  45. package/bundles/types/index.d.ts.map +1 -1
  46. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +1 -1
  47. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -1
  48. package/bundles/types/shared/device/device-info.service.d.ts +13 -0
  49. package/bundles/types/shared/device/device-info.service.d.ts.map +1 -0
  50. package/bundles/types/shared/http/authorization-strategy.d.ts +41 -0
  51. package/bundles/types/shared/http/authorization-strategy.d.ts.map +1 -0
  52. package/bundles/types/shared/http/http-fetcher.d.ts +29 -0
  53. package/bundles/types/shared/http/http-fetcher.d.ts.map +1 -0
  54. package/bundles/types/shared/http/http-fetcher.factory.d.ts +17 -0
  55. package/bundles/types/shared/http/http-fetcher.factory.d.ts.map +1 -0
  56. package/bundles/types/shared/http/http-request.d.ts +1 -1
  57. package/bundles/types/shared/http/http-request.d.ts.map +1 -1
  58. package/bundles/types/shared/http/http-response.dto.d.ts +19 -0
  59. package/bundles/types/shared/http/http-response.dto.d.ts.map +1 -0
  60. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +1 -1
  61. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -1
  62. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -1
  63. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -1
  64. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -1
  65. package/bundles/types/shared/shared.constants.d.ts +6 -0
  66. package/bundles/types/shared/shared.constants.d.ts.map +1 -0
  67. package/bundles/types/widget/configuration.d.ts +1 -1
  68. package/bundles/types/widget/configuration.d.ts.map +1 -1
  69. package/bundles/types/widget/html-widget.d.ts +14 -14
  70. package/bundles/types/widget/html-widget.d.ts.map +1 -1
  71. package/bundles/widget.umd.js +2472 -1735
  72. package/bundles/widget.umd.js.d.ts +314 -25
  73. package/bundles/widget.umd.js.min.d.ts +314 -25
  74. package/bundles/widget.umd.min.js +1 -1
  75. package/docs/api-widget.md +4 -4
  76. package/docs/fraud-prevention-examples.md +154 -0
  77. package/docs/fraud-prevention.md +0 -0
  78. package/docs/install/npm.example.md +1 -1
  79. package/package.json +17 -9
  80. package/slate.md +156 -1
  81. package/bundles/types/shared/http/index.d.ts +0 -2
  82. package/bundles/types/shared/http/index.d.ts.map +0 -1
@@ -35,29 +35,30 @@ interface PreAuthBody {
35
35
  };
36
36
  }
37
37
 
38
- declare type Configs = IConf[];
39
- interface IConf {
38
+ type EnvironmentConfiguration = {
40
39
  env: string;
41
40
  url: string;
42
- }
41
+ };
42
+ type EnvironmentConfigurations = EnvironmentConfiguration[];
43
43
  interface IEnvironment {
44
- getConf(): IConf;
44
+ getConf(): EnvironmentConfiguration;
45
45
  getEnv(): string;
46
- setEnv(env: string, alias?: string): void;
46
+ setEnv(environmentId: string, alias?: string): void;
47
47
  }
48
48
 
49
49
  declare class Env implements IEnvironment {
50
50
  private alias;
51
- private configs;
52
- private env;
53
- constructor(configs: Configs, defaultEnv?: string);
54
- setEnv(env: string, alias?: string): void;
51
+ private environmentConfigurations;
52
+ private environmentId;
53
+ constructor(configs: EnvironmentConfigurations, defaultEnv?: string);
54
+ setEnv(environmentId: string, alias?: string): void;
55
55
  getEnv(): string;
56
- getConf(): IConf;
57
- private isValidMode;
56
+ getConf(): EnvironmentConfiguration;
57
+ private validateAlias;
58
+ private validateEnvironmentId;
58
59
  }
59
60
 
60
- type HttpRequestMethod = 'DELETE' | 'GET' | 'OPTIONS' | 'POST' | 'PUT';
61
+ type HttpRequestMethod = 'GET' | 'POST';
61
62
  type HttpRequestUrl = string | URL;
62
63
 
63
64
  type AgentPrototype = Pick<(typeof MicroAgent)['prototype'], 'addPageAction' | 'noticeError'>;
@@ -80,9 +81,9 @@ interface CustomEventDTO {
80
81
  [x: string]: unknown;
81
82
  }
82
83
  interface ReportBaseContext {
83
- environment: string;
84
84
  sdkVersion: string | null;
85
85
  description?: string;
86
+ environment?: string;
86
87
  [x: string]: SerializableValue | undefined;
87
88
  }
88
89
  type SerializableValue = string | number | symbol | object | null;
@@ -1674,17 +1675,17 @@ declare class HtmlWidget extends HtmlMultiWidget {
1674
1675
  setFormElements(elements: IFormElement[]): void;
1675
1676
  setFormElement(element: IFormElement): void;
1676
1677
  /**
1677
- * The method to set meta information for the checkout page
1678
- *
1679
- * @example
1680
- * config.setMeta({
1681
- brand_name: 'paydock',
1682
- reference: '15',
1683
- email: 'wault@paydock.com'
1684
- });
1685
- *
1686
- * @param {IPayPalMeta | IBamboraMeta} object - data which can be shown on checkout page [IPayPalMeta]{@link IPayPalMeta} [IBamboraMeta]{@link IBamboraMeta}
1687
- */
1678
+ * The method to set meta information for the checkout page
1679
+ *
1680
+ * @example
1681
+ * config.setMeta({
1682
+ brand_name: 'paydock',
1683
+ reference: '15',
1684
+ email: 'wault@paydock.com'
1685
+ });
1686
+ *
1687
+ * @param {IPayPalMeta | IBamboraMeta} object - data which can be shown on checkout page [IPayPalMeta]{@link IPayPalMeta} [IBamboraMeta]{@link IBamboraMeta}
1688
+ */
1688
1689
  setMeta(meta: IPayPalMeta | IBamboraMeta): void;
1689
1690
  setGiftCardScheme(giftCardScheme: any, processingNetwork: any): void;
1690
1691
  }
@@ -2291,6 +2292,294 @@ declare class PaypalCheckoutButton extends CheckoutButton {
2291
2292
  /** @constructs */ constructor(selector: string, publicKey: string, gatewayId?: string);
2292
2293
  }
2293
2294
 
2295
+ type Mode = (typeof MODES)[number];
2296
+ declare const MODES: readonly ["live", "test"];
2297
+ type FraudPreventionProvider = (typeof PROVIDERS)[keyof typeof PROVIDERS];
2298
+ declare const PROVIDERS: {
2299
+ readonly FORTER: "forter";
2300
+ };
2301
+
2302
+ declare const NAMESPACE = "fraudPrevention";
2303
+ declare const TYPES: {
2304
+ readonly FINGERPRINT_TOKEN_ERROR: "fingerprint-token-error";
2305
+ readonly FINTERPRINT_TOKEN_READY: "fingerprint-token-ready";
2306
+ };
2307
+ declare const FRAUD_PREVENTION_EVENTS: {
2308
+ readonly NAMESPACE: "fraudPrevention";
2309
+ readonly TYPES: {
2310
+ readonly FINGERPRINT_TOKEN_ERROR: "fingerprint-token-error";
2311
+ readonly FINTERPRINT_TOKEN_READY: "fingerprint-token-ready";
2312
+ };
2313
+ readonly PROVIDERS: {
2314
+ readonly FORTER: "forter";
2315
+ };
2316
+ };
2317
+ type FraudPreventionEventType = (typeof TYPES)[keyof typeof TYPES];
2318
+ type FraudPreventionEventFingerprintTokenReady = {
2319
+ type: Extract<FraudPreventionEventType, 'fingerprint-token-ready'>;
2320
+ provider: FraudPreventionProvider;
2321
+ payload: {
2322
+ token: string;
2323
+ };
2324
+ };
2325
+ type FraudPreventionEventFingerprintTokenError = {
2326
+ type: Extract<FraudPreventionEventType, 'fingerprint-token-error'>;
2327
+ provider: FraudPreventionProvider;
2328
+ payload: {
2329
+ code: 'unexpected_token_type';
2330
+ message: string;
2331
+ };
2332
+ };
2333
+ type FraudPreventionEvent = FraudPreventionEventFingerprintTokenReady | FraudPreventionEventFingerprintTokenError;
2334
+ interface IFraudPreventionEventMap {
2335
+ [NAMESPACE]: CustomEvent<FraudPreventionEvent>;
2336
+ }
2337
+ declare global {
2338
+ interface DocumentEventMap extends IFraudPreventionEventMap {
2339
+ }
2340
+ }
2341
+
2342
+ type ResultFailure<F> = Readonly<[null, F]>;
2343
+ type ResultSuccess<S> = Readonly<[S, null]>;
2344
+ type Result<S = unknown, F = unknown> = ResultFailure<F> | ResultSuccess<S>;
2345
+
2346
+ /**
2347
+ * Configuration options for the Forter Device Agent
2348
+ *
2349
+ * @typedef {Object} ForterDeviceAgentConfig
2350
+ * @property {string} siteId - Your Forter site ID or subsite merchant ID
2351
+ * @property {boolean} csp - Set to true if your site uses Content-Security-Policy
2352
+ * @property {'live' | 'test'} mode - Environment mode, must be either 'live' or 'test'
2353
+ */
2354
+ type ForterDeviceAgentConfig = {
2355
+ siteId: string;
2356
+ csp: boolean;
2357
+ mode: Mode;
2358
+ };
2359
+ /**
2360
+ * A class that manages Forter's device fingerprinting integration.
2361
+ * It handles script injection and token management.
2362
+ *
2363
+ * @example
2364
+ *
2365
+ * ```js
2366
+ * const agent = new ForterDeviceAgent({
2367
+ * siteId: 'your-site-id',
2368
+ * csp: false,
2369
+ * mode: 'test'
2370
+ * }).init();
2371
+ *
2372
+ * // Later, access the token
2373
+ * const token = agent.token;
2374
+ * ```
2375
+ */
2376
+ declare class ForterDeviceAgent {
2377
+ private readonly config;
2378
+ private cookieToken;
2379
+ /**
2380
+ * Creates a new instance of ForterDeviceAgent
2381
+ *
2382
+ * @param {ForterDeviceAgentConfig} config - Configuration object for Forter integration
2383
+ */
2384
+ constructor(config: ForterDeviceAgentConfig);
2385
+ /**
2386
+ * Returns the current Forter token if available
2387
+ *
2388
+ * @returns {string | null} The Forter token or null if not yet available
2389
+ *
2390
+ * @example
2391
+ *
2392
+ * ```js
2393
+ * const token = forterAgent.token;
2394
+ * if (token) {
2395
+ * // Use the token
2396
+ * }
2397
+ * ```
2398
+ */
2399
+ get token(): string | null;
2400
+ /**
2401
+ * Initializes the Forter Device Agent by injecting the required script
2402
+ * and setting up event listeners.
2403
+ *
2404
+ * @returns {ForterDeviceAgent} The current instance for method chaining
2405
+ *
2406
+ * @example
2407
+ *
2408
+ * ```js
2409
+ * const agent = new ForterDeviceAgent(config).init();
2410
+ * ```
2411
+ */
2412
+ init(): ForterDeviceAgent;
2413
+ private emit;
2414
+ private emitFingerprintTokenWrongTypeError;
2415
+ private emitFingerprintTokenReady;
2416
+ private getScriptContent;
2417
+ private injectScript;
2418
+ private subscribeSdkEvents;
2419
+ private validateCsp;
2420
+ private validateMode;
2421
+ private validateSiteId;
2422
+ }
2423
+
2424
+ type FraudPreventionConfig = {
2425
+ mode: Mode;
2426
+ environmentAlias?: string;
2427
+ environmentId: string;
2428
+ };
2429
+ /**
2430
+ * A class to manage integration fraud prevention integrations.
2431
+ *
2432
+ * @example
2433
+ *
2434
+ * ```js
2435
+ * const fps = new FraudPreventionService({
2436
+ * environmentId: 'production',
2437
+ * mode: 'live',
2438
+ * });
2439
+ * ```
2440
+ */
2441
+ declare class FraudPreventionService {
2442
+ private readonly environment;
2443
+ private readonly httpFetcherFactory;
2444
+ private readonly mode;
2445
+ private authorizationStrategy;
2446
+ private forterDeviceAgent;
2447
+ /**
2448
+ * @constructs
2449
+ *
2450
+ * @param {Object} config - FraudPreventionService configuration object
2451
+ * @param {string} config.mode - Environment mode, must be either 'test' or 'live'
2452
+ * @param {string} config.environmentId - Environment identifier
2453
+ * @param {string} [config.environmentAlias] - Optional environment alias for API requests
2454
+ */
2455
+ constructor(config: FraudPreventionConfig);
2456
+ /**
2457
+ * Automatically detects and sets the authorization strategy the service should use
2458
+ * based on the shape of the provided string.
2459
+ *
2460
+ * If the value is a JWT token, it will use an access token strategy, otherwise it will use
2461
+ * a public key strategy.
2462
+ *
2463
+ * @param value - The authorization value (either JWT token or public key)
2464
+ *
2465
+ * @returns The FraudPreventionService instance for method chaining
2466
+ *
2467
+ * @example
2468
+ * ```ts
2469
+ * // With JWT token
2470
+ * fps.withAuthorization('eyJhbGciOiJIUzI1NiIs...');
2471
+ *
2472
+ * // With public key
2473
+ * fps.withAuthorization('pk_example_...');
2474
+ * ```
2475
+ */
2476
+ withAuthorization(value: string): FraudPreventionService;
2477
+ /**
2478
+ * Sets the authorization strategy to use access token authentication.
2479
+ *
2480
+ * @param accessToken - The JWT access token
2481
+ * @returns The FraudPreventionService instance for method chaining
2482
+ *
2483
+ * @example
2484
+ *
2485
+ * ```ts
2486
+ * fps.withAccessTokenStrategy('eyJhbGciOiJIUzI1NiIs...');
2487
+ * ```
2488
+ */
2489
+ withAccessTokenStrategy(accessToken: string): FraudPreventionService;
2490
+ /**
2491
+ * Sets the authorization strategy to use public key authentication.
2492
+ *
2493
+ * @param publicKey - The public key
2494
+ * @returns The FraudPreventionService instance for method chaining
2495
+ *
2496
+ * @example
2497
+ *
2498
+ * ```ts
2499
+ * fps.withPublicKeyStrategy('pk_example_...');
2500
+ * ```
2501
+ */
2502
+ withPublicKeyStrategy(publicKey: string): FraudPreventionService;
2503
+ /**
2504
+ * Initializes Forter integration with the provided configuration. This method injects
2505
+ * Forter's JavaScript snippet into the page and starts tracking user behavior.
2506
+ *
2507
+ * @param {Object} config - Configuration object for Forter integration
2508
+ * @param {string} [config.siteId] - Your Forter site ID or subsite merchant ID
2509
+ * @param {string} [config.providerId] - Your Paydock integrated Forter Service ID.
2510
+ * @param {boolean} [config.csp] - Set to true if your site uses Content-Security-Policies
2511
+ *
2512
+ * @throws If neither siteId nor providerId are provided in the configuration
2513
+ * @throws If providerId fails to resolve to a siteId through Paydock integration services
2514
+ *
2515
+ * @returns Promise with existing FraudPreventionService instance
2516
+ *
2517
+ * @example
2518
+ *
2519
+ * ```js
2520
+ * await fps.withForter({
2521
+ * providerId: 'your-paydock-forter-service-id'
2522
+ * });
2523
+ * ```
2524
+ *
2525
+ * @example
2526
+ *
2527
+ * ```js
2528
+ * await fps.withForter({
2529
+ * siteId: 'your-forter-site-id',
2530
+ * });
2531
+ * ```
2532
+ */
2533
+ withForter(config: {
2534
+ csp?: boolean;
2535
+ } & ({
2536
+ siteId: string;
2537
+ providerId?: never;
2538
+ } | {
2539
+ siteId?: never;
2540
+ providerId: string;
2541
+ })): Promise<this>;
2542
+ /**
2543
+ * Returns the initialized Forter device agent instance if available.
2544
+ *
2545
+ * Make sure to call withForter() before accessing this getter.
2546
+ *
2547
+ * @returns {ForterDeviceAgent | null} The Forter device agent instance or null if not initialized
2548
+ *
2549
+ * @example
2550
+ *
2551
+ * ```js
2552
+ * const fps = new FraudPreventionService();
2553
+ *
2554
+ * fps.withForter({
2555
+ * siteId: 'your-site-id',
2556
+ * mode: 'test'
2557
+ * });
2558
+ *
2559
+ * const token = fps.forter?.token;
2560
+ * ```
2561
+ */
2562
+ get forter(): ForterDeviceAgent | null;
2563
+ /**
2564
+ * Gets the credentials for a specific fraud prevention provider.
2565
+ *
2566
+ * Returns different credential types based on the selected provider.
2567
+ *
2568
+ * @param provider - The fraud prevention provider
2569
+ * @param providerId - The ID of the provider instance
2570
+ *
2571
+ * @returns a tuple with shape [providerSpecificCredentials, error]
2572
+ */
2573
+ getProviderCredentials<P extends FraudPreventionProvider>(provider: P, providerId: string): Promise<Result<P extends "forter" ? {
2574
+ provider: "forter";
2575
+ siteId: string;
2576
+ subsiteId: string;
2577
+ } : never, unknown>>;
2578
+ private validateEnvironmentId;
2579
+ private validateEnvironmentAlias;
2580
+ private validateMode;
2581
+ }
2582
+
2294
2583
  /**
2295
2584
  *
2296
2585
  * Class PaymentSourceWidget include method for for creating iframe url
@@ -4462,4 +4751,4 @@ declare class PayPalSavePaymentSourceWidget {
4462
4751
  onCancel(callback?: (data?: IOnCancelEventData) => void): () => void;
4463
4752
  }
4464
4753
 
4465
- export { AfterpayCheckoutButton, Api, ApplePayWalletButtonExpress, CHECKOUT_BUTTON_EVENT, Canvas3ds, Checkout, ClickToPay, Configuration, ELEMENT, EVENT$1 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, type ICheckout, type IClickToPayMeta, type IDetails, type IElementStyleInput, type IEventCheckoutFinishData, type IEventData, type IPayPalMeta, type IStyles$1 as IStyles, type ITexts, type IWalletMeta, type IWalletOnClickEvent, type IWalletPaymentSuccessfulEvent, type IWalletUnavailableEvent, type IWalletUpdateData, type IWalletUpdateEvent, InstructionDebugger, MultiWidget, PAYMENT_TYPE, PURPOSE, PayPalDataCollector, PayPalSavePaymentSourceWidget, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, type VaultDisplayStyle, VaultDisplayWidget, WalletButtons, ZipmoneyCheckoutButton };
4754
+ export { AfterpayCheckoutButton, Api, ApplePayWalletButtonExpress, CHECKOUT_BUTTON_EVENT, Canvas3ds, Checkout, ClickToPay, Configuration, ELEMENT, EVENT$1 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, FRAUD_PREVENTION_EVENTS, type FraudPreventionEvent, type FraudPreventionEventType, type FraudPreventionProvider, FraudPreventionService, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, type ICheckout, type IClickToPayMeta, type IDetails, type IElementStyleInput, type IEventCheckoutFinishData, type IEventData, type IPayPalMeta, type IStyles$1 as IStyles, type ITexts, type IWalletMeta, type IWalletOnClickEvent, type IWalletPaymentSuccessfulEvent, type IWalletUnavailableEvent, type IWalletUpdateData, type IWalletUpdateEvent, InstructionDebugger, MultiWidget, PAYMENT_TYPE, PURPOSE, PayPalDataCollector, PayPalSavePaymentSourceWidget, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, type VaultDisplayStyle, VaultDisplayWidget, WalletButtons, ZipmoneyCheckoutButton };
@@ -1,6 +1,6 @@
1
1
  import { Env } from '../configs/env';
2
2
  import { Observable } from 'rxjs';
3
- import { type HttpRequestMethod } from '../shared/http';
3
+ import { type HttpRequestMethod } from '../shared/http/http-request';
4
4
  import { type ReportErrorFn, type ReportEventFn } from '../shared/services/instrumentation/repositories';
5
5
  export declare enum API_AUTH_TYPE {
6
6
  PUBLIC_KEY = 0,
@@ -1 +1 @@
1
- {"version":3,"file":"api-base.d.ts","sourceRoot":"","sources":["../../src/api/api-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAc,MAAM,MAAM,CAAC;AAE9C,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,aAAa,EAErB,MAAM,iDAAiD,CAAC;AAEzD,oBAAY,aAAa;IACrB,UAAU,IAAI;IACd,KAAK,IAAI;CACZ;AAED,qBAAa,OAAO;IAChB,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,aAAa,CAAC;gBAEZ,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa;IAMlD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO;IAM5C,iBAAiB,CAAC,GAAG,SAAS,MAAM,EAA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AO,CAAC,GAAG,CAAC,CAAC;KACrC;IA+BD,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,EAAE,KAAA,EAAE,OAAO,KAAA;IAkBtE,aAAa,CAAC,GAAG,EAAE,EACf,IAAI,EACJ,MAAM,GACT,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,GAAG,CAAC;IAkBlD,WAAW,EAAE,aAAa,CAExB;IAEF,WAAW,EAAE,aAAa,CAExB;IAEF,SAAS,CAAC,aAAa,CACnB,MAAM,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,GAAG,MAAM,CAAC,EAClD,IAAI,EAAE,MAAM;IAoBhB,SAAS,KAAK,GAAG;;;;MAMhB;CACJ"}
@@ -1,4 +1,4 @@
1
- import { Instruction } from "./instruction-handler";
1
+ import type { Instruction } from './instruction-handler';
2
2
  export declare class InstructionModule {
3
3
  instructions: any[];
4
4
  getInstruction(id: string): Instruction | null;
@@ -1 +1 @@
1
- {"version":3,"file":"instruction-module.d.ts","sourceRoot":"","sources":["../../../src/checkout/helpers/instruction-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,qBAAa,iBAAiB;IAC1B,YAAY,EAAE,GAAG,EAAE,CAAM;IAElB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;CAKxD"}
1
+ {"version":3,"file":"instruction-module.d.ts","sourceRoot":"","sources":["../../../src/checkout/helpers/instruction-module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,qBAAa,iBAAiB;IAC5B,YAAY,EAAE,GAAG,EAAE,CAAM;IAElB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;CAKtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/index.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,IAAI,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAM/E,qBAgBa,mBAAoB,SAAQ,MAAM;CAAG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAiB/E,qBAiBa,mBAAoB,SAAQ,MAAM;CAAG"}
@@ -0,0 +1,21 @@
1
+ import { FraudPreventionService } from '../../../fraud-prevention/fraud-prevention.service';
2
+ import { InstructionHandler } from '../../helpers/instruction-handler';
3
+ export declare class InstructionFraudServiceShow extends InstructionHandler {
4
+ protected fps: FraudPreventionService;
5
+ handle(context: {
6
+ public_key: string;
7
+ gateway_id: string;
8
+ payload: {
9
+ gateway_id: string;
10
+ meta: object;
11
+ charge_token: string;
12
+ };
13
+ instruction_token: string;
14
+ customisation?: {
15
+ base?: object;
16
+ };
17
+ next_instruction?: boolean;
18
+ }): void;
19
+ destroy(): void;
20
+ }
21
+ //# sourceMappingURL=instruction.fraud_service.show.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instruction.fraud_service.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.fraud_service.show.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAE5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,qBACa,2BAA4B,SAAQ,kBAAkB;IACjE,SAAS,CAAC,GAAG,EAAE,sBAAsB,CAAC;IAE/B,MAAM,CAAC,OAAO,EAAE;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE,CAAC;QACpE,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,GAAG,IAAI;IA6DD,OAAO;CAGf"}
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.payment_methods.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.payment_methods.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAKvE,qBACa,4BAA6B,SAAQ,kBAAkB;IAClE,MAAM,CAAC,OAAO,EAAE;QACd,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,4BAA4B,EAAE,MAAM,EAAE,CAAC;YACvC,aAAa,CAAC,EAAE;gBACd,IAAI,CAAC,EAAE;oBACL,YAAY,CAAC,EAAE,MAAM,CAAC;oBACtB,YAAY,CAAC,EAAE,MAAM,CAAC;oBACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;iBAC3B,CAAC;aACH,CAAC;SACH,CAAC;KACH,GAAG,IAAI;IA2BD,OAAO;CACf"}
1
+ {"version":3,"file":"instruction.payment_methods.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.payment_methods.show.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAIvE,qBACa,4BAA6B,SAAQ,kBAAkB;IAClE,MAAM,CAAC,OAAO,EAAE;QACd,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,4BAA4B,EAAE,MAAM,EAAE,CAAC;YACvC,aAAa,CAAC,EAAE;gBACd,IAAI,CAAC,EAAE;oBACL,YAAY,CAAC,EAAE,MAAM,CAAC;oBACtB,YAAY,CAAC,EAAE,MAAM,CAAC;oBACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;iBAC3B,CAAC;aACH,CAAC;SACH,CAAC;KACH,GAAG,IAAI;IA0BD,OAAO;CACf"}
@@ -1,3 +1,3 @@
1
- declare const _default: "\n<style>\n #standaloneWidget iframe[title=\"3d secure authentication\"],\n #standaloneWidget .threeDSecure-iframe {\n height: 420px;\n }\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 320px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget button {\n width: 100% !important;\n }\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget .paypal-buttons {\n margin: 0 10px 10px 10px;\n }\n }\n @media screen and (min-width: 451px) {\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 40px;\n max-width: 290px;\n }\n }\n @media screen and (min-width: 451px) {\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget .gpay-card-info-container-fill {\n margin: 0 10px 5px 10px;\n }\n }\n \n apple-pay-button {\n padding: 0 10px 20px;\n max-width: 320px;\n }\n \n @media screen and (max-width: 450px) {\n apple-pay-button {\n max-width: 100%;\n }\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
1
+ declare const _default: "\n<style>\n #standaloneWidget iframe[title=\"3d secure authentication\"],\n #standaloneWidget .threeDSecure-iframe {\n height: 420px;\n }\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 200px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget button {\n width: 100% !important;\n }\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget .paypal-buttons {\n margin: 0 10px 10px 10px;\n }\n }\n @media screen and (min-width: 451px) {\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 10px;\n max-width: 320px;\n }\n }\n @media screen and (min-width: 451px) {\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget .gpay-card-info-container-fill {\n margin: 0 10px 5px 10px;\n }\n }\n \n apple-pay-button {\n padding: 0 10px 20px;\n max-width: 320px;\n }\n \n @media screen and (max-width: 450px) {\n apple-pay-button {\n max-width: 100%;\n }\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
2
2
  export default _default;
3
3
  //# sourceMappingURL=additionals.d.ts.map
@@ -1,9 +1,9 @@
1
1
  /// <reference types="applepayjs" />
2
+ import type { ApiInternal } from '../../api/api-internal';
2
3
  import { Container } from '../../components/container';
3
- import { EventEmitter } from '../../helper/event-emitter';
4
- import { ApiInternal } from "../../api/api-internal";
5
- import { IFrame } from "../../components/iframe";
6
- import { IFrameEvent } from "../../components/iframe-event";
4
+ import { IFrame } from '../../components/iframe';
5
+ import type { IFrameEvent } from '../../components/iframe-event';
6
+ import type { EventEmitter } from '../../helper/event-emitter';
7
7
  declare global {
8
8
  interface Window {
9
9
  ApplePaySession: ApplePaySession;
@@ -49,5 +49,7 @@ export declare class PaymentMethods {
49
49
  private setStylesToStandaloneWidget;
50
50
  private setPaymentMethodsOrder;
51
51
  disablePaymentMethod(): void;
52
+ private queryAllPaymentSource;
53
+ private queryAllPaymentSourceRadioButtons;
52
54
  }
53
55
  //# sourceMappingURL=payment-methods.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-methods.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/payment-methods.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAQ5D,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,eAAe,EAAE,eAAe,CAAC;KACpC;CACJ;AAED,eAAO,MAAM,gBAAgB;;;CAG5B,CAAC;AASF,qBAAa,cAAc;IAcnB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE;IAC3B,SAAS,CAAC,MAAM,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;IAC5J,SAAS,CAAC,MAAM,EA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MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,EACS,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EACxC,iBAAiB,EAAE,MAAM,EACzB,IAAI,UAAQ;IAYd,OAAO,CAAC,IAAI;IAuCZ,OAAO,CAAC,kBAAkB;IAuBnB,MAAM,CAAC,iBAAiB,KAAA;IAU/B,OAAO,CAAC,SAAS;IAoCjB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,2BAA2B;IAOnC,OAAO,CAAC,sBAAsB;IAUvB,oBAAoB;IAqC3B,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,iCAAiC;CAO1C"}
@@ -1,4 +1,4 @@
1
- import type { Configs, IConf, IEnvironment } from "./environment.interface";
1
+ import type { EnvironmentConfiguration, EnvironmentConfigurations, IEnvironment } from './environment.interface';
2
2
  export declare const ENV: {
3
3
  STAGING_CBA: string;
4
4
  PROD_CBA: string;
@@ -18,12 +18,13 @@ export declare const DEFAULT_ALIAS: {
18
18
  };
19
19
  export declare class Env implements IEnvironment {
20
20
  private alias;
21
- private configs;
22
- private env;
23
- constructor(configs: Configs, defaultEnv?: string);
24
- setEnv(env: string, alias?: string): void;
21
+ private environmentConfigurations;
22
+ private environmentId;
23
+ constructor(configs: EnvironmentConfigurations, defaultEnv?: string);
24
+ setEnv(environmentId: string, alias?: string): void;
25
25
  getEnv(): string;
26
- getConf(): IConf;
27
- private isValidMode;
26
+ getConf(): EnvironmentConfiguration;
27
+ private validateAlias;
28
+ private validateEnvironmentId;
28
29
  }
29
30
  //# sourceMappingURL=environment.cba.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment.cba.d.ts","sourceRoot":"","sources":["../../../src/configs/env/environment.cba.ts"],"names":[],"mappings":"AAAA,OA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IAAI,MAAM;IAIhB,OAAO,IAAI,wBAAwB;IAoB1C,OAAO,CAAC,aAAa;IAkBrB,OAAO,CAAC,qBAAqB;CAa9B"}
@@ -1,12 +1,12 @@
1
- declare type Configs = IConf[];
2
- interface IConf {
1
+ type EnvironmentConfiguration = {
3
2
  env: string;
4
3
  url: string;
5
- }
4
+ };
5
+ type EnvironmentConfigurations = EnvironmentConfiguration[];
6
6
  interface IEnvironment {
7
- getConf(): IConf;
7
+ getConf(): EnvironmentConfiguration;
8
8
  getEnv(): string;
9
- setEnv(env: string, alias?: string): void;
9
+ setEnv(environmentId: string, alias?: string): void;
10
10
  }
11
- export type { Configs, IConf, IEnvironment };
11
+ export type { EnvironmentConfigurations, EnvironmentConfiguration, IEnvironment };
12
12
  //# sourceMappingURL=environment.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment.interface.d.ts","sourceRoot":"","sources":["../../../src/configs/env/environment.interface.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,OAAO,GAAG,KAAK,EAAE,CAAC;AAE/B,UAAU,KAAK;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf;AAED,UAAU,YAAY;IAClB,OAAO,IAAI,KAAK,CAAC;IACjB,MAAM,IAAI,MAAM,CAAC;IACjB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7C;AAED,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"environment.interface.d.ts","sourceRoot":"","sources":["../../../src/configs/env/environment.interface.ts"],"names":[],"mappings":"AAAA,KAAK,wBAAwB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,yBAAyB,GAAG,wBAAwB,EAAE,CAAC;AAE5D,UAAU,YAAY;IACpB,OAAO,IAAI,wBAAwB,CAAC;IACpC,MAAM,IAAI,MAAM,CAAC;IACjB,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrD;AAED,YAAY,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,YAAY,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { IEnvironment, Configs, IConf } from "./environment.interface";
1
+ import type { EnvironmentConfiguration, EnvironmentConfigurations, IEnvironment } from './environment.interface';
2
2
  export declare const ENV: {
3
3
  SANDBOX: string;
4
4
  SANDBOX_KOVENA: string;
@@ -37,12 +37,13 @@ export declare const DEFAULT_ALIAS: {
37
37
  };
38
38
  export declare class Env implements IEnvironment {
39
39
  private alias;
40
- private configs;
41
- private env;
42
- constructor(configs: Configs, defaultEnv?: string);
43
- setEnv(env: string, alias?: string): void;
40
+ private environmentConfigurations;
41
+ private environmentId;
42
+ constructor(configs: EnvironmentConfigurations, defaultEnv?: string);
43
+ setEnv(environmentId: string, alias?: string): void;
44
44
  getEnv(): string;
45
- getConf(): IConf;
46
- private isValidMode;
45
+ getConf(): EnvironmentConfiguration;
46
+ private validateAlias;
47
+ private validateEnvironmentId;
47
48
  }
48
49
  //# sourceMappingURL=environment.paydock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment.paydock.d.ts","sourceRoot":"","sources":["../../../src/configs/env/environment.paydock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAE5E,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBf,CAAA;AAED,eAAO,MAAM,UAAU;;;GAsBtB,CAAA;AAED,eAAO,MAAM,OAAO;;;GAmBnB,CAAA;AAKD,eAAO,MAAM,WAAW,QAAc,CAAC;AACvC,eAAO,MAAM,aAAa;;;CAGzB,CAAC;AAEF,qBAAa,GAAI,YAAW,YAAY;IACpC,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,GAAG,CAAS;gBAER,OAAO,EAAE,OAAO,EAAE,UAAU,GAAE,MAAoB;IAKvD,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAgBzC,MAAM,IAAI,MAAM;IAIhB,OAAO,IAAI,KAAK;IAcvB,OAAO,CAAC,WAAW;CAUtB"}
1
+ {"version":3,"file":"environment.paydock.d.ts","sourceRoot":"","sources":["../../../src/configs/env/environment.paydock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,EACzB,YAAY,EACb,MAAM,yBAAyB,CAAC;AAEjC,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBf,CAAC;AAEF,eAAO,MAAM,UAAU;;;GAsBtB,CAAC;AAEF,eAAO,MAAM,OAAO;;;GAmBnB,CAAC;AAMF,eAAO,MAAM,WAAW,QAAc,CAAC;AACvC,eAAO,MAAM,aAAa;;;CAGzB,CAAC;AAIF,qBAAa,GAAI,YAAW,YAAY;IACtC,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,yBAAyB,CAA4B;IAC7D,OAAO,CAAC,aAAa,CAAS;gBAElB,OAAO,EAAE,yBAAyB,EAAE,UAAU,GAAE,MAAoB;IAKzE,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAcnD,MAAM,IAAI,MAAM;IAIhB,OAAO,IAAI,wBAAwB;IAoB1C,OAAO,CAAC,aAAa;IAkBrB,OAAO,CAAC,qBAAqB;CAa9B"}
@@ -0,0 +1,9 @@
1
+ export type Mode = (typeof MODES)[number];
2
+ export declare const MODES: readonly ["live", "test"];
3
+ export declare function isValidMode(val: unknown): val is Mode;
4
+ export type FraudPreventionProvider = (typeof PROVIDERS)[keyof typeof PROVIDERS];
5
+ export declare const PROVIDERS: {
6
+ readonly FORTER: "forter";
7
+ };
8
+ export declare function isValidProvider(val: unknown): val is FraudPreventionProvider;
9
+ //# sourceMappingURL=fraud-prevention.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fraud-prevention.constants.d.ts","sourceRoot":"","sources":["../../src/fraud-prevention/fraud-prevention.constants.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1C,eAAO,MAAM,KAAK,2BAA4B,CAAC;AAE/C,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,IAAI,CAErD;AAED,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEjF,eAAO,MAAM,SAAS;;CAEZ,CAAC;AAEX,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,uBAAuB,CAE5E"}