forked from Yara724/api
fix(licence): validate driving licence IDs and preserve verified captions
This commit is contained in:
@@ -26,6 +26,8 @@ export class Person {
|
||||
@Prop() driverLicenseDate?: string;
|
||||
/** Driving licence type code from the Fanavaran lookup (GET /lookups/driving-licence-types). */
|
||||
@Prop() licenseType?: string;
|
||||
/** Server-verified caption at selection time; the provider ID remains licenseType. */
|
||||
@Prop() licenseTypeLabel?: string;
|
||||
|
||||
@Prop({ type: Boolean })
|
||||
driverIsInsurer?: boolean;
|
||||
@@ -67,6 +69,7 @@ export class InquiryParticipant {
|
||||
@Prop({ type: Boolean }) hasDrivingLicense?: boolean;
|
||||
@Prop() licenseNumber?: string;
|
||||
@Prop() licenseType?: string;
|
||||
@Prop() licenseTypeLabel?: string;
|
||||
@Prop() driverLicenseDate?: string;
|
||||
}
|
||||
export const InquiryParticipantSchema =
|
||||
|
||||
Reference in New Issue
Block a user