| 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: | |
| 18: | |
| 19: | |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | class HyperwalletVerificationDocumentReason extends BaseModel { |
| 25: | |
| 26: | |
| 27: | |
| 28: | |
| 29: | |
| 30: | |
| 31: | |
| 32: | |
| 33: | private static $READ_ONLY_FIELDS = array('name', 'description'); |
| 34: | |
| 35: | |
| 36: | |
| 37: | |
| 38: | |
| 39: | |
| 40: | public function __construct(array $properties = array()) { |
| 41: | parent::__construct(self::$READ_ONLY_FIELDS, $properties); |
| 42: | } |
| 43: | |
| 44: | |
| 45: | |
| 46: | |
| 47: | |
| 48: | |
| 49: | public function getName() { |
| 50: | return $this->name; |
| 51: | } |
| 52: | |
| 53: | |
| 54: | |
| 55: | |
| 56: | |
| 57: | |
| 58: | public function getDescription() { |
| 59: | return $this->description; |
| 60: | } |
| 61: | } |
| 62: | |
| 63: | |
| 64: | |
| 65: | |
| 66: | |
| 67: | |
| 68: | |
| 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: | |