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: | class PaperCheck extends BaseModel { |
48: | |
49: | |
50: | |
51: | |
52: | |
53: | |
54: | |
55: | |
56: | private static $READ_ONLY_FIELDS = array('phoneNumber', 'passportId', 'mobileNumber', 'middleName', 'lastName', 'governmentIdType', 'governmentId', 'gender', 'firstName', 'employerId', 'driversLicenseId', 'dateOfBirth', 'countryOfNationality', 'countryOfBirth', 'businessType', 'businessRegistrationStateProvince', 'businessRegistrationId', 'businessRegistrationCountry', 'businessName', 'businessOperatingName', 'businessContactRole', 'createdOn', 'status', 'token'); |
57: | |
58: | const TYPE_PAPER_CHECK = 'PAPER_CHECK'; |
59: | |
60: | const STATUS_ACTIVATED = 'ACTIVATED'; |
61: | const STATUS_VERIFIED = 'VERIFIED'; |
62: | const STATUS_INVALID = 'INVALID'; |
63: | const STATUS_DE_ACTIVATED = 'DE_ACTIVATED'; |
64: | |
65: | const BUSINESS_CONTACT_ROLE_DIRECTOR = 'DIRECTOR'; |
66: | const BUSINESS_CONTACT_ROLE_OWNER = 'OWNER'; |
67: | const BUSINESS_CONTACT_ROLE_OTHER = 'OTHER'; |
68: | |
69: | const BUSINESS_TYPE_CORPORATION = 'CORPORATION'; |
70: | const BUSINESS_TYPE_PARTNERSHIP = 'PARTNERSHIP'; |
71: | |
72: | const GENDER_MALE = 'MALE'; |
73: | const GENDER_FEMALE = 'FEMALE'; |
74: | |
75: | const GOVERNMENT_ID_TYPE_PASSPORT = 'PASSPORT'; |
76: | const GOVERNMENT_ID_TYPE_NATIONAL_ID_CARD = 'NATIONAL_ID_CARD'; |
77: | |
78: | const PROFILE_TYPE_INDIVIDUAL = 'INDIVIDUAL'; |
79: | const PROFILE_TYPE_BUSINESS = 'BUSINESS'; |
80: | |
81: | const SHIPPING_METHOD_STANDARD = 'STANDARD'; |
82: | const SHIPPING_METHOD_EXPEDITED = 'EXPEDITED'; |
83: | |
84: | public static function FILTERS_ARRAY() { |
85: | return array('status', 'createdBefore', 'createdAfter', 'sortBy', 'limit'); |
86: | } |
87: | |
88: | |
89: | |
90: | |
91: | |
92: | |
93: | public function __construct(array $properties = array()) { |
94: | parent::__construct(self::$READ_ONLY_FIELDS, $properties); |
95: | } |
96: | |
97: | |
98: | |
99: | |
100: | |
101: | |
102: | public function getToken() { |
103: | return $this->token; |
104: | } |
105: | |
106: | |
107: | |
108: | |
109: | |
110: | |
111: | |
112: | public function setToken($token) { |
113: | $this->token = $token; |
114: | return $this; |
115: | } |
116: | |
117: | |
118: | |
119: | |
120: | |
121: | |
122: | public function getStatus() { |
123: | return $this->status; |
124: | } |
125: | |
126: | |
127: | |
128: | |
129: | |
130: | |
131: | public function getCreatedOn() { |
132: | return $this->createdOn ? new \DateTime($this->createdOn) : null; |
133: | } |
134: | |
135: | |
136: | |
137: | |
138: | |
139: | |
140: | public function getType() { |
141: | return $this->type; |
142: | } |
143: | |
144: | |
145: | |
146: | |
147: | |
148: | |
149: | |
150: | public function setType($type) { |
151: | $this->type = $type; |
152: | return $this; |
153: | } |
154: | |
155: | |
156: | |
157: | |
158: | |
159: | |
160: | public function getTransferMethodCountry() { |
161: | return $this->transferMethodCountry; |
162: | } |
163: | |
164: | |
165: | |
166: | |
167: | |
168: | |
169: | |
170: | public function setTransferMethodCountry($transferMethodCountry) { |
171: | $this->transferMethodCountry = $transferMethodCountry; |
172: | return $this; |
173: | } |
174: | |
175: | |
176: | |
177: | |
178: | |
179: | |
180: | public function getTransferMethodCurrency() { |
181: | return $this->transferMethodCurrency; |
182: | } |
183: | |
184: | |
185: | |
186: | |
187: | |
188: | |
189: | |
190: | public function setTransferMethodCurrency($transferMethodCurrency) { |
191: | $this->transferMethodCurrency = $transferMethodCurrency; |
192: | return $this; |
193: | } |
194: | |
195: | |
196: | |
197: | |
198: | |
199: | |
200: | public function getAddressLine1() { |
201: | return $this->addressLine1; |
202: | } |
203: | |
204: | |
205: | |
206: | |
207: | |
208: | |
209: | |
210: | public function setAddressLine1($addressLine1) { |
211: | $this->addressLine1 = $addressLine1; |
212: | return $this; |
213: | } |
214: | |
215: | |
216: | |
217: | |
218: | |
219: | |
220: | public function getAddressLine2() { |
221: | return $this->addressLine2; |
222: | } |
223: | |
224: | |
225: | |
226: | |
227: | |
228: | |
229: | |
230: | public function setAddressLine2($addressLine2) { |
231: | $this->addressLine2 = $addressLine2; |
232: | return $this; |
233: | } |
234: | |
235: | |
236: | |
237: | |
238: | |
239: | |
240: | public function getBusinessContactRole() { |
241: | return $this->businessContactRole; |
242: | } |
243: | |
244: | |
245: | |
246: | |
247: | |
248: | |
249: | public function getBusinessName() { |
250: | return $this->businessName; |
251: | } |
252: | |
253: | |
254: | |
255: | |
256: | |
257: | |
258: | public function getBusinessOperatingName() |
259: | { |
260: | return $this->businessOperatingName; |
261: | } |
262: | |
263: | |
264: | |
265: | |
266: | |
267: | |
268: | public function getBusinessRegistrationCountry() { |
269: | return $this->businessRegistrationCountry; |
270: | } |
271: | |
272: | |
273: | |
274: | |
275: | |
276: | |
277: | public function getBusinessRegistrationId() { |
278: | return $this->businessRegistrationId; |
279: | } |
280: | |
281: | |
282: | |
283: | |
284: | |
285: | |
286: | public function getBusinessRegistrationStateProvince() { |
287: | return $this->businessRegistrationStateProvince; |
288: | } |
289: | |
290: | |
291: | |
292: | |
293: | |
294: | |
295: | public function getBusinessType() { |
296: | return $this->businessType; |
297: | } |
298: | |
299: | |
300: | |
301: | |
302: | |
303: | |
304: | public function getCity() { |
305: | return $this->city; |
306: | } |
307: | |
308: | |
309: | |
310: | |
311: | |
312: | |
313: | |
314: | public function setCity($city) { |
315: | $this->city = $city; |
316: | return $this; |
317: | } |
318: | |
319: | |
320: | |
321: | |
322: | |
323: | |
324: | public function getCountry() { |
325: | return $this->country; |
326: | } |
327: | |
328: | |
329: | |
330: | |
331: | |
332: | |
333: | |
334: | public function setCountry($country) { |
335: | $this->country = $country; |
336: | return $this; |
337: | } |
338: | |
339: | |
340: | |
341: | |
342: | |
343: | |
344: | public function getCountryOfBirth() { |
345: | return $this->countryOfBirth; |
346: | } |
347: | |
348: | |
349: | |
350: | |
351: | |
352: | |
353: | public function getCountryOfNationality() { |
354: | return $this->countryOfNationality; |
355: | } |
356: | |
357: | |
358: | |
359: | |
360: | |
361: | |
362: | public function getDateOfBirth() { |
363: | return $this->dateOfBirth ? new \DateTime($this->dateOfBirth) : null; |
364: | } |
365: | |
366: | |
367: | |
368: | |
369: | |
370: | |
371: | public function getDriversLicenseId() { |
372: | return $this->driversLicenseId; |
373: | } |
374: | |
375: | |
376: | |
377: | |
378: | |
379: | |
380: | public function getEmployerId() { |
381: | return $this->employerId; |
382: | } |
383: | |
384: | |
385: | |
386: | |
387: | |
388: | |
389: | public function getFirstName() { |
390: | return $this->firstName; |
391: | } |
392: | |
393: | |
394: | |
395: | |
396: | |
397: | |
398: | public function getGender() { |
399: | return $this->gender; |
400: | } |
401: | |
402: | |
403: | |
404: | |
405: | |
406: | |
407: | public function getGovernmentId() { |
408: | return $this->governmentId; |
409: | } |
410: | |
411: | |
412: | |
413: | |
414: | |
415: | |
416: | public function getGovernmentIdType() { |
417: | return $this->governmentIdType; |
418: | } |
419: | |
420: | |
421: | |
422: | |
423: | |
424: | |
425: | public function getIsDefaultTransferMethod() { |
426: | return $this->isDefaultTransferMethod; |
427: | } |
428: | |
429: | |
430: | |
431: | |
432: | |
433: | |
434: | |
435: | public function setIsDefaultTransferMethod($isDefaultTransferMethod) { |
436: | $this->isDefaultTransferMethod = $isDefaultTransferMethod; |
437: | return $this; |
438: | } |
439: | |
440: | |
441: | |
442: | |
443: | |
444: | |
445: | public function getLastName() { |
446: | return $this->lastName; |
447: | } |
448: | |
449: | |
450: | |
451: | |
452: | |
453: | |
454: | public function getMiddleName() { |
455: | return $this->middleName; |
456: | } |
457: | |
458: | |
459: | |
460: | |
461: | |
462: | |
463: | public function getMobileNumber() { |
464: | return $this->mobileNumber; |
465: | } |
466: | |
467: | |
468: | |
469: | |
470: | |
471: | |
472: | public function getPassportId() { |
473: | return $this->passportId; |
474: | } |
475: | |
476: | |
477: | |
478: | |
479: | |
480: | |
481: | public function getPhoneNumber() { |
482: | return $this->phoneNumber; |
483: | } |
484: | |
485: | |
486: | |
487: | |
488: | |
489: | |
490: | public function getPostalCode() { |
491: | return $this->postalCode; |
492: | } |
493: | |
494: | |
495: | |
496: | |
497: | |
498: | |
499: | |
500: | public function setPostalCode($postalCode) { |
501: | $this->postalCode = $postalCode; |
502: | return $this; |
503: | } |
504: | |
505: | |
506: | |
507: | |
508: | |
509: | |
510: | public function getProfileType() { |
511: | return $this->profileType; |
512: | } |
513: | |
514: | |
515: | |
516: | |
517: | |
518: | |
519: | |
520: | public function setProfileType($profileType) { |
521: | $this->profileType = $profileType; |
522: | return $this; |
523: | } |
524: | |
525: | |
526: | |
527: | |
528: | |
529: | |
530: | public function getShippingMethod() { |
531: | return $this->shippingMethod; |
532: | } |
533: | |
534: | |
535: | |
536: | |
537: | |
538: | |
539: | |
540: | public function setShippingMethod($shippingMethod) { |
541: | $this->shippingMethod = $shippingMethod; |
542: | return $this; |
543: | } |
544: | |
545: | |
546: | |
547: | |
548: | |
549: | |
550: | public function getStateProvince() { |
551: | return $this->stateProvince; |
552: | } |
553: | |
554: | |
555: | |
556: | |
557: | |
558: | |
559: | |
560: | public function setStateProvince($stateProvince) { |
561: | $this->stateProvince = $stateProvince; |
562: | return $this; |
563: | } |
564: | |
565: | } |
566: | |