Release 0.11.0 #195
@ -1,4 +1,4 @@
|
|||||||
import { IsInt, IsPositive } from 'class-validator';
|
import { IsInt, IsOptional, IsPositive } from 'class-validator';
|
||||||
import { getConnection } from 'typeorm';
|
import { getConnection } from 'typeorm';
|
||||||
import { DonorNotFoundError } from '../../../errors/DonorErrors';
|
import { DonorNotFoundError } from '../../../errors/DonorErrors';
|
||||||
import { Donation } from '../../entities/Donation';
|
import { Donation } from '../../entities/Donation';
|
||||||
@ -20,7 +20,8 @@ export abstract class CreateDonation {
|
|||||||
* The donation's payed amount in the smalles unit of your currency (default: euro cent).
|
* The donation's payed amount in the smalles unit of your currency (default: euro cent).
|
||||||
*/
|
*/
|
||||||
@IsInt()
|
@IsInt()
|
||||||
payedAmount: number;
|
@IsOptional()
|
||||||
|
payedAmount?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new Donation entity from this.
|
* Creates a new Donation entity from this.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IsInt, IsPositive } from 'class-validator';
|
import { IsInt, IsOptional, IsPositive } from 'class-validator';
|
||||||
import { getConnection } from 'typeorm';
|
import { getConnection } from 'typeorm';
|
||||||
import { DonorNotFoundError } from '../../../errors/DonorErrors';
|
import { DonorNotFoundError } from '../../../errors/DonorErrors';
|
||||||
import { Donation } from '../../entities/Donation';
|
import { Donation } from '../../entities/Donation';
|
||||||
@ -27,7 +27,8 @@ export abstract class UpdateDonation {
|
|||||||
* The donation's payed amount in the smalles unit of your currency (default: euro cent).
|
* The donation's payed amount in the smalles unit of your currency (default: euro cent).
|
||||||
*/
|
*/
|
||||||
@IsInt()
|
@IsInt()
|
||||||
payedAmount: number;
|
@IsOptional()
|
||||||
|
payedAmount?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new Donation entity from this.
|
* Creates a new Donation entity from this.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user