import { gql } from 'graphql-tag'
export default gql`
extend type Query {
paidAction(invoiceId: Int!): PaidAction
}
extend type Mutation {
retryPaidAction(invoiceId: Int!): PaidAction!
enum PaymentMethod {
FEE_CREDIT
OPTIMISTIC
PESSIMISTIC
interface PaidAction {
invoice: Invoice
paymentMethod: PaymentMethod!
type ItemPaidAction implements PaidAction {
result: Item
type ItemActPaidAction implements PaidAction {
result: ItemActResult
type PollVotePaidAction implements PaidAction {
result: PollVoteResult
type SubPaidAction implements PaidAction {
result: Sub
type DonatePaidAction implements PaidAction {
result: DonateResult
`