@xsolla/payment-client-core 0.0.4 → 0.0.6
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/esm2020/lib/core/device-finger-print/device-finger-print-components.interface.mjs +2 -0
- package/esm2020/lib/core/device-finger-print/device-finger-print.service.mjs +167 -0
- package/esm2020/lib/core/device-finger-print/fingerprint-js.interface.mjs +2 -0
- package/esm2020/lib/core/device-finger-print/hash.type.mjs +2 -0
- package/esm2020/lib/core/exceptions-handling/elk/additional-info.interface.mjs +2 -0
- package/esm2020/lib/core/exceptions-handling/elk/elk-logger.service.mjs +120 -0
- package/esm2020/lib/core/exceptions-handling/elk/error-without-meta-fields.interface.mjs +2 -0
- package/esm2020/lib/core/exceptions-handling/elk/log-message.interface.mjs +2 -0
- package/esm2020/lib/core/exceptions-handling/errors/default-terminal-error.class.mjs +8 -0
- package/esm2020/lib/core/exceptions-handling/errors/elk-error-types.enum.mjs +13 -0
- package/esm2020/lib/core/exceptions-handling/errors/tagged-error.class.mjs +16 -0
- package/esm2020/lib/core/exceptions-handling/errors/terminal-error.class.mjs +8 -0
- package/esm2020/lib/core/exceptions-handling/errors/token-error.class.mjs +7 -0
- package/esm2020/lib/core/exceptions-handling/errors/ws-error.class.mjs +10 -0
- package/esm2020/lib/core/payment/actions/action-factory-value.interface.mjs +2 -0
- package/esm2020/lib/core/payment/actions/action-type-command.map.mjs +6 -0
- package/esm2020/lib/core/payment/actions/action.interface.mjs +2 -0
- package/esm2020/lib/core/payment/actions/check-status/check-status.action.class.mjs +16 -0
- package/esm2020/lib/core/payment/actions/check-status/check-status.action.token.mjs +11 -0
- package/esm2020/lib/core/payment/actions/check-status/check-status.action.type.mjs +2 -0
- package/esm2020/lib/core/payment/actions/next-action.interface.mjs +2 -0
- package/esm2020/lib/core/payment/actions/next-action.service.mjs +55 -0
- package/esm2020/lib/core/payment/actions/next-actions.mjs +11 -0
- package/esm2020/lib/core/payment/actions/show-fields/show-fields.action.class.mjs +16 -0
- package/esm2020/lib/core/payment/actions/show-fields/show-fields.action.token.mjs +11 -0
- package/esm2020/lib/core/payment/actions/show-fields/show-fields.action.type.mjs +2 -0
- package/esm2020/lib/core/payment/actions/status-updated/status-updated.action.class.mjs +13 -0
- package/esm2020/lib/core/payment/actions/status-updated/status-updated.action.token.mjs +11 -0
- package/esm2020/lib/core/payment/actions/status-updated/status-updated.action.type.mjs +2 -0
- package/esm2020/lib/core/payment/field-names.enum.mjs +64 -0
- package/esm2020/lib/core/payment/field.interface.mjs +1 -1
- package/esm2020/lib/core/payment/form/common-control-config.interface.mjs +2 -0
- package/esm2020/lib/core/payment/form/controls/control-config.mjs +6 -0
- package/esm2020/lib/core/payment/form/controls/control-config.service.mjs +39 -0
- package/esm2020/lib/core/payment/form/controls/control-type.type.mjs +2 -0
- package/esm2020/lib/core/payment/form/controls/text-control.config.mjs +8 -0
- package/esm2020/lib/core/payment/form/converters/converter.abstract.mjs +75 -0
- package/esm2020/lib/core/payment/form/converters/converters-map.interface.mjs +2 -0
- package/esm2020/lib/core/payment/form/converters/converters-map.mjs +9 -0
- package/esm2020/lib/core/payment/form/converters/email.converter.mjs +29 -0
- package/esm2020/lib/core/payment/form/converters/zip.converter.mjs +64 -0
- package/esm2020/lib/core/payment/form/form-state.interface.mjs +2 -0
- package/esm2020/lib/core/payment/form/form.module.mjs +33 -0
- package/esm2020/lib/core/payment/form/form.service.mjs +28 -0
- package/esm2020/lib/core/payment/form/validators/convert.function.mjs +22 -0
- package/esm2020/lib/core/payment/form/validators/email-validator.mjs +7 -0
- package/esm2020/lib/core/payment/form/validators/required-validator.mjs +6 -0
- package/esm2020/lib/core/payment/form/validators/restricted-value.validator.mjs +6 -0
- package/esm2020/lib/core/payment/form/validators/validation-error.interface.mjs +2 -0
- package/esm2020/lib/core/payment/form/validators/validation-errors.interface.mjs +2 -0
- package/esm2020/lib/core/payment/form/validators/validator-fn.type.mjs +2 -0
- package/esm2020/lib/core/payment/initialize/initialize-request-params.interface.mjs +2 -0
- package/esm2020/lib/core/payment/initialize/initialize-response.class.mjs +43 -0
- package/esm2020/lib/core/payment/initialize/initialize-response.token.mjs +8 -0
- package/esm2020/lib/core/payment/initialize/initialize.service.mjs +46 -0
- package/esm2020/lib/core/payment/payment-form.interface.mjs +2 -0
- package/esm2020/lib/core/payment/payment.interface.mjs +1 -1
- package/esm2020/lib/core/payment/payment.service.mjs +37 -14
- package/esm2020/lib/core/payment/status/check-status/check-status.service.mjs +56 -0
- package/esm2020/lib/core/payment/status/check-status/request/check-status-request.class.mjs +16 -0
- package/esm2020/lib/core/payment/status/check-status/request/check-status-request.token.mjs +8 -0
- package/esm2020/lib/core/payment/status/check-status/response/check-status-response.class.mjs +9 -0
- package/esm2020/lib/core/payment/status/check-status/response/check-status-response.token.mjs +8 -0
- package/esm2020/lib/core/payment/status/listen-status/listen-status.service.mjs +112 -0
- package/esm2020/lib/core/payment/status/status-groups.mjs +7 -0
- package/esm2020/lib/core/payment/status/status-params.interface.mjs +2 -0
- package/esm2020/lib/core/payment/status/status-request/request/status-request.class.mjs +22 -0
- package/esm2020/lib/core/payment/status/status-request/request/status-request.token.mjs +8 -0
- package/esm2020/lib/core/payment/status/status-request/response/status-response.class.mjs +96 -0
- package/esm2020/lib/core/payment/status/status-request/response/status-response.token.mjs +8 -0
- package/esm2020/lib/core/payment/status/status-request/status-request-params.interface.mjs +2 -0
- package/esm2020/lib/core/payment/status/status-request/status-request.service.mjs +68 -0
- package/esm2020/lib/core/payment/status/status-settings.interface.mjs +2 -0
- package/esm2020/lib/core/payment/status/status-updated.interface.mjs +2 -0
- package/esm2020/lib/core/payment/status/status.interface.mjs +1 -1
- package/esm2020/lib/core/payment/status/status.service.mjs +38 -0
- package/esm2020/lib/core/payment/status/websocket-status/websocket-status.enum.mjs +6 -0
- package/esm2020/lib/core/payment/status/websocket-status/websocket-status.service.mjs +76 -0
- package/esm2020/lib/core/payment/submit/request/submit-request.class.mjs +16 -0
- package/esm2020/lib/core/payment/submit/request/submit-request.token.mjs +8 -0
- package/esm2020/lib/core/payment/submit/response/submit-response.class.mjs +31 -0
- package/esm2020/lib/core/payment/submit/response/submit-response.token.mjs +8 -0
- package/esm2020/lib/core/payment/submit/submit.service.mjs +59 -0
- package/esm2020/lib/core/payment/sync/field-sync-state.interface.mjs +2 -0
- package/esm2020/lib/core/payment/sync/sync-request.class.mjs +31 -0
- package/esm2020/lib/core/payment/sync/sync-request.token.mjs +8 -0
- package/esm2020/lib/core/payment/sync/sync-response.class.mjs +14 -0
- package/esm2020/lib/core/payment/sync/sync-response.token.mjs +8 -0
- package/esm2020/lib/core/payment/sync/sync.service.mjs +91 -0
- package/esm2020/lib/core/payment/xps-api-part-request.abstract.mjs +8 -0
- package/esm2020/lib/core/payment/xps-api-part.abstract.mjs +19 -0
- package/esm2020/lib/core/payment/xps-error.interface.mjs +1 -1
- package/esm2020/lib/core/payment/xps-request.abstract.mjs +8 -0
- package/esm2020/lib/core/payment/xps-response.interface.mjs +1 -1
- package/esm2020/lib/core/properties.type.mjs +2 -0
- package/esm2020/lib/core/web-socket/centrifugo-web-socket.service.mjs +200 -0
- package/esm2020/lib/core/web-socket/nchan-web-socket.service.mjs +116 -0
- package/esm2020/lib/core/web-socket/web-socket-client-type.enum.mjs +6 -0
- package/esm2020/lib/core/web-socket/web-socket.factory.mjs +28 -0
- package/esm2020/lib/core/web-socket/web-socket.interface.mjs +2 -0
- package/esm2020/lib/core/xps-boolean.enum.mjs +2 -0
- package/esm2020/lib/core-library.module.mjs +43 -4
- package/esm2020/lib/core-library.service.mjs +18 -11
- package/fesm2015/xsolla-payment-client-core.mjs +2201 -87
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +2117 -83
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/device-finger-print/device-finger-print-components.interface.d.ts +4 -0
- package/lib/core/device-finger-print/device-finger-print.service.d.ts +44 -0
- package/lib/core/device-finger-print/fingerprint-js.interface.d.ts +6 -0
- package/lib/core/device-finger-print/hash.type.d.ts +3 -0
- package/lib/core/exceptions-handling/elk/additional-info.interface.d.ts +19 -0
- package/lib/core/exceptions-handling/elk/elk-logger.service.d.ts +27 -0
- package/lib/core/exceptions-handling/elk/error-without-meta-fields.interface.d.ts +8 -0
- package/lib/core/exceptions-handling/elk/log-message.interface.d.ts +8 -0
- package/lib/core/exceptions-handling/errors/default-terminal-error.class.d.ts +4 -0
- package/lib/core/exceptions-handling/errors/elk-error-types.enum.d.ts +11 -0
- package/lib/core/exceptions-handling/errors/tagged-error.class.d.ts +10 -0
- package/lib/core/exceptions-handling/errors/terminal-error.class.d.ts +5 -0
- package/lib/core/exceptions-handling/errors/token-error.class.d.ts +4 -0
- package/lib/core/exceptions-handling/errors/ws-error.class.d.ts +5 -0
- package/lib/core/payment/actions/action-factory-value.interface.d.ts +5 -0
- package/lib/core/payment/actions/action-type-command.map.d.ts +4 -0
- package/lib/core/payment/actions/check-status/check-status.action.class.d.ts +8 -0
- package/lib/core/payment/actions/check-status/check-status.action.token.d.ts +4 -0
- package/lib/core/payment/actions/check-status/check-status.action.type.d.ts +12 -0
- package/lib/core/payment/actions/next-action.interface.d.ts +4 -0
- package/lib/core/payment/actions/next-action.service.d.ts +20 -0
- package/lib/core/payment/actions/next-actions.d.ts +5 -0
- package/lib/core/payment/actions/show-fields/show-fields.action.class.d.ts +8 -0
- package/lib/core/payment/actions/show-fields/show-fields.action.token.d.ts +4 -0
- package/lib/core/payment/actions/show-fields/show-fields.action.type.d.ts +12 -0
- package/lib/core/payment/actions/status-updated/status-updated.action.class.d.ts +8 -0
- package/lib/core/payment/actions/status-updated/status-updated.action.token.d.ts +4 -0
- package/lib/core/payment/actions/status-updated/status-updated.action.type.d.ts +11 -0
- package/lib/core/payment/field-names.enum.d.ts +62 -0
- package/lib/core/payment/field.interface.d.ts +5 -5
- package/lib/core/payment/form/common-control-config.interface.d.ts +9 -0
- package/lib/core/payment/form/controls/control-config.d.ts +9 -0
- package/lib/core/payment/form/controls/control-config.service.d.ts +15 -0
- package/lib/core/payment/form/controls/control-type.type.d.ts +1 -0
- package/lib/core/payment/form/controls/text-control.config.d.ts +11 -0
- package/lib/core/payment/form/converters/converter.abstract.d.ts +23 -0
- package/lib/core/payment/form/converters/converters-map.d.ts +4 -0
- package/lib/core/payment/form/converters/converters-map.interface.d.ts +5 -0
- package/lib/core/payment/form/converters/email.converter.d.ts +14 -0
- package/lib/core/payment/form/converters/zip.converter.d.ts +21 -0
- package/lib/core/payment/form/form-state.interface.d.ts +3 -0
- package/lib/core/payment/form/form.module.d.ts +7 -0
- package/lib/core/payment/form/form.service.d.ts +12 -0
- package/lib/core/payment/form/validators/convert.function.d.ts +3 -0
- package/lib/core/payment/form/validators/email-validator.d.ts +2 -0
- package/lib/core/payment/form/validators/required-validator.d.ts +2 -0
- package/lib/core/payment/form/validators/restricted-value.validator.d.ts +2 -0
- package/lib/core/payment/form/validators/validation-error.interface.d.ts +4 -0
- package/lib/core/payment/form/validators/validation-errors.interface.d.ts +4 -0
- package/lib/core/payment/form/validators/validator-fn.type.d.ts +3 -0
- package/lib/core/payment/initialize/initialize-response.class.d.ts +7 -0
- package/lib/core/payment/initialize/initialize-response.token.d.ts +6 -0
- package/lib/core/payment/initialize/initialize.service.d.ts +18 -0
- package/lib/core/payment/payment-form.interface.d.ts +39 -0
- package/lib/core/payment/payment.interface.d.ts +12 -8
- package/lib/core/payment/payment.service.d.ts +23 -8
- package/lib/core/payment/status/check-status/check-status.service.d.ts +20 -0
- package/lib/core/payment/status/check-status/request/check-status-request.class.d.ts +8 -0
- package/lib/core/payment/status/check-status/request/check-status-request.token.d.ts +6 -0
- package/lib/core/payment/status/check-status/response/check-status-response.class.d.ts +8 -0
- package/lib/core/payment/status/check-status/response/check-status-response.token.d.ts +7 -0
- package/lib/core/payment/status/listen-status/listen-status.service.d.ts +28 -0
- package/lib/core/payment/status/status-groups.d.ts +5 -0
- package/lib/core/payment/status/status-params.interface.d.ts +9 -0
- package/lib/core/payment/status/status-request/request/status-request.class.d.ts +17 -0
- package/lib/core/payment/status/status-request/request/status-request.token.d.ts +6 -0
- package/lib/core/payment/status/status-request/response/status-response.class.d.ts +14 -0
- package/lib/core/payment/status/status-request/response/status-response.token.d.ts +7 -0
- package/lib/core/payment/status/status-request/status-request-params.interface.d.ts +10 -0
- package/lib/core/payment/status/status-request/status-request.service.d.ts +21 -0
- package/lib/core/payment/status/status-settings.interface.d.ts +13 -0
- package/lib/core/payment/status/status-updated.interface.d.ts +6 -0
- package/lib/core/payment/status/status.interface.d.ts +0 -1
- package/lib/core/payment/status/status.service.d.ts +16 -0
- package/lib/core/payment/status/websocket-status/websocket-status.enum.d.ts +4 -0
- package/lib/core/payment/status/websocket-status/websocket-status.service.d.ts +24 -0
- package/lib/core/payment/submit/request/submit-request.class.d.ts +13 -0
- package/lib/core/payment/submit/request/submit-request.token.d.ts +6 -0
- package/lib/core/payment/submit/response/submit-response.class.d.ts +26 -0
- package/lib/core/payment/submit/response/submit-response.token.d.ts +6 -0
- package/lib/core/payment/submit/submit.service.d.ts +21 -0
- package/lib/core/payment/sync/field-sync-state.interface.d.ts +5 -0
- package/lib/core/payment/sync/sync-request.class.d.ts +15 -0
- package/lib/core/payment/sync/sync-request.token.d.ts +6 -0
- package/lib/core/payment/sync/sync-response.class.d.ts +11 -0
- package/lib/core/payment/sync/sync-response.token.d.ts +6 -0
- package/lib/core/payment/sync/sync.service.d.ts +27 -0
- package/lib/core/payment/xps-api-part-request.abstract.d.ts +6 -0
- package/lib/core/payment/xps-api-part.abstract.d.ts +8 -0
- package/lib/core/payment/xps-error.interface.d.ts +1 -0
- package/lib/core/payment/xps-request.abstract.d.ts +6 -0
- package/lib/core/payment/xps-response.interface.d.ts +3 -6
- package/lib/core/properties.type.d.ts +3 -0
- package/lib/core/web-socket/centrifugo-web-socket.service.d.ts +41 -0
- package/lib/core/web-socket/nchan-web-socket.service.d.ts +30 -0
- package/lib/core/web-socket/web-socket-client-type.enum.d.ts +4 -0
- package/lib/core/web-socket/web-socket.factory.d.ts +13 -0
- package/lib/core/web-socket/web-socket.interface.d.ts +9 -0
- package/lib/core/xps-boolean.enum.d.ts +4 -0
- package/lib/core-library.module.d.ts +2 -1
- package/lib/core-library.service.d.ts +6 -2
- package/package.json +19 -4
- package/xsolla-payment-client-core-0.0.6.tgz +0 -0
- package/esm2020/lib/core/boolean-string.enum.mjs +0 -6
- package/esm2020/lib/core/payment/actions/action.type.mjs +0 -2
- package/esm2020/lib/core/payment/actions/check-status.action.type.mjs +0 -2
- package/esm2020/lib/core/payment/actions/next-action.type.mjs +0 -2
- package/esm2020/lib/core/payment/initialize-request-params.interface.mjs +0 -2
- package/esm2020/lib/core/payment/initialize.service.mjs +0 -39
- package/lib/core/boolean-string.enum.d.ts +0 -4
- package/lib/core/payment/actions/check-status.action.type.d.ts +0 -12
- package/lib/core/payment/actions/next-action.type.d.ts +0 -2
- package/lib/core/payment/initialize.service.d.ts +0 -16
- package/xsolla-payment-client-core-0.0.4.tgz +0 -0
- /package/lib/core/payment/actions/{action.type.d.ts → action.interface.d.ts} +0 -0
- /package/lib/core/payment/{initialize-request-params.interface.d.ts → initialize/initialize-request-params.interface.d.ts} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Observable, Subscription } from 'rxjs';
|
|
2
|
+
import { ElkLoggerService } from '../exceptions-handling/elk/elk-logger.service';
|
|
3
|
+
import { WebSocketClient } from './web-socket.interface';
|
|
4
|
+
import { WebSocketClientType } from './web-socket-client-type.enum';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CentrifugoWebSocketService implements WebSocketClient {
|
|
7
|
+
private readonly elkLoggerService;
|
|
8
|
+
static readonly reconnectionTimeoutIncrementFactor = 2;
|
|
9
|
+
type: WebSocketClientType;
|
|
10
|
+
private static readonly timeoutsMs;
|
|
11
|
+
private reconnectionTimeoutMs;
|
|
12
|
+
private reconnectionTimerId;
|
|
13
|
+
private readonly openConnectionTimerId;
|
|
14
|
+
private connection;
|
|
15
|
+
private subscription;
|
|
16
|
+
private subscriptionPosition?;
|
|
17
|
+
private isConnectionOpen;
|
|
18
|
+
private isConnecting;
|
|
19
|
+
private url;
|
|
20
|
+
private channel;
|
|
21
|
+
private prevSubscribedChannel?;
|
|
22
|
+
private readonly incomingMessages$;
|
|
23
|
+
private readonly successfulReconnectionEventsProxy$;
|
|
24
|
+
constructor(elkLoggerService: ElkLoggerService);
|
|
25
|
+
open(url: string, channel: string): Promise<void>;
|
|
26
|
+
close(): void;
|
|
27
|
+
get messages$(): Observable<string>;
|
|
28
|
+
subscribeOnSuccessfulReconnection(next?: () => void): Subscription;
|
|
29
|
+
private clearReconnectionTimer;
|
|
30
|
+
private setFirstReconnectionTimeout;
|
|
31
|
+
private incrementReconnectionTimeout;
|
|
32
|
+
private getCentrifugoClient;
|
|
33
|
+
private createConnection;
|
|
34
|
+
private onConnect;
|
|
35
|
+
private onDisconnect;
|
|
36
|
+
private reconnect;
|
|
37
|
+
private waitWhileNotReconnect;
|
|
38
|
+
private getSubscriptionOptions;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CentrifugoWebSocketService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CentrifugoWebSocketService>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Observable, Subscription } from 'rxjs';
|
|
2
|
+
import { WebSocketClient } from './web-socket.interface';
|
|
3
|
+
import { WebSocketClientType } from './web-socket-client-type.enum';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NchanWebSocketService implements WebSocketClient {
|
|
6
|
+
static readonly reconnectionTimeoutIncrementFactor = 2;
|
|
7
|
+
url: string;
|
|
8
|
+
type: WebSocketClientType;
|
|
9
|
+
private static readonly timeoutsMs;
|
|
10
|
+
private openPromise;
|
|
11
|
+
private reconnectionTimeoutMs;
|
|
12
|
+
private reconnectionTimerId;
|
|
13
|
+
private readonly openConnectionTimerId;
|
|
14
|
+
private connection;
|
|
15
|
+
private readonly incomingMessages$;
|
|
16
|
+
private readonly successfulReconnectionEventsProxy$;
|
|
17
|
+
open(): Promise<unknown>;
|
|
18
|
+
close(): void;
|
|
19
|
+
get messages$(): Observable<string>;
|
|
20
|
+
subscribeOnSuccessfulReconnection(next?: () => void): Subscription;
|
|
21
|
+
private isClosed;
|
|
22
|
+
private clearReconnectionTimer;
|
|
23
|
+
private setFirstReconnectionTimeout;
|
|
24
|
+
private incrementReconnectionTimeout;
|
|
25
|
+
private createConnection;
|
|
26
|
+
private reconnect;
|
|
27
|
+
private waitWhileNotReconnect;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NchanWebSocketService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NchanWebSocketService>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NchanWebSocketService } from './nchan-web-socket.service';
|
|
2
|
+
import { CentrifugoWebSocketService } from './centrifugo-web-socket.service';
|
|
3
|
+
import { WebSocketClient } from './web-socket.interface';
|
|
4
|
+
import { WebSocketClientType } from './web-socket-client-type.enum';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class WebSocketFactory {
|
|
7
|
+
private readonly nchanWebSocket;
|
|
8
|
+
private readonly centrifugoWebSocket;
|
|
9
|
+
constructor(nchanWebSocket: NchanWebSocketService, centrifugoWebSocket: CentrifugoWebSocketService);
|
|
10
|
+
createWebSocketClient(url: string, clientType: WebSocketClientType): WebSocketClient;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebSocketFactory, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WebSocketFactory>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable, Subscription } from 'rxjs';
|
|
2
|
+
import { WebSocketClientType } from './web-socket-client-type.enum';
|
|
3
|
+
export interface WebSocketClient {
|
|
4
|
+
type: WebSocketClientType;
|
|
5
|
+
open(url?: string, channel?: string): Promise<any>;
|
|
6
|
+
close(): void;
|
|
7
|
+
get messages$(): Observable<string>;
|
|
8
|
+
subscribeOnSuccessfulReconnection(next?: () => void): Subscription;
|
|
9
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@angular/common/http";
|
|
3
|
+
import * as i2 from "./core/payment/form/form.module";
|
|
3
4
|
export declare class CoreLibraryModule {
|
|
4
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreLibraryModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreLibraryModule, never, [typeof i1.HttpClientModule], never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreLibraryModule, never, [typeof i1.HttpClientModule, typeof i2.FormModule], never>;
|
|
6
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<CoreLibraryModule>;
|
|
7
8
|
}
|
|
@@ -10,8 +10,10 @@ import { UserBalanceService } from './core/user-balance/user-balance.service';
|
|
|
10
10
|
import { PaymentConfig } from './core/payment/payment-config.interface';
|
|
11
11
|
import { PaymentService } from './core/payment/payment.service';
|
|
12
12
|
import { Payment } from './core/payment/payment.interface';
|
|
13
|
+
import { DeviceFingerPrintService } from './core/device-finger-print/device-finger-print.service';
|
|
13
14
|
import { LegalService } from './core/legal/legal.service';
|
|
14
15
|
import { LegalComponentConfig } from './core/legal/legal.component.config';
|
|
16
|
+
import { NextActionService } from './core/payment/actions/next-action.service';
|
|
15
17
|
import * as i0 from "@angular/core";
|
|
16
18
|
export declare class CoreLibraryService {
|
|
17
19
|
private readonly settingsService;
|
|
@@ -19,15 +21,17 @@ export declare class CoreLibraryService {
|
|
|
19
21
|
private readonly paymentMethodsService;
|
|
20
22
|
private readonly savedMethodsService;
|
|
21
23
|
private readonly userBalanceService;
|
|
22
|
-
private readonly legalService;
|
|
23
24
|
private readonly paymentService;
|
|
25
|
+
private readonly deviceFingerPrintService;
|
|
26
|
+
private readonly legalService;
|
|
27
|
+
private readonly nextActionService;
|
|
24
28
|
paymentMethods: {
|
|
25
29
|
getList: () => Promise<PaymentMethod[]>;
|
|
26
30
|
getQuickMethods: () => Promise<PaymentMethod[]>;
|
|
27
31
|
getSavedMethods: () => Promise<SavedMethod[]>;
|
|
28
32
|
getUserBalance: () => Promise<UserBalanceResponse>;
|
|
29
33
|
};
|
|
30
|
-
constructor(settingsService: SettingsService, countryService: CountryService, paymentMethodsService: PaymentMethodsService, savedMethodsService: SavedMethodsService, userBalanceService: UserBalanceService, legalService: LegalService,
|
|
34
|
+
constructor(settingsService: SettingsService, countryService: CountryService, paymentMethodsService: PaymentMethodsService, savedMethodsService: SavedMethodsService, userBalanceService: UserBalanceService, paymentService: PaymentService, deviceFingerPrintService: DeviceFingerPrintService, legalService: LegalService, nextActionService: NextActionService);
|
|
31
35
|
init(configuration: InitConfiguration): Promise<void>;
|
|
32
36
|
setCountry(country: string): void;
|
|
33
37
|
createPayment(config: PaymentConfig): Payment;
|
package/package.json
CHANGED
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/payment-client-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^15.2.
|
|
6
|
-
"@angular/core": "^15.2.
|
|
7
|
-
"@angular/
|
|
5
|
+
"@angular/common": "^15.2.0",
|
|
6
|
+
"@angular/core": "^15.2.0",
|
|
7
|
+
"@angular/forms": "^15.2.0",
|
|
8
|
+
"@angular/platform-browser-dynamic": "^15.2.0",
|
|
9
|
+
"rxjs": "^7.5.0",
|
|
10
|
+
"zone.js": "^0.11.4"
|
|
8
11
|
},
|
|
9
12
|
"dependencies": {
|
|
13
|
+
"@fingerprintjs/fingerprintjs": "^3.4.2",
|
|
14
|
+
"@xsolla/antifraud-fingerprint": "^0.0.1-alpha.5",
|
|
15
|
+
"centrifuge": "^4.0.1",
|
|
16
|
+
"jsencrypt": "^3.3.2",
|
|
17
|
+
"stacktrace-js": "^2.0.2",
|
|
10
18
|
"tslib": "^2.3.0"
|
|
11
19
|
},
|
|
20
|
+
"allowedNonPeerDependencies": [
|
|
21
|
+
"@fingerprintjs/fingerprintjs",
|
|
22
|
+
"@xsolla/antifraud-fingerprint",
|
|
23
|
+
"centrifuge",
|
|
24
|
+
"jsencrypt",
|
|
25
|
+
"stacktrace-js"
|
|
26
|
+
],
|
|
12
27
|
"module": "fesm2015/xsolla-payment-client-core.mjs",
|
|
13
28
|
"es2020": "fesm2020/xsolla-payment-client-core.mjs",
|
|
14
29
|
"esm2020": "esm2020/xsolla-payment-client-core.mjs",
|
|
Binary file
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export var BooleanString;
|
|
2
|
-
(function (BooleanString) {
|
|
3
|
-
BooleanString["true"] = "1";
|
|
4
|
-
BooleanString["false"] = "0";
|
|
5
|
-
})(BooleanString || (BooleanString = {}));
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vbGVhbi1zdHJpbmcuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3BheW1lbnQtY2xpZW50LWNvcmUvc3JjL2xpYi9jb3JlL2Jvb2xlYW4tc3RyaW5nLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksYUFHWDtBQUhELFdBQVksYUFBYTtJQUN2QiwyQkFBVSxDQUFBO0lBQ1YsNEJBQVcsQ0FBQTtBQUNiLENBQUMsRUFIVyxhQUFhLEtBQWIsYUFBYSxRQUd4QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEJvb2xlYW5TdHJpbmcge1xuICB0cnVlID0gJzEnLFxuICBmYWxzZSA9ICcwJyxcbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9wYXltZW50LWNsaWVudC1jb3JlL3NyYy9saWIvY29yZS9wYXltZW50L2FjdGlvbnMvYWN0aW9uLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgQWN0aW9uPFQgPSBzdHJpbmcsIEQgPSBvYmplY3Q+IHtcbiAgdHlwZTogVDtcbiAgZGF0YTogRDtcbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2stc3RhdHVzLmFjdGlvbi50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvcGF5bWVudC1jbGllbnQtY29yZS9zcmMvbGliL2NvcmUvcGF5bWVudC9hY3Rpb25zL2NoZWNrLXN0YXR1cy5hY3Rpb24udHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQWN0aW9uIH0gZnJvbSAnLi9hY3Rpb24udHlwZSc7XG5cbnR5cGUgQ2hlY2tTdGF0dXNBY3Rpb25UeXBlID0gJ2NoZWNrX3N0YXR1cyc7XG5cbmludGVyZmFjZSBDaGVja1N0YXR1c0FjdGlvbkRhdGEge1xuICBvcmRlcjogb2JqZWN0O1xuICBpbnZvaWNlSWQ6IG51bWJlcjtcbiAgc3RhdHVzOiB7XG4gICAgdHlwZTogc3RyaW5nO1xuICAgIGlzRmluYWxTdGF0dXM6IGJvb2xlYW47XG4gIH07XG59XG5leHBvcnQgdHlwZSBDaGVja1N0YXR1c0FjdGlvbiA9IEFjdGlvbjxcbiAgQ2hlY2tTdGF0dXNBY3Rpb25UeXBlLFxuICBDaGVja1N0YXR1c0FjdGlvbkRhdGFcbj47XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV4dC1hY3Rpb24udHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3BheW1lbnQtY2xpZW50LWNvcmUvc3JjL2xpYi9jb3JlL3BheW1lbnQvYWN0aW9ucy9uZXh0LWFjdGlvbi50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDaGVja1N0YXR1c0FjdGlvbiB9IGZyb20gJy4vY2hlY2stc3RhdHVzLmFjdGlvbi50eXBlJztcblxuZXhwb3J0IHR5cGUgTmV4dEFjdGlvbiA9IENoZWNrU3RhdHVzQWN0aW9uO1xuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5pdGlhbGl6ZS1yZXF1ZXN0LXBhcmFtcy5pbnRlcmZhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9wYXltZW50LWNsaWVudC1jb3JlL3NyYy9saWIvY29yZS9wYXltZW50L2luaXRpYWxpemUtcmVxdWVzdC1wYXJhbXMuaW50ZXJmYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIEluaXRpYWxpemVSZXF1ZXN0UGFyYW1zIHtcbiAgYWNjZXNzX3Rva2VuOiBzdHJpbmc7XG4gIHBpZDogc3RyaW5nO1xuICBjb3VudHJ5Pzogc3RyaW5nO1xuICByZXR1cm5Vcmw/OiBzdHJpbmc7XG59XG4iXX0=
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { lastValueFrom } from 'rxjs';
|
|
4
|
-
import { ResponseError } from '../exceptions-handling/errors/response-error.class';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../http/secure-api/secure-api.service";
|
|
7
|
-
import * as i2 from "../settings/settings.service";
|
|
8
|
-
import * as i3 from "../country/country.service";
|
|
9
|
-
export class InitializeService {
|
|
10
|
-
constructor(secureApi, settingsService, countryService) {
|
|
11
|
-
this.secureApi = secureApi;
|
|
12
|
-
this.settingsService = settingsService;
|
|
13
|
-
this.countryService = countryService;
|
|
14
|
-
this.apiRoute = 'directpayment';
|
|
15
|
-
}
|
|
16
|
-
async request(config) {
|
|
17
|
-
const requestParams = {
|
|
18
|
-
access_token: this.settingsService.token,
|
|
19
|
-
pid: String(config.paymentMethodId),
|
|
20
|
-
country: this.countryService.getCountry(),
|
|
21
|
-
returnUrl: config.returnUrl,
|
|
22
|
-
};
|
|
23
|
-
return lastValueFrom(this.secureApi.post(this.apiRoute, new URLSearchParams({ ...requestParams }), {
|
|
24
|
-
headers: new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8'),
|
|
25
|
-
responseType: 'json',
|
|
26
|
-
})).catch((error) => {
|
|
27
|
-
throw new ResponseError(error.message);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
InitializeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: InitializeService, deps: [{ token: i1.SecureApiClient }, { token: i2.SettingsService }, { token: i3.CountryService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
32
|
-
InitializeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: InitializeService, providedIn: 'root' });
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: InitializeService, decorators: [{
|
|
34
|
-
type: Injectable,
|
|
35
|
-
args: [{
|
|
36
|
-
providedIn: 'root',
|
|
37
|
-
}]
|
|
38
|
-
}], ctorParameters: function () { return [{ type: i1.SecureApiClient }, { type: i2.SettingsService }, { type: i3.CountryService }]; } });
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5pdGlhbGl6ZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvcGF5bWVudC1jbGllbnQtY29yZS9zcmMvbGliL2NvcmUvcGF5bWVudC9pbml0aWFsaXplLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUVyQyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sb0RBQW9ELENBQUM7Ozs7O0FBVW5GLE1BQU0sT0FBTyxpQkFBaUI7SUFHNUIsWUFDbUIsU0FBMEIsRUFDMUIsZUFBZ0MsRUFDaEMsY0FBOE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AgICApLmNhdGNoKChlcnJvcjogRXJyb3IpID0+IHtcbiAgICAgIHRocm93IG5ldyBSZXNwb25zZUVycm9yKGVycm9yLm1lc3NhZ2UpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Action } from './action.type';
|
|
2
|
-
type CheckStatusActionType = 'check_status';
|
|
3
|
-
interface CheckStatusActionData {
|
|
4
|
-
order: object;
|
|
5
|
-
invoiceId: number;
|
|
6
|
-
status: {
|
|
7
|
-
type: string;
|
|
8
|
-
isFinalStatus: boolean;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export type CheckStatusAction = Action<CheckStatusActionType, CheckStatusActionData>;
|
|
12
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CountryService } from '../country/country.service';
|
|
2
|
-
import { SecureApiClient } from '../http/secure-api/secure-api.service';
|
|
3
|
-
import { SettingsService } from '../settings/settings.service';
|
|
4
|
-
import { PaymentConfig } from './payment-config.interface';
|
|
5
|
-
import { XpsResponse } from './xps-response.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class InitializeService {
|
|
8
|
-
private readonly secureApi;
|
|
9
|
-
private readonly settingsService;
|
|
10
|
-
private readonly countryService;
|
|
11
|
-
private readonly apiRoute;
|
|
12
|
-
constructor(secureApi: SecureApiClient, settingsService: SettingsService, countryService: CountryService);
|
|
13
|
-
request(config: PaymentConfig): Promise<XpsResponse>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InitializeService, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InitializeService>;
|
|
16
|
-
}
|
|
Binary file
|
|
File without changes
|