Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@sentry/angular": "^10.68.0",
"@tailwindcss/postcss": "^4.3.1",
"@vality/domain-proto": "^2.0.2-7280b62.0",
"@vality/fistful-proto": "^2.0.1-441d9bc.0",
"@vality/fistful-proto": "^2.0.1-360c737.0",
"@vality/machinegun-proto": "^1.0.1-273f2f3.0",
"@vality/magista-proto": "^2.0.2-bd58cea.0",
"@vality/repairer-proto": "^2.0.2-07b2a51.0",
Expand Down
9 changes: 9 additions & 0 deletions src/api/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ export const services = [
service: 'WebhookManager',
public: 'WalletsWebhookManager',
},
{
name: Service.DestinationManagement,
loader: () => import('@vality/fistful-proto/destination').then((m) => m.Management),
metadata$: fistfulMetadata$,
namespace: 'destination',
service: 'Management',
public: 'DestinationManagement',
},
] as const;

export const { services: injectableServices, provideThriftServices } =
Expand All @@ -201,4 +209,5 @@ export const {
WalletsWebhookManager: ThriftWalletWebhooksManagementService,
Accounter: ThriftAccountManagementService,
InvoiceTemplating: ThriftInvoiceTemplatingService,
DestinationManagement: ThriftDestinationManagementService,
} = injectableServices;
12 changes: 12 additions & 0 deletions src/app/withdrawals/withdrawals.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
import { getUnionKey } from '@vality/ng-thrift';

import { WithdrawalParams } from '~/api/fistful-stat';
import { ThriftDestinationManagementService } from '~/api/services';
import { FailMachinesDialogComponent, Type } from '~/components/fail-machines-dialog';
import { createCurrencyColumn, createDomainObjectColumn, createFailureColumn } from '~/utils';

Expand Down Expand Up @@ -57,6 +58,7 @@ interface WithdrawalsForm {
})
export class WithdrawalsComponent implements OnInit {
private fetchWithdrawalsService = inject(FetchWithdrawalsService);
private destinationManagementService = inject(ThriftDestinationManagementService);
private fb = inject(NonNullableFormBuilder);
private qp = inject<QueryParamsService<Partial<WithdrawalsForm>>>(
QueryParamsService<Partial<WithdrawalsForm>>,
Expand Down Expand Up @@ -95,6 +97,16 @@ export class WithdrawalsComponent implements OnInit {
header: 'Wallet',
}),
{ field: 'destination_id' },
{
field: 'destination',
lazyCell: (d) =>
this.destinationManagementService.Get(d.destination_id, {}).pipe(
map((d) => ({
value: d.name,
description: d.realm === 0 ? 'test' : 'live',
})),
),
},
createCurrencyColumn((d) => ({ amount: d.amount, code: d.currency_symbolic_code }), {
field: 'amount',
}),
Expand Down
1 change: 1 addition & 0 deletions src/services/app-auth-guard/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ export enum Service {
WithdrawalManagement = 'WithdrawalManagement',
SourceManagement = 'SourceManagement',
WalletsWebhookManager = 'WalletsWebhookManager',
DestinationManagement = 'DestinationManagement',
}
Loading