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

[AF-3] Create currencies #22

Closed
wants to merge 5 commits into from
Closed

[AF-3] Create currencies #22

wants to merge 5 commits into from

Conversation

ricardopacheco
Copy link
Owner

Issue number: resolves #3

Summary 🔴

This PR adds the necessary features for handle currencies. Additional add-ons are available in the changelog in version 0.6.1.

Proposed / Possible solution 🔴

We made use of the money gem dependency to deal with financial values. They have a simple and standardized way of dealing with currencies and also conversions between them. We will use ISO 4217 to guide us regarding currencies and rules.

We did a refactoring unrelated to the main feature, which is adding automated tests for entities.

How to test 👮‍♂️

Start the related services, and open the console with the command bin/console. Here you can call the user repository, which will instantiate a user's balance using the money gem, and use the methods and possibilities available in the money gem's official documentation.

Risks / Impacts 🔴

  • None anticipated

Requirements for deployment 🔴

  • None anticipated

@ricardopacheco ricardopacheco added type:feature A suggestion for general features status:in-review In Review status priority:high High priority labels Feb 28, 2024
@ricardopacheco ricardopacheco self-assigned this Feb 28, 2024
@ricardopacheco ricardopacheco deleted the AF-13 branch February 28, 2024 16:02
@ricardopacheco
Copy link
Owner Author

I made a mistake in the PR and selected the wrong branch. I will close this PR and open another with the correct branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:high High priority status:in-review In Review status type:feature A suggestion for general features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create currencies
1 participant