hibye-patient
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i hibye-patient

Weekly Downloads

0

Version

1.5.0

License

ISC

Unpacked Size

530 kB

Total Files

405

Last publish

Collaborators

  • fadymagdy