Skip to content

Commit 866397e

Browse files
committed
update
1 parent aad7441 commit 866397e

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

generated/Model/ChargehiveChargeModifyRequest.php

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ class ChargehiveChargeModifyRequest implements \JsonSerializable
7070
* @var string
7171
*/
7272
protected $chargeTimezone;
73+
/**
74+
*
75+
*
76+
* @var string
77+
*/
78+
protected $contractType = 'CONTRACT_TYPE_INVALID';
79+
/**
80+
*
81+
*
82+
* @var string
83+
*/
84+
protected $environment = 'CHARGE_ENVIRONMENT_INVALID';
7385
/**
7486
*
7587
*
@@ -301,8 +313,50 @@ public function setChargeTimezone(string $chargeTimezone)
301313
$this->chargeTimezone = $chargeTimezone;
302314
return $this;
303315
}
316+
/**
317+
*
318+
*
319+
* @return string
320+
*/
321+
public function getContractType()
322+
{
323+
return $this->contractType;
324+
}
325+
/**
326+
*
327+
*
328+
* @param string $contractType
329+
*
330+
* @return self
331+
*/
332+
public function setContractType(string $contractType)
333+
{
334+
$this->contractType = $contractType;
335+
return $this;
336+
}
337+
/**
338+
*
339+
*
340+
* @return string
341+
*/
342+
public function getEnvironment()
343+
{
344+
return $this->environment;
345+
}
346+
/**
347+
*
348+
*
349+
* @param string $environment
350+
*
351+
* @return self
352+
*/
353+
public function setEnvironment(string $environment)
354+
{
355+
$this->environment = $environment;
356+
return $this;
357+
}
304358
public function jsonSerialize()
305359
{
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];
360+
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, 'contractType' => $this->contractType, 'environment' => $this->environment];
307361
}
308362
}

generated/Normalizer/ChargehiveChargeModifyRequestNormalizer.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ public function denormalize($data, $class, $format = null, array $context = arra
7373
if (property_exists($data, 'charge_timezone')) {
7474
$object->setChargeTimezone($data->{'charge_timezone'});
7575
}
76+
if (property_exists($data, 'contract_type')) {
77+
$object->setContractType($data->{'contract_type'});
78+
}
79+
if (property_exists($data, 'environment')) {
80+
$object->setEnvironment($data->{'environment'});
81+
}
7682
return $object;
7783
}
7884
public function normalize($object, $format = null, array $context = array())
@@ -123,6 +129,12 @@ public function normalize($object, $format = null, array $context = array())
123129
if (null !== $object->getChargeTimezone()) {
124130
$data->{'charge_timezone'} = $object->getChargeTimezone();
125131
}
132+
if (null !== $object->getContractType()) {
133+
$data->{'contract_type'} = $object->getContractType();
134+
}
135+
if (null !== $object->getEnvironment()) {
136+
$data->{'environment'} = $object->getEnvironment();
137+
}
126138
return $data;
127139
}
128140
}

0 commit comments

Comments
 (0)