Skip to content

Commit eab6317

Browse files
authored
update sdk to support schedulerOnDemand endpoint (#17)
1 parent 13dc5a2 commit eab6317

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

generated/Model/ChargehiveSchedulerOnDemandRequest.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ class ChargehiveSchedulerOnDemandRequest implements \JsonSerializable
1010
* @var string
1111
*/
1212
protected $schedulerId;
13+
/**
14+
*
15+
*
16+
* @var string
17+
*/
18+
protected $chargeId;
1319
/**
1420
*
1521
*
@@ -31,8 +37,29 @@ public function setSchedulerId(string $schedulerId)
3137
$this->schedulerId = $schedulerId;
3238
return $this;
3339
}
40+
/**
41+
*
42+
*
43+
* @return string
44+
*/
45+
public function getChargeId()
46+
{
47+
return $this->chargeId;
48+
}
49+
/**
50+
*
51+
*
52+
* @param string $chargeId
53+
*
54+
* @return self
55+
*/
56+
public function setChargeId(string $chargeId)
57+
{
58+
$this->chargeId = $chargeId;
59+
return $this;
60+
}
3461
public function jsonSerialize()
3562
{
36-
return ['schedulerId' => $this->schedulerId];
63+
return ['schedulerId' => $this->schedulerId, 'chargeId' => $this->chargeId];
3764
}
3865
}

generated/Normalizer/ChargehiveSchedulerOnDemandRequestNormalizer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
3131
if (property_exists($data, 'scheduler_id')) {
3232
$object->setSchedulerId($data->{'scheduler_id'});
3333
}
34+
if (property_exists($data, 'charge_id')) {
35+
$object->setChargeId($data->{'charge_id'});
36+
}
3437
return $object;
3538
}
3639
public function normalize($object, $format = null, array $context = array())
@@ -39,6 +42,9 @@ public function normalize($object, $format = null, array $context = array())
3942
if (null !== $object->getSchedulerId()) {
4043
$data->{'scheduler_id'} = $object->getSchedulerId();
4144
}
45+
if (null !== $object->getChargeId()) {
46+
$data->{'charge_id'} = $object->getChargeId();
47+
}
4248
return $data;
4349
}
4450
}

0 commit comments

Comments
 (0)