LogEntry.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <?php
  2. /**
  3. * @copyright Vertex. All rights reserved. https://www.vertexinc.com/
  4. * @author Mediotype https://www.mediotype.com/
  5. */
  6. namespace Vertex\Tax\Model\Data;
  7. use Magento\Framework\Model\AbstractModel;
  8. use Vertex\Tax\Api\Data\LogEntryInterface;
  9. use Vertex\Tax\Model\ResourceModel\LogEntry as ResourceModel;
  10. /**
  11. * Data model for a Log Entry
  12. */
  13. class LogEntry extends AbstractModel implements LogEntryInterface
  14. {
  15. /**
  16. * @inheritdoc
  17. */
  18. protected function _construct()
  19. {
  20. $this->_init(ResourceModel::class);
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function getType()
  26. {
  27. return $this->getData(static::FIELD_TYPE);
  28. }
  29. /**
  30. * @inheritdoc
  31. */
  32. public function setType($type)
  33. {
  34. return $this->setData(static::FIELD_TYPE, $type);
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function getCartId()
  40. {
  41. return $this->getData(static::FIELD_CART_ID);
  42. }
  43. /**
  44. * @inheritdoc
  45. */
  46. public function setCartId($cartId)
  47. {
  48. return $this->setData(static::FIELD_CART_ID, $cartId);
  49. }
  50. /**
  51. * @inheritdoc
  52. */
  53. public function getOrderId()
  54. {
  55. return $this->getData(static::FIELD_ORDER_ID);
  56. }
  57. /**
  58. * @inheritdoc
  59. */
  60. public function setOrderId($orderId)
  61. {
  62. return $this->setData(static::FIELD_ORDER_ID, $orderId);
  63. }
  64. /**
  65. * @inheritdoc
  66. */
  67. public function getTotalTax()
  68. {
  69. return $this->getData(static::FIELD_TOTAL_TAX);
  70. }
  71. /**
  72. * @inheritdoc
  73. */
  74. public function setTotalTax($totalTax)
  75. {
  76. return $this->setData(static::FIELD_TOTAL_TAX, $totalTax);
  77. }
  78. /**
  79. * @inheritdoc
  80. */
  81. public function getSourcePath()
  82. {
  83. return $this->getData(static::FIELD_SOURCE_PATH);
  84. }
  85. /**
  86. * @inheritdoc
  87. */
  88. public function setSourcePath($sourcePath)
  89. {
  90. return $this->setData(static::FIELD_SOURCE_PATH, $sourcePath);
  91. }
  92. /**
  93. * @inheritdoc
  94. */
  95. public function getTaxAreaId()
  96. {
  97. return $this->getData(static::FIELD_TAX_AREA_ID);
  98. }
  99. /**
  100. * @inheritdoc
  101. */
  102. public function setTaxAreaId($taxAreaId)
  103. {
  104. return $this->setData(static::FIELD_TAX_AREA_ID, $taxAreaId);
  105. }
  106. /**
  107. * @inheritdoc
  108. */
  109. public function getSubTotal()
  110. {
  111. return $this->getData(static::FIELD_SUBTOTAL);
  112. }
  113. /**
  114. * @inheritdoc
  115. */
  116. public function setSubTotal($subtotal)
  117. {
  118. return $this->setData(static::FIELD_SUBTOTAL, $subtotal);
  119. }
  120. /**
  121. * @inheritdoc
  122. */
  123. public function getTotal()
  124. {
  125. return $this->getData(static::FIELD_TOTAL);
  126. }
  127. /**
  128. * @inheritdoc
  129. */
  130. public function setTotal($total)
  131. {
  132. return $this->setData(static::FIELD_TOTAL, $total);
  133. }
  134. /**
  135. * @inheritdoc
  136. */
  137. public function getLookupResult()
  138. {
  139. return $this->getData(static::FIELD_LOOKUP_RESULT);
  140. }
  141. /**
  142. * @inheritdoc
  143. */
  144. public function setLookupResult($lookupResult)
  145. {
  146. return $this->setData(static::FIELD_LOOKUP_RESULT, $lookupResult);
  147. }
  148. /**
  149. * @inheritdoc
  150. */
  151. public function getDate()
  152. {
  153. return $this->getData(static::FIELD_REQUEST_DATE);
  154. }
  155. /**
  156. * @inheritdoc
  157. */
  158. public function setDate($requestDate)
  159. {
  160. return $this->setData(static::FIELD_REQUEST_DATE, $requestDate);
  161. }
  162. /**
  163. * @inheritdoc
  164. */
  165. public function getRequestXml()
  166. {
  167. return $this->getData(static::FIELD_REQUEST_XML);
  168. }
  169. /**
  170. * @inheritdoc
  171. */
  172. public function setRequestXml($requestXml)
  173. {
  174. return $this->setData(static::FIELD_REQUEST_XML, $requestXml);
  175. }
  176. /**
  177. * @inheritdoc
  178. */
  179. public function getResponseXml()
  180. {
  181. return $this->getData(static::FIELD_RESPONSE_XML);
  182. }
  183. /**
  184. * @inheritdoc
  185. */
  186. public function setResponseXml($responseXml)
  187. {
  188. return $this->setData(static::FIELD_RESPONSE_XML, $responseXml);
  189. }
  190. }