@riocrypto/common 1.0.636 → 1.0.637
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.
|
@@ -82,6 +82,7 @@ export declare class RioClient {
|
|
|
82
82
|
createKushkiPayment(orderId: string, token: string): Promise<{
|
|
83
83
|
paymentId: string;
|
|
84
84
|
}>;
|
|
85
|
+
addAuthIdToUser(authId: string): Promise<User>;
|
|
85
86
|
createKushkiBankPayment(orderId: string): Promise<any>;
|
|
86
87
|
updateAuth(update: AuthUpdate, id?: string): Promise<Auth>;
|
|
87
88
|
}
|
|
@@ -291,6 +291,14 @@ class RioClient {
|
|
|
291
291
|
return data;
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
|
+
addAuthIdToUser(authId) {
|
|
295
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
+
const { data } = yield this.axios.post(`/api/users/auths`, {
|
|
297
|
+
authId,
|
|
298
|
+
});
|
|
299
|
+
return data;
|
|
300
|
+
});
|
|
301
|
+
}
|
|
294
302
|
createKushkiBankPayment(orderId) {
|
|
295
303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
296
304
|
const { data } = yield this.axios.post(`/api/payments/bank/kushki`, {
|