Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added missing parameter to uploadDocument() #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions lib/CustomersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ public function getCustomerDocuments($id, $headers = null) {
* @param string $id ID of customer. (required)
* @return Unit
*/
public function uploadDocument($id, $headers = null) {
public function uploadDocument($body, $id, $headers = null) {

// verify the required parameter 'id' is set
if ($id === null) {
Expand All @@ -709,7 +709,7 @@ public function uploadDocument($id, $headers = null) {
$queryParams = array();
$headerParams = array();
$formParams = array();
$_header_accept = $this->apiClient->selectHeaderAccept(array());
$_header_accept = $this->apiClient->selectHeaderAccept(array('application/vnd.dwolla.v1.hal+json'));
if (!is_null($_header_accept)) {
$headerParams['Accept'] = $_header_accept;
}
Expand All @@ -732,7 +732,11 @@ public function uploadDocument($id, $headers = null) {
$this->apiClient->toPathValue($id), $resourcePath);
}


// body params
$_tempBody = null;
if (isset($body)) {
$_tempBody = $body;
}

// for model (json/xml)
if (isset($_tempBody)) {
Expand All @@ -754,6 +758,7 @@ public function uploadDocument($id, $headers = null) {
return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'Unit');
}


/**
* createFundingSourcesTokenForCustomer
*
Expand Down Expand Up @@ -1179,4 +1184,4 @@ public function getLabelsForCustomer($id, $limit = null, $offset = null, $header
return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'LabelListResponse');
}

}
}