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>
This commit is contained in:
co-authored by
Shahed Nasser
Carlos R. L. Rodrigues
parent
0627d06f72
commit
fcb6b4f510
@@ -1,7 +1,11 @@
|
||||
import { ModulesSdkTypes } from "@medusajs/types"
|
||||
import * as defaultRepositories from "@repositories"
|
||||
import { BaseRepository, CurrencyRepository } from "@repositories"
|
||||
import { CurrencyService } from "@services"
|
||||
import {
|
||||
BaseRepository,
|
||||
CurrencyRepository,
|
||||
MoneyAmountRepository,
|
||||
} from "@repositories"
|
||||
import { CurrencyService, MoneyAmountService } from "@services"
|
||||
|
||||
import { LoaderOptions } from "@medusajs/modules-sdk"
|
||||
import { loadCustomRepositories } from "@medusajs/utils"
|
||||
@@ -20,6 +24,7 @@ export default async ({
|
||||
|
||||
container.register({
|
||||
currencyService: asClass(CurrencyService).singleton(),
|
||||
moneyAmountService: asClass(MoneyAmountService).singleton(),
|
||||
})
|
||||
|
||||
if (customRepositories) {
|
||||
@@ -37,5 +42,6 @@ function loadDefaultRepositories({ container }) {
|
||||
container.register({
|
||||
baseRepository: asClass(BaseRepository).singleton(),
|
||||
currencyRepository: asClass(CurrencyRepository).singleton(),
|
||||
moneyAmountRepository: asClass(MoneyAmountRepository).singleton(),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user