Skip to content

Commit

Permalink
make cit id nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
bozhidarampeco committed Dec 17, 2024
1 parent 8e020fc commit 7a44305
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Message/AuthorizeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ public function setPanToken(string $panToken): self
return $this->setParameter('panToken', $panToken);
}

public function getCitId(): string
public function getCitId(): ?string
{
return $this->getParameter('citId');
}

public function setCitId(string $citId): self
public function setCitId(?string $citId): self
{
return $this->setParameter('citId', $citId);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Message/CreateCardNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public function getCardReference(): string
return $this->data['pan_token'];
}

public function getCitId(): string
public function getCitId(): ?string
{
return $this->data['cit_id'];
return $this->data['cit_id'] ?? null;
}

public function getPaymentMethod(): object
Expand Down
4 changes: 2 additions & 2 deletions src/Message/PurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ public function setPanToken(string $panToken): self
return $this->setParameter('panToken', $panToken);
}

public function getCitId(): string
public function getCitId(): ?string
{
return $this->getParameter('citId');
}

public function setCitId(string $citId): self
public function setCitId(?string $citId): self
{
return $this->setParameter('citId', $citId);
}
Expand Down

0 comments on commit 7a44305

Please sign in to comment.