@xsolla/payment-client-core 0.1.14-test13 → 0.1.14-test15

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,28 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CheckStatusService {
5
+ private readonly http;
6
+ private apiUrl;
7
+ constructor(http: HttpClient);
8
+ /**
9
+ * Запрос
10
+ * @param route
11
+ * @param params
12
+ * @param options
13
+ * @returns {Observable<any>}
14
+ */
15
+ request(route: string, params?: {
16
+ [k: string]: unknown;
17
+ }, options?: unknown): Observable<any>;
18
+ /**
19
+ * Запрос
20
+ * @param route
21
+ * @param params
22
+ * @param options
23
+ * @returns {Promise<any>}
24
+ */
25
+ requestPromise(route: string, params?: {}, options?: unknown): Promise<any>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckStatusService, never>;
27
+ static ɵprov: i0.ɵɵInjectableDeclaration<CheckStatusService>;
28
+ }
@@ -4,15 +4,17 @@ import { StatusRequestService } from '../status-request/status-request.service';
4
4
  import { ListenStatusService } from '../listen-status/listen-status.service';
5
5
  import { SavedPaymentAccountChangesService } from './api/saved-payment-account-changes.service';
6
6
  import { NextActionService } from '../../actions/next-action.service';
7
+ import { CheckStatusService } from './check-status.service';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class SavePaymentMethodStatusService {
9
10
  private readonly statusRequestService;
10
11
  private readonly listenStatusService;
11
12
  private readonly savedPaymentAccountChangesService;
12
13
  private readonly nextActionService;
14
+ private readonly checkStatusService;
13
15
  private savePaymentMethodStatus?;
14
16
  private listenStatusSubscription;
15
- constructor(statusRequestService: StatusRequestService, listenStatusService: ListenStatusService, savedPaymentAccountChangesService: SavedPaymentAccountChangesService, nextActionService: NextActionService);
17
+ constructor(statusRequestService: StatusRequestService, listenStatusService: ListenStatusService, savedPaymentAccountChangesService: SavedPaymentAccountChangesService, nextActionService: NextActionService, checkStatusService: CheckStatusService);
16
18
  getStatus(params: StatusRequestParams): Promise<Status>;
17
19
  private savingFailedOrCancel;
18
20
  private savingSuccessful;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/payment-client-core",
3
- "version": "0.1.14-test13",
3
+ "version": "0.1.14-test15",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",