| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- using Muchinfo.MTPClient.Data;
- using Muchinfo.MTPClient.Data.Model.Delivery;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Muchinfo.MTPClient.Adapter.Abstract
- {
- public abstract class DeliveryAdapter
- {
- /// <summary>
- /// 交割申报-请求转换
- /// </summary>
- /// <param name="deliveryOrder"></param>
- /// <returns></returns>
- public abstract byte[] ToDeliveryApplyReqOrder(DeliveryOrderReqModel deliveryOrder);
- /// <summary>
- /// 交割申报-应答转换
- /// </summary>
- /// <param name="responeData"></param>
- /// <returns></returns>
- public abstract ResponeEntity<DeliveryOrderRspModel> ToDeliveryApplyRspOrder(object responeData);
- /// <summary>
- /// 提交-仓单配对-请求转换
- /// </summary>
- /// <param name="deliveryMatchOrder"></param>
- /// <returns></returns>
- public abstract byte[] ToDeliveryMatchReqOrder(DeliveryOrderMatchReqModel deliveryOrder);
- /// <summary>
- /// 提交-仓单配对-应答转换
- /// </summary>
- /// <param name="responeData"></param>
- /// <returns></returns>
- public abstract ResponeEntity<DeliveryOrderMatchRspModel> ToDeliveryMatchRspOrder(object responeData);
- /// <summary>
- /// 提交-提货申请-请求转换
- /// </summary>
- /// <param name="deliveryMatchOrder"></param>
- /// <returns></returns>
- public abstract byte[] ToOutStoreReq(OutStoreReqModel reqModel);
- /// <summary>
- /// 提交-提货申请-应答转换
- /// </summary>
- /// <param name="responeData"></param>
- /// <returns></returns>
- public abstract ResponeEntity<OutStoreRspModel> ToOutStoreRsp(object responeData);
- /// <summary>
- /// 交收现货付款-请求转换
- /// </summary>
- /// <param name="deliveryMatchOrder"></param>
- /// <returns></returns>
- public abstract byte[] ToReceiveConfirmReq(ReceiveConfirmReqModel reqModel);
- /// <summary>
- /// 交收现货付款-应答转换
- /// </summary>
- /// <param name="responeData"></param>
- /// <returns></returns>
- public abstract ResponeEntity<ReceiveConfirmRspModel> ToReceiveConfirmRsp(object responeData);
- /// <summary>
- /// 查询配对仓单-请求转换
- /// </summary>
- /// <param name="deliveryMatchOrder"></param>
- /// <returns></returns>
- public abstract byte[] ToWrPairReq(WrPairReqModel reqModel);
- /// <summary>
- /// 交割提货个人信息查询请求-请求转换
- /// </summary>
- /// <param name="deliveryMatchOrder"></param>
- /// <returns></returns>
- public abstract byte[] ToDepositPersonalInfoReq(DepositPersonalInfoReqModel reqModel);
- /// <summary>
- /// 查询配对仓单-应答转换
- /// </summary>
- /// <param name="responeData"></param>
- /// <returns></returns>
- public abstract ResponeEntity<WrPairRspModel> ToWrPairRsp(object responeData);
- /// <summary>
- /// 交割提货个人信息查询应答-应答转换
- /// </summary>
- /// <param name="responeData"></param>
- /// <returns></returns>
- public abstract ResponeEntity<DepositPersonalInfoRspModel> ToDepositPersonalInfoRsp(object responeData);
- /// <summary>
- /// 可点选仓单查询
- /// </summary>
- /// <param name="goodsId"></param>
- /// <param name="deliveryGoodsId"></param>
- /// <param name="tradeProperty"></param>
- /// <returns></returns>
- public abstract byte[] ToDeliveryWRReq(uint goodsId, uint deliveryGoodsId, uint tradeProperty);
- /// <summary>
- /// 可点选仓单应答
- /// </summary>
- /// <param name="responeData"></param>
- /// <returns></returns>
- public abstract ResponeEntity<DeliveryWRRspModel> ToDeliveryWRRsp(object responeData);
- }
- }
|