@xsolla/payment-client-core 0.2.52 → 0.2.53
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/esm2022/lib/core/encrypt-credit-card/encrypt-credit-card.service.mjs +1 -1
- package/esm2022/lib/core/payment/actions/action.interface.mjs +1 -1
- package/esm2022/lib/core/payment/actions/check-status/check-status.action.class.mjs +1 -1
- package/esm2022/lib/core/payment/actions/next-action.service.mjs +1 -1
- package/esm2022/lib/core/payment/actions/redirect/redirect.action.class.mjs +1 -1
- package/esm2022/lib/core/payment/actions/show-cash-payment-instruction/show-cash-payment-instruction.action.class.mjs +1 -1
- package/esm2022/lib/core/payment/actions/show-errors/show-errors.action.class.mjs +1 -1
- package/esm2022/lib/core/payment/actions/show-fields/show-fields.action.class.mjs +1 -1
- package/esm2022/lib/core/payment/actions/show-mobile-payment-screen/show-mobile-payment-screen.action.class.mjs +1 -1
- package/esm2022/lib/core/payment/actions/show-qr-code/show-qr-code.action.class.mjs +1 -1
- package/esm2022/lib/core/payment/actions/show-xsolla-number/show-xsolla-number.action.class.mjs +1 -1
- package/esm2022/lib/core/payment/actions/special-button/special-button.action.class.mjs +1 -1
- package/esm2022/lib/core/payment/form/converters/birth-date/birth-date.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/card-expiration/card-expiration.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/card-month/card-month.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/card-number/card-number.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/card-year/card-year.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/cardholder-name/cardholder-name.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/checkbox/checkbox.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/converter.abstract.mjs +1 -1
- package/esm2022/lib/core/payment/form/converters/converters-map.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/coupon/coupon.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/cpf-name/cpf-name.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/cpf-number/cpf-number.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/cvv/cvv.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/email/email.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/phone/phone.converter.mjs +39 -0
- package/esm2022/lib/core/payment/form/converters/pin/pin.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/pricepoint/pricepoint.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/radio-group/radio-group.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/select/select.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/street-number/street-number.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/text/text.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/converters/zip/zip.converter.mjs +2 -2
- package/esm2022/lib/core/payment/form/form.module.mjs +2 -2
- package/esm2022/lib/core/payment/form-response.interface.mjs +1 -1
- package/esm2022/lib/core/payment/initialize-actions/action.interface.mjs +1 -1
- package/esm2022/lib/core/payment/initialize-actions/initialize-next-action.service.mjs +1 -1
- package/esm2022/lib/core/payment/initialize-actions/special-button/special-button.action.class.mjs +1 -1
- package/esm2022/lib/core/payment/payment-behaviour/behaviour-strategies.mjs +7 -0
- package/esm2022/lib/core/payment/payment-behaviour/payment-behaviour.module.mjs +33 -0
- package/esm2022/lib/core/payment/payment-behaviour/payment-behaviour.service.mjs +29 -0
- package/esm2022/lib/core/payment/payment-behaviour/strategies/apple-pay-with-shipping-address/apple-pay-with-shipping-address.strategy.mjs +38 -0
- package/esm2022/lib/core/payment/payment-behaviour/strategies/behaviour-strategy.abstract.mjs +20 -0
- package/esm2022/lib/core/payment/payment.service.mjs +26 -10
- package/esm2022/lib/core/payment/requests/initialize/initialize-request-params.interface.mjs +2 -0
- package/esm2022/lib/core/payment/requests/initialize/initialize.service.mjs +89 -0
- package/esm2022/lib/core/payment/requests/initialize/is-initialize-response.function.mjs +5 -0
- package/esm2022/lib/core/payment/requests/initialize/response/initialize-response.class.mjs +43 -0
- package/esm2022/lib/core/payment/requests/initialize/response/initialize-response.token.mjs +8 -0
- package/esm2022/lib/core/payment/{submit/response → requests/submit}/is-submit-response.function.mjs +2 -2
- package/esm2022/lib/core/payment/requests/submit/request/submit-request.class.mjs +36 -0
- package/esm2022/lib/core/payment/requests/submit/request/submit-request.token.mjs +8 -0
- package/esm2022/lib/core/payment/requests/submit/response/submit-response.class.mjs +35 -0
- package/esm2022/lib/core/payment/requests/submit/response/submit-response.token.mjs +8 -0
- package/esm2022/lib/core/payment/requests/submit/response/xsolla-number.interface.mjs +2 -0
- package/esm2022/lib/core/payment/requests/submit/submit.service.mjs +82 -0
- package/esm2022/lib/core/payment/requests/sync/field-async-validation.interface.mjs +2 -0
- package/esm2022/lib/core/payment/requests/sync/field-sync-state.interface.mjs +2 -0
- package/esm2022/lib/core/payment/requests/sync/request/sync-request.class.mjs +34 -0
- package/esm2022/lib/core/payment/requests/sync/request/sync-request.token.mjs +8 -0
- package/esm2022/lib/core/payment/requests/sync/response/sync-response.class.mjs +17 -0
- package/esm2022/lib/core/payment/requests/sync/response/sync-response.token.mjs +8 -0
- package/esm2022/lib/core/payment/requests/sync/sync.service.mjs +184 -0
- package/esm2022/lib/core/payment/status/check-status/check-status.service.mjs +2 -2
- package/esm2022/lib/core/payment/status/check-status/request/check-status-request.class.mjs +2 -2
- package/esm2022/lib/core/payment/status/status-request/request/status-request.class.mjs +2 -2
- package/esm2022/lib/core/payment/status/status-request/status-request.service.mjs +2 -2
- package/esm2022/lib/core/payment/three-ds/three-ds.service.mjs +1 -1
- package/esm2022/lib/core/payment/xps-api/xps-api-part-request.abstract.mjs +13 -0
- package/esm2022/lib/core/payment/xps-api/xps-api-part.abstract.mjs +19 -0
- package/esm2022/lib/core/payment/xps-finance.interface.mjs +1 -1
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/apple-pay-cart/apple-pay-cart.service.mjs +56 -0
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/session-handlers/apple-pay-session.interface.mjs +1 -1
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/session-handlers/braintree.handler.mjs +27 -4
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/session-handlers/checkout.handler.mjs +27 -4
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/shipping-address.interface.mjs +2 -0
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/updated-price.interface.mjs +2 -0
- package/esm2022/lib/core/sdk-payment-systems/google-pay/check-payment-device-data.interface.mjs +1 -1
- package/esm2022/lib/core/sdk-payment-systems/sdk-payment-systems-initial-data.interface.mjs +1 -1
- package/esm2022/lib/core-library.module.mjs +10 -9
- package/esm2022/lib/core-library.service.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/xsolla-payment-client-core.mjs +256 -13
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/encrypt-credit-card/encrypt-credit-card.service.d.ts +1 -1
- package/lib/core/payment/actions/action.interface.d.ts +1 -1
- package/lib/core/payment/actions/check-status/check-status.action.class.d.ts +1 -1
- package/lib/core/payment/actions/next-action.service.d.ts +1 -1
- package/lib/core/payment/actions/next-actions.d.ts +1 -1
- package/lib/core/payment/actions/redirect/redirect.action.class.d.ts +1 -1
- package/lib/core/payment/actions/show-cash-payment-instruction/show-cash-payment-instruction.action.class.d.ts +1 -1
- package/lib/core/payment/actions/show-errors/show-errors.action.class.d.ts +1 -1
- package/lib/core/payment/actions/show-fields/show-fields.action.class.d.ts +1 -1
- package/lib/core/payment/actions/show-mobile-payment-screen/show-mobile-payment-screen.action.class.d.ts +1 -1
- package/lib/core/payment/actions/show-qr-code/show-qr-code.action.class.d.ts +1 -1
- package/lib/core/payment/actions/show-xsolla-number/show-xsolla-number.action.class.d.ts +1 -1
- package/lib/core/payment/actions/special-button/special-button.action.class.d.ts +1 -1
- package/lib/core/payment/form/converters/birth-date/birth-date.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/card-expiration/card-expiration.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/card-month/card-month.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/card-number/card-number.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/card-year/card-year.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/cardholder-name/cardholder-name.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/checkbox/checkbox.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/converter.abstract.d.ts +1 -1
- package/lib/core/payment/form/converters/coupon/coupon.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/cpf-name/cpf-name.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/cpf-number/cpf-number.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/cvv/cvv.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/email/email.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/{phone.converter.d.ts → phone/phone.converter.d.ts} +4 -4
- package/lib/core/payment/form/converters/pin/pin.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/pricepoint/pricepoint.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/radio-group/radio-group.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/select/select.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/street-number/street-number.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/text/text.converter.d.ts +1 -1
- package/lib/core/payment/form/converters/zip/zip.converter.d.ts +1 -1
- package/lib/core/payment/form-response.interface.d.ts +2 -2
- package/lib/core/payment/initialize-actions/action.interface.d.ts +2 -2
- package/lib/core/payment/initialize-actions/initialize-next-action.service.d.ts +1 -1
- package/lib/core/payment/initialize-actions/initialize-next-actions.d.ts +1 -1
- package/lib/core/payment/initialize-actions/special-button/special-button.action.class.d.ts +1 -1
- package/lib/core/payment/payment-behaviour/behaviour-strategies.d.ts +5 -0
- package/lib/core/payment/payment-behaviour/payment-behaviour.module.d.ts +7 -0
- package/lib/core/payment/payment-behaviour/payment-behaviour.service.d.ts +16 -0
- package/lib/core/payment/payment-behaviour/strategies/apple-pay-with-shipping-address/apple-pay-with-shipping-address.strategy.d.ts +10 -0
- package/lib/core/payment/payment-behaviour/strategies/behaviour-strategy.abstract.d.ts +15 -0
- package/lib/core/payment/payment.service.d.ts +10 -6
- package/lib/core/payment/{initialize → requests/initialize}/initialize-request-params.interface.d.ts +1 -1
- package/lib/core/payment/{initialize → requests/initialize}/initialize.service.d.ts +10 -10
- package/lib/core/payment/requests/initialize/is-initialize-response.function.d.ts +2 -0
- package/lib/core/payment/{initialize → requests/initialize}/response/initialize-response.class.d.ts +2 -2
- package/lib/core/payment/{submit/response → requests/submit}/is-submit-response.function.d.ts +1 -1
- package/lib/core/payment/{submit → requests/submit}/request/submit-request.class.d.ts +2 -2
- package/lib/core/payment/{submit → requests/submit}/response/submit-response.class.d.ts +4 -4
- package/lib/core/payment/{submit → requests/submit}/submit.service.d.ts +9 -9
- package/lib/core/payment/{sync → requests/sync}/field-async-validation.interface.d.ts +1 -1
- package/lib/core/payment/{sync → requests/sync}/request/sync-request.class.d.ts +2 -2
- package/lib/core/payment/{sync → requests/sync}/response/sync-response.class.d.ts +2 -2
- package/lib/core/payment/{sync → requests/sync}/sync.service.d.ts +14 -12
- package/lib/core/payment/status/check-status/check-status.service.d.ts +1 -1
- package/lib/core/payment/status/check-status/request/check-status-request.class.d.ts +1 -1
- package/lib/core/payment/status/status-request/request/status-request.class.d.ts +1 -1
- package/lib/core/payment/status/status-request/status-request.service.d.ts +1 -1
- package/lib/core/payment/three-ds/three-ds.service.d.ts +1 -1
- package/lib/core/payment/xps-finance.interface.d.ts +20 -0
- package/lib/core/sdk-payment-systems/apple-pay/apple-pay-cart/apple-pay-cart.service.d.ts +21 -0
- package/lib/core/sdk-payment-systems/apple-pay/session-handlers/apple-pay-session.interface.d.ts +17 -8
- package/lib/core/sdk-payment-systems/apple-pay/session-handlers/braintree.handler.d.ts +3 -1
- package/lib/core/sdk-payment-systems/apple-pay/session-handlers/checkout.handler.d.ts +3 -1
- package/lib/core/sdk-payment-systems/apple-pay/shipping-address.interface.d.ts +4 -0
- package/lib/core/sdk-payment-systems/apple-pay/updated-price.interface.d.ts +7 -0
- package/lib/core/sdk-payment-systems/google-pay/check-payment-device-data.interface.d.ts +1 -1
- package/lib/core/sdk-payment-systems/sdk-payment-systems-initial-data.interface.d.ts +1 -1
- package/lib/core-library.module.d.ts +2 -1
- package/lib/core-library.service.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/xsolla-payment-client-core-0.2.53.tgz +0 -0
- package/esm2022/lib/core/payment/form/converters/phone.converter.mjs +0 -39
- package/esm2022/lib/core/payment/initialize/initialize-request-params.interface.mjs +0 -2
- package/esm2022/lib/core/payment/initialize/initialize.service.mjs +0 -89
- package/esm2022/lib/core/payment/initialize/response/initialize-response.class.mjs +0 -43
- package/esm2022/lib/core/payment/initialize/response/initialize-response.token.mjs +0 -8
- package/esm2022/lib/core/payment/submit/request/submit-request.class.mjs +0 -36
- package/esm2022/lib/core/payment/submit/request/submit-request.token.mjs +0 -8
- package/esm2022/lib/core/payment/submit/response/submit-response.class.mjs +0 -35
- package/esm2022/lib/core/payment/submit/response/submit-response.token.mjs +0 -8
- package/esm2022/lib/core/payment/submit/response/xsolla-number.interface.mjs +0 -2
- package/esm2022/lib/core/payment/submit/submit.service.mjs +0 -82
- package/esm2022/lib/core/payment/sync/field-async-validation.interface.mjs +0 -2
- package/esm2022/lib/core/payment/sync/field-sync-state.interface.mjs +0 -2
- package/esm2022/lib/core/payment/sync/request/sync-request.class.mjs +0 -34
- package/esm2022/lib/core/payment/sync/request/sync-request.token.mjs +0 -8
- package/esm2022/lib/core/payment/sync/response/sync-response.class.mjs +0 -17
- package/esm2022/lib/core/payment/sync/response/sync-response.token.mjs +0 -8
- package/esm2022/lib/core/payment/sync/sync.service.mjs +0 -164
- package/esm2022/lib/core/payment/xps-api-part-request.abstract.mjs +0 -13
- package/esm2022/lib/core/payment/xps-api-part.abstract.mjs +0 -19
- package/xsolla-payment-client-core-0.2.52.tgz +0 -0
- /package/lib/core/payment/{initialize → requests/initialize}/response/initialize-response.token.d.ts +0 -0
- /package/lib/core/payment/{submit → requests/submit}/request/submit-request.token.d.ts +0 -0
- /package/lib/core/payment/{submit → requests/submit}/response/submit-response.token.d.ts +0 -0
- /package/lib/core/payment/{submit → requests/submit}/response/xsolla-number.interface.d.ts +0 -0
- /package/lib/core/payment/{sync → requests/sync}/field-sync-state.interface.d.ts +0 -0
- /package/lib/core/payment/{sync → requests/sync}/request/sync-request.token.d.ts +0 -0
- /package/lib/core/payment/{sync → requests/sync}/response/sync-response.token.d.ts +0 -0
- /package/lib/core/payment/{xps-api-part-request.abstract.d.ts → xps-api/xps-api-part-request.abstract.d.ts} +0 -0
- /package/lib/core/payment/{xps-api-part.abstract.d.ts → xps-api/xps-api-part.abstract.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { XpsApiPartRequest } from '../payment/xps-api-part-request.abstract';
|
|
1
|
+
import { XpsApiPartRequest } from '../payment/xps-api/xps-api-part-request.abstract';
|
|
2
2
|
import { CreditCardService } from '../credit-card/credit-card.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class EncryptCreditCardService {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubmitResponse } from '../submit/response/submit-response.class';
|
|
1
|
+
import { SubmitResponse } from '../requests/submit/response/submit-response.class';
|
|
2
2
|
import { NextAction } from './next-action.interface';
|
|
3
3
|
export interface Action<T = string, D = object> {
|
|
4
4
|
type: T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
1
|
+
import { SubmitResponse } from '../../requests/submit/response/submit-response.class';
|
|
2
2
|
import { ActionCreator } from '../action.interface';
|
|
3
3
|
import { CheckStatusAction, CheckStatusActionType } from './check-status.action.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { SubmitResponse } from '../submit/response/submit-response.class';
|
|
3
|
+
import { SubmitResponse } from '../requests/submit/response/submit-response.class';
|
|
4
4
|
import { NextAction } from './next-action.interface';
|
|
5
5
|
import { NextActionTokens } from './next-actions';
|
|
6
6
|
import { ShowErrorsActionCreator } from './show-errors/show-errors.action.class';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionToken, ProviderToken } from '@angular/core';
|
|
2
2
|
import { ActionCreator } from './action.interface';
|
|
3
3
|
export type NextActionTokens = Array<ProviderToken<ActionCreator>>;
|
|
4
|
-
export declare const nextActionsToken: InjectionToken<ActionCreator<import("../submit/response/submit-response.class").SubmitResponse, string, unknown>>;
|
|
4
|
+
export declare const nextActionsToken: InjectionToken<ActionCreator<import("../requests/submit/response/submit-response.class").SubmitResponse, string, unknown>>;
|
|
5
5
|
export declare const nextActions: NextActionTokens;
|
|
6
6
|
export declare const flowUpdateNextActions: NextActionTokens;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
1
|
+
import { SubmitResponse } from '../../requests/submit/response/submit-response.class';
|
|
2
2
|
import { ActionCreator } from '../action.interface';
|
|
3
3
|
import { RedirectAction, RedirectActionType } from './redirect.action.type';
|
|
4
4
|
import { SettingsService } from '../../../settings/settings.service';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
1
|
+
import { SubmitResponse } from '../../requests/submit/response/submit-response.class';
|
|
2
2
|
import { ActionCreator } from '../action.interface';
|
|
3
3
|
import { ShowCashPaymentInstructionAction, ShowCashPaymentInstructionActionType } from './show-cash-payment-instruction.action.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionCreator } from '../action.interface';
|
|
2
2
|
import { ShowErrorsAction, ShowErrorsActionData, ShowErrorsActionType } from './show-errors.action.type';
|
|
3
|
-
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
3
|
+
import { SubmitResponse } from '../../requests/submit/response/submit-response.class';
|
|
4
4
|
import { XpsError } from '../../xps-error.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ShowErrorsActionCreator implements ActionCreator {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionCreator } from '../action.interface';
|
|
2
2
|
import { ShowFieldsAction, ShowFieldsActionType } from './show-fields.action.type';
|
|
3
|
-
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
3
|
+
import { SubmitResponse } from '../../requests/submit/response/submit-response.class';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ShowFieldsActionCreator implements ActionCreator {
|
|
6
6
|
type: ShowFieldsActionType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
1
|
+
import { SubmitResponse } from '../../requests/submit/response/submit-response.class';
|
|
2
2
|
import { ActionCreator } from '../action.interface';
|
|
3
3
|
import { ShowMobilePaymentScreenAction, ShowMobilePaymentScreenActionType } from './show-mobile-payment-screen.action.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
1
|
+
import { SubmitResponse } from '../../requests/submit/response/submit-response.class';
|
|
2
2
|
import { ActionCreator } from '../action.interface';
|
|
3
3
|
import { ShowQrCodeAction, ShowQrCodeActionType } from './show-qr-code.action.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
1
|
+
import { SubmitResponse } from '../../requests/submit/response/submit-response.class';
|
|
2
2
|
import { ActionCreator } from '../action.interface';
|
|
3
3
|
import { ShowXsollaNumberAction, ShowXsollaNumberActionType } from './show-xsolla-number.action.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
1
|
+
import { SubmitResponse } from '../../requests/submit/response/submit-response.class';
|
|
2
2
|
import { ActionCreator } from '../action.interface';
|
|
3
3
|
import { SpecialButtonAction, SpecialButtonActionType } from './special-button.action.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValidatorFn } from '@angular/forms';
|
|
2
2
|
import { Field } from '../../../field.interface';
|
|
3
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
3
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
4
4
|
import { TextControlConfig } from '../../controls/text-control.config';
|
|
5
5
|
import { Converter } from '../converter.abstract';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Converter } from '../converter.abstract';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { Field } from '../../../field.interface';
|
|
4
4
|
import { ValidatorFn } from '../../validators/validator-fn.type';
|
|
5
5
|
import { FormState } from '../../form-state.interface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Converter } from '../converter.abstract';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { ValidatorFn } from '@angular/forms';
|
|
4
4
|
import { Field } from '../../../field.interface';
|
|
5
5
|
import { FormState } from '../../form-state.interface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Converter } from '../converter.abstract';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { CreditCardMinLengthValidator } from '../../validators/credit-card-length/credit-card-min-length.validator';
|
|
4
4
|
import { Field } from '../../../field.interface';
|
|
5
5
|
import { ValidatorFn } from '@angular/forms';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Converter } from '../converter.abstract';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { ValidatorFn } from '@angular/forms';
|
|
4
4
|
import { Field } from '../../../field.interface';
|
|
5
5
|
import { FormState } from '../../form-state.interface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Field } from '../../../field.interface';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { TextControlConfig } from '../../controls/text-control.config';
|
|
4
4
|
import { Converter } from '../converter.abstract';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Converter } from '../converter.abstract';
|
|
2
2
|
import { XpsBoolean } from '../../../../xps-boolean.enum';
|
|
3
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
3
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
4
4
|
import { Field } from '../../../field.interface';
|
|
5
5
|
import { ValidatorFn } from '../../validators/validator-fn.type';
|
|
6
6
|
import { CheckboxControlConfig } from '../../controls/checkbox/checkbox-control.config';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UntypedFormControl } from '@angular/forms';
|
|
2
2
|
import { Field } from '../../field.interface';
|
|
3
|
-
import { SyncService } from '../../sync/sync.service';
|
|
3
|
+
import { SyncService } from '../../requests/sync/sync.service';
|
|
4
4
|
import { ControlConfig } from '../controls/control-config';
|
|
5
5
|
import { FormState } from '../form-state.interface';
|
|
6
6
|
import { ValidatorFn } from '../validators/validator-fn.type';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValidatorFn } from '@angular/forms';
|
|
2
2
|
import { Converter } from '../converter.abstract';
|
|
3
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
3
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
4
4
|
import { Field } from '../../../field.interface';
|
|
5
5
|
import { CouponControlConfig } from '../../controls/coupon/coupon-control.config';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValidatorFn } from '@angular/forms';
|
|
2
2
|
import { Field } from '../../../field.interface';
|
|
3
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
3
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
4
4
|
import { TextControlConfig } from '../../controls/text-control.config';
|
|
5
5
|
import { Converter } from '../converter.abstract';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Field } from '../../../field.interface';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { TextControlConfig } from '../../controls/text-control.config';
|
|
4
4
|
import { Converter } from '../converter.abstract';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Converter } from '../converter.abstract';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { ValidatorFn } from '@angular/forms';
|
|
4
4
|
import { Field } from '../../../field.interface';
|
|
5
5
|
import { FormState } from '../../form-state.interface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Field } from '../../../field.interface';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { ValidatorFn } from '../../validators/validator-fn.type';
|
|
4
4
|
import { Converter } from '../converter.abstract';
|
|
5
5
|
import { EmailControlConfig } from './email-control.config';
|
package/lib/core/payment/form/converters/{phone.converter.d.ts → phone/phone.converter.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ValidatorFn } from '@angular/forms';
|
|
2
|
-
import { Converter } from '
|
|
3
|
-
import { SyncService } from '
|
|
4
|
-
import { Field } from '
|
|
5
|
-
import { PhoneControlConfig } from '
|
|
2
|
+
import { Converter } from '../converter.abstract';
|
|
3
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
4
|
+
import { Field } from '../../../field.interface';
|
|
5
|
+
import { PhoneControlConfig } from '../../controls/phone-control.config';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class PhoneConverter extends Converter {
|
|
8
8
|
constructor(syncService: SyncService);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Converter } from '../converter.abstract';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { Field } from '../../../field.interface';
|
|
4
4
|
import { TextControlConfig } from '../../controls/text-control.config';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValidatorFn } from '@angular/forms';
|
|
2
2
|
import { Converter } from '../converter.abstract';
|
|
3
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
3
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
4
4
|
import { Field } from '../../../field.interface';
|
|
5
5
|
import { TextControlConfig } from '../../controls/text-control.config';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Converter } from '../converter.abstract';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { Field } from '../../../field.interface';
|
|
4
4
|
import { RadioControlConfig } from '../../controls/radio-control/radio-control.config';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Converter } from '../converter.abstract';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { SelectControlConfig } from '../../controls/search-select/select-control.config';
|
|
4
4
|
import { Field } from '../../../field.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StreetNumberFormState } from './street-number-from-state.interface';
|
|
2
2
|
import { ValidatorFn } from '@angular/forms';
|
|
3
3
|
import { Field } from '../../../field.interface';
|
|
4
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
4
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
5
5
|
import { TextControlConfig } from '../../controls/text-control.config';
|
|
6
6
|
import { Converter } from '../converter.abstract';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Field } from '../../../field.interface';
|
|
2
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
2
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
3
3
|
import { TextControlConfig } from '../../controls/text-control.config';
|
|
4
4
|
import { Converter } from '../converter.abstract';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ValidatorFn } from '@angular/forms';
|
|
2
2
|
import { CountryService } from '../../../../country/country.service';
|
|
3
3
|
import { Field } from '../../../field.interface';
|
|
4
|
-
import { SyncService } from '../../../sync/sync.service';
|
|
4
|
+
import { SyncService } from '../../../requests/sync/sync.service';
|
|
5
5
|
import { TextControlConfig } from '../../controls/text-control.config';
|
|
6
6
|
import { Converter } from '../converter.abstract';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { XpsResponse } from './xps-response.interface';
|
|
2
|
-
import { InitializeResponse } from './initialize/response/initialize-response.class';
|
|
3
|
-
import { SubmitResponse } from './submit/response/submit-response.class';
|
|
2
|
+
import { InitializeResponse } from './requests/initialize/response/initialize-response.class';
|
|
3
|
+
import { SubmitResponse } from './requests/submit/response/submit-response.class';
|
|
4
4
|
export interface FormResponse {
|
|
5
5
|
type: 'sync' | 'initialize' | 'submit';
|
|
6
6
|
data: InitializeResponse | SubmitResponse | XpsResponse;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InitializeNextAction } from '
|
|
2
|
-
import { InitializeResponse } from '../initialize/response/initialize-response.class';
|
|
1
|
+
import { InitializeNextAction } from './next-action.interface';
|
|
2
|
+
import { InitializeResponse } from '../requests/initialize/response/initialize-response.class';
|
|
3
3
|
export interface InitializeAction<T = string, D = object> {
|
|
4
4
|
type: T;
|
|
5
5
|
data: D;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import { InitializeResponse } from '../initialize/response/initialize-response.class';
|
|
2
|
+
import { InitializeResponse } from '../requests/initialize/response/initialize-response.class';
|
|
3
3
|
import { InitializeNextActionTokens } from './initialize-next-actions';
|
|
4
4
|
import { InitializeNextAction } from './next-action.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken, ProviderToken } from '@angular/core';
|
|
2
2
|
import { InitializeActionCreator } from './action.interface';
|
|
3
3
|
export type InitializeNextActionTokens = Array<ProviderToken<InitializeActionCreator>>;
|
|
4
|
-
export declare const initializeNextActionsToken: InjectionToken<InitializeActionCreator<import("../initialize/response/initialize-response.class").InitializeResponse, string, unknown>>;
|
|
4
|
+
export declare const initializeNextActionsToken: InjectionToken<InitializeActionCreator<import("../requests/initialize/response/initialize-response.class").InitializeResponse, string, unknown>>;
|
|
5
5
|
export declare const initializeNextActions: InitializeNextActionTokens;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElkLoggerService } from '../../../exceptions-handling/elk/elk-logger.service';
|
|
2
|
-
import { InitializeResponse } from '../../initialize/response/initialize-response.class';
|
|
2
|
+
import { InitializeResponse } from '../../requests/initialize/response/initialize-response.class';
|
|
3
3
|
import { InitializeActionCreator } from '../action.interface';
|
|
4
4
|
import { InitializeSpecialButtonAction, SpecialButtonActionType } from './special-button.action.type';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InjectionToken, ProviderToken } from '@angular/core';
|
|
2
|
+
import { BehaviourStrategy } from './strategies/behaviour-strategy.abstract';
|
|
3
|
+
export type BehaviourStrategyTokens = Array<ProviderToken<BehaviourStrategy>>;
|
|
4
|
+
export declare const behaviourStrategiesToken: InjectionToken<BehaviourStrategyTokens>;
|
|
5
|
+
export declare const behaviourStrategies: BehaviourStrategyTokens;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
export declare class PaymentBehaviourModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentBehaviourModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PaymentBehaviourModule, never, [typeof i1.CommonModule], never>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PaymentBehaviourModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { BehaviourStrategy } from './strategies/behaviour-strategy.abstract';
|
|
3
|
+
import { BehaviourStrategyTokens } from './behaviour-strategies';
|
|
4
|
+
import { InitializeResponse } from '../requests/initialize/response/initialize-response.class';
|
|
5
|
+
import { SubmitResponse } from '../requests/submit/response/submit-response.class';
|
|
6
|
+
import { PaymentConfiguration } from '../payment-configuration.interface';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class PaymentBehaviourService {
|
|
9
|
+
private readonly behaviourStrategyTokens;
|
|
10
|
+
private readonly injector;
|
|
11
|
+
constructor(behaviourStrategyTokens: BehaviourStrategyTokens, injector: Injector);
|
|
12
|
+
getApplicableBehaviourStrategies(paymentData: InitializeResponse | SubmitResponse | null, config: PaymentConfiguration): BehaviourStrategy[];
|
|
13
|
+
private getBehaviourStrategies;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentBehaviourService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PaymentBehaviourService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BehaviourStrategy } from '../behaviour-strategy.abstract';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ApplePayWithShippingAddressStrategy extends BehaviourStrategy {
|
|
4
|
+
constructor();
|
|
5
|
+
isSuitable(): boolean;
|
|
6
|
+
onInit(): void;
|
|
7
|
+
private hideField;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApplePayWithShippingAddressStrategy, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApplePayWithShippingAddressStrategy>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InitializeResponse } from '../../requests/initialize/response/initialize-response.class';
|
|
2
|
+
import { SubmitResponse } from '../../requests/submit/response/submit-response.class';
|
|
3
|
+
import { PaymentConfiguration } from '../../payment-configuration.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class BehaviourStrategy {
|
|
6
|
+
protected paymentData: InitializeResponse | SubmitResponse | null;
|
|
7
|
+
protected paymentConfig: PaymentConfiguration;
|
|
8
|
+
abstract onInit(): void;
|
|
9
|
+
isSuitable(): boolean;
|
|
10
|
+
onDestroy(): void;
|
|
11
|
+
setPaymentData(paymentData: InitializeResponse | SubmitResponse | null): void;
|
|
12
|
+
setPaymentConfig(config: PaymentConfiguration): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BehaviourStrategy, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BehaviourStrategy>;
|
|
15
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { FormControlStatus, UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { SubmitResponse } from './submit/response/submit-response.class';
|
|
3
|
+
import { SubmitResponse } from './requests/submit/response/submit-response.class';
|
|
4
4
|
import { FormService } from './form/form.service';
|
|
5
|
-
import { InitializeService } from './initialize/initialize.service';
|
|
5
|
+
import { InitializeService } from './requests/initialize/initialize.service';
|
|
6
6
|
import { Status } from './status/status.interface';
|
|
7
|
-
import { SubmitService } from './submit/submit.service';
|
|
8
|
-
import { SyncService } from './sync/sync.service';
|
|
7
|
+
import { SubmitService } from './requests/submit/submit.service';
|
|
8
|
+
import { SyncService } from './requests/sync/sync.service';
|
|
9
9
|
import { StatusService } from './status/status.service';
|
|
10
10
|
import { NextActionService } from './actions/next-action.service';
|
|
11
11
|
import { InitializeNextActionService } from './initialize-actions/initialize-next-action.service';
|
|
@@ -33,8 +33,9 @@ import { ControlStatus } from './form/control-status.interface';
|
|
|
33
33
|
import { InitializedForm } from './initialized-form.inteface';
|
|
34
34
|
import { CashPaymentData } from './cash-payment-data.interface';
|
|
35
35
|
import { PrintInstructionService } from '../xsolla-number/api/print-instruction/print-instruction.service';
|
|
36
|
-
import { SyncResponse } from './sync/response/sync-response.class';
|
|
36
|
+
import { SyncResponse } from './requests/sync/response/sync-response.class';
|
|
37
37
|
import { ElkLoggerService } from '../exceptions-handling/elk/elk-logger.service';
|
|
38
|
+
import { PaymentBehaviourService } from './payment-behaviour/payment-behaviour.service';
|
|
38
39
|
import * as i0 from "@angular/core";
|
|
39
40
|
export declare class PaymentService {
|
|
40
41
|
private readonly elkLoggerService;
|
|
@@ -54,6 +55,7 @@ export declare class PaymentService {
|
|
|
54
55
|
private readonly countryService;
|
|
55
56
|
private readonly checkStatusActionCreator;
|
|
56
57
|
private readonly printInstructionService;
|
|
58
|
+
private readonly paymentBehaviourService;
|
|
57
59
|
form: UntypedFormGroup | null;
|
|
58
60
|
get formFieldsStatus$(): Observable<FormFieldsStatus>;
|
|
59
61
|
get paymentForm$(): Observable<FormControlStatus | null>;
|
|
@@ -70,7 +72,7 @@ export declare class PaymentService {
|
|
|
70
72
|
private readonly formFieldsStatusSubject;
|
|
71
73
|
private readonly _formResponse$;
|
|
72
74
|
private isSavingMethodMode;
|
|
73
|
-
constructor(elkLoggerService: ElkLoggerService, initializeService: InitializeService, submitService: SubmitService, syncService: SyncService, formService: FormService, statusService: StatusService, financeDetailsService: FinanceDetailsService, creditCardStateService: CreditCardStateService, nextActionService: NextActionService, initializeNextActionService: InitializeNextActionService, controlConfigService: ControlConfigService, threeDsService: ThreeDsService, formMessagesService: FormMessagesService, settingsService: SettingsService, countryService: CountryService, checkStatusActionCreator: CheckStatusActionCreator, printInstructionService: PrintInstructionService);
|
|
75
|
+
constructor(elkLoggerService: ElkLoggerService, initializeService: InitializeService, submitService: SubmitService, syncService: SyncService, formService: FormService, statusService: StatusService, financeDetailsService: FinanceDetailsService, creditCardStateService: CreditCardStateService, nextActionService: NextActionService, initializeNextActionService: InitializeNextActionService, controlConfigService: ControlConfigService, threeDsService: ThreeDsService, formMessagesService: FormMessagesService, settingsService: SettingsService, countryService: CountryService, checkStatusActionCreator: CheckStatusActionCreator, printInstructionService: PrintInstructionService, paymentBehaviourService: PaymentBehaviourService);
|
|
74
76
|
initialize(config: PaymentConfiguration): Promise<InitializedForm>;
|
|
75
77
|
submit(): Promise<NextAction | null | void>;
|
|
76
78
|
submitWithFields(fields?: Field[]): Promise<SubmitResponse>;
|
|
@@ -106,6 +108,8 @@ export declare class PaymentService {
|
|
|
106
108
|
private getInitializeMessages;
|
|
107
109
|
private canAutoSubmit;
|
|
108
110
|
private getSdkPaymentDataFromResponse;
|
|
111
|
+
private initializeBehaviourStrategies;
|
|
112
|
+
private destroyBehaviourStrategies;
|
|
109
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentService, never>;
|
|
110
114
|
static ɵprov: i0.ɵɵInjectableDeclaration<PaymentService>;
|
|
111
115
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { CountryService } from '
|
|
2
|
-
import { EncryptCreditCardService } from '
|
|
3
|
-
import { SettingsService } from '
|
|
4
|
-
import { PaymentConfiguration } from '
|
|
5
|
-
import { NextActionService } from '
|
|
6
|
-
import { ShowErrorsActionCreator } from '
|
|
7
|
-
import { XpsApiService } from '
|
|
1
|
+
import { CountryService } from '../../../country/country.service';
|
|
2
|
+
import { EncryptCreditCardService } from '../../../encrypt-credit-card/encrypt-credit-card.service';
|
|
3
|
+
import { SettingsService } from '../../../settings/settings.service';
|
|
4
|
+
import { PaymentConfiguration } from '../../payment-configuration.interface';
|
|
5
|
+
import { NextActionService } from '../../actions/next-action.service';
|
|
6
|
+
import { ShowErrorsActionCreator } from '../../actions/show-errors/show-errors.action.class';
|
|
7
|
+
import { XpsApiService } from '../../xps-api/xps-api.service';
|
|
8
8
|
import { InitializeResponseFactory } from './response/initialize-response.token';
|
|
9
9
|
import { InitializeResponse } from './response/initialize-response.class';
|
|
10
|
-
import { XpsResponseErrorsMappingService } from '
|
|
11
|
-
import { UserBehaviourAnalyticsService } from '
|
|
12
|
-
import { PaymentSettingsService } from '
|
|
10
|
+
import { XpsResponseErrorsMappingService } from '../../../errors-mapping/xps-response-errors-mapping.service';
|
|
11
|
+
import { UserBehaviourAnalyticsService } from '../../../user-behaviour-analytics/user-behaviour-analytics.service';
|
|
12
|
+
import { PaymentSettingsService } from '../../payment-settings/payment-settings.service';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
export declare class InitializeService {
|
|
15
15
|
protected readonly responseFactory: InitializeResponseFactory;
|
package/lib/core/payment/{initialize → requests/initialize}/response/initialize-response.class.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PaymentForm } from '
|
|
2
|
-
import { XpsResponse } from '
|
|
1
|
+
import { PaymentForm } from '../../../payment-form.interface';
|
|
2
|
+
import { XpsResponse } from '../../../xps-response.interface';
|
|
3
3
|
export declare class InitializeResponse {
|
|
4
4
|
readonly paymentForm: PaymentForm | null;
|
|
5
5
|
constructor(response: XpsResponse);
|
package/lib/core/payment/{submit/response → requests/submit}/is-submit-response.function.d.ts
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SubmitResponse } from './submit-response.class';
|
|
1
|
+
import { SubmitResponse } from './response/submit-response.class';
|
|
2
2
|
export declare const isSubmitResponse: (value: unknown) => value is SubmitResponse;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UntypedFormGroup } from '@angular/forms';
|
|
2
|
-
import { Field } from '
|
|
3
|
-
import { XpsApiPartRequest } from '
|
|
2
|
+
import { Field } from '../../../field.interface';
|
|
3
|
+
import { XpsApiPartRequest } from '../../../xps-api/xps-api-part-request.abstract';
|
|
4
4
|
export declare class SubmitRequest extends XpsApiPartRequest {
|
|
5
5
|
readonly access_token: string;
|
|
6
6
|
readonly xps_dfp_hash?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { XpsResponse } from '
|
|
2
|
-
import { Field } from '
|
|
3
|
-
import { Invoice } from '
|
|
4
|
-
import { XpsCommand } from '
|
|
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
5
|
import { XsollaNumber } from './xsolla-number.interface';
|
|
6
6
|
export declare class SubmitResponse {
|
|
7
7
|
readonly responseNumber: number;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Field } from '
|
|
1
|
+
import { Field } from '../../field.interface';
|
|
2
2
|
import { SubmitRequestFactory } from './request/submit-request.token';
|
|
3
3
|
import { SubmitResponseFactory } from './response/submit-response.token';
|
|
4
|
-
import { SettingsService } from '
|
|
4
|
+
import { SettingsService } from '../../../settings/settings.service';
|
|
5
5
|
import { SubmitResponse } from './response/submit-response.class';
|
|
6
6
|
import { UntypedFormGroup } from '@angular/forms';
|
|
7
|
-
import { DeviceFingerPrintService } from '
|
|
8
|
-
import { XpsApiService } from '
|
|
9
|
-
import { EncryptCreditCardService } from '
|
|
10
|
-
import { XpsResponseErrorsMappingService } from '
|
|
11
|
-
import { UserBehaviourAnalyticsService } from '
|
|
12
|
-
import { PaymentConfiguration } from '
|
|
13
|
-
import { PaymentSettingsService } from '
|
|
7
|
+
import { DeviceFingerPrintService } from '../../../device-finger-print/device-finger-print.service';
|
|
8
|
+
import { XpsApiService } from '../../xps-api/xps-api.service';
|
|
9
|
+
import { EncryptCreditCardService } from '../../../encrypt-credit-card/encrypt-credit-card.service';
|
|
10
|
+
import { XpsResponseErrorsMappingService } from '../../../errors-mapping/xps-response-errors-mapping.service';
|
|
11
|
+
import { UserBehaviourAnalyticsService } from '../../../user-behaviour-analytics/user-behaviour-analytics.service';
|
|
12
|
+
import { PaymentConfiguration } from '../../payment-configuration.interface';
|
|
13
|
+
import { PaymentSettingsService } from '../../payment-settings/payment-settings.service';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
export declare class SubmitService {
|
|
16
16
|
private readonly requestFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UntypedFormGroup } from '@angular/forms';
|
|
2
|
-
import { Field } from '
|
|
3
|
-
import { XpsApiPartRequest } from '
|
|
2
|
+
import { Field } from '../../../field.interface';
|
|
3
|
+
import { XpsApiPartRequest } from '../../../xps-api/xps-api-part-request.abstract';
|
|
4
4
|
export declare class SyncRequest extends XpsApiPartRequest {
|
|
5
5
|
readonly access_token: string;
|
|
6
6
|
readonly xps_fix_command = "calculate";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValidationErrors } from '@angular/forms';
|
|
2
|
-
import { Field } from '
|
|
3
|
-
import { XpsResponse } from '
|
|
2
|
+
import { Field } from '../../../field.interface';
|
|
3
|
+
import { XpsResponse } from '../../../xps-response.interface';
|
|
4
4
|
export declare class SyncResponse {
|
|
5
5
|
readonly error: ValidationErrors | null;
|
|
6
6
|
readonly fields: Field[];
|