DeliveryAdapter.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. using Muchinfo.MTPClient.Data;
  2. using Muchinfo.MTPClient.Data.Model.Delivery;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. namespace Muchinfo.MTPClient.Adapter.Abstract
  8. {
  9. public abstract class DeliveryAdapter
  10. {
  11. /// <summary>
  12. /// 交割申报-请求转换
  13. /// </summary>
  14. /// <param name="deliveryOrder"></param>
  15. /// <returns></returns>
  16. public abstract byte[] ToDeliveryApplyReqOrder(DeliveryOrderReqModel deliveryOrder);
  17. /// <summary>
  18. /// 交割申报-应答转换
  19. /// </summary>
  20. /// <param name="responeData"></param>
  21. /// <returns></returns>
  22. public abstract ResponeEntity<DeliveryOrderRspModel> ToDeliveryApplyRspOrder(object responeData);
  23. /// <summary>
  24. /// 提交-仓单配对-请求转换
  25. /// </summary>
  26. /// <param name="deliveryMatchOrder"></param>
  27. /// <returns></returns>
  28. public abstract byte[] ToDeliveryMatchReqOrder(DeliveryOrderMatchReqModel deliveryOrder);
  29. /// <summary>
  30. /// 提交-仓单配对-应答转换
  31. /// </summary>
  32. /// <param name="responeData"></param>
  33. /// <returns></returns>
  34. public abstract ResponeEntity<DeliveryOrderMatchRspModel> ToDeliveryMatchRspOrder(object responeData);
  35. /// <summary>
  36. /// 提交-提货申请-请求转换
  37. /// </summary>
  38. /// <param name="deliveryMatchOrder"></param>
  39. /// <returns></returns>
  40. public abstract byte[] ToOutStoreReq(OutStoreReqModel reqModel);
  41. /// <summary>
  42. /// 提交-提货申请-应答转换
  43. /// </summary>
  44. /// <param name="responeData"></param>
  45. /// <returns></returns>
  46. public abstract ResponeEntity<OutStoreRspModel> ToOutStoreRsp(object responeData);
  47. /// <summary>
  48. /// 交收现货付款-请求转换
  49. /// </summary>
  50. /// <param name="deliveryMatchOrder"></param>
  51. /// <returns></returns>
  52. public abstract byte[] ToReceiveConfirmReq(ReceiveConfirmReqModel reqModel);
  53. /// <summary>
  54. /// 交收现货付款-应答转换
  55. /// </summary>
  56. /// <param name="responeData"></param>
  57. /// <returns></returns>
  58. public abstract ResponeEntity<ReceiveConfirmRspModel> ToReceiveConfirmRsp(object responeData);
  59. /// <summary>
  60. /// 查询配对仓单-请求转换
  61. /// </summary>
  62. /// <param name="deliveryMatchOrder"></param>
  63. /// <returns></returns>
  64. public abstract byte[] ToWrPairReq(WrPairReqModel reqModel);
  65. /// <summary>
  66. /// 交割提货个人信息查询请求-请求转换
  67. /// </summary>
  68. /// <param name="deliveryMatchOrder"></param>
  69. /// <returns></returns>
  70. public abstract byte[] ToDepositPersonalInfoReq(DepositPersonalInfoReqModel reqModel);
  71. /// <summary>
  72. /// 查询配对仓单-应答转换
  73. /// </summary>
  74. /// <param name="responeData"></param>
  75. /// <returns></returns>
  76. public abstract ResponeEntity<WrPairRspModel> ToWrPairRsp(object responeData);
  77. /// <summary>
  78. /// 交割提货个人信息查询应答-应答转换
  79. /// </summary>
  80. /// <param name="responeData"></param>
  81. /// <returns></returns>
  82. public abstract ResponeEntity<DepositPersonalInfoRspModel> ToDepositPersonalInfoRsp(object responeData);
  83. /// <summary>
  84. /// 可点选仓单查询
  85. /// </summary>
  86. /// <param name="goodsId"></param>
  87. /// <param name="deliveryGoodsId"></param>
  88. /// <param name="tradeProperty"></param>
  89. /// <returns></returns>
  90. public abstract byte[] ToDeliveryWRReq(uint goodsId, uint deliveryGoodsId, uint tradeProperty);
  91. /// <summary>
  92. /// 可点选仓单应答
  93. /// </summary>
  94. /// <param name="responeData"></param>
  95. /// <returns></returns>
  96. public abstract ResponeEntity<DeliveryWRRspModel> ToDeliveryWRRsp(object responeData);
  97. }
  98. }