Skip to content

test: add Shopify multi-currency order amount fixture - #1493

Open
adrianpascualdev wants to merge 2 commits into
Posnic:developfrom
adrianpascualdev:feat/shopify-multicurrency-fixtures
Open

adrianpascualdev wants to merge 2 commits into
Posnic:developfrom
adrianpascualdev:feat/shopify-multicurrency-fixtures

Conversation

@adrianpascualdev

Copy link
Copy Markdown

Summary

Added synthetic Shopify multi-currency order fixtures to document proposed amount and currency mapping behavior.

Changes

  • Added examples for same-currency and different-currency orders.
  • Covered taxes, discounts, shipping, and decimal rounding.
  • Defined proposed sale total and reporting currency expectations.
  • Added a manual-review case for missing presentment amounts.
  • Added automated fixture tests and documentation.

No real Shopify orders, API calls, currency conversions, or payments are involved.

Testing

  • node --test tests/shopify-multicurrency-order-fixture.test.js
  • All 8 tests passing.
  • Prettier formatting checked.

Closes #413

@sridharkalaibala sridharkalaibala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the focused synthetic fixture. I checked the diff against #413 and ran node --test tests/shopify-multicurrency-order-fixture.test.js at 8a206d7: all eight tests pass. The shop/presentment separation, simplified arithmetic limitations, and manual-review policy are clearly documented. Before approval, please format the three added files with the repository Prettier configuration (the leading blank lines and wrapped expressions/table currently look unformatted). Required CI validation is also outstanding: only CLA is reported on this head. I have not triggered workflow runs.

@adrianpascualdev

Copy link
Copy Markdown
Author

Thanks for the review!

I've applied Prettier formatting to all three files, verified the formatting, and confirmed that all eight tests still pass.

The changes have been pushed to this PR.

The required CI checks are still pending maintainer approval. Thanks again!

@sridharkalaibala sridharkalaibala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for applying the formatting. I inspected cd1211f: the update is formatting-only, and all eight fixture tests still pass locally. The earlier formatting feedback is addressed. Required CI validation remains outstanding (only CLA is reported); no workflow runs were triggered. No further fixture changes are requested at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shopify connector: add multi-currency order amount fixture

2 participants