Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ocrvs event v2 7919 Print Certificate #1220

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Open
50 changes: 50 additions & 0 deletions src/api/certificates/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,56 @@ export async function certificateHandler(request: Request, h: ResponseToolkit) {
bolditalics: '/api/countryconfig/fonts/NotoSans-Regular.ttf'
}
}
},
{
id: 'tennis-club-membership-certificate',
event: Event.TENNIS_CLUB_MEMBERSHIP,
label: {
id: 'certificates.tennis-club-membership.certificate.copy',
defaultMessage: 'Tennis Club Membership Certificate copy',
description: 'The label for a tennis-club-membership certificate'
},
isDefault: false,
fee: {
onTime: 7,
late: 10.6,
delayed: 18
},
svgUrl:
'/api/countryconfig/certificates/tennis-club-membership-certificate.svg',
fonts: {
'Noto Sans': {
normal: '/api/countryconfig/fonts/NotoSans-Regular.ttf',
bold: '/api/countryconfig/fonts/NotoSans-Bold.ttf',
italics: '/api/countryconfig/fonts/NotoSans-Regular.ttf',
bolditalics: '/api/countryconfig/fonts/NotoSans-Regular.ttf'
}
}
},
{
id: 'tennis-club-membership-certified-certificate',
event: Event.TENNIS_CLUB_MEMBERSHIP,
label: {
id: 'certificates.tennis-club-membership.certificate.certified-copy',
defaultMessage: 'Tennis Club Membership Certificate certified copy',
description: 'The label for a tennis-club-membership certificate'
},
isDefault: false,
fee: {
onTime: 7,
late: 10.6,
delayed: 18
},
svgUrl:
'/api/countryconfig/certificates/tennis-club-membership-certified-certificate.svg',
fonts: {
'Noto Sans': {
normal: '/api/countryconfig/fonts/NotoSans-Regular.ttf',
bold: '/api/countryconfig/fonts/NotoSans-Bold.ttf',
italics: '/api/countryconfig/fonts/NotoSans-Regular.ttf',
bolditalics: '/api/countryconfig/fonts/NotoSans-Regular.ttf'
}
}
}
]
return certificateConfigs
Expand Down
Loading
Loading