src/Entity/Logs/PaypalResponseIpn.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Logs;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * PaypalResponseIpn
  6. *
  7. * @ORM\Table(name="paypal_response_ipn")
  8. *
  9. * @ORM\Entity(repositoryClass="App\Repository\Logs\PaypalResponseIpnRepository")
  10. */
  11. class PaypalResponseIpn
  12. {
  13. /**
  14. * @ORM\Id()
  15. *
  16. * @ORM\Column(type="integer", name="id_response")
  17. *
  18. * @ORM\GeneratedValue(strategy="AUTO")
  19. */
  20. private $id;
  21. /**
  22. * @var string
  23. *
  24. * @ORM\Column(type="string", length=20, options={"default":"0"})
  25. */
  26. private $type;
  27. /**
  28. * @var string|null
  29. *
  30. * @ORM\Column(type="text", nullable=true)
  31. */
  32. private $response;
  33. /**
  34. * @var \DateTime
  35. *
  36. * @ORM\Column(type="datetime")
  37. */
  38. private $date;
  39. /**
  40. * @var bool|null
  41. *
  42. * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", nullable=true)
  43. */
  44. private $result;
  45. /**
  46. * @var string|null
  47. *
  48. * @ORM\Column(type="string", length=50, nullable=true)
  49. */
  50. private $transactionId;
  51. /**
  52. * @var string|null
  53. *
  54. * @ORM\Column(name="id_order", type="string", length=50, nullable=true)
  55. */
  56. private $orderId;
  57. /**
  58. * @var float|null
  59. *
  60. * @ORM\Column(type="float", precision=10, scale=2, nullable=true)
  61. */
  62. private $amount;
  63. /**
  64. * @var float|null
  65. *
  66. * @ORM\Column(type="float", precision=10, scale=2, nullable=true)
  67. */
  68. private $tax;
  69. /**
  70. * @var float|null
  71. *
  72. * @ORM\Column(name="envio", type="float", precision=10, scale=2, nullable=true)
  73. */
  74. private $shipping;
  75. /**
  76. * @var bool
  77. *
  78. * @ORM\Column(type="boolean", options={"default" : 0})
  79. */
  80. private $toReview = false;
  81. /**
  82. * @return mixed
  83. */
  84. public function getId()
  85. {
  86. return $this->id;
  87. }
  88. /**
  89. * @param mixed $id
  90. */
  91. public function setId($id): PaypalResponseIpn
  92. {
  93. $this->id = $id;
  94. return $this;
  95. }
  96. /**
  97. * @return string
  98. */
  99. public function getType(): string
  100. {
  101. return $this->type;
  102. }
  103. /**
  104. * @param string $type
  105. *
  106. * @return PaypalResponseIpn
  107. */
  108. public function setType(string $type): PaypalResponseIpn
  109. {
  110. $this->type = $type;
  111. return $this;
  112. }
  113. /**
  114. * @return string|null
  115. */
  116. public function getResponse(): ?string
  117. {
  118. return $this->response;
  119. }
  120. /**
  121. * @param string|null $response
  122. *
  123. * @return PaypalResponseIpn
  124. */
  125. public function setResponse(?string $response): PaypalResponseIpn
  126. {
  127. $this->response = $response;
  128. return $this;
  129. }
  130. /**
  131. * @return \DateTime
  132. */
  133. public function getDate(): \DateTime
  134. {
  135. return $this->date;
  136. }
  137. /**
  138. * @param \DateTime $date
  139. *
  140. * @return PaypalResponseIpn
  141. */
  142. public function setDate(\DateTime $date): PaypalResponseIpn
  143. {
  144. $this->date = $date;
  145. return $this;
  146. }
  147. /**
  148. * @return bool|null
  149. */
  150. public function isResult(): ?bool
  151. {
  152. return $this->result;
  153. }
  154. /**
  155. * @param bool|null $result
  156. *
  157. * @return PaypalResponseIpn
  158. */
  159. public function setResult(?bool $result): PaypalResponseIpn
  160. {
  161. $this->result = $result;
  162. return $this;
  163. }
  164. /**
  165. * @return string|null
  166. */
  167. public function getTransactionId(): ?string
  168. {
  169. return $this->transactionId;
  170. }
  171. /**
  172. * @param string|null $transactionId
  173. *
  174. * @return PaypalResponseIpn
  175. */
  176. public function setTransactionId(?string $transactionId): PaypalResponseIpn
  177. {
  178. $this->transactionId = $transactionId;
  179. return $this;
  180. }
  181. /**
  182. * @return string|null
  183. */
  184. public function getOrderId(): ?string
  185. {
  186. return $this->orderId;
  187. }
  188. /**
  189. * @param string|null $orderId
  190. *
  191. * @return PaypalResponseIpn
  192. */
  193. public function setOrderId(?string $orderId): PaypalResponseIpn
  194. {
  195. $this->orderId = $orderId;
  196. return $this;
  197. }
  198. /**
  199. * @return float|null
  200. */
  201. public function getAmount(): ?float
  202. {
  203. return $this->amount;
  204. }
  205. /**
  206. * @param float|null $amount
  207. *
  208. * @return PaypalResponseIpn
  209. */
  210. public function setAmount(?float $amount): PaypalResponseIpn
  211. {
  212. $this->amount = $amount;
  213. return $this;
  214. }
  215. /**
  216. * @return float|null
  217. */
  218. public function getTax(): ?float
  219. {
  220. return $this->tax;
  221. }
  222. /**
  223. * @param float|null $tax
  224. *
  225. * @return PaypalResponseIpn
  226. */
  227. public function setTax(?float $tax): PaypalResponseIpn
  228. {
  229. $this->tax = $tax;
  230. return $this;
  231. }
  232. /**
  233. * @return float|null
  234. */
  235. public function getShipping(): ?float
  236. {
  237. return $this->shipping;
  238. }
  239. /**
  240. * @param float|null $shipping
  241. *
  242. * @return PaypalResponseIpn
  243. */
  244. public function setShipping(?float $shipping): PaypalResponseIpn
  245. {
  246. $this->shipping = $shipping;
  247. return $this;
  248. }
  249. public function isToReview(): bool
  250. {
  251. return $this->toReview;
  252. }
  253. public function setToReview(bool $toReview): PaypalResponseIpn
  254. {
  255. $this->toReview = $toReview;
  256. return $this;
  257. }
  258. }