@xsolla/payment-client-core 0.1.6 → 0.1.7
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/form/controls/phone-control.config.mjs +8 -0
- package/esm2020/lib/core/payment/form/converters/converters-map.mjs +3 -1
- package/esm2020/lib/core/payment/form/converters/phone.converter.mjs +37 -0
- package/esm2020/lib/core/payment/form/form.module.mjs +6 -1
- package/esm2020/lib/core/payment/form/validators/max-length-validator.mjs +6 -0
- package/esm2020/lib/core/payment/form/validators/min-length-validator.mjs +6 -0
- package/esm2020/lib/core/payment/form/validators/phone-validator.mjs +6 -0
- package/esm2020/lib/core-library.service.mjs +4 -1
- package/fesm2015/xsolla-payment-client-core.mjs +55 -0
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +55 -0
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/form/controls/phone-control.config.d.ts +6 -0
- package/lib/core/payment/form/converters/phone.converter.d.ts +13 -0
- package/lib/core/payment/form/validators/max-length-validator.d.ts +2 -0
- package/lib/core/payment/form/validators/min-length-validator.d.ts +2 -0
- package/lib/core/payment/form/validators/phone-validator.d.ts +2 -0
- package/lib/core-library.service.d.ts +1 -0
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.1.7.tgz +0 -0
- package/xsolla-payment-client-core-0.1.6.tgz +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { Converter } from './converter.abstract';
|
|
3
|
+
import { SyncService } from '../../sync/sync.service';
|
|
4
|
+
import { Field } from '../../field.interface';
|
|
5
|
+
import { PhoneControlConfig } from '../controls/phone-control.config';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PhoneConverter extends Converter {
|
|
8
|
+
constructor(syncService: SyncService);
|
|
9
|
+
getValidators(field: Field): ValidatorFn[];
|
|
10
|
+
protected createControlConfig(field: Field): PhoneControlConfig;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneConverter, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PhoneConverter>;
|
|
13
|
+
}
|
|
@@ -50,6 +50,7 @@ export declare class CoreLibraryService {
|
|
|
50
50
|
init(configuration: InitConfiguration): Promise<void>;
|
|
51
51
|
getStatus(url?: string): Promise<Status>;
|
|
52
52
|
setCountry(country: string): void;
|
|
53
|
+
getCountry(): string;
|
|
53
54
|
createPayment(config: PaymentConfig): Payment;
|
|
54
55
|
getCreditCardService(): CreditCard;
|
|
55
56
|
get cardTypeUpdates$(): Observable<CreditCardState>;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|