@xsolla/payment-client-core 0.0.10-2 → 0.0.10-4
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/payment/maskConfig/mask-config.service.mjs +21 -0
- package/esm2020/lib/core/payment/sync/sync.service.mjs +1 -3
- package/esm2020/lib/core-library.module.mjs +4 -1
- package/esm2020/lib/core-library.service.mjs +9 -4
- package/fesm2015/xsolla-payment-client-core.mjs +28 -5
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +27 -5
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/maskConfig/mask-config.service.d.ts +10 -0
- package/lib/core-library.service.d.ts +5 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.0.10-4.tgz +0 -0
- package/xsolla-payment-client-core-0.0.10-2.tgz +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Field } from "../field.interface";
|
|
2
|
+
import { ControlConfigService } from "../form/controls/control-config.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MaskConfigService {
|
|
5
|
+
private readonly controlConfigService;
|
|
6
|
+
constructor(controlConfigService: ControlConfigService);
|
|
7
|
+
getFieldMask(field: Field): undefined | (() => string);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaskConfigService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MaskConfigService>;
|
|
10
|
+
}
|
|
@@ -10,11 +10,13 @@ import { UserBalanceService } from './core/user-balance/user-balance.service';
|
|
|
10
10
|
import { PaymentConfig } from './core/payment/payment-config.interface';
|
|
11
11
|
import { PaymentService } from './core/payment/payment.service';
|
|
12
12
|
import { Payment } from './core/payment/payment.interface';
|
|
13
|
+
import { Field } from './core/payment/field.interface';
|
|
13
14
|
import { DeviceFingerPrintService } from './core/device-finger-print/device-finger-print.service';
|
|
14
15
|
import { LegalService } from './core/legal/legal.service';
|
|
15
16
|
import { LegalComponentConfig } from './core/legal/legal.component.config';
|
|
16
17
|
import { NextActionService } from './core/payment/actions/next-action.service';
|
|
17
18
|
import { FinanceDetailsService } from './core/payment/finance-details/finance-details.service';
|
|
19
|
+
import { MaskConfigService } from "./core/payment/maskConfig/mask-config.service";
|
|
18
20
|
import * as i0 from "@angular/core";
|
|
19
21
|
export declare class CoreLibraryService {
|
|
20
22
|
private readonly settingsService;
|
|
@@ -27,17 +29,19 @@ export declare class CoreLibraryService {
|
|
|
27
29
|
private readonly financeDetailsService;
|
|
28
30
|
private readonly legalService;
|
|
29
31
|
private readonly nextActionService;
|
|
32
|
+
private readonly maskConfigService;
|
|
30
33
|
paymentMethods: {
|
|
31
34
|
getList: () => Promise<PaymentMethod[]>;
|
|
32
35
|
getQuickMethods: () => Promise<PaymentMethod[]>;
|
|
33
36
|
getSavedMethods: () => Promise<SavedMethod[]>;
|
|
34
37
|
getUserBalance: () => Promise<UserBalanceResponse>;
|
|
35
38
|
};
|
|
36
|
-
constructor(settingsService: SettingsService, countryService: CountryService, paymentMethodsService: PaymentMethodsService, savedMethodsService: SavedMethodsService, userBalanceService: UserBalanceService, paymentService: PaymentService, deviceFingerPrintService: DeviceFingerPrintService, financeDetailsService: FinanceDetailsService, legalService: LegalService, nextActionService: NextActionService);
|
|
39
|
+
constructor(settingsService: SettingsService, countryService: CountryService, paymentMethodsService: PaymentMethodsService, savedMethodsService: SavedMethodsService, userBalanceService: UserBalanceService, paymentService: PaymentService, deviceFingerPrintService: DeviceFingerPrintService, financeDetailsService: FinanceDetailsService, legalService: LegalService, nextActionService: NextActionService, maskConfigService: MaskConfigService);
|
|
37
40
|
init(configuration: InitConfiguration): Promise<void>;
|
|
38
41
|
setCountry(country: string): void;
|
|
39
42
|
createPayment(config: PaymentConfig): Payment;
|
|
40
43
|
getLegalComponentConfig(): LegalComponentConfig;
|
|
44
|
+
getControlMask(field: Field): undefined | (() => string);
|
|
41
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreLibraryService, never>;
|
|
42
46
|
static ɵprov: i0.ɵɵInjectableDeclaration<CoreLibraryService>;
|
|
43
47
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|