From d914781dfcd9cd003b83cd75c2294ca69e772f95 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 14 Jun 2022 12:28:22 +0200 Subject: [PATCH] changes in /backend/ --- .../src/graphql/arg/ContributionLinkArgs.ts | 4 +-- .../graphql/arg/CreateContributionLinkArgs.ts | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 backend/src/graphql/arg/CreateContributionLinkArgs.ts diff --git a/backend/src/graphql/arg/ContributionLinkArgs.ts b/backend/src/graphql/arg/ContributionLinkArgs.ts index 7344a28ff..9a2c88a77 100644 --- a/backend/src/graphql/arg/ContributionLinkArgs.ts +++ b/backend/src/graphql/arg/ContributionLinkArgs.ts @@ -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 } diff --git a/backend/src/graphql/arg/CreateContributionLinkArgs.ts b/backend/src/graphql/arg/CreateContributionLinkArgs.ts new file mode 100644 index 000000000..a96fb158f --- /dev/null +++ b/backend/src/graphql/arg/CreateContributionLinkArgs.ts @@ -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 +}