MediaOrder.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php
  2. namespace UnionOpenExchangeMediaOrderSync;
  3. class MediaOrder{
  4. private $params=array();
  5. function __construct(){
  6. $this->params["@type"]="com.jd.union.open.gateway.api.dto.exchange.MediaOrder";
  7. }
  8. private $orderType;
  9. public function setOrderType($orderType){
  10. $this->params['orderType'] = $orderType;
  11. }
  12. public function getOrderType(){
  13. return $this->orderType;
  14. }
  15. private $orderContentList;
  16. public function setOrderContentList($orderContentList){
  17. $size = count($orderContentList);
  18. for ($i=0; $i<$size; $i++){
  19. $orderContentList [$i] = $orderContentList [$i] ->getInstance();
  20. }
  21. $this->params['orderContentList'] = $orderContentList;
  22. }
  23. private $orderId;
  24. public function setOrderId($orderId){
  25. $this->params['orderId'] = $orderId;
  26. }
  27. public function getOrderId(){
  28. return $this->orderId;
  29. }
  30. private $orderStatus;
  31. public function setOrderStatus($orderStatus){
  32. $this->params['orderStatus'] = $orderStatus;
  33. }
  34. public function getOrderStatus(){
  35. return $this->orderStatus;
  36. }
  37. private $orderPrice;
  38. public function setOrderPrice($orderPrice){
  39. $this->params['orderPrice'] = $orderPrice;
  40. }
  41. public function getOrderPrice(){
  42. return $this->orderPrice;
  43. }
  44. private $cancelReason;
  45. public function setCancelReason($cancelReason){
  46. $this->params['cancelReason'] = $cancelReason;
  47. }
  48. public function getCancelReason(){
  49. return $this->cancelReason;
  50. }
  51. private $taskId;
  52. public function setTaskId($taskId){
  53. $this->params['taskId'] = $taskId;
  54. }
  55. public function getTaskId(){
  56. return $this->taskId;
  57. }
  58. private $balancePrice;
  59. public function setBalancePrice($balancePrice){
  60. $this->params['balancePrice'] = $balancePrice;
  61. }
  62. public function getBalancePrice(){
  63. return $this->balancePrice;
  64. }
  65. private $orderName;
  66. public function setOrderName($orderName){
  67. $this->params['orderName'] = $orderName;
  68. }
  69. public function getOrderName(){
  70. return $this->orderName;
  71. }
  72. private $balanceStatus;
  73. public function setBalanceStatus($balanceStatus){
  74. $this->params['balanceStatus'] = $balanceStatus;
  75. }
  76. public function getBalanceStatus(){
  77. return $this->balanceStatus;
  78. }
  79. private $orderTime;
  80. public function setOrderTime($orderTime){
  81. $this->params['orderTime'] = $orderTime;
  82. }
  83. public function getOrderTime(){
  84. return $this->orderTime;
  85. }
  86. private $compensatePrice;
  87. public function setCompensatePrice($compensatePrice){
  88. $this->params['compensatePrice'] = $compensatePrice;
  89. }
  90. public function getCompensatePrice(){
  91. return $this->compensatePrice;
  92. }
  93. function getInstance(){
  94. return $this->params;
  95. }
  96. }
  97. ?>