feat(client): show inbound business relationships
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { apiRequest } from '@/api/http'
|
||||
|
||||
export interface MerchantInboundCodeAssociation {
|
||||
inboundCode: string
|
||||
orderNo: string
|
||||
orderStatus: string
|
||||
orderId: string
|
||||
customerId: string
|
||||
customerName: string
|
||||
destinationType: string
|
||||
destinationCountryCode: string | null
|
||||
destinationWarehouseId: string | null
|
||||
destinationWarehouseCode: string | null
|
||||
destinationWarehouseName: string | null
|
||||
}
|
||||
|
||||
export function getMerchantInboundCodeAssociation(inboundCode: string) {
|
||||
return apiRequest<MerchantInboundCodeAssociation>({
|
||||
method: 'GET',
|
||||
url: `/merchant/v1/orders/first-leg/inbound-code-associations/${encodeURIComponent(inboundCode.trim())}`,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user