Philip Korsholm
edf90eecb4
feat(pricing) Add Price Set Rule Type ( #4977 )
...
* initial
* initial service
* update pricing module service
* add integration test for rule-type
* update pricing-module integration tests
* update pricing service interface
* feat(pricing): PriceSets as entry point to pricing module
* chore: add price set money amount
* chore: add price set money amount
* chore: change name of test
* chore: added changeset
* chore: use filterable props from money amount in price sets
* chore: update migrations
* test update integration test
* fix weird behavior
* Update packages/pricing/integration-tests/__fixtures__/rule-type/index.ts
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
* Apply suggestions from code review
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
* move rule-type to common
* chore: reset migration
* chore: remove incorrect conflicts
* chore: address review
* chore: remove ghost price list
* Apply suggestions from code review
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* update id prefix
* use persist not persistAndflush
* rename key_value to rule_attribute
* more renaming
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-14 17:58:31 +02:00
Philip Korsholm
5d10c46bb1
feat(medusa): Separate money amount and variant ( #4906 )
...
* initial changes
* working test
* final changes to product tests
* update integration tests
* update price list integration tests
* update integration tests
* update unit tests
* update plugin integration tests
* remove catch from integration test
* undo change
* add andWhere
* update upsertCurrencyMoneyAmount method
* undo line item changes
* undo changes
* update deprecated method
* Update packages/medusa/src/migrations/1692953518123-drop_money_amount_constraints_for_pricing_module.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* rename joinTable
* update with joinTable entity
* update load methods
* remove await create
* re-add context test
* update price list behavior for prices
* update price list snapshots
* re-add admin seeder
* pr feedback
* fix unit tests
* fix plugin integration tests
* initial review changes
* redo changes to variant creation
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-13 13:26:20 +02:00
Riqwan Thamir
3d68be2b6b
fix(orchestration,link-modules,pricing,types): fix shippingprofile errror outside of core + change link alias name ( #5025 )
...
* fix(orchestration,link-modules,pricing,types): fix shippingprofile error outside of core + change link alias name
* chore: scope relationships and move condition inside
* chore: remove islist
* chore: fix merge conflict
* chore: reverted serviceName scoping
* chore: change shape to make methodOverride compatible
* chore: added methodOverride to remote query
* chore: revert override
2023-09-13 12:16:00 +02:00
Riqwan Thamir
834da5c41a
feat(pricing, types): PriceSets as entry point to pricing module ( #4978 )
...
What:
- Adds PriceSet, PriceSetMoneyAmount, updates schema
- Adds service/repo for PriceSet
- Shifts entry point to use PriceSet
- Updates link/joiner config
RESOLVES CORE-1495
2023-09-11 17:24:31 +00:00
Riqwan Thamir
66bd9a835c
feat(products,types,pricing): allow scoping products by collection_id + pricing by currency_code ( #4965 )
...
* chore: allow scoping products by collection_id
* chore: scope money amounts by currency code + change category_ids to category_id
* chore: add an extra product to test without collection
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-07 09:06:50 +02:00
Riqwan Thamir
fcb6b4f510
feat(pricing, utils, types): adds money amount to pricing module ( #4909 )
...
What:
- Adds money amount service / repo / model
- Adds money amount to entry service
- Adds tests for services
- Refreshes schema
- Update joiner config to include money amounts
RESOLVES CORE-1478
RESOLVES CORE-1479
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com >
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2023-08-31 13:03:10 +00:00
Riqwan Thamir
460161a69f
feat(pricing, types, utils, medusa-sdk): Pricing Module Setup + Currency ( #4860 )
...
What:
- Setups the skeleton for pricing module
- Creates service/model/repository for currency model
- Setups types
- Setups DB
- Moved some utils to a common place
RESOLVES CORE-1477
RESOLVES CORE-1476
2023-08-29 21:58:34 +00:00