chore(payment): Payment module DML (#10553)

* chore(payment): Payment module DML

* rm log

* migration
This commit is contained in:
Carlos R. L. Rodrigues
2024-12-11 13:09:10 -03:00
committed by GitHub
parent 91cd9aad47
commit 0264294ab5
14 changed files with 706 additions and 1039 deletions
@@ -1,7 +1,7 @@
import { IPaymentModuleService } from "@medusajs/framework/types"
import { Module, Modules, promiseAll } from "@medusajs/framework/utils"
import { PaymentModuleService } from "@services"
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
import { PaymentModuleService } from "@services"
import {
createPaymentCollections,
createPayments,
@@ -24,10 +24,9 @@ moduleIntegrationTestRunner<IPaymentModuleService>({
}).linkable
expect(Object.keys(linkable)).toEqual([
"payment",
"paymentCollection",
"paymentProvider",
"paymentSession",
"payment",
"refundReason",
])
@@ -54,15 +53,6 @@ moduleIntegrationTestRunner<IPaymentModuleService>({
field: "paymentCollection",
},
},
paymentProvider: {
id: {
linkable: "payment_provider_id",
entity: "PaymentProvider",
primaryKey: "id",
serviceName: "payment",
field: "paymentProvider",
},
},
paymentSession: {
id: {
field: "paymentSession",