SaleOrder.Class.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <?php
  2. namespace JinDouYun\Model\Order;
  3. /**
  4. * 销售订单打印数据
  5. * Class SaleOrder
  6. * @package JinDouYun\Model\Order
  7. */
  8. class SaleOrder
  9. {
  10. /**
  11. * @var string 单号
  12. */
  13. public $no;
  14. /**
  15. * @var string 单据名称
  16. */
  17. public $receiptTitle;
  18. /**
  19. * @var string 单号名称
  20. */
  21. public $codeName;
  22. /**
  23. * @var string 客户名称
  24. */
  25. public $customerName;
  26. /**
  27. * @var int 客户手机号
  28. */
  29. public $customerMobile;
  30. /**
  31. * @var float 优惠金额
  32. */
  33. public $preferentialAmount;
  34. /**
  35. * @var float 总金额
  36. */
  37. public $totalAmount;
  38. /**
  39. * @var float 支付金额
  40. */
  41. public $payAmount;
  42. /**
  43. * @var int 时间
  44. */
  45. public $createTime;
  46. /**
  47. * @var string 店铺名称
  48. */
  49. public $shopName;
  50. /**
  51. * @var array
  52. */
  53. public $goodsDetails;
  54. /**
  55. * @var string
  56. */
  57. public $address;
  58. /**
  59. * @return string
  60. */
  61. public function getAddress(): string
  62. {
  63. return $this->address;
  64. }
  65. /**
  66. * @param string $address
  67. */
  68. public function setAddress(string $address): void
  69. {
  70. $this->address = $address;
  71. }
  72. /**
  73. * @return string
  74. */
  75. public function getNo(): string
  76. {
  77. return $this->no;
  78. }
  79. /**
  80. * @param string $no
  81. */
  82. public function setNo(string $no): void
  83. {
  84. $this->no = $no;
  85. }
  86. /**
  87. * @return string
  88. */
  89. public function getReceiptTitle(): string
  90. {
  91. return $this->receiptTitle;
  92. }
  93. /**
  94. * @param string $receiptTitle
  95. */
  96. public function setReceiptTitle(string $receiptTitle): void
  97. {
  98. $this->receiptTitle = $receiptTitle;
  99. }
  100. /**
  101. * @return string
  102. */
  103. public function getCodeName(): string
  104. {
  105. return $this->codeName;
  106. }
  107. /**
  108. * @param string $codeName
  109. */
  110. public function setCodeName(string $codeName): void
  111. {
  112. $this->codeName = $codeName;
  113. }
  114. /**
  115. * @return string
  116. */
  117. public function getCustomerName(): string
  118. {
  119. return $this->customerName;
  120. }
  121. /**
  122. * @param string $customerName
  123. */
  124. public function setCustomerName(string $customerName): void
  125. {
  126. $this->customerName = $customerName;
  127. }
  128. /**
  129. * @return int
  130. */
  131. public function getCustomerMobile(): int
  132. {
  133. return $this->customerMobile;
  134. }
  135. /**
  136. * @param int $customerMobile
  137. */
  138. public function setCustomerMobile(int $customerMobile): void
  139. {
  140. $this->customerMobile = $customerMobile;
  141. }
  142. /**
  143. * @return float
  144. */
  145. public function getPreferentialAmount(): float
  146. {
  147. return $this->preferentialAmount;
  148. }
  149. /**
  150. * @param float $preferentialAmount
  151. */
  152. public function setPreferentialAmount(float $preferentialAmount): void
  153. {
  154. $this->preferentialAmount = $preferentialAmount;
  155. }
  156. /**
  157. * @return float
  158. */
  159. public function getTotalAmount(): float
  160. {
  161. return $this->totalAmount;
  162. }
  163. /**
  164. * @param float $totalAmount
  165. */
  166. public function setTotalAmount(float $totalAmount): void
  167. {
  168. $this->totalAmount = $totalAmount;
  169. }
  170. /**
  171. * @return float
  172. */
  173. public function getPayAmount(): float
  174. {
  175. return $this->payAmount;
  176. }
  177. /**
  178. * @param float $payAmount
  179. */
  180. public function setPayAmount(float $payAmount): void
  181. {
  182. $this->payAmount = $payAmount;
  183. }
  184. /**
  185. * @return array
  186. */
  187. public function getGoodsDetails(): array
  188. {
  189. return (array)$this->goodsDetails;
  190. }
  191. /**
  192. * @param array $goodsDetails
  193. */
  194. public function setGoodsDetails(array $goodsDetails): void
  195. {
  196. $this->goodsDetails = $goodsDetails;
  197. }
  198. /**
  199. * @return int
  200. */
  201. public function getCreateTime(): int
  202. {
  203. return $this->createTime;
  204. }
  205. /**
  206. * @param int $createTime
  207. */
  208. public function setCreateTime(int $createTime): void
  209. {
  210. $this->createTime = $createTime;
  211. }
  212. /**
  213. * @return string
  214. */
  215. public function getShopName(): string
  216. {
  217. return $this->shopName;
  218. }
  219. /**
  220. * @param string $shopName
  221. */
  222. public function setShopName(string $shopName): void
  223. {
  224. $this->shopName = $shopName;
  225. }
  226. }