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. * @return mixed
  77. */
  78. public function getId()
  79. {
  80. return $this->id;
  81. }
  82. /**
  83. * @param mixed $id
  84. */
  85. public function setId($id): PaypalResponseIpn
  86. {
  87. $this->id = $id;
  88. return $this;
  89. }
  90. /**
  91. * @return string
  92. */
  93. public function getType(): string
  94. {
  95. return $this->type;
  96. }
  97. /**
  98. * @param string $type
  99. *
  100. * @return PaypalResponseIpn
  101. */
  102. public function setType(string $type): PaypalResponseIpn
  103. {
  104. $this->type = $type;
  105. return $this;
  106. }
  107. /**
  108. * @return string|null
  109. */
  110. public function getResponse(): ?string
  111. {
  112. return $this->response;
  113. }
  114. /**
  115. * @param string|null $response
  116. *
  117. * @return PaypalResponseIpn
  118. */
  119. public function setResponse(?string $response): PaypalResponseIpn
  120. {
  121. $this->response = $response;
  122. return $this;
  123. }
  124. /**
  125. * @return \DateTime
  126. */
  127. public function getDate(): \DateTime
  128. {
  129. return $this->date;
  130. }
  131. /**
  132. * @param \DateTime $date
  133. *
  134. * @return PaypalResponseIpn
  135. */
  136. public function setDate(\DateTime $date): PaypalResponseIpn
  137. {
  138. $this->date = $date;
  139. return $this;
  140. }
  141. /**
  142. * @return bool|null
  143. */
  144. public function isResult(): ?bool
  145. {
  146. return $this->result;
  147. }
  148. /**
  149. * @param bool|null $result
  150. *
  151. * @return PaypalResponseIpn
  152. */
  153. public function setResult(?bool $result): PaypalResponseIpn
  154. {
  155. $this->result = $result;
  156. return $this;
  157. }
  158. /**
  159. * @return string|null
  160. */
  161. public function getTransactionId(): ?string
  162. {
  163. return $this->transactionId;
  164. }
  165. /**
  166. * @param string|null $transactionId
  167. *
  168. * @return PaypalResponseIpn
  169. */
  170. public function setTransactionId(?string $transactionId): PaypalResponseIpn
  171. {
  172. $this->transactionId = $transactionId;
  173. return $this;
  174. }
  175. /**
  176. * @return string|null
  177. */
  178. public function getOrderId(): ?string
  179. {
  180. return $this->orderId;
  181. }
  182. /**
  183. * @param string|null $orderId
  184. *
  185. * @return PaypalResponseIpn
  186. */
  187. public function setOrderId(?string $orderId): PaypalResponseIpn
  188. {
  189. $this->orderId = $orderId;
  190. return $this;
  191. }
  192. /**
  193. * @return float|null
  194. */
  195. public function getAmount(): ?float
  196. {
  197. return $this->amount;
  198. }
  199. /**
  200. * @param float|null $amount
  201. *
  202. * @return PaypalResponseIpn
  203. */
  204. public function setAmount(?float $amount): PaypalResponseIpn
  205. {
  206. $this->amount = $amount;
  207. return $this;
  208. }
  209. /**
  210. * @return float|null
  211. */
  212. public function getTax(): ?float
  213. {
  214. return $this->tax;
  215. }
  216. /**
  217. * @param float|null $tax
  218. *
  219. * @return PaypalResponseIpn
  220. */
  221. public function setTax(?float $tax): PaypalResponseIpn
  222. {
  223. $this->tax = $tax;
  224. return $this;
  225. }
  226. /**
  227. * @return float|null
  228. */
  229. public function getShipping(): ?float
  230. {
  231. return $this->shipping;
  232. }
  233. /**
  234. * @param float|null $shipping
  235. *
  236. * @return PaypalResponseIpn
  237. */
  238. public function setShipping(?float $shipping): PaypalResponseIpn
  239. {
  240. $this->shipping = $shipping;
  241. return $this;
  242. }
  243. }