parent
b8fbb72fa0
commit
d64f470b60
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue