@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,39 @@
|
|
|
1
|
+
import { Field } from './field.interface';
|
|
2
|
+
import { Invoice } from './invoice.interface';
|
|
3
|
+
import { StatusEnum } from './status/status.enum';
|
|
4
|
+
import { XpsResponse } from './xps-response.interface';
|
|
5
|
+
export interface PaymentForm {
|
|
6
|
+
totalAmount: string;
|
|
7
|
+
currency: string;
|
|
8
|
+
fields: Field[];
|
|
9
|
+
taxDisclaimer: string | null;
|
|
10
|
+
number: number;
|
|
11
|
+
barcode: unknown;
|
|
12
|
+
offers: unknown;
|
|
13
|
+
instruction: string;
|
|
14
|
+
errors: XpsResponse['errors'];
|
|
15
|
+
error?: {
|
|
16
|
+
fields: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
restrictions: unknown;
|
|
21
|
+
info: string;
|
|
22
|
+
buyData: XpsResponse['buyData'];
|
|
23
|
+
pid: XpsResponse['pid'];
|
|
24
|
+
messages: XpsResponse['messages'];
|
|
25
|
+
title: string;
|
|
26
|
+
summary: XpsResponse['summary'];
|
|
27
|
+
skipForm: XpsResponse['skipForm'];
|
|
28
|
+
isSavedMethodPayment?: boolean;
|
|
29
|
+
couponCode?: string;
|
|
30
|
+
publicId: XpsResponse['public_id'];
|
|
31
|
+
koreaNotification?: Field;
|
|
32
|
+
skipCheckout: XpsResponse['skipCheckout'];
|
|
33
|
+
isCheckout: XpsResponse['isCheckout'];
|
|
34
|
+
categories: XpsResponse['categories'];
|
|
35
|
+
hasFatalErrors?: boolean;
|
|
36
|
+
userSession?: Invoice;
|
|
37
|
+
statusText?: StatusEnum | null;
|
|
38
|
+
country: string | null;
|
|
39
|
+
}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { UntypedFormGroup, ValidationErrors } from '@angular/forms';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { NextAction } from './actions/next-action.interface';
|
|
4
4
|
import { Status } from './status/status.interface';
|
|
5
|
-
import {
|
|
5
|
+
import { StatusParams } from './status/status-params.interface';
|
|
6
|
+
import { FinanceDetails } from './finance-details.interface';
|
|
7
|
+
import { Field } from './field.interface';
|
|
6
8
|
export interface Payment {
|
|
7
|
-
initialize(): Promise<
|
|
8
|
-
submit(): NextAction
|
|
9
|
+
initialize(): Promise<Field[]>;
|
|
10
|
+
submit(fields: Field[], form: UntypedFormGroup): Promise<NextAction | null>;
|
|
9
11
|
getFields(): Field[];
|
|
10
|
-
validate(field: Field):
|
|
12
|
+
validate(field: Field): Promise<ValidationErrors | null>;
|
|
11
13
|
getFinanceDetails(): FinanceDetails;
|
|
12
14
|
runThreeDs(): NextAction;
|
|
13
|
-
getStatus(): Status
|
|
15
|
+
getStatus(params: StatusParams): Promise<Status>;
|
|
16
|
+
changeFieldValue(name: string, value: string): void;
|
|
17
|
+
flowUpdates$: Observable<NextAction>;
|
|
14
18
|
}
|
|
@@ -1,22 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormGroup, ValidationErrors } from '@angular/forms';
|
|
2
|
+
import { NextAction } from './actions/next-action.interface';
|
|
2
3
|
import { Field } from './field.interface';
|
|
3
4
|
import { FinanceDetails } from './finance-details.interface';
|
|
4
|
-
import {
|
|
5
|
+
import { FormService } from './form/form.service';
|
|
6
|
+
import { InitializeService } from './initialize/initialize.service';
|
|
5
7
|
import { PaymentConfig } from './payment-config.interface';
|
|
6
8
|
import { Status } from './status/status.interface';
|
|
7
|
-
import {
|
|
9
|
+
import { SubmitService } from './submit/submit.service';
|
|
10
|
+
import { SyncService } from './sync/sync.service';
|
|
11
|
+
import { StatusService } from './status/status.service';
|
|
12
|
+
import { StatusParams } from './status/status-params.interface';
|
|
13
|
+
import { NextActionService } from './actions/next-action.service';
|
|
8
14
|
import * as i0 from "@angular/core";
|
|
9
15
|
export declare class PaymentService {
|
|
10
16
|
private readonly initializeService;
|
|
17
|
+
private readonly submitService;
|
|
18
|
+
private readonly syncService;
|
|
19
|
+
private readonly formService;
|
|
20
|
+
private readonly statusService;
|
|
21
|
+
private readonly nextActionService;
|
|
22
|
+
form: UntypedFormGroup | null;
|
|
11
23
|
private data;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
24
|
+
private fields;
|
|
25
|
+
private config;
|
|
26
|
+
constructor(initializeService: InitializeService, submitService: SubmitService, syncService: SyncService, formService: FormService, statusService: StatusService, nextActionService: NextActionService);
|
|
27
|
+
initialize(config: PaymentConfig): Promise<Field[]>;
|
|
28
|
+
submit(fields: Field[], form: UntypedFormGroup): Promise<NextAction | null>;
|
|
15
29
|
getFields(): Field[];
|
|
16
|
-
validate(field: Field):
|
|
30
|
+
validate(field: Field): Promise<ValidationErrors | null>;
|
|
17
31
|
runThreeDs(): NextAction;
|
|
18
32
|
getFinanceDetails(): FinanceDetails;
|
|
19
|
-
getStatus(): Status
|
|
33
|
+
getStatus(params: StatusParams): Promise<Status>;
|
|
34
|
+
changeFieldValue(name: string, value: string): void;
|
|
20
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentService, never>;
|
|
21
36
|
static ɵprov: i0.ɵɵInjectableDeclaration<PaymentService>;
|
|
22
37
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SecureApiClient } from '../../../http/secure-api/secure-api.service';
|
|
2
|
+
import { SettingsService } from '../../../settings/settings.service';
|
|
3
|
+
import { CheckStatusRequestFactory } from './request/check-status-request.token';
|
|
4
|
+
import { CheckStatusResponseFactory } from './response/check-status-response.token';
|
|
5
|
+
import { XpsApiPart } from '../../xps-api-part.abstract';
|
|
6
|
+
import { CheckStatusResponse } from './response/check-status-response.class';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CheckStatusService extends XpsApiPart<CheckStatusResponse> {
|
|
9
|
+
private readonly secureApiClient;
|
|
10
|
+
private readonly settingsService;
|
|
11
|
+
private readonly requestFactory;
|
|
12
|
+
private readonly responseFactory;
|
|
13
|
+
private readonly apiRoute;
|
|
14
|
+
private invoice;
|
|
15
|
+
constructor(secureApiClient: SecureApiClient, settingsService: SettingsService, requestFactory: CheckStatusRequestFactory, responseFactory: CheckStatusResponseFactory);
|
|
16
|
+
setRequestParams(invoice: number): void;
|
|
17
|
+
request(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckStatusService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CheckStatusService>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { XpsApiPartRequest } from '../../../xps-api-part-request.abstract';
|
|
2
|
+
export declare class CheckStatusRequest extends XpsApiPartRequest {
|
|
3
|
+
readonly access_token: string;
|
|
4
|
+
readonly xps_fix_command = "status";
|
|
5
|
+
readonly invoice: number;
|
|
6
|
+
readonly section = "getstatus";
|
|
7
|
+
constructor(token: string | null, invoice: number);
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionToken, ValueProvider } from '@angular/core';
|
|
2
|
+
import { CheckStatusRequest } from './check-status-request.class';
|
|
3
|
+
export type CheckStatusRequestParameters = ConstructorParameters<typeof CheckStatusRequest>;
|
|
4
|
+
export type CheckStatusRequestFactory = (...args: CheckStatusRequestParameters) => CheckStatusRequest;
|
|
5
|
+
export declare const checkStatusRequestFactoryToken: InjectionToken<CheckStatusRequestFactory>;
|
|
6
|
+
export declare const checkStatusRequestFactoryProvider: ValueProvider;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Properties } from '../../../../properties.type';
|
|
2
|
+
import { StatusEnum } from '../../status.enum';
|
|
3
|
+
export declare class CheckStatusResponse {
|
|
4
|
+
readonly status?: StatusEnum;
|
|
5
|
+
readonly final?: boolean;
|
|
6
|
+
readonly isPaymentAccountAttached?: boolean;
|
|
7
|
+
constructor(parameters: Properties<CheckStatusResponse>);
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InjectionToken, ValueProvider } from '@angular/core';
|
|
2
|
+
import { CheckStatusResponse } from './check-status-response.class';
|
|
3
|
+
type ResponseParameters = ConstructorParameters<typeof CheckStatusResponse>;
|
|
4
|
+
export type CheckStatusResponseFactory = (...args: ResponseParameters) => CheckStatusResponse;
|
|
5
|
+
export declare const checkStatusResponseFactoryToken: InjectionToken<CheckStatusResponseFactory>;
|
|
6
|
+
export declare const checkStatusResponseFactoryProvider: ValueProvider;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { StatusRequestService } from '../status-request/status-request.service';
|
|
3
|
+
import { CheckStatusService } from '../check-status/check-status.service';
|
|
4
|
+
import { WebsocketStatusService } from '../websocket-status/websocket-status.service';
|
|
5
|
+
import { StatusSettings } from '../status-settings.interface';
|
|
6
|
+
import { StatusUpdated } from '../status-updated.interface';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ListenStatusService {
|
|
9
|
+
private readonly statusService;
|
|
10
|
+
private readonly checkStatusService;
|
|
11
|
+
private readonly websocketStatusService;
|
|
12
|
+
isListening: boolean;
|
|
13
|
+
private readonly websocketOpenedSubject;
|
|
14
|
+
private readonly statusUpdatedSubject;
|
|
15
|
+
private readonly statusDoneSubject;
|
|
16
|
+
private destroy$;
|
|
17
|
+
get websocketOpened$(): Observable<StatusSettings>;
|
|
18
|
+
get statusUpdated$(): Observable<StatusUpdated>;
|
|
19
|
+
constructor(statusService: StatusRequestService, checkStatusService: CheckStatusService, websocketStatusService: WebsocketStatusService);
|
|
20
|
+
listen(invoice: number): Observable<StatusSettings>;
|
|
21
|
+
stopListening(): void;
|
|
22
|
+
private subscribeStatusUpdate;
|
|
23
|
+
private subscribeCheckStatusUpdate;
|
|
24
|
+
private subscribeWebsocketEvent;
|
|
25
|
+
private openWebsocket;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListenStatusService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ListenStatusService>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { XpsApiPartRequest } from '../../../xps-api-part-request.abstract';
|
|
2
|
+
import { StatusRequestParams } from '../status-request-params.interface';
|
|
3
|
+
export declare class StatusRequest extends XpsApiPartRequest {
|
|
4
|
+
readonly access_token: string;
|
|
5
|
+
readonly xps_fix_command = "status";
|
|
6
|
+
readonly xps_fix_invoice: number;
|
|
7
|
+
readonly xps_fix_pid: number;
|
|
8
|
+
readonly xps_signature: string;
|
|
9
|
+
readonly xps_locale: string;
|
|
10
|
+
readonly xps_fix_testProject: number | undefined;
|
|
11
|
+
readonly xps_fix_testPs: number | undefined;
|
|
12
|
+
readonly xps_fix_testXsolla: number | undefined;
|
|
13
|
+
readonly xps_fix_userReturnStatus: string | undefined;
|
|
14
|
+
constructor(parameters: {
|
|
15
|
+
token: string | null;
|
|
16
|
+
} & StatusRequestParams);
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionToken, ValueProvider } from '@angular/core';
|
|
2
|
+
import { StatusRequest } from './status-request.class';
|
|
3
|
+
export type StatusRequestParameters = ConstructorParameters<typeof StatusRequest>;
|
|
4
|
+
export type StatusRequestFactory = (...args: StatusRequestParameters) => StatusRequest;
|
|
5
|
+
export declare const statusRequestFactoryToken: InjectionToken<StatusRequestFactory>;
|
|
6
|
+
export declare const statusRequestFactoryProvider: ValueProvider;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Status } from '../../status.interface';
|
|
2
|
+
import { XpsResponse, XpsStatus } from '../../../xps-response.interface';
|
|
3
|
+
export declare class StatusResponse {
|
|
4
|
+
readonly status: Status;
|
|
5
|
+
private readonly error?;
|
|
6
|
+
constructor(parameters: {
|
|
7
|
+
status: XpsStatus | null;
|
|
8
|
+
errors: XpsResponse['errors'];
|
|
9
|
+
form?: XpsResponse['form'];
|
|
10
|
+
});
|
|
11
|
+
private getUserReturnStatus;
|
|
12
|
+
private getProjectAmount;
|
|
13
|
+
private getAdditionalBackButton;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InjectionToken, ValueProvider } from '@angular/core';
|
|
2
|
+
import { StatusResponse } from './status-response.class';
|
|
3
|
+
type ResponseParameters = ConstructorParameters<typeof StatusResponse>;
|
|
4
|
+
export type StatusResponseFactory = (...args: ResponseParameters) => StatusResponse;
|
|
5
|
+
export declare const statusResponseFactoryToken: InjectionToken<StatusResponseFactory>;
|
|
6
|
+
export declare const statusResponseFactoryProvider: ValueProvider;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SettingsService } from '../../../settings/settings.service';
|
|
2
|
+
import { SecureApiClient } from '../../../http/secure-api/secure-api.service';
|
|
3
|
+
import { XpsApiPart } from '../../xps-api-part.abstract';
|
|
4
|
+
import { StatusRequestFactory } from './request/status-request.token';
|
|
5
|
+
import { StatusResponseFactory } from './response/status-response.token';
|
|
6
|
+
import { StatusRequestParams } from './status-request-params.interface';
|
|
7
|
+
import { StatusResponse } from './response/status-response.class';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class StatusRequestService extends XpsApiPart<StatusResponse> {
|
|
10
|
+
private readonly secureApiClient;
|
|
11
|
+
private readonly settingsService;
|
|
12
|
+
private readonly requestFactory;
|
|
13
|
+
private readonly responseFactory;
|
|
14
|
+
private readonly apiRoute;
|
|
15
|
+
private requestParams;
|
|
16
|
+
constructor(secureApiClient: SecureApiClient, settingsService: SettingsService, requestFactory: StatusRequestFactory, responseFactory: StatusResponseFactory);
|
|
17
|
+
setRequestParams(params: StatusRequestParams): void;
|
|
18
|
+
request(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusRequestService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StatusRequestService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WebSocketClientType } from '../../web-socket/web-socket-client-type.enum';
|
|
2
|
+
import { StatusEnum } from './status.enum';
|
|
3
|
+
import { Status } from './status.interface';
|
|
4
|
+
export interface StatusSettings {
|
|
5
|
+
statusState: StatusEnum;
|
|
6
|
+
isCancelUser: boolean;
|
|
7
|
+
needWebSocket: boolean;
|
|
8
|
+
backUrlSettings: Status['backUrlSettings'];
|
|
9
|
+
autoRedirect?: Status['autoRedirect'];
|
|
10
|
+
webSocketUrl: string;
|
|
11
|
+
webSocketChannelName: string;
|
|
12
|
+
webSocketClientType: WebSocketClientType;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StatusRequestService } from './status-request/status-request.service';
|
|
2
|
+
import { StatusRequestParams } from './status-request/status-request-params.interface';
|
|
3
|
+
import { ListenStatusService } from './listen-status/listen-status.service';
|
|
4
|
+
import { Status } from './status.interface';
|
|
5
|
+
import { NextActionService } from '../actions/next-action.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class StatusService {
|
|
8
|
+
private readonly statusRequestService;
|
|
9
|
+
private readonly listenStatusService;
|
|
10
|
+
private readonly nextActionService;
|
|
11
|
+
constructor(statusRequestService: StatusRequestService, listenStatusService: ListenStatusService, nextActionService: NextActionService);
|
|
12
|
+
getStatus(params: StatusRequestParams): Promise<Status>;
|
|
13
|
+
private startWaitingStatusUpdates;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StatusService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { WebSocketFactory } from '../../../web-socket/web-socket.factory';
|
|
3
|
+
import { WebSocketClientType } from '../../../web-socket/web-socket-client-type.enum';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class WebsocketStatusService {
|
|
6
|
+
private readonly webSocketFactory;
|
|
7
|
+
private webSocketSubscription;
|
|
8
|
+
private webSocketReconnectionSubscription;
|
|
9
|
+
private readonly reinsuranceCheckStatus;
|
|
10
|
+
private readonly needCheckStatusSubject;
|
|
11
|
+
private readonly statusChangedSubject;
|
|
12
|
+
private webSocketClient;
|
|
13
|
+
get needCheckStatus$(): Observable<void>;
|
|
14
|
+
get statusChanged$(): Observable<void>;
|
|
15
|
+
constructor(webSocketFactory: WebSocketFactory);
|
|
16
|
+
checkStatusWithWebSocket(webSocketUrl: string, webSocketChannelName: string, webSocketClientType: WebSocketClientType): Promise<void>;
|
|
17
|
+
closeWebSocket(): void;
|
|
18
|
+
startReinsuranceCheckTimeout(): void;
|
|
19
|
+
private clearReinsuranceCheckTimeout;
|
|
20
|
+
private statusProcessing;
|
|
21
|
+
private removeSubscription;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebsocketStatusService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WebsocketStatusService>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Field } from '../../field.interface';
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { XpsApiPartRequest } from '../../xps-api-part-request.abstract';
|
|
4
|
+
export declare class SubmitRequest extends XpsApiPartRequest {
|
|
5
|
+
readonly access_token: string;
|
|
6
|
+
readonly xps_dfp_hash?: string;
|
|
7
|
+
constructor(parameters: {
|
|
8
|
+
token: string | null;
|
|
9
|
+
fields: Field[];
|
|
10
|
+
form: UntypedFormGroup;
|
|
11
|
+
dfpHash: string | null;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionToken, ValueProvider } from '@angular/core';
|
|
2
|
+
import { SubmitRequest } from './submit-request.class';
|
|
3
|
+
export type SubmitRequestParameters = ConstructorParameters<typeof SubmitRequest>;
|
|
4
|
+
export type SubmitRequestFactory = (...args: SubmitRequestParameters) => SubmitRequest;
|
|
5
|
+
export declare const submitRequestFactoryToken: InjectionToken<SubmitRequestFactory>;
|
|
6
|
+
export declare const submitRequestFactoryProvider: ValueProvider;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { XpsResponse } from '../../xps-response.interface';
|
|
2
|
+
import { Field } from '../../field.interface';
|
|
3
|
+
import { Invoice } from '../../invoice.interface';
|
|
4
|
+
import { XpsCommand } from '../../xps-comand.enum';
|
|
5
|
+
export declare class SubmitResponse {
|
|
6
|
+
readonly responseNumber: number;
|
|
7
|
+
readonly parameters: XpsResponse;
|
|
8
|
+
readonly fields: Field[];
|
|
9
|
+
onlineBanking?: {
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
readonly data?: unknown;
|
|
13
|
+
isNeedRedirect: boolean;
|
|
14
|
+
buyData: XpsResponse['buyData'];
|
|
15
|
+
signature?: string;
|
|
16
|
+
fixInvoice?: string;
|
|
17
|
+
hasFatalErrors?: boolean;
|
|
18
|
+
userSession?: Invoice;
|
|
19
|
+
pid: XpsResponse['pid'];
|
|
20
|
+
errors: XpsResponse['errors'];
|
|
21
|
+
summary: XpsResponse['summary'];
|
|
22
|
+
title: string;
|
|
23
|
+
currentCommand: XpsCommand | null;
|
|
24
|
+
messages: XpsResponse['messages'];
|
|
25
|
+
constructor(parameters: XpsResponse, responseNumber?: number);
|
|
26
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionToken, ValueProvider } from '@angular/core';
|
|
2
|
+
import { SubmitResponse } from './submit-response.class';
|
|
3
|
+
export type SubmitResponseParameters = ConstructorParameters<typeof SubmitResponse>;
|
|
4
|
+
export type SubmitResponseFactory = (...args: SubmitResponseParameters) => SubmitResponse;
|
|
5
|
+
export declare const submitResponseFactoryToken: InjectionToken<SubmitResponseFactory>;
|
|
6
|
+
export declare const submitResponseFactoryProvider: ValueProvider;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Field } from '../field.interface';
|
|
2
|
+
import { SubmitRequestFactory } from './request/submit-request.token';
|
|
3
|
+
import { SubmitResponseFactory } from './response/submit-response.token';
|
|
4
|
+
import { SettingsService } from '../../settings/settings.service';
|
|
5
|
+
import { SubmitResponse } from './response/submit-response.class';
|
|
6
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
7
|
+
import { DeviceFingerPrintService } from '../../device-finger-print/device-finger-print.service';
|
|
8
|
+
import { SecureApiClient } from '../../http/secure-api/secure-api.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class SubmitService {
|
|
11
|
+
private readonly requestFactory;
|
|
12
|
+
private readonly responseFactory;
|
|
13
|
+
private readonly settingsService;
|
|
14
|
+
private readonly deviceFingerPrintService;
|
|
15
|
+
private readonly secureApi;
|
|
16
|
+
private readonly directPaymentApiRoute;
|
|
17
|
+
constructor(requestFactory: SubmitRequestFactory, responseFactory: SubmitResponseFactory, settingsService: SettingsService, deviceFingerPrintService: DeviceFingerPrintService, secureApi: SecureApiClient);
|
|
18
|
+
request(fields: Field[], form: UntypedFormGroup): Promise<SubmitResponse>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubmitService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SubmitService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
2
|
+
import { Field } from '../field.interface';
|
|
3
|
+
import { XpsRequest } from '../xps-request.abstract';
|
|
4
|
+
export declare class SyncRequest extends XpsRequest {
|
|
5
|
+
readonly access_token: string;
|
|
6
|
+
readonly xps_fix_command = "calculate";
|
|
7
|
+
constructor(parameters: {
|
|
8
|
+
token: string;
|
|
9
|
+
changedField: Field;
|
|
10
|
+
fields: Field[];
|
|
11
|
+
form: UntypedFormGroup;
|
|
12
|
+
});
|
|
13
|
+
private getFieldsValues;
|
|
14
|
+
private getFieldsMap;
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionToken, ValueProvider } from '@angular/core';
|
|
2
|
+
import { SyncRequest } from './sync-request.class';
|
|
3
|
+
export type SyncRequestParameters = ConstructorParameters<typeof SyncRequest>;
|
|
4
|
+
export type SyncRequestFactory = (...args: SyncRequestParameters) => SyncRequest;
|
|
5
|
+
export declare const syncRequestFactoryToken: InjectionToken<SyncRequestFactory>;
|
|
6
|
+
export declare const syncRequestFactoryProvider: ValueProvider;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Field } from '../field.interface';
|
|
2
|
+
import { XpsResponse } from '../xps-response.interface';
|
|
3
|
+
export declare class SyncResponse {
|
|
4
|
+
readonly rewritableError?: {
|
|
5
|
+
code: number;
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
readonly fields: Field[];
|
|
9
|
+
readonly parameters: XpsResponse;
|
|
10
|
+
constructor(changedField: Field, response: XpsResponse);
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionToken, ValueProvider } from '@angular/core';
|
|
2
|
+
import { SyncResponse } from './sync-response.class';
|
|
3
|
+
export type SyncResponseParameters = ConstructorParameters<typeof SyncResponse>;
|
|
4
|
+
export type SyncResponseFactory = (...args: SyncResponseParameters) => SyncResponse;
|
|
5
|
+
export declare const syncResponseFactoryToken: InjectionToken<SyncResponseFactory>;
|
|
6
|
+
export declare const syncResponseFactoryProvider: ValueProvider;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UntypedFormGroup, ValidationErrors } from '@angular/forms';
|
|
2
|
+
import { SecureApiClient } from '../../http/secure-api/secure-api.service';
|
|
3
|
+
import { SettingsService } from '../../settings/settings.service';
|
|
4
|
+
import { Field } from '../field.interface';
|
|
5
|
+
import { SyncRequestFactory } from './sync-request.token';
|
|
6
|
+
import { SyncResponseFactory } from './sync-response.token';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SyncService {
|
|
9
|
+
private readonly requestFactory;
|
|
10
|
+
private readonly responseFactory;
|
|
11
|
+
private readonly secureApi;
|
|
12
|
+
private readonly settingsService;
|
|
13
|
+
private readonly apiRoute;
|
|
14
|
+
private prevFieldSyncStates;
|
|
15
|
+
private form;
|
|
16
|
+
private fields;
|
|
17
|
+
constructor(requestFactory: SyncRequestFactory, responseFactory: SyncResponseFactory, secureApi: SecureApiClient, settingsService: SettingsService);
|
|
18
|
+
setup(form: UntypedFormGroup, fields: Field[]): void;
|
|
19
|
+
reset(): void;
|
|
20
|
+
validate(field: Field): Promise<ValidationErrors | null>;
|
|
21
|
+
private request;
|
|
22
|
+
private isReadyField;
|
|
23
|
+
private getPrevFieldSyncState;
|
|
24
|
+
private setPrevFieldSyncState;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SyncService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SyncService>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare abstract class XpsApiPart<Response> {
|
|
3
|
+
get response$(): Observable<Response>;
|
|
4
|
+
private readonly response;
|
|
5
|
+
emitResponse(response: Response | null): void;
|
|
6
|
+
get currentValue(): Response | null;
|
|
7
|
+
protected abstract request(...args: any[]): void | Promise<Response | void> | Promise<Response> | Observable<Response>;
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { XpsBoolean } from '../xps-boolean.enum';
|
|
2
2
|
import { CheckoutItem } from './checkout-item.interface';
|
|
3
3
|
import { Field } from './field.interface';
|
|
4
4
|
import { Invoice } from './invoice.interface';
|
|
@@ -97,7 +97,7 @@ export interface XpsResponse {
|
|
|
97
97
|
isMandatory: null | boolean;
|
|
98
98
|
isPakets: null | boolean;
|
|
99
99
|
isReadonly: null | boolean;
|
|
100
|
-
isVisible:
|
|
100
|
+
isVisible: XpsBoolean;
|
|
101
101
|
label_hint: null | string;
|
|
102
102
|
name: string;
|
|
103
103
|
options: null | unknown[];
|
|
@@ -111,12 +111,9 @@ export interface XpsResponse {
|
|
|
111
111
|
};
|
|
112
112
|
accountXsolla: string;
|
|
113
113
|
public_id: string;
|
|
114
|
-
idCardType: string | null;
|
|
115
|
-
switch_card_icon: string | null;
|
|
116
114
|
form: {
|
|
117
115
|
[key: string]: Field;
|
|
118
116
|
};
|
|
119
|
-
isShortForm: BooleanString;
|
|
120
117
|
taxDisclaimer: string | null;
|
|
121
118
|
number: number;
|
|
122
119
|
barcode: unknown;
|
|
@@ -137,7 +134,7 @@ export interface XpsResponse {
|
|
|
137
134
|
[key: string]: string;
|
|
138
135
|
};
|
|
139
136
|
};
|
|
140
|
-
invoiceCreated:
|
|
137
|
+
invoiceCreated: XpsBoolean;
|
|
141
138
|
messages?: XpsMessage[];
|
|
142
139
|
status?: StatusEnum | XpsStatus | null;
|
|
143
140
|
final?: boolean;
|