1.5.0 • Published 3 years ago
hibye-patient v1.5.0
Eiada Patient App
This lib is a dependency for Eiada Doctor app to be able to share and reuse services like payment service
Notes about dates and timezone
- All dates are saved UTC to the db regardless of the machine/process timezone
- No need to convert dates generated by the code as it will be UTC by default when saving
- We must convert all dates come from user requests. Use
DateTzService.getDate()
- For any date comparison, make sure that we compare a date/moment object as it has the tz stored inside it and will cast the dates to timestamp during comparisons
- Timestamp are always UTC regardless of the timezone of the machine/process
- Format all response dates to user timezone. Use
DateTzService.getFormattedDate()
Testing payment Webhooks
Create a tunnel using this command $ ssh -R 443:localhost:7000 ssh.localhost.run
and use https://GENERATED_URL
Test Accept Account for HiBye
- username: mouneer
- Password: P@ssw0rd
Test Accept Account for a Doctor
- username: TestDoctor
- Password: P@ssw0rd
Dev
$ ACCEPT_PAYMENTS_MODE=test;TZ=UTC npm run inspect
Prod
- Pushing to the master branch deploys to AWS Lambda