3030 * GetAccountHolderResponse
3131 */
3232public class GetAccountHolderResponse {
33- @ SerializedName ("accountStatus" )
34- private AccountStatus accountStatus = null ;
35-
36- @ SerializedName ("verificationResult" )
37- private KYCVerificationResult verificationResult = null ;
33+ @ SerializedName ("verification" )
34+ private KYCVerificationResult verification = null ;
3835
3936 @ SerializedName ("submittedAsync" )
4037 private Boolean submittedAsync = null ;
4138
4239 @ SerializedName ("accountHolderCode" )
4340 private String accountHolderCode = null ;
4441
45- @ SerializedName ("virtualAccounts" )
46- private List <String > virtualAccounts = new ArrayList <String >();
47-
4842 @ SerializedName ("requirementsForNextAccountState" )
4943 private List <AccountStateRequirement > requirementsForNextAccountState = new ArrayList <AccountStateRequirement >();
5044
@@ -65,9 +59,6 @@ public class GetAccountHolderResponse {
6559 @ SerializedName ("pspReference" )
6660 private String pspReference = null ;
6761
68- @ SerializedName ("kycVerificationResults" )
69- private List <KYCVerificationResult > kycVerificationResults = new ArrayList <KYCVerificationResult >();
70-
7162 /**
7263 * account holder legal entity type (Busines / Individual)
7364 */
@@ -94,40 +85,32 @@ public String toString() {
9485 @ SerializedName ("primaryCurrency" )
9586 private String primaryCurrency = null ;
9687
97- public GetAccountHolderResponse accountStatus ( AccountStatus accountStatus ) {
98- this .accountStatus = accountStatus ;
88+ public GetAccountHolderResponse verificationResult ( KYCVerificationResult verificationResult ) {
89+ this .verification = verificationResult ;
9990 return this ;
10091 }
10192
10293 /**
103- * account holder status
94+ * verification result
10495 *
105- * @return accountStatus
96+ * @return verificationResult
97+ * @deprecated
10698 **/
107- public AccountStatus getAccountStatus () {
108- return accountStatus ;
109- }
110-
111- public void setAccountStatus (AccountStatus accountStatus ) {
112- this .accountStatus = accountStatus ;
113- }
114-
115- public GetAccountHolderResponse verificationResult (KYCVerificationResult verificationResult ) {
116- this .verificationResult = verificationResult ;
117- return this ;
99+ public KYCVerificationResult getVerificationResult () {
100+ return verification ;
118101 }
119102
120103 /**
121104 * verification result
122105 *
123- * @return verificationResult
106+ * @return verification
124107 **/
125- public KYCVerificationResult getVerificationResult () {
126- return verificationResult ;
108+ public KYCVerificationResult getVerification () {
109+ return verification ;
127110 }
128111
129- public void setVerificationResult (KYCVerificationResult verificationResult ) {
130- this .verificationResult = verificationResult ;
112+ public void setVerification (KYCVerificationResult verification ) {
113+ this .verification = verification ;
131114 }
132115
133116 public GetAccountHolderResponse submittedAsync (Boolean submittedAsync ) {
@@ -166,29 +149,6 @@ public void setAccountHolderCode(String accountHolderCode) {
166149 this .accountHolderCode = accountHolderCode ;
167150 }
168151
169- public GetAccountHolderResponse virtualAccounts (List <String > virtualAccounts ) {
170- this .virtualAccounts = virtualAccounts ;
171- return this ;
172- }
173-
174- public GetAccountHolderResponse addVirtualAccountsItem (String virtualAccountsItem ) {
175- this .virtualAccounts .add (virtualAccountsItem );
176- return this ;
177- }
178-
179- /**
180- * account holder's accounts
181- *
182- * @return virtualAccounts
183- **/
184- public List <String > getVirtualAccounts () {
185- return virtualAccounts ;
186- }
187-
188- public void setVirtualAccounts (List <String > virtualAccounts ) {
189- this .virtualAccounts = virtualAccounts ;
190- }
191-
192152 public GetAccountHolderResponse requirementsForNextAccountState (List <AccountStateRequirement > requirementsForNextAccountState ) {
193153 this .requirementsForNextAccountState = requirementsForNextAccountState ;
194154 return this ;
@@ -334,29 +294,6 @@ public void setPspReference(String pspReference) {
334294 this .pspReference = pspReference ;
335295 }
336296
337- public GetAccountHolderResponse kycVerificationResults (List <KYCVerificationResult > kycVerificationResults ) {
338- this .kycVerificationResults = kycVerificationResults ;
339- return this ;
340- }
341-
342- public GetAccountHolderResponse addKycVerificationResultsItem (KYCVerificationResult kycVerificationResultsItem ) {
343- this .kycVerificationResults .add (kycVerificationResultsItem );
344- return this ;
345- }
346-
347- /**
348- * Get kycVerificationResults
349- *
350- * @return kycVerificationResults
351- **/
352- public List <KYCVerificationResult > getKycVerificationResults () {
353- return kycVerificationResults ;
354- }
355-
356- public void setKycVerificationResults (List <KYCVerificationResult > kycVerificationResults ) {
357- this .kycVerificationResults = kycVerificationResults ;
358- }
359-
360297 public GetAccountHolderResponse legalEntity (LegalEntityEnum legalEntity ) {
361298 this .legalEntity = legalEntity ;
362299 return this ;
@@ -393,38 +330,32 @@ public boolean equals(Object o) {
393330 return false ;
394331 }
395332 GetAccountHolderResponse getAccountHolderResponse = (GetAccountHolderResponse ) o ;
396- return Objects .equals (this .accountStatus , getAccountHolderResponse .accountStatus )
397- && Objects .equals (this .verificationResult , getAccountHolderResponse .verificationResult )
333+ return Objects .equals (this .verification , getAccountHolderResponse .verification )
398334 && Objects .equals (this .submittedAsync , getAccountHolderResponse .submittedAsync )
399335 && Objects .equals (this .accountHolderCode , getAccountHolderResponse .accountHolderCode )
400- && Objects .equals (this .virtualAccounts , getAccountHolderResponse .virtualAccounts )
401336 && Objects .equals (this .requirementsForNextAccountState , getAccountHolderResponse .requirementsForNextAccountState )
402337 && Objects .equals (this .accountHolderDetails , getAccountHolderResponse .accountHolderDetails )
403338 && Objects .equals (this .accountHolderStatus , getAccountHolderResponse .accountHolderStatus )
404339 && Objects .equals (this .accountContainers , getAccountHolderResponse .accountContainers )
405340 && Objects .equals (this .description , getAccountHolderResponse .description )
406341 && Objects .equals (this .pspReference , getAccountHolderResponse .pspReference )
407- && Objects .equals (this .kycVerificationResults , getAccountHolderResponse .kycVerificationResults )
408342 && Objects .equals (this .legalEntity , getAccountHolderResponse .legalEntity )
409- && Objects .equals (this .legalEntity , getAccountHolderResponse .primaryCurrency );
343+ && Objects .equals (this .primaryCurrency , getAccountHolderResponse .primaryCurrency );
410344 }
411345
412346 @ Override
413347 public int hashCode () {
414- return Objects .hash (accountStatus ,
415- verificationResult ,
416- submittedAsync ,
417- accountHolderCode ,
418- virtualAccounts ,
419- requirementsForNextAccountState ,
420- accountHolderDetails ,
421- accountHolderStatus ,
422- accountContainers ,
423- description ,
424- pspReference ,
425- kycVerificationResults ,
426- legalEntity ,
427- primaryCurrency );
348+ return Objects .hash (verification ,
349+ submittedAsync ,
350+ accountHolderCode ,
351+ requirementsForNextAccountState ,
352+ accountHolderDetails ,
353+ accountHolderStatus ,
354+ accountContainers ,
355+ description ,
356+ pspReference ,
357+ legalEntity ,
358+ primaryCurrency );
428359 }
429360
430361
@@ -435,20 +366,17 @@ public String toString() {
435366
436367 StringBuilder sb = new StringBuilder ();
437368 sb .append ("class GetAccountHolderResponse {\n " );
438-
439- sb .append (" accountStatus: " ).append (toIndentedString (accountStatus )).append ("\n " );
440- sb .append (" verificationResult: " ).append (toIndentedString (verificationResult )).append ("\n " );
369+ sb .append (" verification: " ).append (toIndentedString (verification )).append ("\n " );
441370 sb .append (" submittedAsync: " ).append (toIndentedString (submittedAsync )).append ("\n " );
442371 sb .append (" accountHolderCode: " ).append (toIndentedString (accountHolderCode )).append ("\n " );
443- sb .append (" virtualAccounts: " ).append (toIndentedString (virtualAccounts )).append ("\n " );
444372 sb .append (" requirementsForNextAccountState: " ).append (toIndentedString (requirementsForNextAccountState )).append ("\n " );
445373 sb .append (" accountHolderDetails: " ).append (toIndentedString (accountHolderDetails )).append ("\n " );
446374 sb .append (" accountHolderStatus: " ).append (toIndentedString (accountHolderStatus )).append ("\n " );
447375 sb .append (" accounts: " ).append (toIndentedString (accounts )).append ("\n " );
448376 sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
449377 sb .append (" pspReference: " ).append (toIndentedString (pspReference )).append ("\n " );
450- sb .append (" kycVerificationResults: " ).append (toIndentedString (kycVerificationResults )).append ("\n " );
451378 sb .append (" legalEntity: " ).append (toIndentedString (legalEntity )).append ("\n " );
379+ sb .append (" primaryCurrency: " ).append (toIndentedString (primaryCurrency )).append ("\n " );
452380 sb .append ("}" );
453381 return sb .toString ();
454382 }
0 commit comments