src/Core/Entity/Cybersource/CybersourceTransLog.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Core\Entity\Cybersource;
  3. use App\Core\Entity\Subscripciones\HistorialPagoSubscripcion;
  4. use App\Core\Entity\User;
  5. use App\Core\Repository\Cybersource\CybersourceTransLogRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * @ORM\Entity(repositoryClass=CybersourceTransLogRepository::class)
  9. * @ORM\Table(name="cybersource_trans_log",indexes={@ORM\Index(name="index01", columns={"estado"})})
  10. */
  11. class CybersourceTransLog
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\GeneratedValue
  16. * @ORM\Column(type="integer")
  17. */
  18. private $id;
  19. /**
  20. * @ORM\Column(type="string", length=255, nullable=true)
  21. */
  22. private $order_number;
  23. /**
  24. * @ORM\Column(type="string", length=4, nullable=true)
  25. */
  26. private $ccno_ref;
  27. /**
  28. * @ORM\Column(type="float", nullable=true)
  29. */
  30. private $monto_pago;
  31. /**
  32. * @ORM\Column(type="date", nullable=true)
  33. */
  34. private $fecha_reg;
  35. /**
  36. * @ORM\Column(type="time", nullable=true)
  37. */
  38. private $hora_reg;
  39. /**
  40. * @ORM\Column(type="string", length=25, nullable=true)
  41. */
  42. private $estado;
  43. /**
  44. * @ORM\Column(type="datetime", nullable=true)
  45. */
  46. private $fecha_estado;
  47. /**
  48. * @ORM\Column(type="string", length=15, nullable=true)
  49. */
  50. private $reasonCode;
  51. /**
  52. * @ORM\Column(type="string", length=255, nullable=true)
  53. */
  54. private $requestID;
  55. /**
  56. * @ORM\Column(type="string", length=255, nullable=true)
  57. */
  58. private $requestToken;
  59. /**
  60. * @ORM\Column(type="string", length=255, nullable=true)
  61. */
  62. private $authorizationCode;
  63. /**
  64. * @ORM\Column(type="string", length=255, nullable=true)
  65. */
  66. private $reconciliationID;
  67. /**
  68. * @ORM\Column(type="string", length=255, nullable=true)
  69. */
  70. private $paymentNetworkTransactionID;
  71. /**
  72. * @ORM\Column(type="string", length=255, nullable=true)
  73. */
  74. private $reconciliationReferenceNumber;
  75. /**
  76. * @ORM\ManyToOne(targetEntity=User::class, inversedBy="cybersourceTransLogs")
  77. */
  78. private $user;
  79. /**
  80. * @ORM\OneToOne(targetEntity=HistorialPagoSubscripcion::class, mappedBy="cybersourceTransLog")
  81. */
  82. private $historialPagoSuscripcion;
  83. public function getId(): ?int
  84. {
  85. return $this->id;
  86. }
  87. public function getOrderNumber(): ?string
  88. {
  89. return $this->order_number;
  90. }
  91. public function setOrderNumber(?string $order_number): self
  92. {
  93. $this->order_number = $order_number;
  94. return $this;
  95. }
  96. public function getCcnoRef(): ?string
  97. {
  98. return $this->ccno_ref;
  99. }
  100. public function setCcnoRef(?string $ccno_ref): self
  101. {
  102. $this->ccno_ref = $ccno_ref;
  103. return $this;
  104. }
  105. public function getMontoPago(): ?float
  106. {
  107. return $this->monto_pago;
  108. }
  109. public function setMontoPago(?float $monto_pago): self
  110. {
  111. $this->monto_pago = $monto_pago;
  112. return $this;
  113. }
  114. public function getFechaReg(): ?\DateTime
  115. {
  116. return $this->fecha_reg;
  117. }
  118. public function setFechaReg(?\DateTime $fecha_reg): self
  119. {
  120. $this->fecha_reg = $fecha_reg;
  121. return $this;
  122. }
  123. public function getHoraReg(): ?\DateTime
  124. {
  125. return $this->hora_reg;
  126. }
  127. public function setHoraReg(?\DateTime $hora_reg): self
  128. {
  129. $this->hora_reg = $hora_reg;
  130. return $this;
  131. }
  132. public function getEstado(): ?string
  133. {
  134. return $this->estado;
  135. }
  136. /**
  137. * @param string|null $estado INICIADO,ENVIADO,AUTORIZADO,DENEGADO,ERROR_COMM
  138. * @return $this
  139. */
  140. public function setEstado(?string $estado): self
  141. {
  142. $this->estado = $estado;
  143. $this->setFechaEstado(new \DateTime("now"));
  144. return $this;
  145. }
  146. public function getFechaEstado(): ?\DateTime
  147. {
  148. return $this->fecha_estado;
  149. }
  150. public function setFechaEstado(?\DateTime $fecha_estado): self
  151. {
  152. $this->fecha_estado = $fecha_estado;
  153. return $this;
  154. }
  155. public function getReasonCode(): ?string
  156. {
  157. return $this->reasonCode;
  158. }
  159. public function setReasonCode(?string $reasonCode): self
  160. {
  161. $this->reasonCode = $reasonCode;
  162. return $this;
  163. }
  164. public function getRequestID(): ?string
  165. {
  166. return $this->requestID;
  167. }
  168. public function setRequestID(?string $requestID): self
  169. {
  170. $this->requestID = $requestID;
  171. return $this;
  172. }
  173. public function getRequestToken(): ?string
  174. {
  175. return $this->requestToken;
  176. }
  177. public function setRequestToken(?string $requestToken): self
  178. {
  179. $this->requestToken = $requestToken;
  180. return $this;
  181. }
  182. public function getAuthorizationCode(): ?string
  183. {
  184. return $this->authorizationCode;
  185. }
  186. public function setAuthorizationCode(?string $authorizationCode): self
  187. {
  188. $this->authorizationCode = $authorizationCode;
  189. return $this;
  190. }
  191. public function getReconciliationID(): ?string
  192. {
  193. return $this->reconciliationID;
  194. }
  195. public function setReconciliationID(?string $reconciliationID): self
  196. {
  197. $this->reconciliationID = $reconciliationID;
  198. return $this;
  199. }
  200. public function getPaymentNetworkTransactionID(): ?string
  201. {
  202. return $this->paymentNetworkTransactionID;
  203. }
  204. public function setPaymentNetworkTransactionID(?string $paymentNetworkTransactionID): self
  205. {
  206. $this->paymentNetworkTransactionID = $paymentNetworkTransactionID;
  207. return $this;
  208. }
  209. public function getReconciliationReferenceNumber(): ?string
  210. {
  211. return $this->reconciliationReferenceNumber;
  212. }
  213. public function setReconciliationReferenceNumber(?string $reconciliationReferenceNumber): self
  214. {
  215. $this->reconciliationReferenceNumber = $reconciliationReferenceNumber;
  216. return $this;
  217. }
  218. public function getUser(): ?User
  219. {
  220. return $this->user;
  221. }
  222. public function setUser(?User $user): self
  223. {
  224. $this->user = $user;
  225. return $this;
  226. }
  227. public function getHistorialPagoSuscripcion(): ?HistorialPagoSubscripcion
  228. {
  229. return $this->historialPagoSuscripcion;
  230. }
  231. public function setHistorialPagoSuscripcion(HistorialPagoSubscripcion $historialPagoSubscripcion): self
  232. {
  233. $this->historialPagoSuscripcion = $historialPagoSubscripcion;
  234. // set the owning side of the relation if necessary
  235. if ($historialPagoSubscripcion->getCybersourceTransLog() !== $this) {
  236. $historialPagoSubscripcion->setCybersourceTransLog($this);
  237. }
  238. return $this;
  239. }
  240. }