Skip to content

Commit 9ab2a48

Browse files
authored
regenerate (#15)
1 parent 61a9889 commit 9ab2a48

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

.jane-openapi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
return [
33
'openapi-file' => 'https://api.chargehive.com/swagger.json',
4-
//'openapi-file' => 'http://localhost:9051/swagger.json', // To use locally
4+
//'openapi-file' => 'https://api.chargehive.local-host.xyz/swagger.json', // To use locally
55
'namespace' => 'ChargeHive\\Php\\Sdk\\Generated',
66
'directory' => __DIR__ . '/generated',
77
];

generated/Model/ChargehiveChargeRefundTransaction.php

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

generated/Normalizer/ChargehiveChargeRefundTransactionNormalizer.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, 'merchant_reference')) {
4141
$object->setMerchantReference($data->{'merchant_reference'});
4242
}
43+
if (property_exists($data, 'refund_transaction_id')) {
44+
$object->setRefundTransactionId($data->{'refund_transaction_id'});
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->getMerchantReference()) {
5861
$data->{'merchant_reference'} = $object->getMerchantReference();
5962
}
63+
if (null !== $object->getRefundTransactionId()) {
64+
$data->{'refund_transaction_id'} = $object->getRefundTransactionId();
65+
}
6066
return $data;
6167
}
6268
}

0 commit comments

Comments
 (0)