File tree Expand file tree Collapse file tree 5 files changed +50
-0
lines changed
Expand file tree Collapse file tree 5 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ class WalletData extends PaymentData {
2121 protected $ walletOwnerFirstName ;
2222 /** @var string */
2323 protected $ walletOwnerLastName ;
24+ /** @var string */
25+ protected $ walletOwnerCountryCode ;
2426
2527 /**
2628 * @return string
@@ -111,4 +113,20 @@ public function setWalletOwnerLastName($walletOwnerLastName)
111113 $ this ->walletOwnerLastName = $ walletOwnerLastName ;
112114 }
113115
116+ /**
117+ * @return string
118+ */
119+ public function getWalletOwnerCountryCode ()
120+ {
121+ return $ this ->walletOwnerCountryCode ;
122+ }
123+
124+ /**
125+ * @param string $walletOwnerCountryCode
126+ */
127+ public function setWalletOwnerCountryCode ($ walletOwnerCountryCode )
128+ {
129+ $ this ->walletOwnerCountryCode = $ walletOwnerCountryCode ;
130+ }
131+
114132}
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ class WalletData extends ResultData {
3535 */
3636 protected $ walletOwnerLastName ;
3737
38+ /**
39+ * @var string
40+ */
41+ protected $ walletOwnerCountryCode ;
42+
3843 /**
3944 * @return string
4045 */
@@ -113,6 +118,21 @@ public function setWalletOwnerLastName($walletOwnerLastName)
113118 $ this ->walletOwnerLastName = $ walletOwnerLastName ;
114119 }
115120
121+ /**
122+ * @return string
123+ */
124+ public function getWalletOwnerCountryCode ()
125+ {
126+ return $ this ->walletOwnerCountryCode ;
127+ }
128+
129+ /**
130+ * @param string $walletOwnerCountryCode
131+ */
132+ public function setWalletOwnerCountryCode ($ walletOwnerCountryCode )
133+ {
134+ $ this ->walletOwnerCountryCode = $ walletOwnerCountryCode ;
135+ }
116136
117137 /**
118138 * @return array
@@ -132,6 +152,10 @@ public function toArray() {
132152 $ result ['walletOwnerLastName ' ] = $ this ->walletOwnerLastName ;
133153 }
134154
155+ if (!empty ($ this ->walletOwnerCountryCode )) {
156+ $ result ['walletOwnerCountryCode ' ] = $ this ->walletOwnerCountryCode ;
157+ }
158+
135159 return $ result ;
136160 }
137161
Original file line number Diff line number Diff line change @@ -513,6 +513,10 @@ protected function createPaymentData($paymentData){
513513 if (!empty ($ paymentData ->getWalletOwnerLastName ())) {
514514 $ data ['walletData ' ]['walletOwnerLastName ' ] = $ paymentData ->getWalletOwnerLastName ();
515515 }
516+
517+ if (!empty ($ paymentData ->getWalletOwnerCountryCode ())) {
518+ $ data ['walletData ' ]['walletOwnerCountryCode ' ] = $ paymentData ->getWalletOwnerCountryCode ();
519+ }
516520 }
517521
518522 return $ data ;
Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ protected function parseReturnData($returnData) {
354354 $ walletData ->setWalletType ($ this ->arrGet ($ returnData , 'walletType ' ));
355355 $ walletData ->setWalletOwnerFirstName ($ this ->arrGet ($ returnData , 'walletOwnerFirstName ' ));
356356 $ walletData ->setWalletOwnerLastName ($ this ->arrGet ($ returnData , 'walletOwnerLastName ' ));
357+ $ walletData ->setWalletOwnerCountryCode ($ this ->arrGet ($ returnData , 'walletOwnerCountryCode ' ));
357358
358359 return $ walletData ;
359360
Original file line number Diff line number Diff line change @@ -576,6 +576,9 @@ protected function parseReturnData(\DOMNode $node) {
576576 case 'walletOwnerLastName ' :
577577 $ walletData ->setWalletOwnerLastName ($ child ->nodeValue );
578578 break ;
579+ case 'walletOwnerCountryCode ' :
580+ $ walletData ->setWalletOwnerCountryCode ($ child ->nodeValue );
581+ break ;
579582 default :
580583 break ;
581584 }
You can’t perform that action at this time.
0 commit comments