@xsolla/payment-client-core 0.1.18 → 0.1.19

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.
@@ -1,5 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
- import { ValidationErrors } from '@angular/forms';
2
+ import { FormControlStatus, ValidationErrors } from '@angular/forms';
3
3
  import { NextAction } from './actions/next-action.interface';
4
4
  import { Status } from './status/status.interface';
5
5
  import { Field } from './field.interface';
@@ -23,6 +23,7 @@ export interface Payment {
23
23
  changeFieldState(name: string, state: InputEventName): void;
24
24
  updateFieldFormState(fieldName: string, formState: FormState): void;
25
25
  formMessages$: Observable<string[]>;
26
+ getFormStatus(): FormControlStatus | undefined;
26
27
  };
27
28
  financeDetailsUpdates$: Observable<FinanceDetails>;
28
29
  }
@@ -24,18 +24,20 @@ export declare class SyncService extends EmitDataService<XpsResponse> {
24
24
  private prevFieldSyncStates;
25
25
  private form;
26
26
  private fields;
27
+ private fieldSyncTimers;
27
28
  private readonly fieldAsyncValidation;
28
29
  constructor(requestFactory: SyncRequestFactory, responseFactory: SyncResponseFactory, xpsApiService: XpsApiService, nextActionService: NextActionService, settingsService: SettingsService, xpsResponseErrorsMappingService: XpsResponseErrorsMappingService, encryptCreditCardService: EncryptCreditCardService);
29
30
  get fieldAsyncValidation$(): Observable<FieldAsyncValidation>;
30
31
  setup(form: UntypedFormGroup, fields: Field[]): void;
31
32
  reset(): void;
32
- validate(field: Field): Promise<ValidationErrors | null>;
33
+ validate(field: Field, delay?: number): Promise<ValidationErrors | null>;
33
34
  getSyncValidationErrors(field: Field): ValidationErrors | null;
34
35
  protected request(field: Field): Promise<SyncResponse>;
35
36
  private isReadyField;
36
37
  private getPrevFieldSyncState;
37
38
  private setPrevFieldSyncState;
38
39
  private emitFormErrors;
40
+ private resetFieldSyncTimer;
39
41
  static ɵfac: i0.ɵɵFactoryDeclaration<SyncService, never>;
40
42
  static ɵprov: i0.ɵɵInjectableDeclaration<SyncService>;
41
43
  }
@@ -15,6 +15,8 @@ export declare class PaymentMethodsService {
15
15
  getList(isSaveMethodMode?: boolean): Promise<PaymentMethod[]>;
16
16
  getQuickMethods(): Promise<PaymentMethod[]>;
17
17
  private request;
18
+ private filterMethodsByFixedPaymentMethod;
19
+ private get isFixedPaymentMethod();
18
20
  static ɵfac: i0.ɵɵFactoryDeclaration<PaymentMethodsService, never>;
19
21
  static ɵprov: i0.ɵɵInjectableDeclaration<PaymentMethodsService>;
20
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/payment-client-core",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",