From 76cb8dae7c2866264199df5a4df477230b66ab5f Mon Sep 17 00:00:00 2001 From: Tom Kay Date: Wed, 22 Nov 2023 11:10:21 +0000 Subject: [PATCH] update --- .../Model/ChtypeInitialTransactionData.php | 29 ++++++++++++++++++- generated/Model/ChtypeTransactionDetail.php | 29 ++++++++++++++++++- ...ChtypeInitialTransactionDataNormalizer.php | 6 ++++ .../ChtypeTransactionDetailNormalizer.php | 6 ++++ 4 files changed, 68 insertions(+), 2 deletions(-) diff --git a/generated/Model/ChtypeInitialTransactionData.php b/generated/Model/ChtypeInitialTransactionData.php index 4a28ea8..cc76acf 100644 --- a/generated/Model/ChtypeInitialTransactionData.php +++ b/generated/Model/ChtypeInitialTransactionData.php @@ -28,6 +28,12 @@ class ChtypeInitialTransactionData implements \JsonSerializable * @var string */ protected $networkId; + /** + * + * + * @var string + */ + protected $transactionType = 'TRANSACTION_TYPE_INVALID'; /** * * @@ -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]; } } \ No newline at end of file diff --git a/generated/Model/ChtypeTransactionDetail.php b/generated/Model/ChtypeTransactionDetail.php index eecdf08..47eee68 100644 --- a/generated/Model/ChtypeTransactionDetail.php +++ b/generated/Model/ChtypeTransactionDetail.php @@ -136,6 +136,12 @@ class ChtypeTransactionDetail implements \JsonSerializable * @var string */ protected $pspTransactionId; + /** + * + * + * @var string + */ + protected $pspRequestId; /** * * @@ -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]; } } \ No newline at end of file diff --git a/generated/Normalizer/ChtypeInitialTransactionDataNormalizer.php b/generated/Normalizer/ChtypeInitialTransactionDataNormalizer.php index b5cd147..7776e1d 100644 --- a/generated/Normalizer/ChtypeInitialTransactionDataNormalizer.php +++ b/generated/Normalizer/ChtypeInitialTransactionDataNormalizer.php @@ -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()) @@ -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; } } \ No newline at end of file diff --git a/generated/Normalizer/ChtypeTransactionDetailNormalizer.php b/generated/Normalizer/ChtypeTransactionDetailNormalizer.php index eecc73c..0a8533f 100644 --- a/generated/Normalizer/ChtypeTransactionDetailNormalizer.php +++ b/generated/Normalizer/ChtypeTransactionDetailNormalizer.php @@ -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()) @@ -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; } } \ No newline at end of file