1: <?php
2: namespace Hyperwallet\Model;
3:
4: abstract class RejectReason {
5: const DOCUMENT_EXPIRED = 0;
6: const DOCUMENT_NOT_RELATED_TO_PROFILE = 1;
7: const DOCUMENT_NOT_READABLE = 2;
8: const DOCUMENT_NOT_DECISIVE = 3;
9: const DOCUMENT_NOT_COMPLETE = 4;
10: const DOCUMENT_CORRECTION_REQUIRED = 5;
11: const DOCUMENT_NOT_VALID_WITH_NOTES = 6;
12: const DOCUMENT_TYPE_NOT_VALID = 7;
13: }
14:
15:
16: /**
17: * Represents a V4 HyperwalletVerificationDocumentReason
18: *
19: * @property RejectReason $name The reason for rejection
20: * @property string $description The description of the rejection
21: *
22: * @package Hyperwallet\Model
23: */
24: class HyperwalletVerificationDocumentReason extends BaseModel {
25:
26: /**
27: * @internal
28: *
29: * Read only fields
30: *
31: * @var string[]
32: */
33: private static $READ_ONLY_FIELDS = array('name', 'description');
34:
35: /**
36: * Creates a instance of HyperwalletVerificationReason
37: *
38: * @param string[] $properties The default properties
39: */
40: public function __construct(array $properties = array()) {
41: parent::__construct(self::$READ_ONLY_FIELDS, $properties);
42: }
43:
44: /**
45: * Get the Rejection Reason
46: *
47: * @return RejectReason
48: */
49: public function getName() {
50: return $this->name;
51: }
52:
53: /**
54: * Get the description
55: *
56: * @return string
57: */
58: public function getDescription() {
59: return $this->description;
60: }
61: }
62:
63: /**
64: * Represents a V4 HyperwalletVerificationDocumentReasonsCollection
65: *
66: * @property array $reasons The list of reasons
67: *
68: * @package Hyperwallet\Model
69: */
70: class HyperwalletVerificationDocumentReasonCollection {
71:
72: public function __construct(HyperwalletVerificationDocumentReason ...$reasons) {
73: $this->reasons = $reasons;
74: }
75:
76: public function getReasons() {
77: return $this->reasons;
78: }
79:
80: public function getIterator() {
81: return new \ArrayIterator($this->reasons);
82: }
83:
84: }
85: