parent
b8fbb72fa0
commit
d64f470b60
@ -34,6 +34,12 @@ export class ResponseDonation implements IResponse {
|
|||||||
@IsInt()
|
@IsInt()
|
||||||
amount: number;
|
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.
|
* Creates a ResponseDonation object from a scan.
|
||||||
* @param donation The donation the response shall be build for.
|
* @param donation The donation the response shall be build for.
|
||||||
@ -42,5 +48,6 @@ export class ResponseDonation implements IResponse {
|
|||||||
this.id = donation.id;
|
this.id = donation.id;
|
||||||
this.donor = donation.donor.toResponse();
|
this.donor = donation.donor.toResponse();
|
||||||
this.amount = donation.amount;
|
this.amount = donation.amount;
|
||||||
|
this.payedAmount = donation.payedAmount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user