changes in /backend/

This commit is contained in:
ogerly 2022-06-14 12:28:22 +02:00
parent 27d8570592
commit d914781dfc
2 changed files with 31 additions and 2 deletions

View File

@ -24,6 +24,6 @@ export default class ContributionLinkArgs {
@Field(() => Decimal, { nullable: true })
maxAmountPerMonth: Decimal | null
@Field(() => Int)
maxPerCycle: number
@Field(() => Int, { nullable: true })
maxPerCycle: number | null
}

View File

@ -0,0 +1,29 @@
import { ArgsType, Field, InputType } from 'type-graphql'
@InputType()
@ArgsType()
export default class CreateContributionLinkArgs {
@Field(() => String)
validFrom: string
@Field(() => String, { nullable: true })
validTo: string | null
@Field(() => String)
name: string
@Field(() => String)
amount: string
@Field(() => String)
memo: string
@Field(() => String)
cycle: string
@Field(() => String, { nullable: true })
maxPerCycle: string | null
@Field(() => String, { nullable: true })
maxAmountPerMonth: string | null
}