<?php
namespace App\Entity;
use App\Repository\TpvResultRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Blameable\Traits\BlameableEntity;
use Gedmo\Timestampable\Traits\TimestampableEntity;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: TpvResultRepository::class)]
class TpvResult
{
use BlameableEntity; //Hook blameable behaviour. Updates createdBy, updatedBy fields
use TimestampableEntity; //Hook timestampable behaviour. Updates createdAt, updatedAt fields
#[ORM\Id]
#[ORM\GeneratedValue(strategy: "IDENTITY")]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsMerchantCode = null;
#[ORM\Column(length: 255)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsTerminal = null;
#[ORM\Column(length: 255)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsOrder = null;
#[ORM\Column()]
#[Assert\NotNull()]
#[Assert\Positive()]
private ?float $dsAmount = null;
#[ORM\Column(length: 255)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsCurrency = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsAuthorisationCode = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsTransactionType = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsSecurePayment = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsLanguage = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsMerchantData = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsResponse = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsMerchantIdentifier = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsCardNumber = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotNull()]
#[Assert\Length(max: 255)]
private ?string $dsExpiryDate = null;
#[ORM\Column(nullable: true)]
private ?int $dsBrand = null;
public function getId(): ?int
{
return $this->id;
}
public function getDsMerchantCode(): ?string
{
return $this->dsMerchantCode;
}
public function setDsMerchantCode(string $dsMerchantCode): self
{
$this->dsMerchantCode = $dsMerchantCode;
return $this;
}
public function getDsTerminal(): ?string
{
return $this->dsTerminal;
}
public function setDsTerminal(string $dsTerminal): self
{
$this->dsTerminal = $dsTerminal;
return $this;
}
public function getDsOrder(): ?string
{
return $this->dsOrder;
}
public function setDsOrder(string $dsOrder): self
{
$this->dsOrder = $dsOrder;
return $this;
}
public function getDsAmount(): ?float
{
return $this->dsAmount;
}
public function setDsAmount(float $dsAmount): self
{
$this->dsAmount = $dsAmount;
return $this;
}
public function getDsCurrency(): ?string
{
return $this->dsCurrency;
}
public function setDsCurrency(string $dsCurrency): self
{
$this->dsCurrency = $dsCurrency;
return $this;
}
public function getDsAuthorisationCode(): ?string
{
return $this->dsAuthorisationCode;
}
public function setDsAuthorisationCode(?string $dsAuthorisationCode): self
{
$this->dsAuthorisationCode = $dsAuthorisationCode;
return $this;
}
public function getDsTransactionType(): ?string
{
return $this->dsTransactionType;
}
public function setDsTransactionType(?string $dsTransactionType): self
{
$this->dsTransactionType = $dsTransactionType;
return $this;
}
public function getDsSecurePayment(): ?string
{
return $this->dsSecurePayment;
}
public function setDsSecurePayment(?string $dsSecurePayment): self
{
$this->dsSecurePayment = $dsSecurePayment;
return $this;
}
public function getDsLanguage(): ?string
{
return $this->dsLanguage;
}
public function setDsLanguage(?string $dsLanguage): self
{
$this->dsLanguage = $dsLanguage;
return $this;
}
public function getDsMerchantData(): ?string
{
return $this->dsMerchantData;
}
public function setDsMerchantData(?string $dsMerchantData): self
{
$this->dsMerchantData = $dsMerchantData;
return $this;
}
public function getDsResponse(): ?string
{
return $this->dsResponse;
}
public function setDsResponse(?string $dsResponse): self
{
$this->dsResponse = $dsResponse;
return $this;
}
public function getDsMerchantIdentifier(): ?string
{
return $this->dsMerchantIdentifier;
}
public function setDsMerchantIdentifier(?string $dsMerchantIdentifier): self
{
$this->dsMerchantIdentifier = $dsMerchantIdentifier;
return $this;
}
public function getDsCardNumber(): ?string
{
return $this->dsCardNumber;
}
public function setDsCardNumber(?string $dsCardNumber): self
{
$this->dsCardNumber = $dsCardNumber;
return $this;
}
public function getDsExpiryDate(): ?string
{
return $this->dsExpiryDate;
}
public function setDsExpiryDate(?string $dsExpiryDate): self
{
$this->dsExpiryDate = $dsExpiryDate;
return $this;
}
public function getDsBrand(): ?string
{
return $this->dsBrand;
}
public function setDsBrand(?string $dsBrand): self
{
$this->dsBrand = $dsBrand;
return $this;
}
}