OrderAttributes.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Rest\Response\Fields;
  6. use Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue;
  7. use Temando\Shipping\Rest\Response\Fields\Order\Customer;
  8. use Temando\Shipping\Rest\Response\Fields\Order\DeliverTo;
  9. use Temando\Shipping\Rest\Response\Fields\Order\Source;
  10. /**
  11. * Temando API Order Resource Object Attributes
  12. *
  13. * @package Temando\Shipping\Rest
  14. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  15. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  16. * @link https://www.temando.com/
  17. */
  18. class OrderAttributes
  19. {
  20. /**
  21. * @var \Temando\Shipping\Rest\Response\Fields\Order\Fee[]
  22. */
  23. private $fees = [];
  24. /**
  25. * @var string
  26. */
  27. private $lastModifiedAt;
  28. /**
  29. * @var \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue
  30. */
  31. private $totalPaid;
  32. /**
  33. * @var \Temando\Shipping\Rest\Response\Fields\Order\Source
  34. */
  35. private $source;
  36. /**
  37. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Package[]
  38. */
  39. private $packages;
  40. /**
  41. * @var \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo
  42. */
  43. private $deliverTo;
  44. /**
  45. * @var string
  46. */
  47. private $orderedAt;
  48. /**
  49. * @var string
  50. */
  51. private $createdAt;
  52. /**
  53. * @var \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue
  54. */
  55. private $total;
  56. /**
  57. * @var string
  58. */
  59. private $originId;
  60. /**
  61. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Item[]
  62. */
  63. private $items = [];
  64. /**
  65. * @var string
  66. */
  67. private $status;
  68. /**
  69. * @var \Temando\Shipping\Rest\Response\Fields\Order\Customer
  70. */
  71. private $customer;
  72. /**
  73. * @return string
  74. */
  75. public function getCreatedAt()
  76. {
  77. return $this->createdAt;
  78. }
  79. /**
  80. * @param string $createdAt
  81. * @return void
  82. */
  83. public function setCreatedAt($createdAt)
  84. {
  85. $this->createdAt = $createdAt;
  86. }
  87. /**
  88. * @return string
  89. */
  90. public function getLastModifiedAt()
  91. {
  92. return $this->lastModifiedAt;
  93. }
  94. /**
  95. * @param string $lastModifiedAt
  96. * @return void
  97. */
  98. public function setLastModifiedAt($lastModifiedAt)
  99. {
  100. $this->lastModifiedAt = $lastModifiedAt;
  101. }
  102. /**
  103. * @return string
  104. */
  105. public function getOrderedAt()
  106. {
  107. return $this->orderedAt;
  108. }
  109. /**
  110. * @param string $orderedAt
  111. * @return void
  112. */
  113. public function setOrderedAt($orderedAt)
  114. {
  115. $this->orderedAt = $orderedAt;
  116. }
  117. /**
  118. * @return \Temando\Shipping\Rest\Response\Fields\Order\Source
  119. */
  120. public function getSource()
  121. {
  122. return $this->source;
  123. }
  124. /**
  125. * @param \Temando\Shipping\Rest\Response\Fields\Order\Source $source
  126. * @return void
  127. */
  128. public function setSource(Source $source)
  129. {
  130. $this->source = $source;
  131. }
  132. /**
  133. * @return \Temando\Shipping\Rest\Response\Fields\Order\Customer
  134. */
  135. public function getCustomer()
  136. {
  137. return $this->customer;
  138. }
  139. /**
  140. * @param \Temando\Shipping\Rest\Response\Fields\Order\Customer $customer
  141. * @return void
  142. */
  143. public function setCustomer(Customer $customer)
  144. {
  145. $this->customer = $customer;
  146. }
  147. /**
  148. * @return \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo
  149. */
  150. public function getDeliverTo()
  151. {
  152. return $this->deliverTo;
  153. }
  154. /**
  155. * @param \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo $deliverTo
  156. * @return void
  157. */
  158. public function setDeliverTo(DeliverTo $deliverTo)
  159. {
  160. $this->deliverTo = $deliverTo;
  161. }
  162. /**
  163. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Item[]
  164. */
  165. public function getItems()
  166. {
  167. return $this->items;
  168. }
  169. /**
  170. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Item[] $items
  171. * @return void
  172. */
  173. public function setItems(array $items)
  174. {
  175. $this->items = $items;
  176. }
  177. /**
  178. * @return \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue
  179. */
  180. public function getTotal()
  181. {
  182. return $this->total;
  183. }
  184. /**
  185. * @param \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue $total
  186. * @return void
  187. */
  188. public function setTotal(MonetaryValue $total)
  189. {
  190. $this->total = $total;
  191. }
  192. /**
  193. * @return \Temando\Shipping\Rest\Response\Fields\Order\Fee[]
  194. */
  195. public function getFees()
  196. {
  197. return $this->fees;
  198. }
  199. /**
  200. * @param \Temando\Shipping\Rest\Response\Fields\Order\Fee[] $fees
  201. */
  202. public function setFees(array $fees)
  203. {
  204. $this->fees = $fees;
  205. }
  206. /**
  207. * @return \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue
  208. */
  209. public function getTotalPaid()
  210. {
  211. return $this->totalPaid;
  212. }
  213. /**
  214. * @param \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue $totalPaid
  215. */
  216. public function setTotalPaid(MonetaryValue $totalPaid)
  217. {
  218. $this->totalPaid = $totalPaid;
  219. }
  220. /**
  221. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Package[]
  222. */
  223. public function getPackages()
  224. {
  225. return $this->packages;
  226. }
  227. /**
  228. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Package[] $packages
  229. */
  230. public function setPackages(array $packages)
  231. {
  232. $this->packages = $packages;
  233. }
  234. /**
  235. * @return string
  236. */
  237. public function getOriginId()
  238. {
  239. return $this->originId;
  240. }
  241. /**
  242. * @param string $originId
  243. */
  244. public function setOriginId($originId)
  245. {
  246. $this->originId = $originId;
  247. }
  248. /**
  249. * @return string
  250. */
  251. public function getStatus()
  252. {
  253. return $this->status;
  254. }
  255. /**
  256. * @param string $status
  257. */
  258. public function setStatus($status)
  259. {
  260. $this->status = $status;
  261. }
  262. }