You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Issue is associated with Google Summer of Code 2022 Project link
Is your feature request related to a problem? Please describe.
Ability to perform donations from talawa app and store them in the database using talawa API
Describe the solution you'd like
Changes are still under review of mentors (there might be some changes in the current description)
Donation API in Talawa-api
User in oraganization can perform donations as per thier choice and amount .
Donations can be performed only through the talawa app and will be stored in the server once it is verified with the PayPal API
Org Admins can see those donations on the dashboard page of the talawa-admin web portal
Here’s how the donation model as a transaction would look like
Donation Model
{_id : OBJECT_ID,// Transaction Id userId : OBJECT_ID//(of the current logged in user)orgId : OBJECT_ID// id of the org to which it is being donated payPalId : OBJECT_ID// Transaction Id from paypal API nameOfUser: String// name of the useramount: Int// amount of donation}
Mutations and Query for Donations
Queries
getDonations GraphQL Query to get the list of Donation Transactions
deleteDonationById Mutation to delete a donation by providing its ID as parameter will return object containing a result in a property called success if true then deleted else if false then deletion is failed.
This Issue is associated with Google Summer of Code 2022 Project link
Is your feature request related to a problem? Please describe.
Ability to perform donations from talawa app and store them in the database using talawa API
Describe the solution you'd like
Changes are still under review of mentors (there might be some changes in the current description)
Donation API in Talawa-api
User in oraganization can perform donations as per thier choice and amount .
Donations can be performed only through the talawa app and will be stored in the server once it is verified with the PayPal API
Org Admins can see those donations on the dashboard page of the talawa-admin web portal
Here’s how the donation model as a transaction would look like
Donation Model
Mutations and Query for Donations
Queries
getDonations
GraphQL Query to get the list of Donation TransactionsgetDonationById
GraphQL Query to get the of Donation Transaction that matches with the Id provided as parametergetDonationsByOrgId
It returns the transactions that only matches with the organization Id (it will take an Organization id as a parameter)Mutations
createDonation
GraphQL Mutation to add a new transaction only if it is successful.deleteDonationById
Mutation to delete a donation by providing its ID as parameter will return object containing a result in a property calledsuccess
iftrue
then deleted else iffalse
then deletion is failed.Describe alternatives you've considered
Improvements can be suggested by mentors
Approach to be followed (optional)
We have to create model and graphQL queries for the above things
Additional context
Not Needed but will be added soon as the implementation continues
The text was updated successfully, but these errors were encountered: