Donation payment management feature/193-donation_payments #194

Merged
niggl merged 14 commits from feature/193-donation_payments into dev 2021-04-14 16:56:24 +00:00
Showing only changes of commit d64f470b60 - Show all commits

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;
}
}