@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.
@@ -0,0 +1,6 @@
1
+ import { ControlConfig } from './control-config';
2
+ export declare class PhoneControlConfig extends ControlConfig {
3
+ controlType: string;
4
+ placeholder?: string;
5
+ icon?: string;
6
+ }
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from './validator-fn.type';
2
+ export declare function maxLengthValidator(maxLength: number): ValidatorFn;
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare function minLengthValidator(minLength: number): ValidatorFn;
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from './validator-fn.type';
2
+ export declare function phoneValidator(): ValidatorFn;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/payment-client-core",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",