Skip to content

Commit b77f855

Browse files
Merge pull request #94 from hyperwallet/feature/DTPAYHWBM-2-V3-php-adding-reject-reasons-adjustments
feature/DTPAYHWBM-2-V3-php-adding-reject-reasons (adjustments to previous PR)
2 parents 4a12041 + 724f10f commit b77f855

File tree

5 files changed

+12
-63
lines changed

5 files changed

+12
-63
lines changed

src/Hyperwallet/Hyperwallet.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
use Hyperwallet\Model\BankAccountStatusTransition;
1111
use Hyperwallet\Model\BankCard;
1212
use Hyperwallet\Model\BankCardStatusTransition;
13-
use Hyperwallet\Model\HyperWalletVerificationDocument;
14-
use Hyperwallet\Model\HyperWalletVerificationDocumentReason;
15-
use Hyperwallet\Model\HyperWalletVerificationDocumentCollection;
16-
use Hyperwallet\Model\HyperWalletVerificationDocumentReasonCollection;
13+
use Hyperwallet\Model\HyperwalletVerificationDocument;
14+
use Hyperwallet\Model\HyperwalletVerificationDocumentReason;
15+
use Hyperwallet\Model\HyperwalletVerificationDocumentCollection;
16+
use Hyperwallet\Model\HyperwalletVerificationDocumentReasonCollection;
1717
use Hyperwallet\Model\IProgramAware;
1818
use Hyperwallet\Model\PaperCheck;
1919
use Hyperwallet\Model\PaperCheckStatusTransition;

src/Hyperwallet/Model/HyperWalletVerificationDocument.php

+4-55
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace Hyperwallet\Model;
33

44
/**
5-
* Represents a V4 HyperwalletVerificationDocument
5+
* Represents a V3 HyperwalletVerificationDocument
66
*
77
* @property string $category The category of the document
88
* @property string $type The type of the document
@@ -61,17 +61,6 @@ public function getCategory() {
6161
return $this->category;
6262
}
6363

64-
// /**
65-
// * Set the document category
66-
// *
67-
// * @param string $category
68-
// * @return HyperwalletVerificationDocument
69-
// */
70-
// public function setCategory($category) {
71-
// $this->category = $category;
72-
// return $this;
73-
// }
74-
7564
/**
7665
* Get the document type
7766
*
@@ -81,16 +70,6 @@ public function getType() {
8170
return $this->type;
8271
}
8372

84-
// /**
85-
// * Set the document type
86-
// *
87-
// * @param string $type
88-
// * @return HyperwalletVerificationDocument
89-
// */
90-
// public function setType($type) {
91-
// $this->type = $type;
92-
// return $this;
93-
// }
9473

9574
/**
9675
* Get the country
@@ -101,60 +80,30 @@ public function getCountry() {
10180
return $this->country;
10281
}
10382

104-
// /**
105-
// * Set the country
106-
// *
107-
// * @param string $country
108-
// * @return HyperwalletVerificationDocument
109-
// */
110-
// public function setCountry($country) {
111-
// $this->country = $country;
112-
// return $this;
113-
// }
11483

11584
/**
11685
* Get the document reasons
11786
*
11887
* @return HyperwalletVerificationDocumentReason $reasons
11988
*/
120-
public function getReasons($reasons) {
89+
public function getReasons() {
12190
return $this->reasons;
12291
}
12392

124-
// /**
125-
// * Set the document reasons
126-
// *
127-
// * @param HyperwalletVerificationDocumentReason $reasons
128-
// * @return HyperwalletVerificationDocument
129-
// */
130-
// public function setReasons($reasons) {
131-
// $this->reasons = $reasons;
132-
// return $this;
133-
// }
13493

13594
/**
13695
* Get the uploadFiles
13796
*
13897
* @return object $uploadFiles
13998
*/
140-
public function getUploadFiles($uploadFiles) {
99+
public function getUploadFiles() {
141100
return $this->uploadFiles;
142101
}
143102

144-
// /**
145-
// * Set the uploadFiles
146-
// *
147-
// * @param object $uploadFiles
148-
// * @return HyperwalletVerificationDocument
149-
// */
150-
// public function setUploadFiles($uploadFiles) {
151-
// $this->uploadFiles = $uploadFiles;
152-
// return $this;
153-
// }
154103
}
155104

156105
/**
157-
* Represents a V4 HyperwalletVerificationDocumentCollection
106+
* Represents a V3 HyperwalletVerificationDocumentCollection
158107
*
159108
* @property array $documents The list of documents
160109
*

src/Hyperwallet/Model/HyperwalletVerificationDocumentReason.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract class RejectReason {
1414

1515

1616
/**
17-
* Represents a V4 HyperwalletVerificationDocumentReason
17+
* Represents a V3 HyperwalletVerificationDocumentReason
1818
*
1919
* @property RejectReason $name The reason for rejection
2020
* @property string $description The description of the rejection
@@ -61,7 +61,7 @@ public function getDescription() {
6161
}
6262

6363
/**
64-
* Represents a V4 HyperwalletVerificationDocumentReasonsCollection
64+
* Represents a V3 HyperwalletVerificationDocumentReasonsCollection
6565
*
6666
* @property array $reasons The list of reasons
6767
*

src/Hyperwallet/Model/VenmoAccountStatusTransition.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Hyperwallet\Model;
55

66
/**
7-
* Represents a V4 Venmo Account Status Transition
7+
* Represents a V3 Venmo Account Status Transition
88
*
99
* @package Hyperwallet\Model
1010
*/

tests/Hyperwallet/Tests/HyperwalletTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4192,7 +4192,7 @@ public function testuploadDocumentsForUser_parseReasons() {
41924192
$this->assertNotNull($newUser);
41934193
$this->assertNull($newUser->getProgramToken());
41944194
$this->assertEquals($this->UPLOAD_REASON_DATA()["documents"][0]["type"], $newUser->documents->documents[0]->type);
4195-
4195+
$this->assertEquals($this->UPLOAD_REASON_DATA()["documents"][0]["reasons"][0]["name"], $newUser->documents->documents[0]->reasons->reasons[0]->name);
41964196
// Validate mock
41974197
\Phake::verify($apiClientMock)->putMultipartData('/rest/v3/users/{user-token}', array('user-token' => $userToken), $options);
41984198
}

0 commit comments

Comments
 (0)