Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(backend): added orders crud + Operations creation(including automatic wallet debit+credit) #58

Merged
merged 36 commits into from Sep 10, 2021

Conversation

DipandaAser
Copy link
Member

@DipandaAser DipandaAser commented Aug 20, 2021

This pull request managing orders

  • Create an order
  • List organisation orders
  • List wallet orders
  • Update order
  • Pay Order
  • Process Order
  • Delete order

Why ?
User need to order items for spent YOTAS 🤑. Admin need to manage those orders by accepting or declining

How ?

  • Add endpoint listed up here
  • Create function for handle operations(debit, credit, refund)

Steps to verify:

** Screenshots (optional)
yotas

- DeleteOrderHandler
- ProcessOrderHandler
- PayOrderHandler
@netlify
Copy link

netlify bot commented Aug 30, 2021

❌ Deploy Preview for reverent-hawking-9ced65 failed.

🔨 Explore the source changes: c1fed38

🔍 Inspect the deploy log: https://app.netlify.com/sites/reverent-hawking-9ced65/deploys/612d650b33ff86000773d1ce

@Sanix-Darker Sanix-Darker changed the title Orders feat(backend): added orders crud Sep 1, 2021
backend/app/organisation/orders_db.go Outdated Show resolved Hide resolved
backend/app/organisation/orders_handlers.go Outdated Show resolved Hide resolved
backend/app/organisation/orders_handlers.go Outdated Show resolved Hide resolved
backend/app/organisation/orders_handlers.go Outdated Show resolved Hide resolved
backend/app/organisation/orders_handlers.go Outdated Show resolved Hide resolved
backend/app/organisation/orders_handlers.go Outdated Show resolved Hide resolved
backend/app/organisation/orders_handlers.go Outdated Show resolved Hide resolved
backend/app/organisation/orders_handlers.go Outdated Show resolved Hide resolved
backend/app/organisation/orders_handlers.go Outdated Show resolved Hide resolved
@DipandaAser DipandaAser changed the title feat(backend): added orders crud feat(backend): added orders crud + Operations creation(including automatic wallet debit+credit) Sep 10, 2021
@DipandaAser DipandaAser self-assigned this Sep 10, 2021
Copy link
Member

@Sanix-Darker Sanix-Darker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR !

  • Things looks good to me
  • Make sure to get latest modifications from the master branch/and fix conflicts
  • This PR is for so many subject that for me it was a little bit hard to follow things well, please, if possible in the future, make sure to manage PR one subject at time !

OperationType: string(operationType),
Approved: true,
//due to nullity constraint in migrations we give an initial random value to our operation hash
OperationHash: fmt.Sprintf("%v", time.Now().UTC()),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏾

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR !

* Things looks good to me

* Make sure to get latest modifications from the master branch/and fix conflicts

* This PR is for so many subject that for me it was a little bit hard to follow things well, please, if possible in the future, make sure to manage PR one subject at time !

Thanks. Next time i will manage PR one subject at time

@elhmn
Copy link
Member

elhmn commented Sep 10, 2021

Fantastic job @DipandaAser I am merging this 🥳

@elhmn elhmn merged commit b08292a into main Sep 10, 2021
@Sanix-Darker Sanix-Darker deleted the orders branch September 21, 2021 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants