@xsolla/payment-client-core 0.2.12 → 0.2.13

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,9 @@
1
+ import { PaymentMethod } from '../payment-methods/payment-method.interface';
2
+ import { SavedMethod } from '../saved-methods/saved-method.interface';
3
+ export interface CombinedPaymentMethods {
4
+ paymentMethods: {
5
+ quick: PaymentMethod[];
6
+ remained: PaymentMethod[];
7
+ };
8
+ savedMethods: SavedMethod[];
9
+ }
@@ -0,0 +1,12 @@
1
+ import { SavedMethodsService } from '../saved-methods/saved-methods.service';
2
+ import { PaymentMethodsService } from '../payment-methods/payment-methods.service';
3
+ import { CombinedPaymentMethods } from './combined-payment-methods.interface';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CombinedPaymentMethodsService {
6
+ private readonly paymentMethodsService;
7
+ private readonly savedMethodsService;
8
+ constructor(paymentMethodsService: PaymentMethodsService, savedMethodsService: SavedMethodsService);
9
+ getCombinedPaymentMethods(): Promise<CombinedPaymentMethods>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<CombinedPaymentMethodsService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<CombinedPaymentMethodsService>;
12
+ }
@@ -2,6 +2,7 @@ import { CountryService } from '../country/country.service';
2
2
  import { SecureApiClient } from '../http/secure-api/secure-api.service';
3
3
  import { SettingsService } from '../settings/settings.service';
4
4
  import { PaymentMethod } from './payment-method.interface';
5
+ import { PaymentMethodsResponse } from './payment-methods-response.class';
5
6
  import { PaymentMethodsResponseFactory } from './payment-methods-response.token';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class PaymentMethodsService {
@@ -12,6 +13,7 @@ export declare class PaymentMethodsService {
12
13
  private readonly apiRoute;
13
14
  private readonly cache;
14
15
  constructor(responseFactory: PaymentMethodsResponseFactory, settingsService: SettingsService, countryService: CountryService, secureApi: SecureApiClient);
16
+ getAllMethods(): Promise<PaymentMethodsResponse>;
15
17
  getList(isSaveMethodMode?: boolean): Promise<PaymentMethod[]>;
16
18
  getQuickMethods(): Promise<PaymentMethod[]>;
17
19
  private request;
@@ -36,6 +36,8 @@ import { UserBehaviourAnalyticsService } from './core/user-behaviour-analytics/u
36
36
  import { userBehaviourEventTypes } from './core/user-behaviour-analytics/user-behaviour-event/user-behaviour-event-types';
37
37
  import { SendEventMethodOptionsInterface } from './core/user-behaviour-analytics/user-behaviour-analytics.interface';
38
38
  import { PerformanceService } from './core/performance/performance.service';
39
+ import { CombinedPaymentMethods } from './core/combined-payment-methods/combined-payment-methods.interface';
40
+ import { CombinedPaymentMethodsService } from './core/combined-payment-methods/combined-payment-methods.service';
39
41
  import * as i0 from "@angular/core";
40
42
  export declare class CoreLibraryService {
41
43
  private readonly settingsService;
@@ -56,15 +58,17 @@ export declare class CoreLibraryService {
56
58
  private readonly editSavedMethodsService;
57
59
  private readonly userBehaviourAnalyticsService;
58
60
  private readonly performanceService;
61
+ private readonly combinedPaymentMethodsService;
59
62
  paymentMethods: {
60
63
  getList: (isSaveMethodMode?: boolean) => Promise<PaymentMethod[]>;
61
64
  getQuickMethods: () => Promise<PaymentMethod[]>;
62
65
  getSavedMethods: () => Promise<SavedMethod[]>;
66
+ getCombinedPaymentMethods: () => Promise<CombinedPaymentMethods>;
63
67
  getUserBalance: () => Promise<UserBalanceResponse>;
64
68
  deleteSavedMethod: (id: number, type: string) => Promise<boolean>;
65
69
  };
66
70
  sdkPaymentSystems: SdkPaymentSystems;
67
- constructor(settingsService: SettingsService, countryService: CountryService, paymentMethodsService: PaymentMethodsService, savedMethodsService: SavedMethodsService, userBalanceService: UserBalanceService, paymentConfigService: PaymentConfigService, paymentService: PaymentService, deviceFingerPrintService: DeviceFingerPrintService, financeDetailsService: FinanceDetailsService, legalService: LegalService, statusService: StatusService, nextActionService: NextActionService, creditCardService: CreditCardService, creditCardStateService: CreditCardStateService, formMessagesService: FormMessagesService, editSavedMethodsService: EditSavedMethodsService, userBehaviourAnalyticsService: UserBehaviourAnalyticsService, performanceService: PerformanceService);
71
+ constructor(settingsService: SettingsService, countryService: CountryService, paymentMethodsService: PaymentMethodsService, savedMethodsService: SavedMethodsService, userBalanceService: UserBalanceService, paymentConfigService: PaymentConfigService, paymentService: PaymentService, deviceFingerPrintService: DeviceFingerPrintService, financeDetailsService: FinanceDetailsService, legalService: LegalService, statusService: StatusService, nextActionService: NextActionService, creditCardService: CreditCardService, creditCardStateService: CreditCardStateService, formMessagesService: FormMessagesService, editSavedMethodsService: EditSavedMethodsService, userBehaviourAnalyticsService: UserBehaviourAnalyticsService, performanceService: PerformanceService, combinedPaymentMethodsService: CombinedPaymentMethodsService);
68
72
  init(configuration: InitConfiguration): Promise<void>;
69
73
  getStatus(url?: string): Promise<Status>;
70
74
  sendAnalytics(action: string, type: keyof typeof userBehaviourEventTypes, options?: SendEventMethodOptionsInterface): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/payment-client-core",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",