@xsolla/payment-client-core 0.1.11 → 0.1.12-test

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.
@@ -394,6 +394,9 @@ class UserBalanceService {
394
394
  // @ts-expect-error the map already has the cache with key
395
395
  return this.cache.get(cacheKey);
396
396
  }
397
+ getUserBalanceValue() {
398
+ return this.settingsService.user.user_balance;
399
+ }
397
400
  }
398
401
  UserBalanceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UserBalanceService, deps: [{ token: userBalanceResponseFactoryToken }, { token: SettingsService }, { token: SecureApiClient }], target: i0.ɵɵFactoryTarget.Injectable });
399
402
  UserBalanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UserBalanceService, providedIn: 'root' });
@@ -5077,6 +5080,7 @@ class PaymentService {
5077
5080
  }
5078
5081
  this.fields = this.getFields();
5079
5082
  this.form = this.formService.createForm(this.fields);
5083
+ this.syncService.setup(this.form, this.fields);
5080
5084
  return this.nextActionService.getNextAction(submitResponse);
5081
5085
  }
5082
5086
  getFields() {
@@ -5391,6 +5395,9 @@ class CoreLibraryService {
5391
5395
  const sanitizedName = field.name.replace(/^fix_/i, '');
5392
5396
  return masksFunctionsMap[sanitizedName];
5393
5397
  }
5398
+ getUserBalanceValue() {
5399
+ return this.userBalanceService.getUserBalanceValue();
5400
+ }
5394
5401
  }
5395
5402
  CoreLibraryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CoreLibraryService, deps: [{ token: SettingsService }, { token: CountryService }, { token: PaymentMethodsService }, { token: SavedMethodsService }, { token: UserBalanceService }, { token: PaymentConfigService }, { token: PaymentService }, { token: DeviceFingerPrintService }, { token: FinanceDetailsService }, { token: LegalService }, { token: StatusService }, { token: NextActionService }, { token: CreditCardService }, { token: CreditCardStateService }], target: i0.ɵɵFactoryTarget.Injectable });
5396
5403
  CoreLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CoreLibraryService, providedIn: 'root' });