import CloudBase from '../../cloudBase/client'; import { ExportOrder } from '../../ExportModel'; export declare class OrderPreCreateParams { outOrderNo: string; shopNo: string; consumerSource: string; consumerId?: string; logisticsCompanies: LogisticsCompanyIstdInfo[]; sender?: SenderIstdInfo; receiver: ReceiverIstdInfo; goodsInfo: GoodsInfoIstdInfo; goodsDetails?: GoodsDetailIstdInfo[]; orderExtIstd?: OrderExtIstdInfo; consumerNotify: ConsumerNotifyIstdInfo; appId?: string; isvAppId?: string; } export declare class LogisticsCompanyIstdInfo { logisticsCode: string; } export declare class SenderIstdInfo { name: string; city: string; address: string; addressDetail: string; mobileNo: string; lng: number; lat: number; coordinateType: number; } export declare class ReceiverIstdInfo { name: string; city: string; address: string; addressDetail: string; mobileNo: string; lng: number; lat: number; coordinateType: number; } export declare class GoodsInfoIstdInfo { price: string; height?: number; length?: number; width?: number; weight: number; pickupInfo?: string; deliveryInfo?: string; firstClass: string; secondClass: string; } export declare class GoodsDetailIstdInfo { count: number; name: string; price?: string; unit: string; } export declare class OrderExtIstdInfo { deliveryType?: number; expectedDeliveryTime?: string; expectedFinishTime?: string; expectedPickTime?: string; poiSeq?: string; desc?: string; consumerOrderTime?: string; isInsured?: number; insurePrice?: string; isDirectDelivery?: number; cashOnDelivery?: string; cashOnPickup?: string; deliveryDirection?: number; isFinishCodeNeeded?: number; isPickupCodeNeeded?: number; } export declare class ConsumerNotifyIstdInfo { tinyAppId?: string; tinyAppUrl?: string; goodsImg: string; goodsName: string; goodsCount: number; merchantName?: string; merchantMobile: string; } export declare class PreCreateWaybillIstdInfo { logisticsCode: string; serviceCode?: string; logisticsToken?: string; payAmount: string; fee: string; deliverFee?: string; couponFee?: string; insuranceFee?: string; distance?: number; dispatchDuration?: number; thirdCode: string; thirdErrorCode?: string; thirdErrorMsg?: string; } export declare class OrderCreateParams { logisticsCode: string; logisticsToken?: string; outOrderNo: string; shopNo: string; consumerSource: string; consumerId?: string; sender?: SenderIstdInfo; receiver: ReceiverIstdInfo; goodsInfo: GoodsInfoIstdInfo; goodsDetails?: GoodsDetailIstdInfo; orderExtIstd?: OrderExtIstdInfo; consumerNotify: ConsumerNotifyIstdInfo; appId?: string; isvAppId?: string; } export declare class AlipayInstantDeliveryOrderPreCreateResponse { code: string; msg: string; subCode: string; subMsg: string; waybills: PreCreateWaybillIstdInfo[]; } export declare class AlipayInstantDeliveryOrderCreateResponse { code: string; msg: string; subCode: string; subMsg: string; orderNo: string; waybillNo: string; status: string; payAmount: string; fee: string; deliverFee?: string; couponFee?: string; insuranceFee?: string; distance?: number; dispatchDuration?: number; finishCode?: string; pickupCode?: string; thirdErrorCode?: string; thirdErrorMsg?: string; } export declare class OrderCancelParams { logisticsCode: string; orderNo?: string; outOrderNo?: string; waybillNo: string; cancelReasonId: string; cancelReason?: string; appId?: string; isvAppId?: string; } export declare class AlipayInstantDeliveryOrderCancelResponse { code: string; msg: string; subCode: string; subMsg: string; thirdErrorCode?: string; thirdErrorMsg?: string; } export declare class OrderPreconsultParams { logisticsCode: string; orderNo?: string; 知: any; outOrderNo?: string; waybillNo: string; cancelReasonId: string; cancelReason?: string; appId?: string; isvAppId?: string; } export declare class AlipayInstantDeliveryOrderPreconsultResponse { code: string; msg: string; subCode: string; subMsg: string; thirdErrorCode?: string; thirdErrorMsg?: string; allowCancel: boolean; } export declare class OrderQueryParams { shopNo: string; outOrderNo: string; orderNo?: string; logisticsCode: string; waybillNo: string; appId?: string; isvAppId?: string; } export declare class AlipayInstantDeliveryOrderQueryResponse { code: string; msg: string; subCode: string; subMsg: string; status: string; riderName?: string; riderMobileNo: string; riderLng?: number; riderLat?: number; reachDuration?: number; thirdErrorCode?: string; thirdErrorMsg?: string; } export default class Client implements ExportOrder { _base: CloudBase; constructor(_base: CloudBase); precreate(params: OrderPreCreateParams): Promise; create(params: OrderCreateParams): Promise; preconsult(params: OrderPreconsultParams): Promise; cancel(params: OrderCancelParams): Promise; query(params: OrderQueryParams): Promise; }