1: | <?php |
2: | namespace Hyperwallet\Model; |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | |
21: | |
22: | |
23: | |
24: | |
25: | |
26: | |
27: | |
28: | |
29: | |
30: | |
31: | |
32: | |
33: | |
34: | |
35: | |
36: | |
37: | |
38: | |
39: | |
40: | |
41: | |
42: | |
43: | |
44: | |
45: | |
46: | |
47: | |
48: | |
49: | |
50: | |
51: | |
52: | |
53: | |
54: | |
55: | |
56: | |
57: | |
58: | class User extends BaseModel implements IProgramAware { |
59: | |
60: | |
61: | |
62: | |
63: | |
64: | |
65: | |
66: | |
67: | |
68: | private static $READ_ONLY_FIELDS = array('token', 'status', 'createdOn', 'documents'); |
69: | |
70: | const STATUS_PRE_ACTIVATED = 'PRE_ACTIVATED'; |
71: | const STATUS_ACTIVATED = 'ACTIVATED'; |
72: | const STATUS_LOCKED = 'LOCKED'; |
73: | const STATUS_FROZEN = 'FROZEN'; |
74: | const STATUS_DE_ACTIVATED = 'DE_ACTIVATED'; |
75: | |
76: | const PROFILE_TYPE_INDIVIDUAL = 'INDIVIDUAL'; |
77: | const PROFILE_TYPE_BUSINESS = 'BUSINESS'; |
78: | const PROFILE_TYPE_UNKNOWN = 'UNKNOWN'; |
79: | |
80: | const BUSINESS_TYPE_CORPORATION = 'CORPORATION'; |
81: | const BUSINESS_TYPE_PARTNERSHIP = 'PARTNERSHIP'; |
82: | |
83: | const BUSINESS_CONTACT_ROLE_DIRECTOR = 'DIRECTOR'; |
84: | const BUSINESS_CONTACT_ROLE_OWNER = 'OWNER'; |
85: | const BUSINESS_CONTACT_ROLE_OTHER = 'OTHER'; |
86: | |
87: | const GENDER_MALE = 'MALE'; |
88: | const GENDER_FEMALE = 'FEMALE'; |
89: | |
90: | const VERIFICATION_STATUS_NOT_REQUIRED = 'NOT_REQUIRED'; |
91: | const VERIFICATION_STATUS_REQUIRED = 'REQUIRED'; |
92: | const VERIFICATION_STATUS_FAILED = 'FAILED'; |
93: | const VERIFICATION_STATUS_UNDER_REVIEW = 'UNDER_REVIEW'; |
94: | const VERIFICATION_STATUS_VERIFIED = 'VERIFIED'; |
95: | const VERIFICATION_STATUS_REQUESTED = 'REQUESTED'; |
96: | const VERIFICATION_STATUS_EXPIRED = 'EXPIRED'; |
97: | const VERIFICATION_STATUS_READY_FOR_REVIEW='READY_FOR_REVIEW'; |
98: | |
99: | const TAX_VERIFICATION_STATUS_NOT_REQUIRED = 'NOT_REQUIRED'; |
100: | const TAX_VERIFICATION_STATUS_REQUIRED = 'REQUIRED'; |
101: | const TAX_VERIFICATION_STATUS_VERIFIED= 'VERIFIED'; |
102: | const TAX_VERIFICATION_STATUS_UNDER_REVIEW = 'UNDER_REVIEW'; |
103: | |
104: | const BUSINESSS_STAKEHOLDER_VERIFICATION_STATUS_NOT_REQUIRED = 'NOT_REQUIRED'; |
105: | const BUSINESSS_STAKEHOLDER_VERIFICATION_STATUS_REQUIRED = 'REQUIRED'; |
106: | const BUSINESSS_STAKEHOLDER_VERIFICATION_STATUS_FAILED = 'FAILED'; |
107: | const BUSINESSS_STAKEHOLDER_VERIFICATION_STATUS_UNDER_REVIEW = 'UNDER_REVIEW'; |
108: | const BUSINESSS_STAKEHOLDER_VERIFICATION_STATUS_VERIFIED = 'VERIFIED'; |
109: | const BUSINESSS_STAKEHOLDER_VERIFICATION_STATUS_READY_FOR_REVIEW = 'READY_FOR_REVIEW'; |
110: | |
111: | const LETTER_OF_AUTHORIZATION_STATUS_NOT_REQUIRED = 'NOT_REQUIRED'; |
112: | const LETTER_OF_AUTHORIZATION_STATUS_REQUIRED = 'REQUIRED'; |
113: | const LETTER_OF_AUTHORIZATION_STATUS_FAILED = 'FAILED'; |
114: | const LETTER_OF_AUTHORIZATION_STATUS_UNDER_REVIEW = 'UNDER_REVIEW'; |
115: | const LETTER_OF_AUTHORIZATION_STATUS_VERIFIED = 'VERIFIED'; |
116: | const LETTER_OF_AUTHORIZATION_STATUS_READY_FOR_REVIEW = 'READY_FOR_REVIEW'; |
117: | |
118: | const GOVERNMENT_ID_TYPE_PASSPORT = 'PASSPORT'; |
119: | const GOVERNMENT_ID_TYPE_NATIONAL_ID_CARD = 'NATIONAL_ID_CARD'; |
120: | |
121: | public static function FILTERS_ARRAY() { |
122: | return array('clientUserId','email','programToken','status','verificationStatus', 'taxVerificationStatus', 'createdBefore', 'createdAfter', 'sortBy', 'limit'); |
123: | } |
124: | |
125: | |
126: | |
127: | |
128: | |
129: | |
130: | public function __construct(array $properties = array()) { |
131: | parent::__construct(self::$READ_ONLY_FIELDS, $properties); |
132: | } |
133: | |
134: | |
135: | |
136: | |
137: | |
138: | |
139: | public function getToken() { |
140: | return $this->token; |
141: | } |
142: | |
143: | |
144: | |
145: | |
146: | |
147: | |
148: | |
149: | public function setToken($token) { |
150: | $this->token = $token; |
151: | return $this; |
152: | } |
153: | |
154: | |
155: | |
156: | |
157: | |
158: | |
159: | public function getStatus() { |
160: | return $this->status; |
161: | } |
162: | |
163: | |
164: | |
165: | |
166: | |
167: | |
168: | |
169: | |
170: | |
171: | |
172: | |
173: | |
174: | |
175: | |
176: | |
177: | |
178: | |
179: | |
180: | |
181: | public function getCreatedOn() { |
182: | return $this->createdOn ? new \DateTime($this->createdOn) : null; |
183: | } |
184: | |
185: | |
186: | |
187: | |
188: | |
189: | |
190: | public function getClientUserId() { |
191: | return $this->clientUserId; |
192: | } |
193: | |
194: | |
195: | |
196: | |
197: | |
198: | |
199: | |
200: | public function setClientUserId($clientUserId) { |
201: | $this->clientUserId = $clientUserId; |
202: | return $this; |
203: | } |
204: | |
205: | |
206: | |
207: | |
208: | |
209: | |
210: | public function getProfileType() { |
211: | return $this->profileType; |
212: | } |
213: | |
214: | |
215: | |
216: | |
217: | |
218: | |
219: | |
220: | public function setProfileType($profileType) { |
221: | $this->profileType = $profileType; |
222: | return $this; |
223: | } |
224: | |
225: | |
226: | |
227: | |
228: | |
229: | |
230: | public function getBusinessType() { |
231: | return $this->businessType; |
232: | } |
233: | |
234: | |
235: | |
236: | |
237: | |
238: | |
239: | |
240: | public function setBusinessType($businessType) { |
241: | $this->businessType = $businessType; |
242: | return $this; |
243: | } |
244: | |
245: | |
246: | |
247: | |
248: | |
249: | |
250: | public function getBusinessName() { |
251: | return $this->businessName; |
252: | } |
253: | |
254: | |
255: | |
256: | |
257: | |
258: | |
259: | |
260: | public function setBusinessName($businessName) { |
261: | $this->businessName = $businessName; |
262: | return $this; |
263: | } |
264: | |
265: | |
266: | |
267: | |
268: | |
269: | |
270: | public function getBusinessOperatingName() |
271: | { |
272: | return $this->businessOperatingName; |
273: | } |
274: | |
275: | |
276: | |
277: | |
278: | |
279: | |
280: | |
281: | public function setBusinessOperatingName($businessOperatingName) |
282: | { |
283: | $this->businessOperatingName = $businessOperatingName; |
284: | return $this; |
285: | } |
286: | |
287: | |
288: | |
289: | |
290: | |
291: | |
292: | public function getBusinessRegistrationId() { |
293: | return $this->businessRegistrationId; |
294: | } |
295: | |
296: | |
297: | |
298: | |
299: | |
300: | |
301: | |
302: | public function setBusinessRegistrationId($businessRegistrationId) { |
303: | $this->businessRegistrationId = $businessRegistrationId; |
304: | return $this; |
305: | } |
306: | |
307: | |
308: | |
309: | |
310: | |
311: | |
312: | public function getBusinessRegistrationStateProvince() { |
313: | return $this->businessRegistrationStateProvince; |
314: | } |
315: | |
316: | |
317: | |
318: | |
319: | |
320: | |
321: | |
322: | public function setBusinessRegistrationStateProvince($businessRegistrationStateProvince) { |
323: | $this->businessRegistrationStateProvince = $businessRegistrationStateProvince; |
324: | return $this; |
325: | } |
326: | |
327: | |
328: | |
329: | |
330: | |
331: | |
332: | public function getBusinessRegistrationCountry() { |
333: | return $this->businessRegistrationCountry; |
334: | } |
335: | |
336: | |
337: | |
338: | |
339: | |
340: | |
341: | |
342: | public function setBusinessRegistrationCountry($businessRegistrationCountry) { |
343: | $this->businessRegistrationCountry = $businessRegistrationCountry; |
344: | return $this; |
345: | } |
346: | |
347: | |
348: | |
349: | |
350: | |
351: | |
352: | public function getBusinessContactRole() { |
353: | return $this->businessContactRole; |
354: | } |
355: | |
356: | |
357: | |
358: | |
359: | |
360: | |
361: | |
362: | public function setBusinessContactRole($businessContactRole) { |
363: | $this->businessContactRole = $businessContactRole; |
364: | return $this; |
365: | } |
366: | |
367: | |
368: | |
369: | |
370: | |
371: | |
372: | public function getFirstName() { |
373: | return $this->firstName; |
374: | } |
375: | |
376: | |
377: | |
378: | |
379: | |
380: | |
381: | |
382: | public function setFirstName($firstName) { |
383: | $this->firstName = $firstName; |
384: | return $this; |
385: | } |
386: | |
387: | |
388: | |
389: | |
390: | |
391: | |
392: | public function getMiddleName() { |
393: | return $this->middleName; |
394: | } |
395: | |
396: | |
397: | |
398: | |
399: | |
400: | |
401: | |
402: | public function setMiddleName($middleName) { |
403: | $this->middleName = $middleName; |
404: | return $this; |
405: | } |
406: | |
407: | |
408: | |
409: | |
410: | |
411: | |
412: | public function getLastName() { |
413: | return $this->lastName; |
414: | } |
415: | |
416: | |
417: | |
418: | |
419: | |
420: | |
421: | |
422: | public function setLastName($lastName) { |
423: | $this->lastName = $lastName; |
424: | return $this; |
425: | } |
426: | |
427: | |
428: | |
429: | |
430: | |
431: | |
432: | public function getDateOfBirth() { |
433: | return $this->dateOfBirth ? new \DateTime($this->dateOfBirth) : null; |
434: | } |
435: | |
436: | |
437: | |
438: | |
439: | |
440: | |
441: | |
442: | public function setDateOfBirth(\DateTime $dateOfBirth = null) { |
443: | $this->dateOfBirth = $dateOfBirth == null ? null : $dateOfBirth->format('Y-m-d'); |
444: | return $this; |
445: | } |
446: | |
447: | |
448: | |
449: | |
450: | |
451: | |
452: | public function getCountryOfBirth() { |
453: | return $this->countryOfBirth; |
454: | } |
455: | |
456: | |
457: | |
458: | |
459: | |
460: | |
461: | |
462: | public function setCountryOfBirth($countryOfBirth) { |
463: | $this->countryOfBirth = $countryOfBirth; |
464: | return $this; |
465: | } |
466: | |
467: | |
468: | |
469: | |
470: | |
471: | |
472: | public function getCountryOfNationality() { |
473: | return $this->countryOfNationality; |
474: | } |
475: | |
476: | |
477: | |
478: | |
479: | |
480: | |
481: | |
482: | public function setCountryOfNationality($countryOfNationality) { |
483: | $this->countryOfNationality = $countryOfNationality; |
484: | return $this; |
485: | } |
486: | |
487: | |
488: | |
489: | |
490: | |
491: | |
492: | public function getGender() { |
493: | return $this->gender; |
494: | } |
495: | |
496: | |
497: | |
498: | |
499: | |
500: | |
501: | |
502: | public function setGender($gender) { |
503: | $this->gender = $gender; |
504: | return $this; |
505: | } |
506: | |
507: | |
508: | |
509: | |
510: | |
511: | |
512: | public function getPhoneNumber() { |
513: | return $this->phoneNumber; |
514: | } |
515: | |
516: | |
517: | |
518: | |
519: | |
520: | |
521: | |
522: | public function setPhoneNumber($phoneNumber) { |
523: | $this->phoneNumber = $phoneNumber; |
524: | return $this; |
525: | } |
526: | |
527: | |
528: | |
529: | |
530: | |
531: | |
532: | public function getMobileNumber() { |
533: | return $this->mobileNumber; |
534: | } |
535: | |
536: | |
537: | |
538: | |
539: | |
540: | |
541: | |
542: | public function setMobileNumber($mobileNumber) { |
543: | $this->mobileNumber = $mobileNumber; |
544: | return $this; |
545: | } |
546: | |
547: | |
548: | |
549: | |
550: | |
551: | |
552: | public function getEmail() { |
553: | return $this->email; |
554: | } |
555: | |
556: | |
557: | |
558: | |
559: | |
560: | |
561: | |
562: | public function setEmail($email) { |
563: | $this->email = $email; |
564: | return $this; |
565: | } |
566: | |
567: | |
568: | |
569: | |
570: | |
571: | |
572: | public function getGovernmentId() { |
573: | return $this->governmentId; |
574: | } |
575: | |
576: | |
577: | |
578: | |
579: | |
580: | |
581: | |
582: | public function setGovernmentId($governmentId) { |
583: | $this->governmentId = $governmentId; |
584: | return $this; |
585: | } |
586: | |
587: | |
588: | |
589: | |
590: | |
591: | |
592: | public function getPassportId() { |
593: | return $this->passportId; |
594: | } |
595: | |
596: | |
597: | |
598: | |
599: | |
600: | |
601: | |
602: | public function setPassportId($passportId) { |
603: | $this->passportId = $passportId; |
604: | return $this; |
605: | } |
606: | |
607: | |
608: | |
609: | |
610: | |
611: | |
612: | public function getDriversLicenseId() { |
613: | return $this->driversLicenseId; |
614: | } |
615: | |
616: | |
617: | |
618: | |
619: | |
620: | |
621: | |
622: | public function setDriversLicenseId($driversLicenseId) { |
623: | $this->driversLicenseId = $driversLicenseId; |
624: | return $this; |
625: | } |
626: | |
627: | |
628: | |
629: | |
630: | |
631: | |
632: | public function getEmployerId() { |
633: | return $this->employerId; |
634: | } |
635: | |
636: | |
637: | |
638: | |
639: | |
640: | |
641: | |
642: | public function setEmployerId($employerId) { |
643: | $this->employerId = $employerId; |
644: | return $this; |
645: | } |
646: | |
647: | |
648: | |
649: | |
650: | |
651: | |
652: | public function getAddressLine1() { |
653: | return $this->addressLine1; |
654: | } |
655: | |
656: | |
657: | |
658: | |
659: | |
660: | |
661: | |
662: | public function setAddressLine1($addressLine1) { |
663: | $this->addressLine1 = $addressLine1; |
664: | return $this; |
665: | } |
666: | |
667: | |
668: | |
669: | |
670: | |
671: | |
672: | public function getAddressLine2() { |
673: | return $this->addressLine2; |
674: | } |
675: | |
676: | |
677: | |
678: | |
679: | |
680: | |
681: | |
682: | public function setAddressLine2($addressLine2) { |
683: | $this->addressLine2 = $addressLine2; |
684: | return $this; |
685: | } |
686: | |
687: | |
688: | |
689: | |
690: | |
691: | |
692: | public function getCity() { |
693: | return $this->city; |
694: | } |
695: | |
696: | |
697: | |
698: | |
699: | |
700: | |
701: | |
702: | public function setCity($city) { |
703: | $this->city = $city; |
704: | return $this; |
705: | } |
706: | |
707: | |
708: | |
709: | |
710: | |
711: | |
712: | public function getStateProvince() { |
713: | return $this->stateProvince; |
714: | } |
715: | |
716: | |
717: | |
718: | |
719: | |
720: | |
721: | |
722: | public function setStateProvince($stateProvince) { |
723: | $this->stateProvince = $stateProvince; |
724: | return $this; |
725: | } |
726: | |
727: | |
728: | |
729: | |
730: | |
731: | |
732: | public function getCountry() { |
733: | return $this->country; |
734: | } |
735: | |
736: | |
737: | |
738: | |
739: | |
740: | |
741: | |
742: | public function setCountry($country) { |
743: | $this->country = $country; |
744: | return $this; |
745: | } |
746: | |
747: | |
748: | |
749: | |
750: | |
751: | |
752: | public function getPostalCode() { |
753: | return $this->postalCode; |
754: | } |
755: | |
756: | |
757: | |
758: | |
759: | |
760: | |
761: | |
762: | public function setPostalCode($postalCode) { |
763: | $this->postalCode = $postalCode; |
764: | return $this; |
765: | } |
766: | |
767: | |
768: | |
769: | |
770: | |
771: | |
772: | public function getLanguage() { |
773: | return $this->language; |
774: | } |
775: | |
776: | |
777: | |
778: | |
779: | |
780: | |
781: | |
782: | public function setLanguage($language) { |
783: | $this->language = $language; |
784: | return $this; |
785: | } |
786: | |
787: | |
788: | |
789: | |
790: | |
791: | |
792: | public function getProgramToken() { |
793: | return $this->programToken; |
794: | } |
795: | |
796: | |
797: | |
798: | |
799: | |
800: | |
801: | |
802: | public function setProgramToken($programToken) { |
803: | $this->programToken = $programToken; |
804: | return $this; |
805: | } |
806: | |
807: | |
808: | |
809: | |
810: | |
811: | |
812: | public function getVerificationStatus() { |
813: | return $this->verificationStatus; |
814: | } |
815: | |
816: | |
817: | |
818: | |
819: | |
820: | |
821: | |
822: | public function setVerificationStatus($verificationStatus) { |
823: | $this->verificationStatus = $verificationStatus; |
824: | return $this; |
825: | } |
826: | |
827: | |
828: | |
829: | |
830: | |
831: | |
832: | public function getTaxVerificationStatus() { |
833: | return $this->taxVerificationStatus; |
834: | } |
835: | |
836: | |
837: | |
838: | |
839: | |
840: | |
841: | |
842: | public function setTaxVerificationStatus($taxVerificationStatus) { |
843: | $this->taxVerificationStatus = $taxVerificationStatus; |
844: | return $this; |
845: | } |
846: | |
847: | public function getDocuments() { |
848: | return $this->documents; |
849: | } |
850: | |
851: | |
852: | |
853: | |
854: | |
855: | |
856: | public function getBusinessStakeholderVerificationStatus() { |
857: | return $this->businessStakeholderVerificationStatus; |
858: | } |
859: | |
860: | |
861: | |
862: | |
863: | |
864: | |
865: | |
866: | public function setBusinessStakeholderVerificationStatus($businessStakeholderVerificationStatus) { |
867: | $this->businessStakeholderVerificationStatus = $businessStakeholderVerificationStatus; |
868: | return $this; |
869: | } |
870: | |
871: | |
872: | |
873: | |
874: | |
875: | |
876: | public function getLetterOfAuthorizationStatus() { |
877: | return $this->letterOfAuthorizationStatus; |
878: | } |
879: | |
880: | |
881: | |
882: | |
883: | |
884: | |
885: | |
886: | public function setLetterOfAuthorizationStatus($letterOfAuthorizationStatus) { |
887: | $this->letterOfAuthorizationStatus = $letterOfAuthorizationStatus; |
888: | return $this; |
889: | } |
890: | |
891: | |
892: | |
893: | |
894: | |
895: | |
896: | public function getGovernmentIdType() { |
897: | return $this->governmentIdType; |
898: | } |
899: | |
900: | |
901: | |
902: | |
903: | |
904: | |
905: | |
906: | public function setGovernmentIdType($governmentIdType) { |
907: | $this->governmentIdType = $governmentIdType; |
908: | return $this; |
909: | } |
910: | |
911: | |
912: | |
913: | |
914: | |
915: | |
916: | public function getTimeZone() { |
917: | return $this->timeZone; |
918: | } |
919: | |
920: | |
921: | |
922: | |
923: | |
924: | |
925: | |
926: | public function setTimeZone($timeZone) { |
927: | $this->timeZone = $timeZone; |
928: | return $this; |
929: | } |
930: | |
931: | |
932: | |
933: | |
934: | |
935: | |
936: | public function getLinks() { |
937: | return $this->links; |
938: | } |
939: | |
940: | |
941: | |
942: | |
943: | |
944: | |
945: | |
946: | public function setLinks($links) { |
947: | $this->links = $links; |
948: | return $this; |
949: | } |
950: | } |
951: | |