feat(medusa): ordem items endpoint (#9646)

This commit is contained in:
Carlos R. L. Rodrigues
2024-10-18 05:59:24 -03:00
committed by GitHub
parent 0a37675f0e
commit 2a98be6b65
16 changed files with 202 additions and 19 deletions
@@ -1,7 +1,7 @@
import { IOrderModuleService } from "@medusajs/framework/types"
import { Module, Modules } from "@medusajs/framework/utils"
import { OrderModuleService } from "@services"
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
import { OrderModuleService } from "@services"
moduleIntegrationTestRunner<IOrderModuleService>({
moduleName: Modules.ORDER,
@@ -18,6 +18,7 @@ moduleIntegrationTestRunner<IOrderModuleService>({
"orderChange",
"orderClaim",
"orderExchange",
"orderItem",
"orderLineItem",
"orderShippingMethod",
"orderTransaction",
@@ -89,6 +90,15 @@ moduleIntegrationTestRunner<IOrderModuleService>({
field: "orderExchange",
},
},
orderItem: {
id: {
linkable: "order_item_id",
entity: "OrderItem",
primaryKey: "id",
serviceName: "order",
field: "orderItem",
},
},
orderLineItem: {
id: {
linkable: "order_line_item_id",