55class 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 *
0 commit comments