Implemented the donation response

ref #66
This commit is contained in:
2021-01-12 18:16:09 +01:00
parent 02bb634257
commit 6c53701a59
4 changed files with 31 additions and 11 deletions

View File

@@ -3,9 +3,9 @@ import { Donation } from '../entities/Donation';
import { ResponseDonor } from './ResponseDonor';
/**
* Defines the donation response interface.
* Defines the donation response.
*/
export abstract class IResponseDonation {
export class ResponseDonation {
/**
* The donation's id.
*/
@@ -26,7 +26,7 @@ export abstract class IResponseDonation {
amount: number;
/**
* Creates a IResponseDonation object from a scan.
* Creates a ResponseDonation object from a scan.
* @param donation The donation the response shall be build for.
*/
public constructor(donation: Donation) {