mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 02:25:23 +00:00
OPS-235: Update swag payments (#111)
This commit is contained in:
parent
6d394ed70e
commit
393927177c
14
package-lock.json
generated
14
package-lock.json
generated
@ -34,7 +34,7 @@
|
||||
"@vality/swag-anapi-v2": "2.0.1-38f360b.0",
|
||||
"@vality/swag-claim-management": "0.1.1-bfc2e6c.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-url-shortener": "0.1.1-f780d07.0",
|
||||
"@vality/swag-wallet": "0.1.2-21b69d2.0",
|
||||
@ -6083,9 +6083,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@vality/swag-payments": {
|
||||
"version": "0.1.1-d71aebc.0",
|
||||
"resolved": "https://registry.npmjs.org/@vality/swag-payments/-/swag-payments-0.1.1-d71aebc.0.tgz",
|
||||
"integrity": "sha512-i+3Fzz/VEFwGprs+vQxqECR5EshFYS5Cb/peeqgYs3RQVucu9D/gunRZNxSe437rw1wOmW9kkxPImFpap90gOQ==",
|
||||
"version": "0.1.1-01da4bb.0",
|
||||
"resolved": "https://registry.npmjs.org/@vality/swag-payments/-/swag-payments-0.1.1-01da4bb.0.tgz",
|
||||
"integrity": "sha512-iBFUg4Tqrq7jD/x3wt4MfCNZlMI+49P6oEsJQnWaWF8Q0Fdu+v39QuQ+1maU1ki+tyGK68LUBPg3yJoqLvY6bg==",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
},
|
||||
@ -22487,9 +22487,9 @@
|
||||
}
|
||||
},
|
||||
"@vality/swag-payments": {
|
||||
"version": "0.1.1-d71aebc.0",
|
||||
"resolved": "https://registry.npmjs.org/@vality/swag-payments/-/swag-payments-0.1.1-d71aebc.0.tgz",
|
||||
"integrity": "sha512-i+3Fzz/VEFwGprs+vQxqECR5EshFYS5Cb/peeqgYs3RQVucu9D/gunRZNxSe437rw1wOmW9kkxPImFpap90gOQ==",
|
||||
"version": "0.1.1-01da4bb.0",
|
||||
"resolved": "https://registry.npmjs.org/@vality/swag-payments/-/swag-payments-0.1.1-01da4bb.0.tgz",
|
||||
"integrity": "sha512-iBFUg4Tqrq7jD/x3wt4MfCNZlMI+49P6oEsJQnWaWF8Q0Fdu+v39QuQ+1maU1ki+tyGK68LUBPg3yJoqLvY6bg==",
|
||||
"requires": {
|
||||
"tslib": "^2.3.0"
|
||||
}
|
||||
|
@ -52,7 +52,7 @@
|
||||
"@vality/swag-anapi-v2": "2.0.1-38f360b.0",
|
||||
"@vality/swag-claim-management": "0.1.1-bfc2e6c.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-url-shortener": "0.1.1-f780d07.0",
|
||||
"@vality/swag-wallet": "0.1.2-21b69d2.0",
|
||||
|
@ -1,14 +1,14 @@
|
||||
import { Injectable, Injector } from '@angular/core';
|
||||
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';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class WebhooksService extends createApi(ApiWebhooksService) {
|
||||
export class WebhooksService extends createApi(ApiWebhooksService, [PartyIdExtension]) {
|
||||
constructor(injector: Injector, partyIdPatchMethodService: PartyIdPatchMethodService) {
|
||||
super(injector);
|
||||
this.createWebhook = partyIdPatchMethodService.patch(
|
||||
|
@ -39,7 +39,7 @@ export class ReceiveWebhooksService {
|
||||
this.receiveWebhooks$
|
||||
.pipe(
|
||||
switchMap(() =>
|
||||
this.webhooksService.getWebhooks().pipe(
|
||||
this.webhooksService.getWebhooksForParty().pipe(
|
||||
catchError((err) => {
|
||||
console.error(err);
|
||||
this.snackBar.open(this.transloco.translate('shared.httpError', null, 'components'), 'OK');
|
||||
|
Loading…
Reference in New Issue
Block a user