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>
This commit is contained in:
co-authored by
Riqwan Thamir
Oli Juhl
parent
5b09f816cb
commit
edf90eecb4
@@ -21,6 +21,7 @@ export default async ({
|
||||
currencyService: asClass(defaultServices.CurrencyService).singleton(),
|
||||
moneyAmountService: asClass(defaultServices.MoneyAmountService).singleton(),
|
||||
priceSetService: asClass(defaultServices.PriceSetService).singleton(),
|
||||
ruleTypeService: asClass(defaultServices.RuleTypeService).singleton(),
|
||||
})
|
||||
|
||||
if (customRepositories) {
|
||||
@@ -46,5 +47,8 @@ function loadDefaultRepositories({ container }) {
|
||||
priceSetRepository: asClass(
|
||||
defaultRepositories.PriceSetRepository
|
||||
).singleton(),
|
||||
ruleTypeRepository: asClass(
|
||||
defaultRepositories.RuleTypeRepository
|
||||
).singleton(),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user