<?php
namespace App\Entity;
use App\Repository\PaymentIntentionRepository;
use Doctrine\ORM\Mapping as ORM;
use phpseclib3\Math\PrimeField\Integer;
/**
* @ORM\Entity(repositoryClass=PaymentIntentionRepository::class)
*/
class PaymentIntention
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=50)
*/
private $reference;
/**
* @ORM\Column(type="float")
*/
private $amount;
/**
* @ORM\Column(type="string", length=3)
*/
private $moneda;
/**
* @ORM\Column(type="string", length=40, nullable=true)
*/
private $promociones;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $fh_vigencia;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $payment_status;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $xml_request;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $original_xml_request;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $original_xml_response;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $response_received_at;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $create_at;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $update_at;
/**
* @ORM\ManyToOne(targetEntity=ConsumerWebService::class)
*/
private $consumerWebService;
public function getId(): ?int
{
return $this->id;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(string $reference): self
{
$this->reference = $reference;
return $this;
}
public function getMoneda(): ?string
{
return $this->moneda;
}
public function setMoneda(string $moneda): self
{
$this->moneda = $moneda;
return $this;
}
public function getPromociones(): ?string
{
return $this->promociones;
}
public function setPromociones(?string $promociones): self
{
$this->promociones = $promociones;
return $this;
}
public function getFhVigencia(): ?\DateTimeInterface
{
return $this->fh_vigencia;
}
public function setFhVigencia(?\DateTimeInterface $fh_vigencia): self
{
$this->fh_vigencia = $fh_vigencia;
return $this;
}
public function getPaymentStatus(): ?int
{
return $this->payment_status;
}
public function setPaymentStatus(?int $payment_status): self
{
$this->payment_status = $payment_status;
return $this;
}
public function getXmlRequest(): ?string
{
return $this->xml_request;
}
public function setXmlRequest(?string $xml_request): self
{
$this->xml_request = $xml_request;
return $this;
}
public function getOriginalXmlRequest(): ?string
{
return $this->original_xml_request;
}
public function setOriginalXmlRequest(?string $original_xml_request): self
{
$this->original_xml_request = $original_xml_request;
return $this;
}
public function getOriginalXmlResponse(): ?string
{
return $this->original_xml_response;
}
public function setOriginalXmlResponse(?string $original_xml_response): self
{
$this->original_xml_response = $original_xml_response;
return $this;
}
public function getResponseReceivedAt(): ?\DateTimeInterface
{
return $this->response_received_at;
}
public function setResponseReceivedAt(?\DateTimeInterface $response_received_at): self
{
$this->response_received_at = $response_received_at;
return $this;
}
public function getCreateAt(): ?\DateTimeInterface
{
return $this->create_at;
}
public function setCreateAt(?\DateTimeInterface $create_at): self
{
$this->create_at = $create_at;
return $this;
}
public function getUpdateAt(): ?\DateTimeInterface
{
return $this->update_at;
}
public function setUpdateAt(?\DateTimeInterface $update_at): self
{
$this->update_at = $update_at;
return $this;
}
public function getAmount(): ?float
{
return $this->amount;
}
public function setAmount(float $amount): self
{
$this->amount = $amount;
return $this;
}
public function getConsumerWebService(): ?consumerWebService
{
return $this->consumerWebService;
}
public function setConsumerWebService(?consumerWebService $consumerWebService): self
{
$this->consumerWebService = $consumerWebService;
return $this;
}
}