From 8d1073da455190d8f46788c832618e35c8f17793 Mon Sep 17 00:00:00 2001 From: Benjamin Piouffle Date: Mon, 23 Nov 2020 17:24:54 +0100 Subject: [PATCH] refact: Rename processOrder to processPendingOrder --- server/graphql/schemaV2.graphql | 182 +------------------ server/graphql/v2/mutation/OrderMutations.js | 2 +- 2 files changed, 2 insertions(+), 182 deletions(-) diff --git a/server/graphql/schemaV2.graphql b/server/graphql/schemaV2.graphql index 540c12556f4..e48fbb0e47f 100644 --- a/server/graphql/schemaV2.graphql +++ b/server/graphql/schemaV2.graphql @@ -126,26 +126,6 @@ interface Account { status: [OrderStatus] tierSlug: String - """ - Only return orders where the amount is greater than or equal to this value (in cents) - """ - minAmount: Int - - """ - Only return orders where the amount is lower than or equal to this value (in cents) - """ - maxAmount: Int - - """ - Only return orders that were created after this date - """ - dateFrom: ISODateTime - - """ - The term to search - """ - searchTerm: String - """ Only returns orders that have an subscription (monthly/yearly) """ @@ -617,26 +597,6 @@ type Bot implements Account { status: [OrderStatus] tierSlug: String - """ - Only return orders where the amount is greater than or equal to this value (in cents) - """ - minAmount: Int - - """ - Only return orders where the amount is lower than or equal to this value (in cents) - """ - maxAmount: Int - - """ - Only return orders that were created after this date - """ - dateFrom: ISODateTime - - """ - The term to search - """ - searchTerm: String - """ Only returns orders that have an subscription (monthly/yearly) """ @@ -846,26 +806,6 @@ type Collective implements Account & AccountWithHost & AccountWithContributions status: [OrderStatus] tierSlug: String - """ - Only return orders where the amount is greater than or equal to this value (in cents) - """ - minAmount: Int - - """ - Only return orders where the amount is lower than or equal to this value (in cents) - """ - maxAmount: Int - - """ - Only return orders that were created after this date - """ - dateFrom: ISODateTime - - """ - The term to search - """ - searchTerm: String - """ Only returns orders that have an subscription (monthly/yearly) """ @@ -2927,26 +2867,6 @@ type Event implements Account & AccountWithHost & AccountWithContributions { status: [OrderStatus] tierSlug: String - """ - Only return orders where the amount is greater than or equal to this value (in cents) - """ - minAmount: Int - - """ - Only return orders where the amount is lower than or equal to this value (in cents) - """ - maxAmount: Int - - """ - Only return orders that were created after this date - """ - dateFrom: ISODateTime - - """ - The term to search - """ - searchTerm: String - """ Only returns orders that have an subscription (monthly/yearly) """ @@ -3809,26 +3729,6 @@ type Fund implements Account & AccountWithHost & AccountWithContributions { status: [OrderStatus] tierSlug: String - """ - Only return orders where the amount is greater than or equal to this value (in cents) - """ - minAmount: Int - - """ - Only return orders where the amount is lower than or equal to this value (in cents) - """ - maxAmount: Int - - """ - Only return orders that were created after this date - """ - dateFrom: ISODateTime - - """ - The term to search - """ - searchTerm: String - """ Only returns orders that have an subscription (monthly/yearly) """ @@ -4115,26 +4015,6 @@ type Host implements Account & AccountWithContributions { status: [OrderStatus] tierSlug: String - """ - Only return orders where the amount is greater than or equal to this value (in cents) - """ - minAmount: Int - - """ - Only return orders where the amount is lower than or equal to this value (in cents) - """ - maxAmount: Int - - """ - Only return orders that were created after this date - """ - dateFrom: ISODateTime - - """ - The term to search - """ - searchTerm: String - """ Only returns orders that have an subscription (monthly/yearly) """ @@ -4512,26 +4392,6 @@ type Individual implements Account { status: [OrderStatus] tierSlug: String - """ - Only return orders where the amount is greater than or equal to this value (in cents) - """ - minAmount: Int - - """ - Only return orders where the amount is lower than or equal to this value (in cents) - """ - maxAmount: Int - - """ - Only return orders that were created after this date - """ - dateFrom: ISODateTime - - """ - The term to search - """ - searchTerm: String - """ Only returns orders that have an subscription (monthly/yearly) """ @@ -5226,7 +5086,7 @@ type Mutation { """ A mutation for the host to approve or reject an order """ - processOrder(order: OrderReferenceInput!, action: ProcessOrderAction!): Order! + processPendingOrder(order: OrderReferenceInput!, action: ProcessOrderAction!): Order! """ Add a new payment method to be used with an Order @@ -5684,26 +5544,6 @@ type Organization implements Account { status: [OrderStatus] tierSlug: String - """ - Only return orders where the amount is greater than or equal to this value (in cents) - """ - minAmount: Int - - """ - Only return orders where the amount is lower than or equal to this value (in cents) - """ - maxAmount: Int - - """ - Only return orders that were created after this date - """ - dateFrom: ISODateTime - - """ - The term to search - """ - searchTerm: String - """ Only returns orders that have an subscription (monthly/yearly) """ @@ -6107,26 +5947,6 @@ type Project implements Account & AccountWithHost & AccountWithContributions { status: [OrderStatus] tierSlug: String - """ - Only return orders where the amount is greater than or equal to this value (in cents) - """ - minAmount: Int - - """ - Only return orders where the amount is lower than or equal to this value (in cents) - """ - maxAmount: Int - - """ - Only return orders that were created after this date - """ - dateFrom: ISODateTime - - """ - The term to search - """ - searchTerm: String - """ Only returns orders that have an subscription (monthly/yearly) """ diff --git a/server/graphql/v2/mutation/OrderMutations.js b/server/graphql/v2/mutation/OrderMutations.js index fc472f060b8..1639dab8f09 100644 --- a/server/graphql/v2/mutation/OrderMutations.js +++ b/server/graphql/v2/mutation/OrderMutations.js @@ -279,7 +279,7 @@ const orderMutations = { }; }, }, - processOrder: { + processPendingOrder: { type: new GraphQLNonNull(Order), description: 'A mutation for the host to approve or reject an order', args: {