Skip to content

Commit

Permalink
feat(APIM-610): markets - add country rating description field
Browse files Browse the repository at this point in the history
  • Loading branch information
ttbarnes committed Dec 6, 2024
1 parent 3a3dc97 commit 5dc09e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/markets/entities/market.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions test/markets/markets.api-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 5dc09e6

Please sign in to comment.