Skip to content

Commit 9583937

Browse files
authored
TECH-125: Create payment template (#486)
1 parent 10a52f0 commit 9583937

File tree

33 files changed

+294
-81
lines changed

33 files changed

+294
-81
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@angular/router": "^20.1.0",
3434
"@ngneat/input-mask": "^6.1.0",
3535
"@tailwindcss/postcss": "^4.1.11",
36-
"@vality/domain-proto": "^2.0.1-f831d3a.0",
36+
"@vality/domain-proto": "^2.0.1-7a97267.0",
3737
"@vality/fistful-proto": "^2.0.1-7c61ac5.0",
3838
"@vality/machinegun-proto": "^1.0.1-cc2c27c.0",
3939
"@vality/magista-proto": "^2.0.2-f3b4b14.0",

src/api/services.ts

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { metadata$ as scroogeMetadata$ } from '@vality/scrooge-proto';
1212

1313
import { DomainMetadataFormExtensionsService } from '~/components/thrift-api-crud';
1414
import { DomainMetadataViewExtensionsService } from '~/components/thrift-api-crud/domain/domain-thrift-viewer/services/domain-metadata-view-extensions';
15-
import { Services as WachterServices } from '~/services';
15+
import { Service } from '~/services';
1616
import { ThriftService, createThriftServices } from '~/utils';
1717

1818
export interface MetadataThriftService extends ThriftService {
@@ -34,15 +34,15 @@ export const services = [
3434
// Domain
3535
{
3636
...domainData,
37-
name: 'DMT',
37+
name: Service.DMT,
3838
loader: () => import('@vality/domain-proto/domain_config_v2').then((m) => m.Repository),
3939
namespace: 'domain_config_v2',
4040
service: 'Repository',
4141
public: 'Repository',
4242
},
4343
{
4444
...domainData,
45-
name: 'DMTClient',
45+
name: Service.DMTClient,
4646
loader: () =>
4747
import('@vality/domain-proto/domain_config_v2').then((m) => m.RepositoryClient),
4848
namespace: 'domain_config_v2',
@@ -51,7 +51,7 @@ export const services = [
5151
},
5252
{
5353
...domainData,
54-
name: 'DMTAuthor',
54+
name: Service.DMTAuthor,
5555
loader: () =>
5656
import('@vality/domain-proto/domain_config_v2').then((m) => m.AuthorManagement),
5757
namespace: 'domain_config_v2',
@@ -60,15 +60,15 @@ export const services = [
6060
},
6161
{
6262
...domainData,
63-
name: 'Invoicing',
63+
name: Service.Invoicing,
6464
loader: () => import('@vality/domain-proto/payment_processing').then((m) => m.Invoicing),
6565
namespace: 'payment_processing',
6666
service: 'Invoicing',
6767
public: 'Invoicing',
6868
},
6969
{
7070
...domainData,
71-
name: 'PartyManagement',
71+
name: Service.PartyManagement,
7272
loader: () =>
7373
import('@vality/domain-proto/payment_processing').then((m) => m.PartyManagement),
7474
namespace: 'payment_processing',
@@ -77,23 +77,32 @@ export const services = [
7777
},
7878
{
7979
...domainData,
80-
name: 'WebhookManager',
80+
name: Service.WebhookManager,
8181
loader: () => import('@vality/domain-proto/webhooker').then((m) => m.WebhookManager),
8282
namespace: 'webhooker',
8383
service: 'WebhookManager',
8484
public: 'WebhookManager',
8585
},
8686
{
8787
...domainData,
88-
name: 'Accounter',
88+
name: Service.Accounter,
8989
loader: () => import('@vality/domain-proto/accounter').then((m) => m.Accounter),
9090
namespace: 'accounter',
9191
service: 'Accounter',
9292
public: 'Accounter',
9393
},
94+
{
95+
...domainData,
96+
name: Service.InvoiceTemplating,
97+
loader: () =>
98+
import('@vality/domain-proto/api_extensions').then((m) => m.InvoiceTemplating),
99+
namespace: 'api_extensions',
100+
service: 'InvoiceTemplating',
101+
public: 'InvoiceTemplating',
102+
},
94103
// Repairer
95104
{
96-
name: 'RepairManagement',
105+
name: Service.RepairManagement,
97106
loader: () => import('@vality/repairer-proto/repairer').then((m) => m.RepairManagement),
98107
metadata$: repairerMetadata$,
99108
namespace: 'repairer',
@@ -102,7 +111,7 @@ export const services = [
102111
},
103112
// Scrooge
104113
{
105-
name: 'Scrooge',
114+
name: Service.Scrooge,
106115
loader: () => import('@vality/scrooge-proto/account_balance').then((m) => m.AccountService),
107116
metadata$: scroogeMetadata$,
108117
namespace: 'account_balance',
@@ -111,7 +120,7 @@ export const services = [
111120
},
112121
// Magista
113122
{
114-
name: 'MerchantStatistics',
123+
name: Service.MerchantStatistics,
115124
loader: () =>
116125
import('@vality/magista-proto/magista').then((m) => m.MerchantStatisticsService),
117126
metadata$: magistaMetadata$,
@@ -121,7 +130,7 @@ export const services = [
121130
},
122131
// Machinegun
123132
{
124-
name: 'Automaton',
133+
name: Service.Automaton,
125134
loader: () => import('@vality/machinegun-proto/state_processing').then((m) => m.Automaton),
126135
metadata$: machinegunMetadata$,
127136
namespace: 'state_processing',
@@ -130,39 +139,39 @@ export const services = [
130139
},
131140
// Fistful
132141
{
133-
name: 'DepositManagement',
142+
name: Service.DepositManagement,
134143
loader: () => import('@vality/fistful-proto/deposit').then((m) => m.Management),
135144
metadata$: fistfulMetadata$,
136145
namespace: 'deposit',
137146
service: 'Management',
138147
public: 'DepositManagement',
139148
},
140149
{
141-
name: 'FistfulStatistics',
150+
name: Service.FistfulStatistics,
142151
loader: () => import('@vality/fistful-proto/fistful_stat').then((m) => m.FistfulStatistics),
143152
metadata$: fistfulMetadata$,
144153
namespace: 'fistful_stat',
145154
service: 'FistfulStatistics',
146155
public: 'FistfulStatistics',
147156
},
148157
{
149-
name: 'WithdrawalManagement',
158+
name: Service.WithdrawalManagement,
150159
loader: () => import('@vality/fistful-proto/withdrawal').then((m) => m.Management),
151160
metadata$: fistfulMetadata$,
152161
namespace: 'withdrawal',
153162
service: 'Management',
154163
public: 'WithdrawalManagement',
155164
},
156165
{
157-
name: 'SourceManagement',
166+
name: Service.SourceManagement,
158167
loader: () => import('@vality/fistful-proto/source').then((m) => m.Management),
159168
metadata$: fistfulMetadata$,
160169
namespace: 'source',
161170
service: 'Management',
162171
public: 'SourceManagement',
163172
},
164173
{
165-
name: WachterServices.WalletsWebhookManager,
174+
name: Service.WalletsWebhookManager,
166175
loader: () => import('@vality/fistful-proto/webhooker').then((m) => m.WebhookManager),
167176
metadata$: fistfulMetadata$,
168177
namespace: 'webhooker',
@@ -191,4 +200,5 @@ export const {
191200
WebhookManager: ThriftShopWebhooksManagementService,
192201
WalletsWebhookManager: ThriftWalletWebhooksManagementService,
193202
Accounter: ThriftAccountManagementService,
203+
InvoiceTemplating: ThriftInvoiceTemplatingService,
194204
} = injectableServices;

src/app/app-routes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import { z } from 'zod';
22

3-
import { Route, Services } from '~/services';
3+
import { Route, Service } from '~/services';
44

55
type SectionPageRoutes = Record<string, Record<string, Route>>;
66

77
export const APP_ROUTES = {
88
domain: {
99
root: new Route('domain', {
10-
services: [Services.DMT],
10+
services: [Service.DMT],
1111
loadComponent: () => import('./domain-config').then((m) => m.DomainConfigComponent),
1212
queryParams: z.object({ type: z.string() }),
1313
}),
1414
},
1515
parties: {
1616
root: new Route('parties', {
17-
services: [Services.DMT],
17+
services: [Service.DMT],
1818
loadComponent: () => import('./parties').then((m) => m.PartiesComponent),
1919
queryParams: z.object({ type: z.string() }),
2020
}),

src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { ThriftRepositoryService } from '~/api/services';
2626
import { SidenavInfoModule, SidenavInfoService } from '~/components/sidenav-info';
2727
import { getLimitedDomainObjectDetails } from '~/components/thrift-api-crud';
2828
import { DomainObjectCardComponent } from '~/components/thrift-api-crud/domain';
29-
import { KeycloakUserService, Services } from '~/services';
29+
import { KeycloakUserService, Service } from '~/services';
3030
import { LOGGING } from '~/utils';
3131

3232
import { APP_ROUTES } from './app-routes';
@@ -40,7 +40,7 @@ import { ROUTING_CONFIG as TERMS_ROUTING_CONFIG } from './terms/routing-config';
4040
import { ROUTING_CONFIG as WALLETS_ROUTING_CONFIG } from './wallets/routing-config';
4141
import { ROUTING_CONFIG as WITHDRAWALS_ROUTING_CONFIG } from './withdrawals/routing-config';
4242

43-
function isHidden(services: Services[]): BaseLink['isHidden'] {
43+
function isHidden(services: Service[]): BaseLink['isHidden'] {
4444
const keycloakUserService = inject(KeycloakUserService);
4545
return !keycloakUserService.hasServiceRole(...services);
4646
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { RoutingConfig, Services } from '~/services';
1+
import { RoutingConfig, Service } from '~/services';
22

33
export const ROUTING_CONFIG: RoutingConfig = {
4-
services: [Services.FistfulStatistics],
4+
services: [Service.FistfulStatistics],
55
};

src/app/deposits/routing-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { RoutingConfig, Services } from '~/services';
1+
import { RoutingConfig, Service } from '~/services';
22

33
export const ROUTING_CONFIG: RoutingConfig = {
4-
services: [Services.FistfulStatistics],
4+
services: [Service.FistfulStatistics],
55
};

src/app/machines/routing-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { RoutingConfig, Services } from '~/services';
1+
import { RoutingConfig, Service } from '~/services';
22

33
export const ROUTING_CONFIG: RoutingConfig = {
4-
services: [Services.RepairManagement],
4+
services: [Service.RepairManagement],
55
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { RoutingConfig, Services } from '~/services';
1+
import { RoutingConfig, Service } from '~/services';
22

33
export const ROUTING_CONFIG: RoutingConfig = {
4-
services: [Services.DMT],
4+
services: [Service.DMT],
55
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { RoutingConfig, Services } from '~/services';
1+
import { RoutingConfig, Service } from '~/services';
22

33
export const ROUTING_CONFIG: RoutingConfig = {
4-
services: [Services.DMT],
4+
services: [Service.DMT],
55
};

0 commit comments

Comments
 (0)