• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperwallet / php-sdk / 3912820865

pending completion
3912820865

push

github

GitHub
DTPAYETWO-761- Added 'isDefaultTransferMethod' attribute for default accounts(V3) (#125)

12 of 12 new or added lines in 4 files covered. (100.0%)

1821 of 1861 relevant lines covered (97.85%)

18.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

30.77
/src/Hyperwallet/Model/HyperWalletVerificationDocument.php
1
<?php
2
namespace Hyperwallet\Model;
3

4
/**
5
 * Represents a V3 HyperwalletVerificationDocument
6
 *
7
 * @property string $category The category of the document
8
 * @property string $type The type of the document
9
 * @property string $status The status of the document
10
 * @property string $country The country origin of the document
11
 * @property HyperwalletVerificationDocumentReasonCollection $reasons The reasons for the documents rejection of type HyperwalletVerificationDocumentReasons
12
 * @property \DateTime $createdOn The document creation date
13
 * @property object $uploadFiles The files uploaded
14
 *
15
 * @package Hyperwallet\Model
16
 */
17
class HyperWalletVerificationDocument extends BaseModel {
18

19
    /**
20
     * @internal
21
     *
22
     * Read only fields
23
     *
24
     * @var string[]
25
     */
26
    private static $READ_ONLY_FIELDS = array('category', 'type', 'status', 'country', 'reasons', 'createdOn', 'uploadFiles');
27

28
    /**
29
     * Creates a instance of HyperwalletVerificationDocument
30
     *
31
     * @param string[] $properties The default properties
32
     */
33
    public function __construct(array $properties = array()) {
34
        parent::__construct(self::$READ_ONLY_FIELDS, $properties);
3✔
35
    }
3✔
36

37
    /**
38
     * Get the HyperwalletVerificationDocument creation date
39
     *
40
     * @return \DateTime
41
     */
42
    public function getCreatedOn() {
43
        return $this->createdOn ? new \DateTime($this->createdOn) : null;
×
44
    }
45

46
    /**
47
     * Get the document status
48
     *
49
     * @return string
50
     */
51
    public function getStatus() {
52
        return $this->status;
×
53
    }
54

55
    /**
56
     * Get the document category
57
     *
58
     * @return string
59
     */
60
    public function getCategory() {
61
        return $this->category;
×
62
    }
63

64
    /**
65
     * Get the document type
66
     *
67
     * @return string
68
     */
69
    public function getType() {
70
        return $this->type;
×
71
    }
72

73

74
    /**
75
     * Get the country
76
     *
77
     * @return string
78
     */
79
    public function getCountry() {
80
        return $this->country;
×
81
    }
82

83

84
    /**
85
     * Get the document reasons
86
     *
87
     * @return HyperwalletVerificationDocumentReason $reasons
88
     */
89
    public function getReasons() {
90
        return $this->reasons;
×
91
    }
92

93

94
    /**
95
     * Get the uploadFiles
96
     *
97
     * @return object $uploadFiles
98
     */
99
    public function getUploadFiles() {
100
        return $this->uploadFiles;
×
101
    }
102

103
}
104

105
/**
106
 * Represents a V3 HyperwalletVerificationDocumentCollection
107
 *
108
 * @property array $documents The list of documents
109
 *
110
 * @package Hyperwallet\Model
111
 */
112
class HyperwalletVerificationDocumentCollection {
113

114
    public function __construct(HyperWalletVerificationDocument ...$documents) {
115
        $this->documents = $documents;
3✔
116
    }
3✔
117

118
    public function getDocuments() {
119
        return $this->documents;
×
120
    }
121
   
122
    public function getIterator() {
123
        return new \ArrayIterator($this->documents);
×
124
    }
125
   
126
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc