Skip to content

Commit fe5099a

Browse files
authored
update to latest version (#13)
1 parent 665f723 commit fe5099a

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

generated/Model/ChargehiveMethodVerifyRequest.php

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

generated/Normalizer/ChargehiveMethodVerifyRequestNormalizer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
4343
if (property_exists($data, 'billing_profile_id')) {
4444
$object->setBillingProfileId($data->{'billing_profile_id'});
4545
}
46+
if (property_exists($data, 'account_holder')) {
47+
$object->setAccountHolder($data->{'account_holder'});
48+
}
4649
return $object;
4750
}
4851
public function normalize($object, $format = null, array $context = array())
@@ -63,6 +66,9 @@ public function normalize($object, $format = null, array $context = array())
6366
if (null !== $object->getBillingProfileId()) {
6467
$data->{'billing_profile_id'} = $object->getBillingProfileId();
6568
}
69+
if (null !== $object->getAccountHolder()) {
70+
$data->{'account_holder'} = $object->getAccountHolder();
71+
}
6672
return $data;
6773
}
6874
}

0 commit comments

Comments
 (0)