Microservicio implementado en Nodejs. Tiene a cargo llevar a cabo los pagos de los pasajeros una vez que finalizan los viajes. Cada usuario tiene una Wallet que le permite hacer transacciones usando Ether.
Documentación técnica: https://taller-2-tyrions.github.io/fiuber-documentation-tecnica/
curl --location --request GET 'https://fiuber-payments-new.herokuapp.com/wallets'
curl --location --request GET 'https://fiuber-payments-new.herokuapp.com/wallet/636d4770e2f3f9a48e936725'
curl --location --request POST 'https://fiuber-payments-new.herokuapp.com/deposit' \
--header 'Content-Type: application/json' \
--data-raw '{
"senderId": "1",
"receiverId": "38CUrMJ6OeeaidRQKyA62yBBA7F3",
"amountInEthers": "0.0003"
}'
curl --location --request POST 'https://fiuber-payments-new.herokuapp.com/wallet' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id": "cmyaQJfWuifQ4KFqBDyymgJRxOG2"
}'
curl --location --request POST 'https://fiuber-payments-new.herokuapp.com/withdraw' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId": "3",
"receiverAddress": "0x856edCbABB254Ed017f8c0B7Ed939c276E57ccCB",
"amountInEthers": "0.0001"
}'
curl --location --request GET 'https://fiuber-payments-new.herokuapp.com/balance/38CUrMJ6OeeaidRQKyA62yBBA7F3'
curl --location --request GET 'https://fiuber-payments-new.herokuapp.com/payments'
curl --location --request GET 'https://fiuber-payments-new.herokuapp.com/payments/1'