OPS-235: Update swag payments (#111)

This commit is contained in:
Rinat Arsaev 2023-03-31 12:10:31 +04:00 committed by GitHub
parent 6d394ed70e
commit 393927177c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

14
package-lock.json generated
View File

@ -34,7 +34,7 @@
"@vality/swag-anapi-v2": "2.0.1-38f360b.0", "@vality/swag-anapi-v2": "2.0.1-38f360b.0",
"@vality/swag-claim-management": "0.1.1-bfc2e6c.0", "@vality/swag-claim-management": "0.1.1-bfc2e6c.0",
"@vality/swag-organizations": "1.0.1-cd6cc10.0", "@vality/swag-organizations": "1.0.1-cd6cc10.0",
"@vality/swag-payments": "0.1.1-d71aebc.0", "@vality/swag-payments": "0.1.1-01da4bb.0",
"@vality/swag-questionary-aggr-proxy": "0.1.1-ed41741.0", "@vality/swag-questionary-aggr-proxy": "0.1.1-ed41741.0",
"@vality/swag-url-shortener": "0.1.1-f780d07.0", "@vality/swag-url-shortener": "0.1.1-f780d07.0",
"@vality/swag-wallet": "0.1.2-21b69d2.0", "@vality/swag-wallet": "0.1.2-21b69d2.0",
@ -6083,9 +6083,9 @@
} }
}, },
"node_modules/@vality/swag-payments": { "node_modules/@vality/swag-payments": {
"version": "0.1.1-d71aebc.0", "version": "0.1.1-01da4bb.0",
"resolved": "https://registry.npmjs.org/@vality/swag-payments/-/swag-payments-0.1.1-d71aebc.0.tgz", "resolved": "https://registry.npmjs.org/@vality/swag-payments/-/swag-payments-0.1.1-01da4bb.0.tgz",
"integrity": "sha512-i+3Fzz/VEFwGprs+vQxqECR5EshFYS5Cb/peeqgYs3RQVucu9D/gunRZNxSe437rw1wOmW9kkxPImFpap90gOQ==", "integrity": "sha512-iBFUg4Tqrq7jD/x3wt4MfCNZlMI+49P6oEsJQnWaWF8Q0Fdu+v39QuQ+1maU1ki+tyGK68LUBPg3yJoqLvY6bg==",
"dependencies": { "dependencies": {
"tslib": "^2.3.0" "tslib": "^2.3.0"
}, },
@ -22487,9 +22487,9 @@
} }
}, },
"@vality/swag-payments": { "@vality/swag-payments": {
"version": "0.1.1-d71aebc.0", "version": "0.1.1-01da4bb.0",
"resolved": "https://registry.npmjs.org/@vality/swag-payments/-/swag-payments-0.1.1-d71aebc.0.tgz", "resolved": "https://registry.npmjs.org/@vality/swag-payments/-/swag-payments-0.1.1-01da4bb.0.tgz",
"integrity": "sha512-i+3Fzz/VEFwGprs+vQxqECR5EshFYS5Cb/peeqgYs3RQVucu9D/gunRZNxSe437rw1wOmW9kkxPImFpap90gOQ==", "integrity": "sha512-iBFUg4Tqrq7jD/x3wt4MfCNZlMI+49P6oEsJQnWaWF8Q0Fdu+v39QuQ+1maU1ki+tyGK68LUBPg3yJoqLvY6bg==",
"requires": { "requires": {
"tslib": "^2.3.0" "tslib": "^2.3.0"
} }

View File

@ -52,7 +52,7 @@
"@vality/swag-anapi-v2": "2.0.1-38f360b.0", "@vality/swag-anapi-v2": "2.0.1-38f360b.0",
"@vality/swag-claim-management": "0.1.1-bfc2e6c.0", "@vality/swag-claim-management": "0.1.1-bfc2e6c.0",
"@vality/swag-organizations": "1.0.1-cd6cc10.0", "@vality/swag-organizations": "1.0.1-cd6cc10.0",
"@vality/swag-payments": "0.1.1-d71aebc.0", "@vality/swag-payments": "0.1.1-01da4bb.0",
"@vality/swag-questionary-aggr-proxy": "0.1.1-ed41741.0", "@vality/swag-questionary-aggr-proxy": "0.1.1-ed41741.0",
"@vality/swag-url-shortener": "0.1.1-f780d07.0", "@vality/swag-url-shortener": "0.1.1-f780d07.0",
"@vality/swag-wallet": "0.1.2-21b69d2.0", "@vality/swag-wallet": "0.1.2-21b69d2.0",

View File

@ -1,14 +1,14 @@
import { Injectable, Injector } from '@angular/core'; import { Injectable, Injector } from '@angular/core';
import { WebhooksService as ApiWebhooksService } from '@vality/swag-payments'; import { WebhooksService as ApiWebhooksService } from '@vality/swag-payments';
import { PartyIdPatchMethodService } from '@dsh/api/utils/extensions'; import { PartyIdPatchMethodService, PartyIdExtension } from '@dsh/api/utils/extensions';
import { createApi } from '../utils'; import { createApi } from '../utils';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root',
}) })
export class WebhooksService extends createApi(ApiWebhooksService) { export class WebhooksService extends createApi(ApiWebhooksService, [PartyIdExtension]) {
constructor(injector: Injector, partyIdPatchMethodService: PartyIdPatchMethodService) { constructor(injector: Injector, partyIdPatchMethodService: PartyIdPatchMethodService) {
super(injector); super(injector);
this.createWebhook = partyIdPatchMethodService.patch( this.createWebhook = partyIdPatchMethodService.patch(

View File

@ -39,7 +39,7 @@ export class ReceiveWebhooksService {
this.receiveWebhooks$ this.receiveWebhooks$
.pipe( .pipe(
switchMap(() => switchMap(() =>
this.webhooksService.getWebhooks().pipe( this.webhooksService.getWebhooksForParty().pipe(
catchError((err) => { catchError((err) => {
console.error(err); console.error(err);
this.snackBar.open(this.transloco.translate('shared.httpError', null, 'components'), 'OK'); this.snackBar.open(this.transloco.translate('shared.httpError', null, 'components'), 'OK');