@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.
- package/esm2020/lib/core/payment/status/save-payment-method-status/check-status.service.mjs +99 -0
- package/esm2020/lib/core/payment/status/save-payment-method-status/save-payment-method-status.service.mjs +21 -11
- package/fesm2015/xsolla-payment-client-core.mjs +115 -20
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +121 -20
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/status/save-payment-method-status/check-status.service.d.ts +28 -0
- package/lib/core/payment/status/save-payment-method-status/save-payment-method-status.service.d.ts +3 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.1.14-test15.tgz +0 -0
- package/xsolla-payment-client-core-0.1.14-test13.tgz +0 -0
|
@@ -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
|
+
}
|
package/lib/core/payment/status/save-payment-method-status/save-payment-method-status.service.d.ts
CHANGED
|
@@ -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
|
Binary file
|
|
Binary file
|