IMP-185: Add new user interaction webhook & Add deposit description (#178)

This commit is contained in:
Rinat Arsaev 2024-03-05 18:37:22 +07:00 committed by GitHub
parent 68bc1f9952
commit 31b1198cf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 33 additions and 14 deletions

20
package-lock.json generated
View File

@ -29,9 +29,9 @@
"@vality/swag-api-keys-v2": "0.1.2-f0ece04.0",
"@vality/swag-claim-management": "0.1.1-6b6711b.0",
"@vality/swag-organizations": "1.0.1-de0cd06.0",
"@vality/swag-payments": "0.1.3-77c86a5.0",
"@vality/swag-payments": "0.1.3-5dc6d9f.0",
"@vality/swag-url-shortener": "0.1.0",
"@vality/swag-wallet": "0.1.3-e6d0c88.0",
"@vality/swag-wallet": "0.1.3-3b8984e.0",
"angular-file": "^3.0.1",
"apexcharts": "^3.19.2",
"css-element-queries": "1.2.3",
@ -7289,15 +7289,15 @@
}
},
"node_modules/@vality/swag-payments": {
"version": "0.1.3-77c86a5.0",
"resolved": "https://registry.npmjs.org/@vality/swag-payments/-/swag-payments-0.1.3-77c86a5.0.tgz",
"integrity": "sha512-OczSabXIdvYMQ1vteq3r3e1rv5mk8+ZAEvsKS/AzMz3nAUY0OWBhVG1pjtZuIqlHckNG/Yx0QrhdkjVlMKGyxg==",
"version": "0.1.3-5dc6d9f.0",
"resolved": "https://registry.npmjs.org/@vality/swag-payments/-/swag-payments-0.1.3-5dc6d9f.0.tgz",
"integrity": "sha512-xi1qe33CV31qq5A+BhKekxnXgGvdlNowRipnPxvvFG9HoT3a+rH315NwO5RHTzC0PLGSK650c3sZvCASjAuzHQ==",
"dependencies": {
"tslib": "^2.3.0"
},
"peerDependencies": {
"@angular/common": "^17.0.0",
"@angular/core": "^17.0.0"
"@angular/common": "^17.2.0",
"@angular/core": "^17.2.0"
}
},
"node_modules/@vality/swag-url-shortener": {
@ -7313,9 +7313,9 @@
}
},
"node_modules/@vality/swag-wallet": {
"version": "0.1.3-e6d0c88.0",
"resolved": "https://registry.npmjs.org/@vality/swag-wallet/-/swag-wallet-0.1.3-e6d0c88.0.tgz",
"integrity": "sha512-Oh+w9pNwktWOdnO4evS+2vmLElxKvNexXNaezzsNmus6u+Osz6xc6ZV8hGc4hCLJ6cPw1MVtKpgcWCbPUDkAHw==",
"version": "0.1.3-3b8984e.0",
"resolved": "https://registry.npmjs.org/@vality/swag-wallet/-/swag-wallet-0.1.3-3b8984e.0.tgz",
"integrity": "sha512-IIbH9mrGIM9zPNRrwpYQt/FIqnHry/AQFyHnu7yhSe0zpEGgXb0U+ZlmwCFd7fm4Fn7YO2LgMs+ZkFx5J6vg9Q==",
"dependencies": {
"tslib": "^2.3.0"
},

View File

@ -46,9 +46,9 @@
"@vality/swag-api-keys-v2": "0.1.2-f0ece04.0",
"@vality/swag-claim-management": "0.1.1-6b6711b.0",
"@vality/swag-organizations": "1.0.1-de0cd06.0",
"@vality/swag-payments": "0.1.3-77c86a5.0",
"@vality/swag-payments": "0.1.3-5dc6d9f.0",
"@vality/swag-url-shortener": "0.1.0",
"@vality/swag-wallet": "0.1.3-e6d0c88.0",
"@vality/swag-wallet": "0.1.3-3b8984e.0",
"angular-file": "^3.0.1",
"apexcharts": "^3.19.2",
"css-element-queries": "1.2.3",

View File

@ -75,6 +75,16 @@ export class PaymentsDictionaryService {
null,
'dictionary',
),
PaymentUserInteractionRequested: this.t.translate(
'payments.invoicesTopicEventType.PaymentUserInteractionRequested',
null,
'dictionary',
),
PaymentUserInteractionCompleted: this.t.translate(
'payments.invoicesTopicEventType.PaymentUserInteractionCompleted',
null,
'dictionary',
),
/* eslint-enable @typescript-eslint/naming-convention */
}));

View File

@ -20,6 +20,9 @@
<dsh-details-item [title]="t('wallet')">
{{ deposit.wallet | walletDetails }}
</dsh-details-item>
<dsh-details-item *ngIf="deposit.desc" [title]="t('desc')">
{{ deposit.desc }}
</dsh-details-item>
<dsh-details-item *ngIf="deposit.failure" [title]="t('error')">
<!-- t(errors.failed) -->
{{ t('errors.' + deposit.failure.code) }}

View File

@ -137,7 +137,9 @@
"PaymentRefundFailed": "PaymentRefundFailed (payment refund failed)",
"PaymentRefundSucceeded": "PaymentRefundSucceeded (payment refund was successful)",
"PaymentRefunded": "PaymentRefundSucceeded (payment successfully refunded)",
"PaymentStarted": "PaymentStarted (payment created)"
"PaymentStarted": "PaymentStarted (payment created)",
"PaymentUserInteractionCompleted": "PaymentUserInteractionCompleted (payment user interaction completed)",
"PaymentUserInteractionRequested": "PaymentUserInteractionRequested (payment user interaction requested)"
},
"paymentStatus": {
"cancelled": "Cancelled",

View File

@ -137,7 +137,9 @@
"PaymentRefundFailed": "PaymentRefundFailed (возврат платежа завершился неудачей)",
"PaymentRefundSucceeded": "PaymentRefundSucceeded (возврат платежа прошел успешно)",
"PaymentRefunded": "PaymentRefunded (платеж успешно возвращен)",
"PaymentStarted": "PaymentStarted (создан платеж)"
"PaymentStarted": "PaymentStarted (создан платеж)",
"PaymentUserInteractionCompleted": "PaymentUserInteractionCompleted (взаимодействие с пользователем по оплате завершено)",
"PaymentUserInteractionRequested": "PaymentUserInteractionRequested (запрошено взаимодействие с пользователем по оплате)"
},
"paymentStatus": {
"cancelled": "Отменен",

View File

@ -1,5 +1,6 @@
{
"depositDetails": {
"desc": "Description",
"error": "Error",
"errors": {
"failed": "Deposit operation failed"

View File

@ -1,5 +1,6 @@
{
"depositDetails": {
"desc": "Описание",
"error": "Ошибка",
"errors": {
"failed": "Ошибка при пополнении"