import { overseasRequest, overseasUpload } from './overseas.js' const base = '/pda/v1/last-leg/return-receipts/exceptions' const path = (number) => `${base}/${encodeURIComponent(number)}` export const listExceptionReturns = () => overseasRequest('GET', base) export const startExceptionReturn = (number) => overseasRequest('POST', `${path(number)}/start`, {}) export const uploadExceptionReturnEvidence = (number, filePath) => overseasUpload(`${path(number)}/evidence`, filePath) export const receiveExceptionReturn = (number, body) => overseasRequest('POST', `${path(number)}/receive`, body)