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: Implement a Price type #11

Open
carlqt opened this issue Feb 7, 2024 · 0 comments
Open

feat: Implement a Price type #11

carlqt opened this issue Feb 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@carlqt
Copy link
Owner

carlqt commented Feb 7, 2024

Description

Receipt and Item types both contains a price field which, currently, returns a string. This is not sufficient as currency is a complex object and needs more metadata to be represented properly.

This task includes brainstorming on where to store the currencies metadata to easily extend in the future

Acceptance Criteria

Create a new Price type that would contain the following fields:

  • code: String - The ISO 427 of the currency e.g. AUD, SGD, PHP etc...
  • displayPrice: String - The formatted currency e.g. AUD 44.44.
  • priceInCents: Int - The Int representation of price
@carlqt carlqt added this to EZ Split Feb 7, 2024
@carlqt carlqt converted this from a draft issue Feb 7, 2024
@carlqt carlqt added the enhancement New feature or request label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ready
Development

No branches or pull requests

1 participant