From 2a33c0ad20b33acec11bcfece12705fac4b6e2fd Mon Sep 17 00:00:00 2001 From: ttbarnes Date: Fri, 6 Dec 2024 13:23:46 +0000 Subject: [PATCH] feat(APIM-610): markets - add country rating description field --- src/modules/markets/entities/market.entity.ts | 4 ++++ test/markets/markets.api-test.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/src/modules/markets/entities/market.entity.ts b/src/modules/markets/entities/market.entity.ts index 46777de3..4a1fc73c 100644 --- a/src/modules/markets/entities/market.entity.ts +++ b/src/modules/markets/entities/market.entity.ts @@ -37,6 +37,10 @@ export class MarketEntity { @ApiProperty({ example: DATE.MAXIMUM_TIMEZONE_LIMIT, description: 'Effective from date' }) effectiveToDatetime: Date; + @Column({ name: 'COUNTRY_RATING_DESC' }) + @ApiProperty({ example: 'B+', description: 'Country rating description' }) + countryRatingDesc: string; + @Column({ name: 'OECD_RISK_CATEGORY_DESC' }) @ApiProperty({ example: 5, description: 'OECD risk category description' }) oecdRiskCategory: number; diff --git a/test/markets/markets.api-test.ts b/test/markets/markets.api-test.ts index 1443fb20..6840f7f2 100644 --- a/test/markets/markets.api-test.ts +++ b/test/markets/markets.api-test.ts @@ -13,6 +13,7 @@ describe('Markets', () => { lastUpdatedDatetime: expect.any(String), effectiveFromDatetime: expect.any(String), effectiveToDatetime: expect.any(String), + countryRatingDesc: expect.any(String), oecdRiskCategory: expect.any(Number), marketRiskAppetitePublicDesc: expect.any(String), geographicalRegionId: expect.any(Number),