@xsolla/payment-client-core 0.1.13-test1 → 0.1.14-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.
@@ -238,18 +238,19 @@ class PaymentMethodsService {
238
238
  this.apiRoute = 'remained_payment_methods';
239
239
  this.cache = new Map();
240
240
  }
241
- async getList() {
242
- const response = await this.request();
241
+ async getList(isSaveMethodMode) {
242
+ const response = await this.request(isSaveMethodMode);
243
243
  return response.remained;
244
244
  }
245
245
  async getQuickMethods() {
246
246
  const response = await this.request();
247
247
  return response.especial;
248
248
  }
249
- async request() {
249
+ async request(isSaveMethodMode) {
250
250
  const requestParams = {
251
251
  access_token: this.settingsService.token,
252
252
  country: this.countryService.getCountry(),
253
+ save_payment_account_only: isSaveMethodMode ? "1" /* XpsBoolean.true */ : "0" /* XpsBoolean.false */
253
254
  };
254
255
  const cacheKey = JSON.stringify(requestParams);
255
256
  if (!this.cache.has(cacheKey)) {
@@ -5363,7 +5364,7 @@ class CoreLibraryService {
5363
5364
  this.creditCardStateService = creditCardStateService;
5364
5365
  this.formMessagesService = formMessagesService;
5365
5366
  this.paymentMethods = {
5366
- getList: async () => this.paymentMethodsService.getList(),
5367
+ getList: async (isSaveMethodMode) => this.paymentMethodsService.getList(isSaveMethodMode),
5367
5368
  getQuickMethods: async () => this.paymentMethodsService.getQuickMethods(),
5368
5369
  getSavedMethods: async () => this.savedMethodsService.getList(),
5369
5370
  getUserBalance: async () => this.userBalanceService.getUserBalance(),