Skip to content

Commit 665f723

Browse files
committed
update from api
1 parent 133729e commit 665f723

File tree

4 files changed

+68
-2
lines changed

4 files changed

+68
-2
lines changed

generated/Model/ChargehiveChargeModifyRequest.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class ChargehiveChargeModifyRequest implements \JsonSerializable
4646
* @var ChargehivechtypeLabel[]
4747
*/
4848
protected $labels;
49+
/**
50+
*
51+
*
52+
* @var string
53+
*/
54+
protected $billingProfileId;
4955
/**
5056
*
5157
*
@@ -193,8 +199,29 @@ public function setLabels(array $labels)
193199
$this->labels = $labels;
194200
return $this;
195201
}
202+
/**
203+
*
204+
*
205+
* @return string
206+
*/
207+
public function getBillingProfileId()
208+
{
209+
return $this->billingProfileId;
210+
}
211+
/**
212+
*
213+
*
214+
* @param string $billingProfileId
215+
*
216+
* @return self
217+
*/
218+
public function setBillingProfileId(string $billingProfileId)
219+
{
220+
$this->billingProfileId = $billingProfileId;
221+
return $this;
222+
}
196223
public function jsonSerialize()
197224
{
198-
return ['chargeId' => $this->chargeId, 'amount' => $this->amount, 'paymentMethodIds' => $this->paymentMethodIds, 'expiryTime' => $this->expiryTime, 'chargeMeta' => $this->chargeMeta, 'chargeMetaType' => $this->chargeMetaType, 'labels' => $this->labels];
225+
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];
199226
}
200227
}

generated/Model/ChtypePaymentMethodSchemaCard.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class ChtypePaymentMethodSchemaCard implements \JsonSerializable
4646
* @var string
4747
*/
4848
protected $number;
49+
/**
50+
*
51+
*
52+
* @var string
53+
*/
54+
protected $scheme;
4955
/**
5056
*
5157
*
@@ -193,8 +199,29 @@ public function setNumber(string $number)
193199
$this->number = $number;
194200
return $this;
195201
}
202+
/**
203+
*
204+
*
205+
* @return string
206+
*/
207+
public function getScheme()
208+
{
209+
return $this->scheme;
210+
}
211+
/**
212+
*
213+
*
214+
* @param string $scheme
215+
*
216+
* @return self
217+
*/
218+
public function setScheme(string $scheme)
219+
{
220+
$this->scheme = $scheme;
221+
return $this;
222+
}
196223
public function jsonSerialize()
197224
{
198-
return ['nameOnCard' => $this->nameOnCard, 'validFromMonth' => $this->validFromMonth, 'validFromYear' => $this->validFromYear, 'expiryMonth' => $this->expiryMonth, 'expiryYear' => $this->expiryYear, 'issueNumber' => $this->issueNumber, 'number' => $this->number];
225+
return ['nameOnCard' => $this->nameOnCard, 'validFromMonth' => $this->validFromMonth, 'validFromYear' => $this->validFromYear, 'expiryMonth' => $this->expiryMonth, 'expiryYear' => $this->expiryYear, 'issueNumber' => $this->issueNumber, 'number' => $this->number, 'scheme' => $this->scheme];
199226
}
200227
}

generated/Normalizer/ChargehiveChargeModifyRequestNormalizer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
5757
}
5858
$object->setLabels($values_1);
5959
}
60+
if (property_exists($data, 'billing_profile_id')) {
61+
$object->setBillingProfileId($data->{'billing_profile_id'});
62+
}
6063
return $object;
6164
}
6265
public function normalize($object, $format = null, array $context = array())
@@ -91,6 +94,9 @@ public function normalize($object, $format = null, array $context = array())
9194
}
9295
$data->{'labels'} = $values_1;
9396
}
97+
if (null !== $object->getBillingProfileId()) {
98+
$data->{'billing_profile_id'} = $object->getBillingProfileId();
99+
}
94100
return $data;
95101
}
96102
}

generated/Normalizer/ChtypePaymentMethodSchemaCardNormalizer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ public function denormalize($data, $class, $format = null, array $context = arra
4949
if (property_exists($data, 'number')) {
5050
$object->setNumber($data->{'number'});
5151
}
52+
if (property_exists($data, 'scheme')) {
53+
$object->setScheme($data->{'scheme'});
54+
}
5255
return $object;
5356
}
5457
public function normalize($object, $format = null, array $context = array())
@@ -75,6 +78,9 @@ public function normalize($object, $format = null, array $context = array())
7578
if (null !== $object->getNumber()) {
7679
$data->{'number'} = $object->getNumber();
7780
}
81+
if (null !== $object->getScheme()) {
82+
$data->{'scheme'} = $object->getScheme();
83+
}
7884
return $data;
7985
}
8086
}

0 commit comments

Comments
 (0)