LogEntryInterface.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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\Api\Data;
  7. /**
  8. * Data model representing an entry in the Vertex API Log
  9. *
  10. * @api
  11. */
  12. interface LogEntryInterface
  13. {
  14. const FIELD_ID = 'request_id';
  15. const FIELD_TYPE = 'request_type';
  16. const FIELD_CART_ID = 'quote_id';
  17. const FIELD_ORDER_ID = 'order_id';
  18. const FIELD_TOTAL_TAX = 'total_tax';
  19. const FIELD_SOURCE_PATH = 'source_path';
  20. const FIELD_TAX_AREA_ID = 'tax_area_id';
  21. const FIELD_SUBTOTAL = 'sub_total';
  22. const FIELD_TOTAL = 'total';
  23. const FIELD_LOOKUP_RESULT = 'lookup_result';
  24. const FIELD_REQUEST_DATE = 'request_date';
  25. const FIELD_REQUEST_XML = 'request_xml';
  26. const FIELD_RESPONSE_XML = 'response_xml';
  27. /**
  28. * Retrieve unique identifier for the Log Entry
  29. *
  30. * @return int
  31. */
  32. public function getId();
  33. /**
  34. * Set unique identifier for the Log Entry
  35. *
  36. * @param int $requestId
  37. * @return \Vertex\Tax\Api\Data\LogEntryInterface
  38. */
  39. public function setId($requestId);
  40. /**
  41. * Get the type of request
  42. *
  43. * Typically one of quote, invoice, tax_area_lookup or creditmemo
  44. *
  45. * @return string
  46. */
  47. public function getType();
  48. /**
  49. * Set the type of request
  50. *
  51. * Typically one of quote, invoice, tax_area_lookup or creditmemo
  52. *
  53. * @param string $type
  54. * @return \Vertex\Tax\Api\Data\LogEntryInterface
  55. */
  56. public function setType($type);
  57. /**
  58. * Get the ID of the Order the request was made for
  59. *
  60. * @return int
  61. */
  62. public function getOrderId();
  63. /**
  64. * Set the ID of the Order the request was made for
  65. *
  66. * @param int $orderId
  67. * @return \Vertex\Tax\Api\Data\LogEntryInterface
  68. */
  69. public function setOrderId($orderId);
  70. /**
  71. * Get the total amount of tax calculated by the request
  72. *
  73. * @return float
  74. */
  75. public function getTotalTax();
  76. /**
  77. * Set the total amount of tax calculated by the request
  78. *
  79. * @param float $totalTax
  80. * @return \Vertex\Tax\Api\Data\LogEntryInterface
  81. */
  82. public function setTotalTax($totalTax);
  83. /**
  84. * Get the Tax Area ID calculated by the request
  85. *
  86. * @return int
  87. */
  88. public function getTaxAreaId();
  89. /**
  90. * Set the Tax Area ID calculated by the request
  91. *
  92. * @param int $taxAreaId
  93. * @return \Vertex\Tax\Api\Data\LogEntryInterface
  94. */
  95. public function setTaxAreaId($taxAreaId);
  96. /**
  97. * Get the total of the request before taxes
  98. *
  99. * @return float
  100. */
  101. public function getSubTotal();
  102. /**
  103. * Set the total of the request before taxes
  104. *
  105. * @param float $subtotal
  106. * @return \Vertex\Tax\Api\Data\LogEntryInterface
  107. */
  108. public function setSubTotal($subtotal);
  109. /**
  110. * Get the total of the request after taxes
  111. *
  112. * @return float
  113. */
  114. public function getTotal();
  115. /**
  116. * Set the total of the request after taxes
  117. *
  118. * @param float $total
  119. * @return \Vertex\Tax\Api\Data\LogEntryInterface
  120. */
  121. public function setTotal($total);
  122. /**
  123. * Get the result of the lookup
  124. *
  125. * Typically empty, the string "NORMAL" or a SOAP Exception
  126. *
  127. * @return string
  128. */
  129. public function getLookupResult();
  130. /**
  131. * Set the result of the lookup
  132. *
  133. * Typically empty, the string "NORMAL" or a SOAP Exception
  134. *
  135. * @param string $lookupResult
  136. * @return \Vertex\Tax\Api\Data\LogEntryInterface
  137. */
  138. public function setLookupResult($lookupResult);
  139. /**
  140. * Get the date of the request
  141. *
  142. * @return string
  143. */
  144. public function getDate();
  145. /**
  146. * Set the date of the request
  147. *
  148. * @param string $requestDate Date in format of Y-m-d H:i:s
  149. * @return \Vertex\Tax\Api\Data\LogEntryInterface
  150. */
  151. public function setDate($requestDate);
  152. /**
  153. * Get the XML sent to the Vertex API
  154. *
  155. * @return string
  156. */
  157. public function getRequestXml();
  158. /**
  159. * Set the XML sent to the Vertex API
  160. *
  161. * @param string $requestXml
  162. * @return \Vertex\Tax\Api\Data\LogEntryInterface
  163. */
  164. public function setRequestXml($requestXml);
  165. /**
  166. * Get the XML response received from the Vertex API
  167. *
  168. * @return string
  169. */
  170. public function getResponseXml();
  171. /**
  172. * Set the XML response received from the Vertex API
  173. *
  174. * @param string $responseXml
  175. * @return \Vertex\Tax\Api\Data\LogEntryInterface
  176. */
  177. public function setResponseXml($responseXml);
  178. }