Skip to content

Commit 76cb8da

Browse files
committed
update
1 parent eab6317 commit 76cb8da

File tree

4 files changed

+68
-2
lines changed

4 files changed

+68
-2
lines changed

generated/Model/ChtypeInitialTransactionData.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ class ChtypeInitialTransactionData implements \JsonSerializable
2828
* @var string
2929
*/
3030
protected $networkId;
31+
/**
32+
*
33+
*
34+
* @var string
35+
*/
36+
protected $transactionType = 'TRANSACTION_TYPE_INVALID';
3137
/**
3238
*
3339
*
@@ -112,8 +118,29 @@ public function setNetworkId(string $networkId)
112118
$this->networkId = $networkId;
113119
return $this;
114120
}
121+
/**
122+
*
123+
*
124+
* @return string
125+
*/
126+
public function getTransactionType()
127+
{
128+
return $this->transactionType;
129+
}
130+
/**
131+
*
132+
*
133+
* @param string $transactionType
134+
*
135+
* @return self
136+
*/
137+
public function setTransactionType(string $transactionType)
138+
{
139+
$this->transactionType = $transactionType;
140+
return $this;
141+
}
115142
public function jsonSerialize()
116143
{
117-
return ['chargeId' => $this->chargeId, 'transactionId' => $this->transactionId, 'connectorId' => $this->connectorId, 'networkId' => $this->networkId];
144+
return ['chargeId' => $this->chargeId, 'transactionId' => $this->transactionId, 'connectorId' => $this->connectorId, 'networkId' => $this->networkId, 'transactionType' => $this->transactionType];
118145
}
119146
}

generated/Model/ChtypeTransactionDetail.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ class ChtypeTransactionDetail implements \JsonSerializable
136136
* @var string
137137
*/
138138
protected $pspTransactionId;
139+
/**
140+
*
141+
*
142+
* @var string
143+
*/
144+
protected $pspRequestId;
139145
/**
140146
*
141147
*
@@ -598,8 +604,29 @@ public function setPspTransactionId(string $pspTransactionId)
598604
$this->pspTransactionId = $pspTransactionId;
599605
return $this;
600606
}
607+
/**
608+
*
609+
*
610+
* @return string
611+
*/
612+
public function getPspRequestId()
613+
{
614+
return $this->pspRequestId;
615+
}
616+
/**
617+
*
618+
*
619+
* @param string $pspRequestId
620+
*
621+
* @return self
622+
*/
623+
public function setPspRequestId(string $pspRequestId)
624+
{
625+
$this->pspRequestId = $pspRequestId;
626+
return $this;
627+
}
601628
public function jsonSerialize()
602629
{
603-
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];
630+
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];
604631
}
605632
}

generated/Normalizer/ChtypeInitialTransactionDataNormalizer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
4040
if (property_exists($data, 'network_id')) {
4141
$object->setNetworkId($data->{'network_id'});
4242
}
43+
if (property_exists($data, 'transaction_type')) {
44+
$object->setTransactionType($data->{'transaction_type'});
45+
}
4346
return $object;
4447
}
4548
public function normalize($object, $format = null, array $context = array())
@@ -57,6 +60,9 @@ public function normalize($object, $format = null, array $context = array())
5760
if (null !== $object->getNetworkId()) {
5861
$data->{'network_id'} = $object->getNetworkId();
5962
}
63+
if (null !== $object->getTransactionType()) {
64+
$data->{'transaction_type'} = $object->getTransactionType();
65+
}
6066
return $data;
6167
}
6268
}

generated/Normalizer/ChtypeTransactionDetailNormalizer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
9898
if (property_exists($data, 'psp_transaction_id')) {
9999
$object->setPspTransactionId($data->{'psp_transaction_id'});
100100
}
101+
if (property_exists($data, 'psp_request_id')) {
102+
$object->setPspRequestId($data->{'psp_request_id'});
103+
}
101104
return $object;
102105
}
103106
public function normalize($object, $format = null, array $context = array())
@@ -173,6 +176,9 @@ public function normalize($object, $format = null, array $context = array())
173176
if (null !== $object->getPspTransactionId()) {
174177
$data->{'psp_transaction_id'} = $object->getPspTransactionId();
175178
}
179+
if (null !== $object->getPspRequestId()) {
180+
$data->{'psp_request_id'} = $object->getPspRequestId();
181+
}
176182
return $data;
177183
}
178184
}

0 commit comments

Comments
 (0)