CWaimaiOrder.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #pragma once
  2. #include <string>
  3. #include <vector>
  4. class CWaimaiOrderItem
  5. {
  6. public:
  7. std::string m_food_name;
  8. std::string m_item_price;
  9. std::string m_quantity;
  10. std::string m_type_id;
  11. std::string m_foodpackage_id;
  12. std::string m_is_foodpackage;
  13. };
  14. class CWaimaiOrderField
  15. {
  16. public:
  17. std::string name;
  18. std::string value;
  19. };
  20. class CWaimaiOrder
  21. {
  22. public:
  23. CWaimaiOrder();
  24. ~CWaimaiOrder();
  25. bool InitData(std::string order_id, std::string order_no);
  26. bool ConfirmeOrder(std::string order_id);
  27. bool SuccessOrder(std::string order_id);
  28. bool FailOrder(std::string order_id, std::string reason);
  29. bool AgreeRefund(std::string order_id);
  30. bool DisagreeRefund(std::string order_id);
  31. bool Refund(std::string order_id);
  32. public:
  33. std::string m_order_id;
  34. std::string m_shop_id;
  35. std::string m_restaurant_number;
  36. std::string m_customer_id;
  37. std::string m_customer_name;
  38. std::string m_phone;
  39. std::string m_address;
  40. std::string m_memo;
  41. std::string m_pay_type;
  42. std::string m_promotion;
  43. std::string m_is_member_discount;
  44. std::string m_member_discount;
  45. double m_discount;
  46. double m_coupon;
  47. double m_delivery;
  48. double m_price;
  49. std::string m_order_date;
  50. std::string m_order_status;
  51. std::string m_courier_id;
  52. std::string m_is_selftake;
  53. std::string m_delivery_mode;
  54. std::string m_addservice_text;
  55. std::string m_is_dabao;
  56. std::string m_dabao_money;
  57. //std::string m_phone_customer_id;
  58. std::string m_order_num;
  59. std::string m_from_type;
  60. std::string m_is_refund;
  61. std::string m_refund_status;
  62. std::string m_is_pickup;
  63. std::string m_pickup_time;
  64. //std::string m_verify_time;
  65. //std::string m_verify_user;
  66. std::string m_refund_failed_reason;
  67. std::string m_refund_time;
  68. std::string m_failed_reason;
  69. std::string m_configmemo;
  70. //std::string m_courier_type;
  71. std::string m_courier_name;
  72. std::string m_courier_phone;
  73. //std::string m_receiver_lng;
  74. //std::string m_receiver_lat;
  75. std::string m_discount_price;
  76. std::string m_order_no;
  77. std::string m_is_firstcut;
  78. std::string m_firstcut_value;
  79. std::string m_need_to_refund;
  80. std::string m_shop_name;
  81. std::string m_longitude;
  82. std::string m_latitude;
  83. std::string m_open_selftake;
  84. std::string m_delivery_date;
  85. std::string m_showordernum;
  86. std::string m_customer_order_total;
  87. std::string m_printer_tip_name;
  88. std::string m_is_book;
  89. std::vector<CWaimaiOrderItem> m_order_items;
  90. std::vector<CWaimaiOrderField> m_order_field;
  91. std::vector<CWaimaiOrderField> m_addservie;
  92. std::string m_show_qiangdan_qrcode;
  93. std::string m_manzeng_name;
  94. std::string m_show_whole_phone;
  95. std::string m_is_apply_refund; // 1:顾客申请了退款 0:顾客没申请退款
  96. std::string m_refund_reason_first; //顾客申请退款的理由
  97. std::string m_refund_info_status; //最新的退款状态 1顾客申请,等待处理 2:拒绝退款 3:同意退款
  98. };