Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Nov 22, 2023
1 parent eab6317 commit 76cb8da
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 2 deletions.
29 changes: 28 additions & 1 deletion generated/Model/ChtypeInitialTransactionData.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ class ChtypeInitialTransactionData implements \JsonSerializable
* @var string
*/
protected $networkId;
/**
*
*
* @var string
*/
protected $transactionType = 'TRANSACTION_TYPE_INVALID';
/**
*
*
Expand Down Expand Up @@ -112,8 +118,29 @@ public function setNetworkId(string $networkId)
$this->networkId = $networkId;
return $this;
}
/**
*
*
* @return string
*/
public function getTransactionType()
{
return $this->transactionType;
}
/**
*
*
* @param string $transactionType
*
* @return self
*/
public function setTransactionType(string $transactionType)
{
$this->transactionType = $transactionType;
return $this;
}
public function jsonSerialize()
{
return ['chargeId' => $this->chargeId, 'transactionId' => $this->transactionId, 'connectorId' => $this->connectorId, 'networkId' => $this->networkId];
return ['chargeId' => $this->chargeId, 'transactionId' => $this->transactionId, 'connectorId' => $this->connectorId, 'networkId' => $this->networkId, 'transactionType' => $this->transactionType];
}
}
29 changes: 28 additions & 1 deletion generated/Model/ChtypeTransactionDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ class ChtypeTransactionDetail implements \JsonSerializable
* @var string
*/
protected $pspTransactionId;
/**
*
*
* @var string
*/
protected $pspRequestId;
/**
*
*
Expand Down Expand Up @@ -598,8 +604,29 @@ public function setPspTransactionId(string $pspTransactionId)
$this->pspTransactionId = $pspTransactionId;
return $this;
}
/**
*
*
* @return string
*/
public function getPspRequestId()
{
return $this->pspRequestId;
}
/**
*
*
* @param string $pspRequestId
*
* @return self
*/
public function setPspRequestId(string $pspRequestId)
{
$this->pspRequestId = $pspRequestId;
return $this;
}
public function jsonSerialize()
{
return ['actorId' => $this->actorId, 'actorVersion' => $this->actorVersion, 'actorType' => $this->actorType, 'transactionId' => $this->transactionId, 'requestedAmount' => $this->requestedAmount, 'processedAmount' => $this->processedAmount, 'feeEstimate' => $this->feeEstimate, 'feeActual' => $this->feeActual, 'startTime' => $this->startTime, 'endTime' => $this->endTime, 'wasSuccessful' => $this->wasSuccessful, 'environment' => $this->environment, 'response' => $this->response, 'verificationResult' => $this->verificationResult, 'additionalData' => $this->additionalData, 'authorizationCode' => $this->authorizationCode, 'liability' => $this->liability, 'connectorLibrary' => $this->connectorLibrary, 'connectorId' => $this->connectorId, 'primary' => $this->primary, 'networkId' => $this->networkId, 'pspTransactionId' => $this->pspTransactionId];
return ['actorId' => $this->actorId, 'actorVersion' => $this->actorVersion, 'actorType' => $this->actorType, 'transactionId' => $this->transactionId, 'requestedAmount' => $this->requestedAmount, 'processedAmount' => $this->processedAmount, 'feeEstimate' => $this->feeEstimate, 'feeActual' => $this->feeActual, 'startTime' => $this->startTime, 'endTime' => $this->endTime, 'wasSuccessful' => $this->wasSuccessful, 'environment' => $this->environment, 'response' => $this->response, 'verificationResult' => $this->verificationResult, 'additionalData' => $this->additionalData, 'authorizationCode' => $this->authorizationCode, 'liability' => $this->liability, 'connectorLibrary' => $this->connectorLibrary, 'connectorId' => $this->connectorId, 'primary' => $this->primary, 'networkId' => $this->networkId, 'pspTransactionId' => $this->pspTransactionId, 'pspRequestId' => $this->pspRequestId];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
if (property_exists($data, 'network_id')) {
$object->setNetworkId($data->{'network_id'});
}
if (property_exists($data, 'transaction_type')) {
$object->setTransactionType($data->{'transaction_type'});
}
return $object;
}
public function normalize($object, $format = null, array $context = array())
Expand All @@ -57,6 +60,9 @@ public function normalize($object, $format = null, array $context = array())
if (null !== $object->getNetworkId()) {
$data->{'network_id'} = $object->getNetworkId();
}
if (null !== $object->getTransactionType()) {
$data->{'transaction_type'} = $object->getTransactionType();
}
return $data;
}
}
6 changes: 6 additions & 0 deletions generated/Normalizer/ChtypeTransactionDetailNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
if (property_exists($data, 'psp_transaction_id')) {
$object->setPspTransactionId($data->{'psp_transaction_id'});
}
if (property_exists($data, 'psp_request_id')) {
$object->setPspRequestId($data->{'psp_request_id'});
}
return $object;
}
public function normalize($object, $format = null, array $context = array())
Expand Down Expand Up @@ -173,6 +176,9 @@ public function normalize($object, $format = null, array $context = array())
if (null !== $object->getPspTransactionId()) {
$data->{'psp_transaction_id'} = $object->getPspTransactionId();
}
if (null !== $object->getPspRequestId()) {
$data->{'psp_request_id'} = $object->getPspRequestId();
}
return $data;
}
}

0 comments on commit 76cb8da

Please sign in to comment.