23 lines
671 B
TypeScript
23 lines
671 B
TypeScript
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())}`,
|
||
|
|
})
|
||
|
|
}
|