Skip to content

Commit d5933ea

Browse files
committed
Updated Auto Generated Code
1 parent e3fc05c commit d5933ea

File tree

5 files changed

+77
-5
lines changed

5 files changed

+77
-5
lines changed

src/Payloads/CardDataPayload.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
class CardDataPayload
66
implements \JsonSerializable
77
{
8+
/**
9+
* Visible Display Name
10+
*/
11+
protected $_cardDisplayName;
812
/**
913
* Card number encrypted using your public key
1014
*/
@@ -85,6 +89,10 @@ class CardDataPayload
8589
public function hydrate($data)
8690
{
8791
$data = (array)$data;
92+
if(isset($data["cardDisplayName"]))
93+
{
94+
$this->_cardDisplayName = $data["cardDisplayName"];
95+
}
8896
if(isset($data["encryptedCardNumber"]))
8997
{
9098
$this->_encryptedCardNumber = $data["encryptedCardNumber"];
@@ -167,6 +175,7 @@ public function hydrate($data)
167175
public function jsonSerialize()
168176
{
169177
return [
178+
"cardDisplayName" => $this->_cardDisplayName,
170179
"encryptedCardNumber" => $this->_encryptedCardNumber,
171180
"startMonth" => $this->_startMonth,
172181
"startYear" => $this->_startYear,
@@ -189,6 +198,31 @@ public function jsonSerialize()
189198
];
190199
}
191200

201+
/**
202+
* @param string $value
203+
*
204+
* @return $this
205+
*/
206+
public function setCardDisplayName($value)
207+
{
208+
$this->_cardDisplayName = $value;
209+
return $this;
210+
}
211+
212+
/**
213+
* Visible Display Name
214+
*
215+
* @param mixed $default
216+
* @param bool $trim Trim Value
217+
*
218+
* @return string
219+
*/
220+
public function getCardDisplayName($default = null, $trim = true)
221+
{
222+
$value = $this->_cardDisplayName ?: $default;
223+
return $trim ? Strings::ntrim($value) : $value;
224+
}
225+
192226
/**
193227
* @param string $value
194228
*

src/Payloads/ConfirmOrderWithNewCardPayload.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
class ConfirmOrderWithNewCardPayload
66
implements \JsonSerializable
77
{
8+
/**
9+
* Visible Display Name
10+
*/
11+
protected $_cardDisplayName;
812
/**
913
* FID for the payment service you wish to charge the customer through
1014
*/
@@ -81,6 +85,10 @@ class ConfirmOrderWithNewCardPayload
8185
public function hydrate($data)
8286
{
8387
$data = (array)$data;
88+
if(isset($data["cardDisplayName"]))
89+
{
90+
$this->_cardDisplayName = $data["cardDisplayName"];
91+
}
8492
if(isset($data["paymentServiceFid"]))
8593
{
8694
$this->_paymentServiceFid = $data["paymentServiceFid"];
@@ -159,6 +167,7 @@ public function hydrate($data)
159167
public function jsonSerialize()
160168
{
161169
return [
170+
"cardDisplayName" => $this->_cardDisplayName,
162171
"paymentServiceFid" => $this->_paymentServiceFid,
163172
"encryptedCardNumber" => $this->_encryptedCardNumber,
164173
"startMonth" => $this->_startMonth,
@@ -180,6 +189,31 @@ public function jsonSerialize()
180189
];
181190
}
182191

192+
/**
193+
* @param string $value
194+
*
195+
* @return $this
196+
*/
197+
public function setCardDisplayName($value)
198+
{
199+
$this->_cardDisplayName = $value;
200+
return $this;
201+
}
202+
203+
/**
204+
* Visible Display Name
205+
*
206+
* @param mixed $default
207+
* @param bool $trim Trim Value
208+
*
209+
* @return string
210+
*/
211+
public function getCardDisplayName($default = null, $trim = true)
212+
{
213+
$value = $this->_cardDisplayName ?: $default;
214+
return $trim ? Strings::ntrim($value) : $value;
215+
}
216+
183217
/**
184218
* @param string $value
185219
*

src/Payloads/CreateAdvertiserCampaignPayload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CreateAdvertiserCampaignPayload
1111
*/
1212
protected $_brandFid;
1313
/**
14-
* Visiable Display Name
14+
* Visible Display Name
1515
* @required
1616
*/
1717
protected $_displayName;
@@ -75,7 +75,7 @@ public function setDisplayName($value)
7575
}
7676

7777
/**
78-
* Visiable Display Name
78+
* Visible Display Name
7979
*
8080
* @param mixed $default
8181
* @param bool $trim Trim Value

src/Payloads/CreateAdvertiserPayload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CreateAdvertiserPayload
2525
*/
2626
protected $_type;
2727
/**
28-
* Visiable Display Name
28+
* Visible Display Name
2929
*/
3030
protected $_displayName;
3131
/**
@@ -242,7 +242,7 @@ public function setDisplayName($value)
242242
}
243243

244244
/**
245-
* Visiable Display Name
245+
* Visible Display Name
246246
*
247247
* @param mixed $default
248248
* @param bool $trim Trim Value

swagger.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3466,6 +3466,8 @@ definitions:
34663466

34673467
CardDataPayload:
34683468
properties:
3469+
cardDisplayName:
3470+
$ref: '#/definitions/displayName'
34693471
encryptedCardNumber:
34703472
$ref: '#/definitions/cardEncryptedNumber'
34713473
startMonth:
@@ -3606,6 +3608,8 @@ definitions:
36063608

36073609
ConfirmOrderWithNewCardPayload:
36083610
properties:
3611+
cardDisplayName:
3612+
$ref: '#/definitions/displayName'
36093613
paymentServiceFid:
36103614
$ref: '#/definitions/paymentServiceFid'
36113615
encryptedCardNumber:
@@ -3785,7 +3789,7 @@ definitions:
37853789
description: Phone Number
37863790
type: string
37873791
displayName:
3788-
description: Visiable Display Name
3792+
description: Visible Display Name
37893793
type: string
37903794
firstName:
37913795
description: First Name

0 commit comments

Comments
 (0)