Patch 0.0.2 #9

Merged
niggl merged 69 commits from dev into main 2021-02-03 17:24:35 +00:00
2 changed files with 38 additions and 1 deletions
Showing only changes of commit cfa65e83ca - Show all commits

37
src/models/Donor.ts Normal file
View File

@ -0,0 +1,37 @@
import {
IsInt,
IsString
} from "class-validator";
/**
* Defines the Donor class.
*/
export class Donor {
/**
* The donor's id.
*/
@IsInt()
id: number;
/**
* The donor's first name.
*/
@IsString()
firstname: string;
/**
* The donor's middle name.
*/
@IsString()
middlename?: string;
/**
* The donor's last name.
*/
@IsString()
lastname: string;
}

View File

@ -6,7 +6,7 @@ import {
import { RunnerGroup } from './RunnerGroup';
/**
* Defines the contract runner class (from which the runner sponsoring contracts get generated).
* Defines the runner class (from which the runner sponsoring contracts get generated).
*/
export class Runner {
/**