Added payed amount to response class

ref #193
This commit is contained in:
Nicolai Ort 2021-04-14 18:15:37 +02:00
parent b8fbb72fa0
commit d64f470b60
1 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,12 @@ export class ResponseDonation implements IResponse {
@IsInt()
amount: number;
/**
* The donation's payed amount in the smalles unit of your currency (default: euro cent).
*/
@IsInt()
payedAmount: number;
/**
* Creates a ResponseDonation object from a scan.
* @param donation The donation the response shall be build for.
@ -42,5 +48,6 @@ export class ResponseDonation implements IResponse {
this.id = donation.id;
this.donor = donation.donor.toResponse();
this.amount = donation.amount;
this.payedAmount = donation.payedAmount;
}
}