Skip to content

Commit

Permalink
chore(payment): Payment module DML (#10553)
Browse files Browse the repository at this point in the history
* chore(payment): Payment module DML

* rm log

* migration
  • Loading branch information
carlos-r-l-rodrigues authored Dec 11, 2024
1 parent 91cd9aa commit 0264294
Show file tree
Hide file tree
Showing 14 changed files with 644 additions and 977 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-snakes-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/payment": patch
---

Payment module DML
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ClaimType } from "@medusajs/utils"
import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
import { ClaimType } from "@medusajs/utils"
import {
adminHeaders,
createAdminUser,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -24,10 +24,9 @@ moduleIntegrationTestRunner<IPaymentModuleService>({
}).linkable

expect(Object.keys(linkable)).toEqual([
"payment",
"paymentCollection",
"paymentProvider",
"paymentSession",
"payment",
"refundReason",
])

Expand All @@ -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",
Expand Down
Loading

0 comments on commit 0264294

Please sign in to comment.