@xsolla/payment-client-core 0.2.22 → 0.2.24
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/payment/actions/redirect/redirect.action.class.mjs +3 -4
- package/esm2022/lib/core/payment/actions/show-qr-code/show-qr-code.action.class.mjs +3 -1
- package/esm2022/lib/core/payment/actions/show-qr-code/show-qr-code.action.type.mjs +1 -1
- package/esm2022/lib/core/payment/initialized-form.inteface.mjs +2 -0
- package/esm2022/lib/core/payment/payment.interface.mjs +1 -1
- package/esm2022/lib/core/payment/payment.service.mjs +21 -2
- package/fesm2022/xsolla-payment-client-core.mjs +24 -4
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/actions/show-qr-code/show-qr-code.action.type.d.ts +2 -0
- package/lib/core/payment/initialized-form.inteface.d.ts +5 -0
- package/lib/core/payment/payment.interface.d.ts +2 -1
- package/lib/core/payment/payment.service.d.ts +3 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.2.24.tgz +0 -0
- package/xsolla-payment-client-core-0.2.22.tgz +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Action } from '../action.interface';
|
|
2
|
+
import { Field } from '../../field.interface';
|
|
2
3
|
export type ShowQrCodeActionType = 'show_qr_code';
|
|
3
4
|
export interface ShowQrCodeActionData {
|
|
5
|
+
fields: Field[];
|
|
4
6
|
submitButtonText: string;
|
|
5
7
|
}
|
|
6
8
|
export type ShowQrCodeAction = Action<ShowQrCodeActionType, ShowQrCodeActionData>;
|
|
@@ -10,8 +10,9 @@ import { FormFieldsStatus } from './form/form-fields-status.interface';
|
|
|
10
10
|
import { FormState } from './form/form-state.interface';
|
|
11
11
|
import { FieldNames } from './field-names.enum';
|
|
12
12
|
import { ControlStatus } from './form/control-status.interface';
|
|
13
|
+
import { InitializedForm } from './initialized-form.inteface';
|
|
13
14
|
export interface Payment {
|
|
14
|
-
initialize(): Promise<
|
|
15
|
+
initialize(): Promise<InitializedForm>;
|
|
15
16
|
submit(): Promise<NextAction | null | void>;
|
|
16
17
|
getFields(): Field[];
|
|
17
18
|
getPid(): number | null;
|
|
@@ -28,6 +28,7 @@ import { SdkPaymentSystemsInitialData } from '../sdk-payment-systems/sdk-payment
|
|
|
28
28
|
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
|
+
import { InitializedForm } from './initialized-form.inteface';
|
|
31
32
|
import * as i0 from "@angular/core";
|
|
32
33
|
export declare class PaymentService {
|
|
33
34
|
private readonly initializeService;
|
|
@@ -61,7 +62,7 @@ export declare class PaymentService {
|
|
|
61
62
|
private readonly _formResponse$;
|
|
62
63
|
private isSavingMethodMode;
|
|
63
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);
|
|
64
|
-
initialize(config: PaymentConfig): Promise<
|
|
65
|
+
initialize(config: PaymentConfig): Promise<InitializedForm>;
|
|
65
66
|
submit(): Promise<NextAction | null | void>;
|
|
66
67
|
getFields(): Field[];
|
|
67
68
|
getControlStatus(name: FieldNames): ControlStatus | null;
|
|
@@ -91,6 +92,7 @@ export declare class PaymentService {
|
|
|
91
92
|
private updatePidConfig;
|
|
92
93
|
private emitFormResponse;
|
|
93
94
|
private getInitializeMessages;
|
|
95
|
+
private canAutoSubmit;
|
|
94
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentService, never>;
|
|
95
97
|
static ɵprov: i0.ɵɵInjectableDeclaration<PaymentService>;
|
|
96
98
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|