@xsolla/payment-client-core 0.2.26 → 0.2.28
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/cash-payment/cash-payment-pids.const.mjs +15 -0
- package/esm2022/lib/core/cash-payment/cash-payment.service.mjs +17 -0
- package/esm2022/lib/core/payment/actions/next-action.interface.mjs +1 -1
- package/esm2022/lib/core/payment/actions/next-actions.mjs +5 -1
- package/esm2022/lib/core/payment/actions/show-cash-payment-instruction/show-cash-payment-instruction.action.class.mjs +24 -0
- package/esm2022/lib/core/payment/actions/show-cash-payment-instruction/show-cash-payment-instruction.action.type.mjs +2 -0
- package/esm2022/lib/core/payment/actions/show-xsolla-number/show-xsolla-number.action.class.mjs +36 -0
- package/esm2022/lib/core/payment/actions/show-xsolla-number/show-xsolla-number.action.type.mjs +2 -0
- package/esm2022/lib/core/payment/cash-payment-data.interface.mjs +2 -0
- package/esm2022/lib/core/payment/payment.service.mjs +27 -4
- package/esm2022/lib/core/payment/submit/response/submit-response.class.mjs +5 -1
- package/esm2022/lib/core/payment/submit/response/xsolla-number.interface.mjs +2 -0
- package/esm2022/lib/core/xsolla-number/api/print-instruction/print-instruction.service.mjs +34 -0
- package/esm2022/lib/core/xsolla-number/api/print-instruction/request/print-instruction-request.class.mjs +9 -0
- package/esm2022/lib/core/xsolla-number/api/print-instruction/request/print-instruction-request.interface.mjs +2 -0
- package/esm2022/lib/core/xsolla-number/api/print-instruction/request/print-instruction-request.token.mjs +8 -0
- package/esm2022/lib/core/xsolla-number/api/send-instruction/request/send-instruction-request.class.mjs +19 -0
- package/esm2022/lib/core/xsolla-number/api/send-instruction/request/send-instruction-request.interface.mjs +2 -0
- package/esm2022/lib/core/xsolla-number/api/send-instruction/request/send-instruction-request.token.mjs +8 -0
- package/esm2022/lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.class.mjs +25 -0
- package/esm2022/lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.interface.mjs +2 -0
- package/esm2022/lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.token.mjs +8 -0
- package/esm2022/lib/core/xsolla-number/api/send-instruction/response/send-status.enum.mjs +6 -0
- package/esm2022/lib/core/xsolla-number/api/send-instruction/send-error.interface.mjs +2 -0
- package/esm2022/lib/core/xsolla-number/api/send-instruction/send-instruction-api-routes.enum.mjs +6 -0
- package/esm2022/lib/core/xsolla-number/api/send-instruction/send-instruction-parameters.interface.mjs +2 -0
- package/esm2022/lib/core/xsolla-number/api/send-instruction/send-instruction.service.mjs +53 -0
- package/esm2022/lib/core/xsolla-number/shipping-methods.enum.mjs +7 -0
- package/esm2022/lib/core-library.module.mjs +10 -1
- package/esm2022/lib/core-library.service.mjs +15 -4
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/xsolla-payment-client-core.mjs +292 -6
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/cash-payment/cash-payment-pids.const.d.ts +1 -0
- package/lib/core/cash-payment/cash-payment.service.d.ts +6 -0
- package/lib/core/payment/actions/next-action.interface.d.ts +3 -1
- package/lib/core/payment/actions/show-cash-payment-instruction/show-cash-payment-instruction.action.class.d.ts +14 -0
- package/lib/core/payment/actions/show-cash-payment-instruction/show-cash-payment-instruction.action.type.d.ts +4 -0
- package/lib/core/payment/actions/show-xsolla-number/show-xsolla-number.action.class.d.ts +13 -0
- package/lib/core/payment/actions/show-xsolla-number/show-xsolla-number.action.type.d.ts +5 -0
- package/lib/core/payment/cash-payment-data.interface.d.ts +10 -0
- package/lib/core/payment/payment.service.d.ts +7 -1
- package/lib/core/payment/submit/response/submit-response.class.d.ts +2 -0
- package/lib/core/payment/submit/response/xsolla-number.interface.d.ts +4 -0
- package/lib/core/xsolla-number/api/print-instruction/print-instruction.service.d.ts +15 -0
- package/lib/core/xsolla-number/api/print-instruction/request/print-instruction-request.class.d.ts +8 -0
- package/lib/core/xsolla-number/api/print-instruction/request/print-instruction-request.interface.d.ts +6 -0
- package/lib/core/xsolla-number/api/print-instruction/request/print-instruction-request.token.d.ts +7 -0
- package/lib/core/xsolla-number/api/send-instruction/request/send-instruction-request.class.d.ts +11 -0
- package/lib/core/xsolla-number/api/send-instruction/request/send-instruction-request.interface.d.ts +4 -0
- package/lib/core/xsolla-number/api/send-instruction/request/send-instruction-request.token.d.ts +7 -0
- package/lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.class.d.ts +8 -0
- package/lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.interface.d.ts +6 -0
- package/lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.token.d.ts +7 -0
- package/lib/core/xsolla-number/api/send-instruction/response/send-status.enum.d.ts +4 -0
- package/lib/core/xsolla-number/api/send-instruction/send-error.interface.d.ts +5 -0
- package/lib/core/xsolla-number/api/send-instruction/send-instruction-api-routes.enum.d.ts +4 -0
- package/lib/core/xsolla-number/api/send-instruction/send-instruction-parameters.interface.d.ts +8 -0
- package/lib/core/xsolla-number/api/send-instruction/send-instruction.service.d.ts +20 -0
- package/lib/core/xsolla-number/shipping-methods.enum.d.ts +5 -0
- package/lib/core-library.service.d.ts +9 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/xsolla-payment-client-core-0.2.28.tgz +0 -0
- package/xsolla-payment-client-core-0.2.26.tgz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cashPaymentPids: number[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CashPaymentService {
|
|
3
|
+
isCashPaymentMethod(paymentMethodId: number): boolean;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CashPaymentService, never>;
|
|
5
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CashPaymentService>;
|
|
6
|
+
}
|
|
@@ -7,4 +7,6 @@ import { ThreeDsAction } from './three-ds/three-ds.action.type';
|
|
|
7
7
|
import { SpecialButtonAction } from './special-button/special-button.action.type';
|
|
8
8
|
import { ShowQrCodeAction } from './show-qr-code/show-qr-code.action.type';
|
|
9
9
|
import { ShowMobilePaymentScreenAction } from './show-mobile-payment-screen/show-mobile-payment-screen.action.type';
|
|
10
|
-
|
|
10
|
+
import { ShowXsollaNumberAction } from './show-xsolla-number/show-xsolla-number.action.type';
|
|
11
|
+
import { ShowCashPaymentInstructionAction } from './show-cash-payment-instruction/show-cash-payment-instruction.action.type';
|
|
12
|
+
export type NextAction = CheckStatusAction | ShowFieldsAction | StatusUpdatedAction | ShowErrorsAction | RedirectAction | ThreeDsAction | SpecialButtonAction | ShowQrCodeAction | ShowMobilePaymentScreenAction | ShowXsollaNumberAction | ShowCashPaymentInstructionAction;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
2
|
+
import { ActionCreator } from '../action.interface';
|
|
3
|
+
import { ShowCashPaymentInstructionAction, ShowCashPaymentInstructionActionType } from './show-cash-payment-instruction.action.type';
|
|
4
|
+
import { CashPaymentService } from '../../../cash-payment/cash-payment.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ShowCashPaymentInstructionActionCreator implements ActionCreator {
|
|
7
|
+
private readonly cashPaymentService;
|
|
8
|
+
readonly type: ShowCashPaymentInstructionActionType;
|
|
9
|
+
constructor(cashPaymentService: CashPaymentService);
|
|
10
|
+
getActionData(): ShowCashPaymentInstructionAction;
|
|
11
|
+
isSuitable(response: SubmitResponse): boolean;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowCashPaymentInstructionActionCreator, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShowCashPaymentInstructionActionCreator>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Action } from '../action.interface';
|
|
2
|
+
export type ShowCashPaymentInstructionActionType = 'show_cash_payment_instruction';
|
|
3
|
+
export type ShowCashPaymentInstructionActionData = null;
|
|
4
|
+
export type ShowCashPaymentInstructionAction = Action<ShowCashPaymentInstructionActionType, ShowCashPaymentInstructionActionData>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
2
|
+
import { ActionCreator } from '../action.interface';
|
|
3
|
+
import { ShowXsollaNumberAction, ShowXsollaNumberActionType } from './show-xsolla-number.action.type';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ShowXsollaNumberActionCreator implements ActionCreator {
|
|
6
|
+
readonly type: ShowXsollaNumberActionType;
|
|
7
|
+
getActionData(): ShowXsollaNumberAction;
|
|
8
|
+
isSuitable(response: SubmitResponse): boolean;
|
|
9
|
+
private isCashPayment;
|
|
10
|
+
private isRedirectPaymentMethod;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowXsollaNumberActionCreator, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShowXsollaNumberActionCreator>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Action } from '../action.interface';
|
|
2
|
+
import { ShowCashPaymentInstructionActionType } from '../show-cash-payment-instruction/show-cash-payment-instruction.action.type';
|
|
3
|
+
export type ShowXsollaNumberActionType = ShowCashPaymentInstructionActionType;
|
|
4
|
+
export type ShowXsollaNumberActionData = null;
|
|
5
|
+
export type ShowXsollaNumberAction = Action<ShowXsollaNumberActionType, ShowXsollaNumberActionData>;
|
|
@@ -29,6 +29,9 @@ import { FormResponse } from './form-response.interface';
|
|
|
29
29
|
import { CheckStatusActionCreator } from './actions/check-status/check-status.action.class';
|
|
30
30
|
import { ControlStatus } from './form/control-status.interface';
|
|
31
31
|
import { InitializedForm } from './initialized-form.inteface';
|
|
32
|
+
import { CashPaymentData } from './cash-payment-data.interface';
|
|
33
|
+
import { CashPaymentService } from '../cash-payment/cash-payment.service';
|
|
34
|
+
import { PrintInstructionService } from '../xsolla-number/api/print-instruction/print-instruction.service';
|
|
32
35
|
import * as i0 from "@angular/core";
|
|
33
36
|
export declare class PaymentService {
|
|
34
37
|
private readonly initializeService;
|
|
@@ -45,6 +48,8 @@ export declare class PaymentService {
|
|
|
45
48
|
private readonly settingsService;
|
|
46
49
|
private readonly countryService;
|
|
47
50
|
private readonly checkStatusActionCreator;
|
|
51
|
+
private readonly cashPaymentService;
|
|
52
|
+
private readonly printInstructionService;
|
|
48
53
|
form: UntypedFormGroup | null;
|
|
49
54
|
get formFieldsStatus$(): Observable<FormFieldsStatus>;
|
|
50
55
|
get paymentForm$(): Observable<FormControlStatus | null>;
|
|
@@ -61,13 +66,14 @@ export declare class PaymentService {
|
|
|
61
66
|
private readonly formFieldsStatusSubject;
|
|
62
67
|
private readonly _formResponse$;
|
|
63
68
|
private isSavingMethodMode;
|
|
64
|
-
constructor(initializeService: InitializeService, submitService: SubmitService, syncService: SyncService, formService: FormService, statusService: StatusService, financeDetailsService: FinanceDetailsService, creditCardStateService: CreditCardStateService, nextActionService: NextActionService, controlConfigService: ControlConfigService, threeDsService: ThreeDsService, formMessagesService: FormMessagesService, settingsService: SettingsService, countryService: CountryService, checkStatusActionCreator: CheckStatusActionCreator);
|
|
69
|
+
constructor(initializeService: InitializeService, submitService: SubmitService, syncService: SyncService, formService: FormService, statusService: StatusService, financeDetailsService: FinanceDetailsService, creditCardStateService: CreditCardStateService, nextActionService: NextActionService, controlConfigService: ControlConfigService, threeDsService: ThreeDsService, formMessagesService: FormMessagesService, settingsService: SettingsService, countryService: CountryService, checkStatusActionCreator: CheckStatusActionCreator, cashPaymentService: CashPaymentService, printInstructionService: PrintInstructionService);
|
|
65
70
|
initialize(config: PaymentConfig): Promise<InitializedForm>;
|
|
66
71
|
submit(): Promise<NextAction | null | void>;
|
|
67
72
|
getFields(): Field[];
|
|
68
73
|
getControlStatus(name: FieldNames): ControlStatus | null;
|
|
69
74
|
getInitialDataForSdkPaymentSystems(): SdkPaymentSystemsInitialData;
|
|
70
75
|
getQrCode(): string;
|
|
76
|
+
getCashPaymentData(): CashPaymentData;
|
|
71
77
|
getPid(): number | null;
|
|
72
78
|
getSubmitButtonText(): string | null;
|
|
73
79
|
validate(field: Field): Promise<ValidationErrors | null>;
|
|
@@ -2,6 +2,7 @@ import { XpsResponse } from '../../xps-response.interface';
|
|
|
2
2
|
import { Field } from '../../field.interface';
|
|
3
3
|
import { Invoice } from '../../invoice.interface';
|
|
4
4
|
import { XpsCommand } from '../../xps-comand.enum';
|
|
5
|
+
import { XsollaNumber } from './xsolla-number.interface';
|
|
5
6
|
export declare class SubmitResponse {
|
|
6
7
|
readonly responseNumber: number;
|
|
7
8
|
readonly parameters: XpsResponse;
|
|
@@ -22,5 +23,6 @@ export declare class SubmitResponse {
|
|
|
22
23
|
title: string;
|
|
23
24
|
currentCommand: XpsCommand | null;
|
|
24
25
|
messages: XpsResponse['messages'];
|
|
26
|
+
xsollaNumber: XsollaNumber;
|
|
25
27
|
constructor(parameters: XpsResponse, responseNumber?: number);
|
|
26
28
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PrintInstructionRequestFactory } from './request/print-instruction-request.token';
|
|
2
|
+
import { PrintInstructionRequestInterface } from './request/print-instruction-request.interface';
|
|
3
|
+
import { SecureApiClient } from '../../../http/secure-api/secure-api.service';
|
|
4
|
+
import { SettingsService } from '../../../settings/settings.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PrintInstructionService {
|
|
7
|
+
private readonly settingsService;
|
|
8
|
+
private readonly secureApi;
|
|
9
|
+
private readonly printInstructionRequestFactory;
|
|
10
|
+
private readonly apiRoute;
|
|
11
|
+
constructor(settingsService: SettingsService, secureApi: SecureApiClient, printInstructionRequestFactory: PrintInstructionRequestFactory);
|
|
12
|
+
getPrintInstructionUrl(parameters: PrintInstructionRequestInterface): string;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrintInstructionService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PrintInstructionService>;
|
|
15
|
+
}
|
package/lib/core/xsolla-number/api/print-instruction/request/print-instruction-request.class.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PrintInstructionRequestInterface } from './print-instruction-request.interface';
|
|
2
|
+
export declare class PrintInstructionRequest {
|
|
3
|
+
readonly xsolla_num: string;
|
|
4
|
+
readonly public_id: string;
|
|
5
|
+
readonly payment_name: string;
|
|
6
|
+
readonly pid: number;
|
|
7
|
+
constructor(parameters: PrintInstructionRequestInterface);
|
|
8
|
+
}
|
package/lib/core/xsolla-number/api/print-instruction/request/print-instruction-request.token.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InjectionToken, ValueProvider } from '@angular/core';
|
|
2
|
+
import { PrintInstructionRequest } from './print-instruction-request.class';
|
|
3
|
+
type RequestParameters = ConstructorParameters<typeof PrintInstructionRequest>;
|
|
4
|
+
export type PrintInstructionRequestFactory = (...args: RequestParameters) => PrintInstructionRequest;
|
|
5
|
+
export declare const printInstructionRequestFactoryToken: InjectionToken<PrintInstructionRequestFactory>;
|
|
6
|
+
export declare const printInstructionRequestFactoryProvider: ValueProvider;
|
|
7
|
+
export {};
|
package/lib/core/xsolla-number/api/send-instruction/request/send-instruction-request.class.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SendInstructionRequestInterface } from './send-instruction-request.interface';
|
|
2
|
+
export declare class SendInstructionRequest {
|
|
3
|
+
readonly access_token: string;
|
|
4
|
+
readonly xsolla_num: string;
|
|
5
|
+
readonly public_id: string;
|
|
6
|
+
readonly recipient: string;
|
|
7
|
+
readonly payment_name: string;
|
|
8
|
+
readonly pid: number;
|
|
9
|
+
readonly purchase?: string;
|
|
10
|
+
constructor(parameters: SendInstructionRequestInterface);
|
|
11
|
+
}
|
package/lib/core/xsolla-number/api/send-instruction/request/send-instruction-request.token.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InjectionToken, ValueProvider } from '@angular/core';
|
|
2
|
+
import { SendInstructionRequest } from './send-instruction-request.class';
|
|
3
|
+
type RequestParameters = ConstructorParameters<typeof SendInstructionRequest>;
|
|
4
|
+
export type SendInstructionRequestFactory = (...args: RequestParameters) => SendInstructionRequest;
|
|
5
|
+
export declare const sendInstructionRequestFactoryToken: InjectionToken<SendInstructionRequestFactory>;
|
|
6
|
+
export declare const sendInstructionRequestFactoryProvider: ValueProvider;
|
|
7
|
+
export {};
|
package/lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.class.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SendInstructionResponseInterface } from './send-instruction-response.interface';
|
|
2
|
+
import { SendError } from '../send-error.interface';
|
|
3
|
+
export declare class SendInstructionStatusResponse {
|
|
4
|
+
readonly type: SendInstructionResponseInterface['type'];
|
|
5
|
+
readonly status: SendInstructionResponseInterface['status'];
|
|
6
|
+
readonly errors: string[];
|
|
7
|
+
constructor(sendResponse: SendInstructionResponseInterface | SendError, sendInstructionRoute: 'sendSms' | 'sendEmail');
|
|
8
|
+
}
|
package/lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.token.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InjectionToken, ValueProvider } from '@angular/core';
|
|
2
|
+
import { SendInstructionStatusResponse } from './send-instruction-response.class';
|
|
3
|
+
type RequestParameters = ConstructorParameters<typeof SendInstructionStatusResponse>;
|
|
4
|
+
export type SendInstructionStatusResponseFactory = (...args: RequestParameters) => SendInstructionStatusResponse;
|
|
5
|
+
export declare const sendInstructionStatusResponseFactoryToken: InjectionToken<SendInstructionStatusResponseFactory>;
|
|
6
|
+
export declare const sendInstructionStatusResponseFactoryProvider: ValueProvider;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SendInstructionRequestFactory } from './request/send-instruction-request.token';
|
|
2
|
+
import { SendInstructionStatusResponseFactory } from './response/send-instruction-response.token';
|
|
3
|
+
import { SendInstructionResponseInterface } from './response/send-instruction-response.interface';
|
|
4
|
+
import { SendInstructionParametersInterface } from './send-instruction-parameters.interface';
|
|
5
|
+
import { SecureApiClient } from '../../../http/secure-api/secure-api.service';
|
|
6
|
+
import { SettingsService } from '../../../settings/settings.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SendInstructionService {
|
|
9
|
+
private readonly secureApi;
|
|
10
|
+
private readonly settingsService;
|
|
11
|
+
private readonly sendInstructionRequestFactory;
|
|
12
|
+
private readonly sendInstructionStatusResponseFactory;
|
|
13
|
+
private readonly apiRoute;
|
|
14
|
+
constructor(secureApi: SecureApiClient, settingsService: SettingsService, sendInstructionRequestFactory: SendInstructionRequestFactory, sendInstructionStatusResponseFactory: SendInstructionStatusResponseFactory);
|
|
15
|
+
sendInstructionWithEmail(parameters: SendInstructionParametersInterface): Promise<SendInstructionResponseInterface>;
|
|
16
|
+
sendInstructionWithSms(parameters: SendInstructionParametersInterface): Promise<SendInstructionResponseInterface>;
|
|
17
|
+
private request;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SendInstructionService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SendInstructionService>;
|
|
20
|
+
}
|
|
@@ -39,6 +39,10 @@ import { CombinedPaymentMethods } from './core/combined-payment-methods/combined
|
|
|
39
39
|
import { CombinedPaymentMethodsService } from './core/combined-payment-methods/combined-payment-methods.service';
|
|
40
40
|
import { CountriesApiService } from './core/countries-api/countries-api.service';
|
|
41
41
|
import { CountryResponse } from './core/countries-api/country-response.interface';
|
|
42
|
+
import { CashPaymentData } from './core/payment/cash-payment-data.interface';
|
|
43
|
+
import { SendInstructionService } from './core/xsolla-number/api/send-instruction/send-instruction.service';
|
|
44
|
+
import { SendInstructionResponseInterface } from './core/xsolla-number/api/send-instruction/response/send-instruction-response.interface';
|
|
45
|
+
import { SendInstructionParametersInterface } from './core/xsolla-number/api/send-instruction/send-instruction-parameters.interface';
|
|
42
46
|
import * as i0 from "@angular/core";
|
|
43
47
|
export declare class CoreLibraryService {
|
|
44
48
|
private readonly settingsService;
|
|
@@ -61,6 +65,7 @@ export declare class CoreLibraryService {
|
|
|
61
65
|
private readonly performanceService;
|
|
62
66
|
private readonly combinedPaymentMethodsService;
|
|
63
67
|
private readonly countriesApiService;
|
|
68
|
+
private readonly sendInstructionService;
|
|
64
69
|
paymentMethods: {
|
|
65
70
|
getList: (isSaveMethodMode?: boolean) => Promise<PaymentMethod[]>;
|
|
66
71
|
getQuickMethods: () => Promise<PaymentMethod[]>;
|
|
@@ -70,7 +75,7 @@ export declare class CoreLibraryService {
|
|
|
70
75
|
deleteSavedMethod: (id: number, type: string) => Promise<boolean>;
|
|
71
76
|
};
|
|
72
77
|
sdkPaymentSystems: SdkPaymentSystems;
|
|
73
|
-
constructor(settingsService: SettingsService, countryService: CountryService, paymentMethodsService: PaymentMethodsService, savedMethodsService: SavedMethodsService, userBalanceService: UserBalanceService, paymentConfigService: PaymentConfigService, paymentService: PaymentService, deviceFingerPrintService: DeviceFingerPrintService, financeDetailsService: FinanceDetailsService, legalService: LegalService, statusService: StatusService, nextActionService: NextActionService, creditCardService: CreditCardService, creditCardStateService: CreditCardStateService, formMessagesService: FormMessagesService, editSavedMethodsService: EditSavedMethodsService, userBehaviourAnalyticsService: UserBehaviourAnalyticsService, performanceService: PerformanceService, combinedPaymentMethodsService: CombinedPaymentMethodsService, countriesApiService: CountriesApiService);
|
|
78
|
+
constructor(settingsService: SettingsService, countryService: CountryService, paymentMethodsService: PaymentMethodsService, savedMethodsService: SavedMethodsService, userBalanceService: UserBalanceService, paymentConfigService: PaymentConfigService, paymentService: PaymentService, deviceFingerPrintService: DeviceFingerPrintService, financeDetailsService: FinanceDetailsService, legalService: LegalService, statusService: StatusService, nextActionService: NextActionService, creditCardService: CreditCardService, creditCardStateService: CreditCardStateService, formMessagesService: FormMessagesService, editSavedMethodsService: EditSavedMethodsService, userBehaviourAnalyticsService: UserBehaviourAnalyticsService, performanceService: PerformanceService, combinedPaymentMethodsService: CombinedPaymentMethodsService, countriesApiService: CountriesApiService, sendInstructionService: SendInstructionService);
|
|
74
79
|
init(configuration: InitConfiguration): Promise<void>;
|
|
75
80
|
getStatus(url?: string): Promise<Status>;
|
|
76
81
|
sendAnalytics(action: string, type: keyof typeof userBehaviourEventTypes, options?: SendEventMethodOptionsInterface): void;
|
|
@@ -78,6 +83,9 @@ export declare class CoreLibraryService {
|
|
|
78
83
|
qrCode: string;
|
|
79
84
|
pid: number | null;
|
|
80
85
|
};
|
|
86
|
+
getCashPaymentData(): CashPaymentData;
|
|
87
|
+
sendXsollaNumberWithEmail(params: SendInstructionParametersInterface): Promise<SendInstructionResponseInterface>;
|
|
88
|
+
sendXsollaNumberWithSms(params: SendInstructionParametersInterface): Promise<SendInstructionResponseInterface>;
|
|
81
89
|
getCountries(): Promise<CountryResponse['countryList']>;
|
|
82
90
|
setCountry(country: string): void;
|
|
83
91
|
getCountry(): string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export * from './lib/core/payment/field-names.enum';
|
|
|
11
11
|
export * from './lib/core/credit-card/credit-card-types.enum';
|
|
12
12
|
export * from './lib/core/countries-api/country-response.interface';
|
|
13
13
|
export * from './lib/core/sdk-payment-systems/google-pay/google-pay-button-color.type';
|
|
14
|
+
export * from './lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.interface';
|
|
Binary file
|
|
Binary file
|