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 + } + } +`