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: | |
59: | |
60: | |
61: | |
62: | |
63: | |
64: | |
65: | |
66: | |
67: | |
68: | |
69: | |
70: | |
71: | |
72: | |
73: | |
74: | |
75: | |
76: | |
77: | class TransferMethod extends BaseModel { |
78: | |
79: | |
80: | |
81: | |
82: | |
83: | |
84: | |
85: | |
86: | private static $READ_ONLY_FIELDS = array('token', 'status', 'cardType', 'cardNumber', 'cardBrand', 'dateOfExpiry', 'createdOn'); |
87: | |
88: | public static function FILTERS_ARRAY() { |
89: | return array('status', 'type', 'createdBefore', 'createdAfter', 'sortBy', 'limit'); |
90: | } |
91: | |
92: | const TYPE_PREPAID_CARD = 'PREPAID_CARD'; |
93: | const TYPE_BANK_ACCOUNT = 'BANK_ACCOUNT'; |
94: | const TYPE_WIRE_ACCOUNT = 'WIRE_ACCOUNT'; |
95: | |
96: | const STATUS_QUEUED = 'QUEUED'; |
97: | const STATUS_PRE_ACTIVATED = 'PRE_ACTIVATED'; |
98: | const STATUS_ACTIVATED = 'ACTIVATED'; |
99: | const STATUS_DECLINED = 'DECLINED'; |
100: | const STATUS_LOCKED = 'LOCKED'; |
101: | const STATUS_SUSPENDED = 'SUSPENDED'; |
102: | const STATUS_LOST_OR_STOLEN = 'LOST_OR_STOLEN'; |
103: | const STATUS_DE_ACTIVATED = 'DE_ACTIVATED'; |
104: | const STATUS_COMPLIANCE_HOLD = 'COMPLIANCE_HOLD'; |
105: | const STATUS_KYC_HOLD = 'KYC_HOLD'; |
106: | |
107: | const CARD_TYPE_PERSONALIZED = 'PERSONALIZED'; |
108: | const CARD_TYPE_VIRTUAL = 'VIRTUAL'; |
109: | |
110: | const CARD_BRAND_VISA = 'VISA'; |
111: | const CARD_BRAND_MASTERCARD = 'MASTERCARD'; |
112: | |
113: | const PROFILE_TYPE_INDIVIDUAL = 'INDIVIDUAL'; |
114: | const PROFILE_TYPE_BUSINESS = 'BUSINESS'; |
115: | |
116: | |
117: | |
118: | |
119: | |
120: | |
121: | public function __construct(array $properties = array()) { |
122: | parent::__construct(self::$READ_ONLY_FIELDS, $properties); |
123: | } |
124: | |
125: | |
126: | |
127: | |
128: | |
129: | |
130: | public function getToken() { |
131: | return $this->token; |
132: | } |
133: | |
134: | |
135: | |
136: | |
137: | |
138: | |
139: | |
140: | public function setToken($token) { |
141: | $this->token = $token; |
142: | return $this; |
143: | } |
144: | |
145: | |
146: | |
147: | |
148: | |
149: | |
150: | public function getCardPackage() { |
151: | return $this->cardPackage; |
152: | } |
153: | |
154: | |
155: | |
156: | |
157: | |
158: | |
159: | |
160: | public function setCardPackage($cardPackage) { |
161: | $this->cardPackage = $cardPackage; |
162: | return $this; |
163: | } |
164: | |
165: | |
166: | |
167: | |
168: | |
169: | |
170: | public function getCardType() { |
171: | return $this->cardType; |
172: | } |
173: | |
174: | |
175: | |
176: | |
177: | |
178: | |
179: | public function getCardNumber() { |
180: | return $this->cardNumber; |
181: | } |
182: | |
183: | |
184: | |
185: | |
186: | |
187: | |
188: | public function getCardBrand() { |
189: | return $this->cardBrand; |
190: | } |
191: | |
192: | |
193: | |
194: | |
195: | |
196: | |
197: | public function getDateOfExpiry() { |
198: | return $this->dateOfExpiry ? new \DateTime($this->dateOfExpiry) : null; |
199: | } |
200: | |
201: | |
202: | |
203: | |
204: | |
205: | |
206: | public function getBankAccountId() { |
207: | return $this->bankAccountId; |
208: | } |
209: | |
210: | |
211: | |
212: | |
213: | |
214: | |
215: | |
216: | public function setBankAccountId($bankAccountId) { |
217: | $this->bankAccountId = $bankAccountId; |
218: | return $this; |
219: | } |
220: | |
221: | |
222: | |
223: | |
224: | |
225: | |
226: | public function getType() { |
227: | return $this->type; |
228: | } |
229: | |
230: | |
231: | |
232: | |
233: | |
234: | |
235: | |
236: | public function setType($type) { |
237: | $this->type = $type; |
238: | return $this; |
239: | } |
240: | |
241: | |
242: | |
243: | |
244: | |
245: | |
246: | public function getTransferMethodCountry() { |
247: | return $this->transferMethodCountry; |
248: | } |
249: | |
250: | |
251: | |
252: | |
253: | |
254: | |
255: | |
256: | public function setTransferMethodCountry($transferMethodCountry) { |
257: | $this->transferMethodCountry = $transferMethodCountry; |
258: | return $this; |
259: | } |
260: | |
261: | |
262: | |
263: | |
264: | |
265: | |
266: | public function getTransferMethodCurrency() { |
267: | return $this->transferMethodCurrency; |
268: | } |
269: | |
270: | |
271: | |
272: | |
273: | |
274: | |
275: | |
276: | public function setTransferMethodCurrency($transferMethodCurrency) { |
277: | $this->transferMethodCurrency = $transferMethodCurrency; |
278: | return $this; |
279: | } |
280: | |
281: | |
282: | |
283: | |
284: | |
285: | |
286: | public function getBankName() { |
287: | return $this->bankName; |
288: | } |
289: | |
290: | |
291: | |
292: | |
293: | |
294: | |
295: | |
296: | public function setBankName($bankName) { |
297: | $this->bankName = $bankName; |
298: | return $this; |
299: | } |
300: | |
301: | |
302: | |
303: | |
304: | |
305: | |
306: | public function getBankId() { |
307: | return $this->bankId; |
308: | } |
309: | |
310: | |
311: | |
312: | |
313: | |
314: | |
315: | |
316: | public function setBankId($bankId) { |
317: | $this->bankId = $bankId; |
318: | return $this; |
319: | } |
320: | |
321: | |
322: | |
323: | |
324: | |
325: | |
326: | public function getBranchName() { |
327: | return $this->branchName; |
328: | } |
329: | |
330: | |
331: | |
332: | |
333: | |
334: | |
335: | |
336: | public function setBranchName($branchName) { |
337: | $this->branchName = $branchName; |
338: | return $this; |
339: | } |
340: | |
341: | |
342: | |
343: | |
344: | |
345: | |
346: | public function getBranchId() { |
347: | return $this->branchId; |
348: | } |
349: | |
350: | |
351: | |
352: | |
353: | |
354: | |
355: | |
356: | public function setBranchId($branchId) { |
357: | $this->branchId = $branchId; |
358: | return $this; |
359: | } |
360: | |
361: | |
362: | |
363: | |
364: | |
365: | |
366: | public function getStatus() { |
367: | return $this->status; |
368: | } |
369: | |
370: | |
371: | |
372: | |
373: | |
374: | public function getCreatedOn() { |
375: | return $this->createdOn ? new \DateTime($this->createdOn) : null; |
376: | } |
377: | |
378: | |
379: | |
380: | |
381: | |
382: | |
383: | public function getBankAccountPurpose() { |
384: | return $this->bankAccountPurpose; |
385: | } |
386: | |
387: | |
388: | |
389: | |
390: | |
391: | |
392: | |
393: | public function setBankAccountPurpose($bankAccountPurpose) { |
394: | $this->bankAccountPurpose = $bankAccountPurpose; |
395: | return $this; |
396: | } |
397: | |
398: | |
399: | |
400: | |
401: | |
402: | |
403: | public function getBranchAddressLine1() { |
404: | return $this->branchAddressLine1; |
405: | } |
406: | |
407: | |
408: | |
409: | |
410: | |
411: | |
412: | |
413: | public function setBranchAddressLine1($branchAddressLine1) { |
414: | $this->branchAddressLine1 = $branchAddressLine1; |
415: | return $this; |
416: | } |
417: | |
418: | |
419: | |
420: | |
421: | |
422: | |
423: | public function getBranchAddressLine2() { |
424: | return $this->branchAddressLine2; |
425: | } |
426: | |
427: | |
428: | |
429: | |
430: | |
431: | |
432: | |
433: | public function setBranchAddressLine2($branchAddressLine2) { |
434: | $this->branchAddressLine2 = $branchAddressLine2; |
435: | return $this; |
436: | } |
437: | |
438: | |
439: | |
440: | |
441: | |
442: | |
443: | public function getBranchCity() { |
444: | return $this->branchCity; |
445: | } |
446: | |
447: | |
448: | |
449: | |
450: | |
451: | |
452: | |
453: | public function setBranchCity($branchCity) { |
454: | $this->branchCity = $branchCity; |
455: | return $this; |
456: | } |
457: | |
458: | |
459: | |
460: | |
461: | |
462: | |
463: | public function getBranchStateProvince() { |
464: | return $this->branchStateProvince; |
465: | } |
466: | |
467: | |
468: | |
469: | |
470: | |
471: | |
472: | |
473: | public function setBranchStateProvince($branchStateProvince) { |
474: | $this->branchStateProvince = $branchStateProvince; |
475: | return $this; |
476: | } |
477: | |
478: | |
479: | |
480: | |
481: | |
482: | |
483: | public function getBranchCountry() { |
484: | return $this->branchCountry; |
485: | } |
486: | |
487: | |
488: | |
489: | |
490: | |
491: | |
492: | |
493: | public function setBranchCountry($branchCountry) { |
494: | $this->branchCountry = $branchCountry; |
495: | return $this; |
496: | } |
497: | |
498: | |
499: | |
500: | |
501: | |
502: | |
503: | public function getBranchPostalCode() { |
504: | return $this->branchPostalCode; |
505: | } |
506: | |
507: | |
508: | |
509: | |
510: | |
511: | |
512: | |
513: | public function setBranchPostalCode($branchPostalCode) { |
514: | $this->branchPostalCode = $branchPostalCode; |
515: | return $this; |
516: | } |
517: | |
518: | |
519: | |
520: | |
521: | |
522: | |
523: | public function getWireInstructions() { |
524: | return $this->wireInstructions; |
525: | } |
526: | |
527: | |
528: | |
529: | |
530: | |
531: | |
532: | |
533: | public function setWireInstructions($wireInstructions) { |
534: | $this->wireInstructions = $wireInstructions; |
535: | return $this; |
536: | } |
537: | |
538: | |
539: | |
540: | |
541: | |
542: | |
543: | public function getIntermediaryBankId() { |
544: | return $this->intermediaryBankId; |
545: | } |
546: | |
547: | |
548: | |
549: | |
550: | |
551: | |
552: | |
553: | public function setIntermediaryBankId($intermediaryBankId) { |
554: | $this->intermediaryBankId = $intermediaryBankId; |
555: | return $this; |
556: | } |
557: | |
558: | |
559: | |
560: | |
561: | |
562: | |
563: | public function getIntermediaryBankName() { |
564: | return $this->intermediaryBankName; |
565: | } |
566: | |
567: | |
568: | |
569: | |
570: | |
571: | |
572: | |
573: | public function setIntermediaryBankName($intermediaryBankName) { |
574: | $this->intermediaryBankName = $intermediaryBankName; |
575: | return $this; |
576: | } |
577: | |
578: | |
579: | |
580: | |
581: | |
582: | |
583: | public function getIntermediaryBankAccountId() { |
584: | return $this->intermediaryBankAccountId; |
585: | } |
586: | |
587: | |
588: | |
589: | |
590: | |
591: | |
592: | |
593: | public function setIntermediaryBankAccountId($intermediaryBankAccountId) { |
594: | $this->intermediaryBankAccountId = $intermediaryBankAccountId; |
595: | return $this; |
596: | } |
597: | |
598: | |
599: | |
600: | |
601: | |
602: | |
603: | public function getIntermediaryAddressLine1() { |
604: | return $this->intermediaryAddressLine1; |
605: | } |
606: | |
607: | |
608: | |
609: | |
610: | |
611: | |
612: | |
613: | public function setIntermediaryAddressLine1($intermediaryAddressLine1) { |
614: | $this->intermediaryAddressLine1 = $intermediaryAddressLine1; |
615: | return $this; |
616: | } |
617: | |
618: | |
619: | |
620: | |
621: | |
622: | |
623: | public function getIntermediaryAddressLine2() { |
624: | return $this->intermediaryAddressLine2; |
625: | } |
626: | |
627: | |
628: | |
629: | |
630: | |
631: | |
632: | |
633: | public function setIntermediaryAddressLine2($intermediaryAddressLine2) { |
634: | $this->intermediaryAddressLine2 = $intermediaryAddressLine2; |
635: | return $this; |
636: | } |
637: | |
638: | |
639: | |
640: | |
641: | |
642: | |
643: | public function getIntermediaryCity() { |
644: | return $this->intermediaryCity; |
645: | } |
646: | |
647: | |
648: | |
649: | |
650: | |
651: | |
652: | |
653: | public function setIntermediaryCity($intermediaryCity) { |
654: | $this->intermediaryCity = $intermediaryCity; |
655: | return $this; |
656: | } |
657: | |
658: | |
659: | |
660: | |
661: | |
662: | |
663: | public function getIntermediaryStateProvince() { |
664: | return $this->intermediaryStateProvince; |
665: | } |
666: | |
667: | |
668: | |
669: | |
670: | |
671: | |
672: | |
673: | public function setIntermediaryStateProvince($intermediaryStateProvince) { |
674: | $this->intermediaryStateProvince = $intermediaryStateProvince; |
675: | return $this; |
676: | } |
677: | |
678: | |
679: | |
680: | |
681: | |
682: | |
683: | public function getIntermediaryCountry() { |
684: | return $this->intermediaryCountry; |
685: | } |
686: | |
687: | |
688: | |
689: | |
690: | |
691: | |
692: | |
693: | public function setIntermediaryCountry($intermediaryCountry) { |
694: | $this->intermediaryCountry = $intermediaryCountry; |
695: | return $this; |
696: | } |
697: | |
698: | |
699: | |
700: | |
701: | |
702: | |
703: | public function getIntermediaryPostalCode() { |
704: | return $this->intermediaryPostalCode; |
705: | } |
706: | |
707: | |
708: | |
709: | |
710: | |
711: | |
712: | |
713: | public function setIntermediaryPostalCode($intermediaryPostalCode) { |
714: | $this->intermediaryPostalCode = $intermediaryPostalCode; |
715: | return $this; |
716: | } |
717: | |
718: | |
719: | |
720: | |
721: | |
722: | |
723: | public function getProfileType() { |
724: | return $this->profileType; |
725: | } |
726: | |
727: | |
728: | |
729: | |
730: | |
731: | |
732: | |
733: | public function setProfileType($profileType) { |
734: | $this->profileType = $profileType; |
735: | return $this; |
736: | } |
737: | |
738: | |
739: | |
740: | |
741: | |
742: | |
743: | public function getBusinessName() { |
744: | return $this->businessName; |
745: | } |
746: | |
747: | |
748: | |
749: | |
750: | |
751: | |
752: | |
753: | public function setBusinessName($businessName) { |
754: | $this->businessName = $businessName; |
755: | return $this; |
756: | } |
757: | |
758: | |
759: | |
760: | |
761: | |
762: | |
763: | public function getBusinessOperatingName() |
764: | { |
765: | return $this->businessOperatingName; |
766: | } |
767: | |
768: | |
769: | |
770: | |
771: | |
772: | |
773: | |
774: | public function setBusinessOperatingName($businessOperatingName) |
775: | { |
776: | $this->businessOperatingName = $businessOperatingName; |
777: | return $this; |
778: | } |
779: | |
780: | |
781: | |
782: | |
783: | |
784: | |
785: | public function getBusinessRegistrationId() { |
786: | return $this->businessRegistrationId; |
787: | } |
788: | |
789: | |
790: | |
791: | |
792: | |
793: | |
794: | |
795: | public function setBusinessRegistrationId($businessRegistrationId) { |
796: | $this->businessRegistrationId = $businessRegistrationId; |
797: | return $this; |
798: | } |
799: | |
800: | |
801: | |
802: | |
803: | |
804: | |
805: | public function getBusinessRegistrationCountry() { |
806: | return $this->businessRegistrationCountry; |
807: | } |
808: | |
809: | |
810: | |
811: | |
812: | |
813: | |
814: | |
815: | public function setBusinessRegistrationCountry($businessRegistrationCountry) { |
816: | $this->businessRegistrationCountry = $businessRegistrationCountry; |
817: | return $this; |
818: | } |
819: | |
820: | |
821: | |
822: | |
823: | |
824: | |
825: | public function getFirstName() { |
826: | return $this->firstName; |
827: | } |
828: | |
829: | |
830: | |
831: | |
832: | |
833: | |
834: | |
835: | public function setFirstName($firstName) { |
836: | $this->firstName = $firstName; |
837: | return $this; |
838: | } |
839: | |
840: | |
841: | |
842: | |
843: | |
844: | |
845: | public function getMiddleName() { |
846: | return $this->middleName; |
847: | } |
848: | |
849: | |
850: | |
851: | |
852: | |
853: | |
854: | |
855: | public function setMiddleName($middleName) { |
856: | $this->middleName = $middleName; |
857: | return $this; |
858: | } |
859: | |
860: | |
861: | |
862: | |
863: | |
864: | |
865: | public function getLastName() { |
866: | return $this->lastName; |
867: | } |
868: | |
869: | |
870: | |
871: | |
872: | |
873: | |
874: | |
875: | public function setLastName($lastName) { |
876: | $this->lastName = $lastName; |
877: | return $this; |
878: | } |
879: | |
880: | |
881: | |
882: | |
883: | |
884: | |
885: | public function getDateOfBirth() { |
886: | return $this->dateOfBirth ? new \DateTime($this->dateOfBirth) : null; |
887: | } |
888: | |
889: | |
890: | |
891: | |
892: | |
893: | |
894: | |
895: | public function setDateOfBirth(\DateTime $dateOfBirth = null) { |
896: | $this->dateOfBirth = $dateOfBirth == null ? null : $dateOfBirth->format('Y-m-d'); |
897: | return $this; |
898: | } |
899: | |
900: | |
901: | |
902: | |
903: | |
904: | |
905: | public function getCountryOfBirth() { |
906: | return $this->countryOfBirth; |
907: | } |
908: | |
909: | |
910: | |
911: | |
912: | |
913: | |
914: | |
915: | public function setCountryOfBirth($countryOfBirth) { |
916: | $this->countryOfBirth = $countryOfBirth; |
917: | return $this; |
918: | } |
919: | |
920: | |
921: | |
922: | |
923: | |
924: | |
925: | public function getCountryOfNationality() { |
926: | return $this->countryOfNationality; |
927: | } |
928: | |
929: | |
930: | |
931: | |
932: | |
933: | |
934: | |
935: | public function setCountryOfNationality($countryOfNationality) { |
936: | $this->countryOfNationality = $countryOfNationality; |
937: | return $this; |
938: | } |
939: | |
940: | |
941: | |
942: | |
943: | |
944: | |
945: | public function getPhoneNumber() { |
946: | return $this->phoneNumber; |
947: | } |
948: | |
949: | |
950: | |
951: | |
952: | |
953: | |
954: | |
955: | public function setPhoneNumber($phoneNumber) { |
956: | $this->phoneNumber = $phoneNumber; |
957: | return $this; |
958: | } |
959: | |
960: | |
961: | |
962: | |
963: | |
964: | |
965: | public function getMobileNumber() { |
966: | return $this->mobileNumber; |
967: | } |
968: | |
969: | |
970: | |
971: | |
972: | |
973: | |
974: | |
975: | public function setMobileNumber($mobileNumber) { |
976: | $this->mobileNumber = $mobileNumber; |
977: | return $this; |
978: | } |
979: | |
980: | |
981: | |
982: | |
983: | |
984: | |
985: | public function getGovernmentId() { |
986: | return $this->governmentId; |
987: | } |
988: | |
989: | |
990: | |
991: | |
992: | |
993: | |
994: | |
995: | public function setGovernmentId($governmentId) { |
996: | $this->governmentId = $governmentId; |
997: | return $this; |
998: | } |
999: | |
1000: | |
1001: | |
1002: | |
1003: | |
1004: | |
1005: | public function getAddressLine1() { |
1006: | return $this->addressLine1; |
1007: | } |
1008: | |
1009: | |
1010: | |
1011: | |
1012: | |
1013: | |
1014: | |
1015: | public function setAddressLine1($addressLine1) { |
1016: | $this->addressLine1 = $addressLine1; |
1017: | return $this; |
1018: | } |
1019: | |
1020: | |
1021: | |
1022: | |
1023: | |
1024: | |
1025: | public function getCity() { |
1026: | return $this->city; |
1027: | } |
1028: | |
1029: | |
1030: | |
1031: | |
1032: | |
1033: | |
1034: | |
1035: | public function setCity($city) { |
1036: | $this->city = $city; |
1037: | return $this; |
1038: | } |
1039: | |
1040: | |
1041: | |
1042: | |
1043: | |
1044: | |
1045: | public function getStateProvince() { |
1046: | return $this->stateProvince; |
1047: | } |
1048: | |
1049: | |
1050: | |
1051: | |
1052: | |
1053: | |
1054: | |
1055: | public function setStateProvince($stateProvince) { |
1056: | $this->stateProvince = $stateProvince; |
1057: | return $this; |
1058: | } |
1059: | |
1060: | |
1061: | |
1062: | |
1063: | |
1064: | |
1065: | public function getCountry() { |
1066: | return $this->country; |
1067: | } |
1068: | |
1069: | |
1070: | |
1071: | |
1072: | |
1073: | |
1074: | |
1075: | public function setCountry($country) { |
1076: | $this->country = $country; |
1077: | return $this; |
1078: | } |
1079: | |
1080: | |
1081: | |
1082: | |
1083: | |
1084: | |
1085: | public function getPostalCode() { |
1086: | return $this->postalCode; |
1087: | } |
1088: | |
1089: | |
1090: | |
1091: | |
1092: | |
1093: | |
1094: | |
1095: | public function setPostalCode($postalCode) { |
1096: | $this->postalCode = $postalCode; |
1097: | return $this; |
1098: | } |
1099: | |
1100: | |
1101: | |
1102: | |
1103: | |
1104: | |
1105: | public function getIsDefaultTransferMethod() { |
1106: | return $this->isDefaultTransferMethod; |
1107: | } |
1108: | |
1109: | |
1110: | |
1111: | |
1112: | |
1113: | |
1114: | |
1115: | public function setIsDefaultTransferMethod($isDefaultTransferMethod) { |
1116: | $this->isDefaultTransferMethod = $isDefaultTransferMethod; |
1117: | return $this; |
1118: | } |
1119: | } |
1120: | |