Files
medusa-store/packages/modules/payment/src/joiner-config.ts
2024-09-26 11:14:35 +05:30

27 lines
612 B
TypeScript

import { defineJoinerConfig, Modules } from "@medusajs/framework/utils"
import {
Payment,
PaymentCollection,
PaymentProvider,
PaymentSession,
RefundReason,
} from "@models"
import { default as schema } from "./schema"
export const joinerConfig = defineJoinerConfig(Modules.PAYMENT, {
schema,
models: [
Payment,
PaymentCollection,
PaymentProvider,
PaymentSession,
RefundReason,
],
linkableKeys: {
payment_id: Payment.name,
payment_collection_id: PaymentCollection.name,
payment_provider_id: PaymentProvider.name,
refund_reason_id: RefundReason.name,
},
})