Closed magicspon closed 3 years ago
the error handling definitely needs cleaning up... i'll have a play
We should add all the address
related hooks to a folder as we do fro cart
: src/address/{here the hooks]
@jorgemasta thanks for picking this up. Sorry about the radio silence, I've not had a chance to work on this.
Hello @jivewise ! I have made some changes and fixes based on @magicspon's work.
Thanks for your contribution @magicspon 🙌
Allow getting, adding, modifying and deleting customer addresses with hooks.
All hooks require the user to be authenticated, if not, they will return an error.
useAddresses
hook to get all the customer addresses (includes pagination)useAddAddress
hook to create a new addressuseRemoveAddress
hook to remove a specific address by id.useUpdateAddress
hook to update a existing address