Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Sep 7, 2022
1 parent 1f25fb6 commit 133729e
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 2 deletions.
29 changes: 28 additions & 1 deletion generated/Model/ChargehiveChargeCreateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ class ChargehiveChargeCreateRequest implements \JsonSerializable
* @var ChtypeInitialTransactionData[]
*/
protected $initialTransactions;
/**
*
*
* @var string
*/
protected $billingProfileId;
/**
*
*
Expand Down Expand Up @@ -247,8 +253,29 @@ public function setInitialTransactions(array $initialTransactions)
$this->initialTransactions = $initialTransactions;
return $this;
}
/**
*
*
* @return string
*/
public function getBillingProfileId()
{
return $this->billingProfileId;
}
/**
*
*
* @param string $billingProfileId
*
* @return self
*/
public function setBillingProfileId(string $billingProfileId)
{
$this->billingProfileId = $billingProfileId;
return $this;
}
public function jsonSerialize()
{
return ['merchantReference' => $this->merchantReference, 'amount' => $this->amount, 'paymentMethodIds' => $this->paymentMethodIds, 'expiryTime' => $this->expiryTime, 'contractType' => $this->contractType, 'environment' => $this->environment, 'chargeMeta' => $this->chargeMeta, 'labels' => $this->labels, 'initialTransactions' => $this->initialTransactions];
return ['merchantReference' => $this->merchantReference, 'amount' => $this->amount, 'paymentMethodIds' => $this->paymentMethodIds, 'expiryTime' => $this->expiryTime, 'contractType' => $this->contractType, 'environment' => $this->environment, 'chargeMeta' => $this->chargeMeta, 'labels' => $this->labels, 'initialTransactions' => $this->initialTransactions, 'billingProfileId' => $this->billingProfileId];
}
}
29 changes: 28 additions & 1 deletion generated/Model/ChtypeVerifyRequestData.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ class ChtypeVerifyRequestData implements \JsonSerializable
* @var bool
*/
protected $required;
/**
*
*
* @var string[]
*/
protected $methodData;
/**
*
*
Expand Down Expand Up @@ -139,8 +145,29 @@ public function setRequired(bool $required)
$this->required = $required;
return $this;
}
/**
*
*
* @return string[]
*/
public function getMethodData()
{
return $this->methodData;
}
/**
*
*
* @param string[] $methodData
*
* @return self
*/
public function setMethodData(\ArrayObject $methodData)
{
$this->methodData = $methodData;
return $this;
}
public function jsonSerialize()
{
return ['type' => $this->type, 'data' => $this->data, 'connectorLibrary' => $this->connectorLibrary, 'environment' => $this->environment, 'required' => $this->required];
return ['type' => $this->type, 'data' => $this->data, 'connectorLibrary' => $this->connectorLibrary, 'environment' => $this->environment, 'required' => $this->required, 'methodData' => $this->methodData];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
}
$object->setInitialTransactions($values_2);
}
if (property_exists($data, 'billing_profile_id')) {
$object->setBillingProfileId($data->{'billing_profile_id'});
}
return $object;
}
public function normalize($object, $format = null, array $context = array())
Expand Down Expand Up @@ -111,6 +114,9 @@ public function normalize($object, $format = null, array $context = array())
}
$data->{'initial_transactions'} = $values_2;
}
if (null !== $object->getBillingProfileId()) {
$data->{'billing_profile_id'} = $object->getBillingProfileId();
}
return $data;
}
}
14 changes: 14 additions & 0 deletions generated/Normalizer/ChtypeVerifyRequestDataNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ public function denormalize($data, $class, $format = null, array $context = arra
if (property_exists($data, 'required')) {
$object->setRequired($data->{'required'});
}
if (property_exists($data, 'methodData')) {
$values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS);
foreach ($data->{'methodData'} as $key_1 => $value_1) {
$values_1[$key_1] = $value_1;
}
$object->setMethodData($values_1);
}
return $object;
}
public function normalize($object, $format = null, array $context = array())
Expand All @@ -71,6 +78,13 @@ public function normalize($object, $format = null, array $context = array())
if (null !== $object->getRequired()) {
$data->{'required'} = $object->getRequired();
}
if (null !== $object->getMethodData()) {
$values_1 = new \stdClass();
foreach ($object->getMethodData() as $key_1 => $value_1) {
$values_1->{$key_1} = $value_1;
}
$data->{'methodData'} = $values_1;
}
return $data;
}
}

0 comments on commit 133729e

Please sign in to comment.