From 045ba14f7799bd58f5852d3f47a960777faa5810 Mon Sep 17 00:00:00 2001 From: ogerly Date: Sun, 30 Oct 2022 14:40:47 +0100 Subject: [PATCH] add graphql mutation updateContributionLink.js --- admin/src/graphql/updateContributionLink.js | 40 +++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 admin/src/graphql/updateContributionLink.js diff --git a/admin/src/graphql/updateContributionLink.js b/admin/src/graphql/updateContributionLink.js new file mode 100644 index 000000000..24824bd86 --- /dev/null +++ b/admin/src/graphql/updateContributionLink.js @@ -0,0 +1,40 @@ +import gql from 'graphql-tag' + +export const updateContributionLink = gql` + mutation ( + $amount: Decimal! + $name: String! + $memo: String! + $cycle: String! + $validFrom: String + $validTo: String + $maxAmountPerMonth: Decimal + $maxPerCycle: Int! = 1 + $id: Int! + ) { + updateContributionLink( + amount: $amount + name: $name + memo: $memo + cycle: $cycle + validFrom: $validFrom + validTo: $validTo + maxAmountPerMonth: $maxAmountPerMonth + maxPerCycle: $maxPerCycle + id: $id + ) { + id + amount + name + memo + code + link + createdAt + validFrom + validTo + maxAmountPerMonth + cycle + maxPerCycle + } + } +`