Skip to content

Commit 15c0da2

Browse files
committed
update
1 parent d7ce7e9 commit 15c0da2

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

generated/Model/ChargehiveChargeModifyRequest.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ class ChargehiveChargeModifyRequest implements \JsonSerializable
6464
* @var bool
6565
*/
6666
protected $reactivate;
67+
/**
68+
*
69+
*
70+
* @var string
71+
*/
72+
protected $chargeTimezone;
6773
/**
6874
*
6975
*
@@ -274,8 +280,29 @@ public function setReactivate(bool $reactivate)
274280
$this->reactivate = $reactivate;
275281
return $this;
276282
}
283+
/**
284+
*
285+
*
286+
* @return string
287+
*/
288+
public function getChargeTimezone()
289+
{
290+
return $this->chargeTimezone;
291+
}
292+
/**
293+
*
294+
*
295+
* @param string $chargeTimezone
296+
*
297+
* @return self
298+
*/
299+
public function setChargeTimezone(string $chargeTimezone)
300+
{
301+
$this->chargeTimezone = $chargeTimezone;
302+
return $this;
303+
}
277304
public function jsonSerialize()
278305
{
279-
return ['chargeId' => $this->chargeId, 'amount' => $this->amount, 'paymentMethodIds' => $this->paymentMethodIds, 'expiryTime' => $this->expiryTime, 'chargeMeta' => $this->chargeMeta, 'chargeMetaType' => $this->chargeMetaType, 'labels' => $this->labels, 'billingProfileId' => $this->billingProfileId, 'initialTransaction' => $this->initialTransaction, 'reactivate' => $this->reactivate];
306+
return ['chargeId' => $this->chargeId, 'amount' => $this->amount, 'paymentMethodIds' => $this->paymentMethodIds, 'expiryTime' => $this->expiryTime, 'chargeMeta' => $this->chargeMeta, 'chargeMetaType' => $this->chargeMetaType, 'labels' => $this->labels, 'billingProfileId' => $this->billingProfileId, 'initialTransaction' => $this->initialTransaction, 'reactivate' => $this->reactivate, 'chargeTimezone' => $this->chargeTimezone];
280307
}
281308
}

generated/Normalizer/ChargehiveChargeModifyRequestNormalizer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
7070
if (property_exists($data, 'reactivate')) {
7171
$object->setReactivate($data->{'reactivate'});
7272
}
73+
if (property_exists($data, 'charge_timezone')) {
74+
$object->setChargeTimezone($data->{'charge_timezone'});
75+
}
7376
return $object;
7477
}
7578
public function normalize($object, $format = null, array $context = array())
@@ -117,6 +120,9 @@ public function normalize($object, $format = null, array $context = array())
117120
if (null !== $object->getReactivate()) {
118121
$data->{'reactivate'} = $object->getReactivate();
119122
}
123+
if (null !== $object->getChargeTimezone()) {
124+
$data->{'charge_timezone'} = $object->getChargeTimezone();
125+
}
120126
return $data;
121127
}
122128
}

0 commit comments

Comments
 (0)