chore(order): cancel return (#7881)
This commit is contained in:
committed by
GitHub
parent
b3236ff31c
commit
07715e6b50
@@ -0,0 +1,72 @@
|
||||
import { ModuleJoinerConfig } from "@medusajs/types"
|
||||
import { LINKS, Modules } from "@medusajs/utils"
|
||||
|
||||
export const OrderClaimPaymentCollection: ModuleJoinerConfig = {
|
||||
serviceName: LINKS.OrderClaimPaymentCollection,
|
||||
isLink: true,
|
||||
databaseConfig: {
|
||||
tableName: "order_claim_payment_collection",
|
||||
idPrefix: "claimpay",
|
||||
},
|
||||
alias: [
|
||||
{
|
||||
name: [
|
||||
"order_claim_payment_collection",
|
||||
"order_claim_payment_collections",
|
||||
],
|
||||
args: {
|
||||
entity: "LinkOrderClaimPaymentCollection",
|
||||
},
|
||||
},
|
||||
],
|
||||
primaryKeys: ["id", "claim_id", "payment_collection_id"],
|
||||
relationships: [
|
||||
{
|
||||
serviceName: Modules.ORDER,
|
||||
primaryKey: "id",
|
||||
foreignKey: "claim_id",
|
||||
alias: "order",
|
||||
args: {
|
||||
methodSuffix: "OrderClaims",
|
||||
},
|
||||
},
|
||||
{
|
||||
serviceName: Modules.PAYMENT,
|
||||
primaryKey: "id",
|
||||
foreignKey: "payment_collection_id",
|
||||
alias: "payment_collection",
|
||||
args: {
|
||||
methodSuffix: "PaymentCollections",
|
||||
},
|
||||
},
|
||||
],
|
||||
extends: [
|
||||
{
|
||||
serviceName: Modules.ORDER,
|
||||
fieldAlias: {
|
||||
claim_payment_collections: {
|
||||
path: "claim_payment_collections_link.payment_collection",
|
||||
isList: true,
|
||||
},
|
||||
},
|
||||
relationship: {
|
||||
serviceName: LINKS.OrderClaimPaymentCollection,
|
||||
primaryKey: "claim_id",
|
||||
foreignKey: "id",
|
||||
alias: "claim_payment_collections_link",
|
||||
},
|
||||
},
|
||||
{
|
||||
serviceName: Modules.PAYMENT,
|
||||
fieldAlias: {
|
||||
claim: "order_claim_link.order",
|
||||
},
|
||||
relationship: {
|
||||
serviceName: LINKS.OrderClaimPaymentCollection,
|
||||
primaryKey: "payment_collection_id",
|
||||
foreignKey: "id",
|
||||
alias: "order_claim_link",
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
import { ModuleJoinerConfig } from "@medusajs/types"
|
||||
import { LINKS, Modules } from "@medusajs/utils"
|
||||
|
||||
export const OrderExchangePaymentCollection: ModuleJoinerConfig = {
|
||||
serviceName: LINKS.OrderExchangePaymentCollection,
|
||||
isLink: true,
|
||||
databaseConfig: {
|
||||
tableName: "order_exchange_payment_collection",
|
||||
idPrefix: "excpay",
|
||||
},
|
||||
alias: [
|
||||
{
|
||||
name: [
|
||||
"order_exchange_payment_collection",
|
||||
"order_exchange_payment_collections",
|
||||
],
|
||||
args: {
|
||||
entity: "LinkOrderExchangePaymentCollection",
|
||||
},
|
||||
},
|
||||
],
|
||||
primaryKeys: ["id", "exchange_id", "payment_collection_id"],
|
||||
relationships: [
|
||||
{
|
||||
serviceName: Modules.ORDER,
|
||||
primaryKey: "id",
|
||||
foreignKey: "exchange_id",
|
||||
alias: "order",
|
||||
args: {
|
||||
methodSuffix: "OrderExchanges",
|
||||
},
|
||||
},
|
||||
{
|
||||
serviceName: Modules.PAYMENT,
|
||||
primaryKey: "id",
|
||||
foreignKey: "payment_collection_id",
|
||||
alias: "payment_collection",
|
||||
args: {
|
||||
methodSuffix: "PaymentCollections",
|
||||
},
|
||||
},
|
||||
],
|
||||
extends: [
|
||||
{
|
||||
serviceName: Modules.ORDER,
|
||||
fieldAlias: {
|
||||
exchange_payment_collections: {
|
||||
path: "exchange_payment_collections_link.payment_collection",
|
||||
isList: true,
|
||||
},
|
||||
},
|
||||
relationship: {
|
||||
serviceName: LINKS.OrderExchangePaymentCollection,
|
||||
primaryKey: "exchange_id",
|
||||
foreignKey: "id",
|
||||
alias: "exchange_payment_collections_link",
|
||||
},
|
||||
},
|
||||
{
|
||||
serviceName: Modules.PAYMENT,
|
||||
fieldAlias: {
|
||||
exchange: "order_exchange_link.order",
|
||||
},
|
||||
relationship: {
|
||||
serviceName: LINKS.OrderExchangePaymentCollection,
|
||||
primaryKey: "payment_collection_id",
|
||||
foreignKey: "id",
|
||||
alias: "order_exchange_link",
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
@@ -6,7 +6,7 @@ export const OrderPaymentCollection: ModuleJoinerConfig = {
|
||||
isLink: true,
|
||||
databaseConfig: {
|
||||
tableName: "order_payment_collection",
|
||||
idPrefix: "capaycol",
|
||||
idPrefix: "ordpay",
|
||||
},
|
||||
alias: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user