Skip to content

Commit 133729e

Browse files
committed
update
1 parent 1f25fb6 commit 133729e

File tree

4 files changed

+76
-2
lines changed

4 files changed

+76
-2
lines changed

generated/Model/ChargehiveChargeCreateRequest.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ class ChargehiveChargeCreateRequest implements \JsonSerializable
5858
* @var ChtypeInitialTransactionData[]
5959
*/
6060
protected $initialTransactions;
61+
/**
62+
*
63+
*
64+
* @var string
65+
*/
66+
protected $billingProfileId;
6167
/**
6268
*
6369
*
@@ -247,8 +253,29 @@ public function setInitialTransactions(array $initialTransactions)
247253
$this->initialTransactions = $initialTransactions;
248254
return $this;
249255
}
256+
/**
257+
*
258+
*
259+
* @return string
260+
*/
261+
public function getBillingProfileId()
262+
{
263+
return $this->billingProfileId;
264+
}
265+
/**
266+
*
267+
*
268+
* @param string $billingProfileId
269+
*
270+
* @return self
271+
*/
272+
public function setBillingProfileId(string $billingProfileId)
273+
{
274+
$this->billingProfileId = $billingProfileId;
275+
return $this;
276+
}
250277
public function jsonSerialize()
251278
{
252-
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];
279+
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];
253280
}
254281
}

generated/Model/ChtypeVerifyRequestData.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ class ChtypeVerifyRequestData implements \JsonSerializable
3434
* @var bool
3535
*/
3636
protected $required;
37+
/**
38+
*
39+
*
40+
* @var string[]
41+
*/
42+
protected $methodData;
3743
/**
3844
*
3945
*
@@ -139,8 +145,29 @@ public function setRequired(bool $required)
139145
$this->required = $required;
140146
return $this;
141147
}
148+
/**
149+
*
150+
*
151+
* @return string[]
152+
*/
153+
public function getMethodData()
154+
{
155+
return $this->methodData;
156+
}
157+
/**
158+
*
159+
*
160+
* @param string[] $methodData
161+
*
162+
* @return self
163+
*/
164+
public function setMethodData(\ArrayObject $methodData)
165+
{
166+
$this->methodData = $methodData;
167+
return $this;
168+
}
142169
public function jsonSerialize()
143170
{
144-
return ['type' => $this->type, 'data' => $this->data, 'connectorLibrary' => $this->connectorLibrary, 'environment' => $this->environment, 'required' => $this->required];
171+
return ['type' => $this->type, 'data' => $this->data, 'connectorLibrary' => $this->connectorLibrary, 'environment' => $this->environment, 'required' => $this->required, 'methodData' => $this->methodData];
145172
}
146173
}

generated/Normalizer/ChargehiveChargeCreateRequestNormalizer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
6767
}
6868
$object->setInitialTransactions($values_2);
6969
}
70+
if (property_exists($data, 'billing_profile_id')) {
71+
$object->setBillingProfileId($data->{'billing_profile_id'});
72+
}
7073
return $object;
7174
}
7275
public function normalize($object, $format = null, array $context = array())
@@ -111,6 +114,9 @@ public function normalize($object, $format = null, array $context = array())
111114
}
112115
$data->{'initial_transactions'} = $values_2;
113116
}
117+
if (null !== $object->getBillingProfileId()) {
118+
$data->{'billing_profile_id'} = $object->getBillingProfileId();
119+
}
114120
return $data;
115121
}
116122
}

generated/Normalizer/ChtypeVerifyRequestDataNormalizer.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ public function denormalize($data, $class, $format = null, array $context = arra
4747
if (property_exists($data, 'required')) {
4848
$object->setRequired($data->{'required'});
4949
}
50+
if (property_exists($data, 'methodData')) {
51+
$values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS);
52+
foreach ($data->{'methodData'} as $key_1 => $value_1) {
53+
$values_1[$key_1] = $value_1;
54+
}
55+
$object->setMethodData($values_1);
56+
}
5057
return $object;
5158
}
5259
public function normalize($object, $format = null, array $context = array())
@@ -71,6 +78,13 @@ public function normalize($object, $format = null, array $context = array())
7178
if (null !== $object->getRequired()) {
7279
$data->{'required'} = $object->getRequired();
7380
}
81+
if (null !== $object->getMethodData()) {
82+
$values_1 = new \stdClass();
83+
foreach ($object->getMethodData() as $key_1 => $value_1) {
84+
$values_1->{$key_1} = $value_1;
85+
}
86+
$data->{'methodData'} = $values_1;
87+
}
7488
return $data;
7589
}
7690
}

0 commit comments

Comments
 (0)