diff --git a/README.md b/README.md index 1bd5c80..386c6ce 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The new Dwolla API V2 SDK, as generated by [this fork of swagger-codegen](https: ## Version -1.0.20 +1.1.0 ## Installation @@ -33,7 +33,7 @@ To get started, all you need to set is the `access_token` and `host` values. DwollaSwagger\Configuration::$access_token = 'a token'; # For Sandbox -$apiClient = new DwollaSwagger\ApiClient("https://api-sandbox.dwolla.com/"); +$apiClient = new DwollaSwagger\ApiClient("https://api-sandbox.dwolla.com"); # For production $apiClient = new DwollaSwagger\ApiClient("https://api.dwolla.com"); @@ -91,6 +91,9 @@ Each API module is named in accordance to ([Dwolla's API Spec](http://docsv2.dwo * `DocumentsApi` * `EventsApi` * `FundingsourcesApi` +* `LabelsApi` +* `LabelreallocationsApi` +* `LedgerentriesApi` * `MasspaymentitemsApi` * `MasspaymentsApi` * `OndemandauthorizationsApi` @@ -151,6 +154,12 @@ Each model represents the different kinds of requests and responses that can be ## Changelog +1.1.0 +* API schema updated, `CustomersApi` updated to support Labels related endpoints. +* New `LabelsApi`, `LabelreallocationsApi`, and `LedgerentriesApi`. +* Existing `CreateCustomer`, `Customer`, `MassPaymentRequestBody`, `MassPaymentRequestBody`, `Owner`, `Transfer`, `TransferRequestBody` and `UpdateCustomer` models updated. +* New `AddLabelLedgerEntryRequest`, `CreateCustomerLabelRequest`, `Label`, `LabelListResponse`, `LabelReallocation`, `LabelReallocationRequest`, `LedgerEntry`, and `LedgerEntryListResponse` models. + 1.0.20 * Fix previously patched issue with parsing Location header in 201 response in ApiClient. diff --git a/lib/ApiClient.php b/lib/ApiClient.php index aecd0dd..8b4705d 100644 --- a/lib/ApiClient.php +++ b/lib/ApiClient.php @@ -35,7 +35,7 @@ class ApiClient { /* * @var string user agent of the HTTP request, set to "PHP-Swagger" by default */ - protected $user_agent = "PHP-Swagger"; + protected $user_agent = "php-swagger-1.1.0"; /** * @param string $host Base url of the API server (optional) diff --git a/lib/CustomersApi.php b/lib/CustomersApi.php index c42dc7f..5427f60 100644 --- a/lib/CustomersApi.php +++ b/lib/CustomersApi.php @@ -852,5 +852,146 @@ public function getCustomerIavToken($id) { return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'IavToken'); } + /** + * createLabel + * + * Create a label. + * + * @param CreateCustomerLabelRequest $body Label to create. (required) + * @param string $id Customer id to create label for. (required) + * @return Label + */ + public function createLabel($body, $id) { + + // verify the required parameter 'id' is set + if ($id === null) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling createLabel'); + } + + + // parse inputs + $resourcePath = "/customers/{id}/labels"; + $resourcePath = str_replace("{format}", "json", $resourcePath); + $method = "POST"; + $httpBody = ''; + $queryParams = array(); + $headerParams = array(); + $formParams = array(); + $_header_accept = $this->apiClient->selectHeaderAccept(array('application/vnd.dwolla.v1.hal+json')); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array('application/vnd.dwolla.v1.hal+json')); + + + + + // Entire URL for ID + if (filter_var($id, FILTER_VALIDATE_URL)) { + $split = explode('/', $id); + $id = end($split); + } + // path params + if($id !== null) { + $resourcePath = str_replace("{" . "id" . "}", + $this->apiClient->toPathValue($id), $resourcePath); + } + + // body params + $_tempBody = null; + if (isset($body)) { + $_tempBody = $body; + } + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } else if (count($formParams) > 0) { + // for HTTP post (form) + $httpBody = $formParams; + } + + // make the API Call + $response = $this->apiClient->callAPI($resourcePath, $method, + $queryParams, $httpBody, + $headerParams, $this->authSettings); + + if(!$response[1]) { + return null; + } + + return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'Label'); + } + + /** + * getLabelsForCustomer + * + * Get labels for customer. + * + * @param string $id Customer id to get labels for. (required) + * @return LabelListResponse + */ + public function getLabelsForCustomer($id, $limit = null, $offset = null) { + + // verify the required parameter 'id' is set + if ($id === null) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling getLabelsForCustomer'); + } + + + // parse inputs + $resourcePath = "/customers/{id}/labels"; + $resourcePath = str_replace("{format}", "json", $resourcePath); + $method = "GET"; + $httpBody = ''; + $queryParams = array(); + $headerParams = array(); + $formParams = array(); + $_header_accept = $this->apiClient->selectHeaderAccept(array('application/vnd.dwolla.v1.hal+json')); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array('application/vnd.dwolla.v1.hal+json')); + + // query params + if($limit !== null) { + $queryParams['limit'] = $this->apiClient->toQueryValue($limit); + }// query params + if($offset !== null) { + $queryParams['offset'] = $this->apiClient->toQueryValue($offset); + } + + // Entire URL for ID + if (filter_var($id, FILTER_VALIDATE_URL)) { + $split = explode('/', $id); + $id = end($split); + } + // path params + if($id !== null) { + $resourcePath = str_replace("{" . "id" . "}", + $this->apiClient->toPathValue($id), $resourcePath); + } + + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } else if (count($formParams) > 0) { + // for HTTP post (form) + $httpBody = $formParams; + } + + // make the API Call + $response = $this->apiClient->callAPI($resourcePath, $method, + $queryParams, $httpBody, + $headerParams, $this->authSettings); + + if(!$response[1]) { + return null; + } + + return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'LabelListResponse'); + } -} +} \ No newline at end of file diff --git a/lib/LabelreallocationsApi.php b/lib/LabelreallocationsApi.php new file mode 100644 index 0000000..a556c99 --- /dev/null +++ b/lib/LabelreallocationsApi.php @@ -0,0 +1,182 @@ +apiClient = Configuration::$apiClient; + } + else + $this->apiClient = Configuration::$apiClient; // use the default one + } else { + $this->apiClient = $apiClient; // use the one provided by the user + } + + // Authentication methods + $this->authSettings = array('oauth2'); + } + + private $apiClient; // instance of the ApiClient + + /** + * get the API client + */ + public function getApiClient() { + return $this->apiClient; + } + + /** + * set the API client + */ + public function setApiClient($apiClient) { + $this->apiClient = $apiClient; + } + + + /** + * reallocateLabel + * + * Reallocate two labels. + * + * @param LabelReallocationRequest $body Labels to reallocate. (required) + * @return LabelReallocation + */ + public function reallocateLabel($body) { + + + // parse inputs + $resourcePath = "/label-reallocations"; + $resourcePath = str_replace("{format}", "json", $resourcePath); + $method = "POST"; + $httpBody = ''; + $queryParams = array(); + $headerParams = array(); + $formParams = array(); + $_header_accept = $this->apiClient->selectHeaderAccept(array('application/vnd.dwolla.v1.hal+json')); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array('application/vnd.dwolla.v1.hal+json')); + + + + + + // body params + $_tempBody = null; + if (isset($body)) { + $_tempBody = $body; + } + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } else if (count($formParams) > 0) { + // for HTTP post (form) + $httpBody = $formParams; + } + + // make the API Call + $response = $this->apiClient->callAPI($resourcePath, $method, + $queryParams, $httpBody, + $headerParams, $this->authSettings); + + if(!$response[1]) { + return null; + } + + return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'LabelReallocation'); + } + + /** + * getLabelReallocation + * + * Get label reallocation. + * + * @param string $id Label reallocation ID (required) + * @return LabelReallocation + */ + public function getLabelReallocation($id) { + + // verify the required parameter 'id' is set + if ($id === null) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling getLabelReallocation'); + } + + + // parse inputs + $resourcePath = "/label-reallocations/{id}"; + $resourcePath = str_replace("{format}", "json", $resourcePath); + $method = "GET"; + $httpBody = ''; + $queryParams = array(); + $headerParams = array(); + $formParams = array(); + $_header_accept = $this->apiClient->selectHeaderAccept(array('application/vnd.dwolla.v1.hal+json')); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array('application/vnd.dwolla.v1.hal+json')); + + + + + // Entire URL for ID + if (filter_var($id, FILTER_VALIDATE_URL)) { + $split = explode('/', $id); + $id = end($split); + } + // path params + if($id !== null) { + $resourcePath = str_replace("{" . "id" . "}", + $this->apiClient->toPathValue($id), $resourcePath); + } + + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } else if (count($formParams) > 0) { + // for HTTP post (form) + $httpBody = $formParams; + } + + // make the API Call + $response = $this->apiClient->callAPI($resourcePath, $method, + $queryParams, $httpBody, + $headerParams, $this->authSettings); + + if(!$response[1]) { + return null; + } + + return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'LabelReallocation'); + } + + +} diff --git a/lib/LabelsApi.php b/lib/LabelsApi.php new file mode 100644 index 0000000..8a81854 --- /dev/null +++ b/lib/LabelsApi.php @@ -0,0 +1,335 @@ +apiClient = Configuration::$apiClient; + } + else + $this->apiClient = Configuration::$apiClient; // use the default one + } else { + $this->apiClient = $apiClient; // use the one provided by the user + } + + // Authentication methods + $this->authSettings = array('oauth2'); + } + + private $apiClient; // instance of the ApiClient + + /** + * get the API client + */ + public function getApiClient() { + return $this->apiClient; + } + + /** + * set the API client + */ + public function setApiClient($apiClient) { + $this->apiClient = $apiClient; + } + + + /** + * getLabel + * + * Get a label by id. + * + * @param string $id ID of label to get. (required) + * @return Label + */ + public function getLabel($id) { + + // verify the required parameter 'id' is set + if ($id === null) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling byId'); + } + + + // parse inputs + $resourcePath = "/labels/{id}"; + $resourcePath = str_replace("{format}", "json", $resourcePath); + $method = "GET"; + $httpBody = ''; + $queryParams = array(); + $headerParams = array(); + $formParams = array(); + $_header_accept = $this->apiClient->selectHeaderAccept(array('application/vnd.dwolla.v1.hal+json')); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array()); + + + + + // Entire URL for ID + if (filter_var($id, FILTER_VALIDATE_URL)) { + $split = explode('/', $id); + $id = end($split); + } + // path params + if($id !== null) { + $resourcePath = str_replace("{" . "id" . "}", + $this->apiClient->toPathValue($id), $resourcePath); + } + + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } else if (count($formParams) > 0) { + // for HTTP post (form) + $httpBody = $formParams; + } + + // make the API Call + $response = $this->apiClient->callAPI($resourcePath, $method, + $queryParams, $httpBody, + $headerParams, $this->authSettings); + + if(!$response[1]) { + return null; + } + + return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'Label'); + } + + /** + * removeLabel + * + * Remove a label. + * + * @param string $id Label id to remove. (required) + * @return Label + */ + public function removeLabel($id) { + + // verify the required parameter 'id' is set + if ($id === null) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling removeLabel'); + } + + + // parse inputs + $resourcePath = "/labels/{id}"; + $resourcePath = str_replace("{format}", "json", $resourcePath); + $method = "DELETE"; + $httpBody = ''; + $queryParams = array(); + $headerParams = array(); + $formParams = array(); + $_header_accept = $this->apiClient->selectHeaderAccept(array('application/vnd.dwolla.v1.hal+json')); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array('application/vnd.dwolla.v1.hal+json')); + + + + + // Entire URL for ID + if (filter_var($id, FILTER_VALIDATE_URL)) { + $split = explode('/', $id); + $id = end($split); + } + // path params + if($id !== null) { + $resourcePath = str_replace("{" . "id" . "}", + $this->apiClient->toPathValue($id), $resourcePath); + } + + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } else if (count($formParams) > 0) { + // for HTTP post (form) + $httpBody = $formParams; + } + + // make the API Call + $response = $this->apiClient->callAPI($resourcePath, $method, + $queryParams, $httpBody, + $headerParams, $this->authSettings); + + if(!$response[1]) { + return null; + } + + return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'Label'); + } + + /** + * getLedgerEntriesForLabel + * + * Get ledger entries by label id. + * + * @param string $id ID of label to get ledger entries for. (required) + * @param int $limit How many results to return. (optional) + * @param int $offset How many results to skip. (optional) + * @return LedgerEntryListResponse + */ + public function getLedgerEntriesForLabel($id, $limit = null, $offset = null) { + + // verify the required parameter 'id' is set + if ($id === null) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling getLedgerEntriesForLabel'); + } + + + // parse inputs + $resourcePath = "/labels/{id}/ledger-entries"; + $resourcePath = str_replace("{format}", "json", $resourcePath); + $method = "GET"; + $httpBody = ''; + $queryParams = array(); + $headerParams = array(); + $formParams = array(); + $_header_accept = $this->apiClient->selectHeaderAccept(array('application/vnd.dwolla.v1.hal+json')); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array()); + + // query params + if($limit !== null) { + $queryParams['limit'] = $this->apiClient->toQueryValue($limit); + }// query params + if($offset !== null) { + $queryParams['offset'] = $this->apiClient->toQueryValue($offset); + } + // Entire URL for ID + if (filter_var($id, FILTER_VALIDATE_URL)) { + $split = explode('/', $id); + $id = end($split); + } + // path params + if($id !== null) { + $resourcePath = str_replace("{" . "id" . "}", + $this->apiClient->toPathValue($id), $resourcePath); + } + + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } else if (count($formParams) > 0) { + // for HTTP post (form) + $httpBody = $formParams; + } + + // make the API Call + $response = $this->apiClient->callAPI($resourcePath, $method, + $queryParams, $httpBody, + $headerParams, $this->authSettings); + + if(!$response[1]) { + return null; + } + + return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'LedgerEntryListResponse'); + } + + /** + * addLedgerEntry + * + * Add ledger entry. + * + * @param AddLabelLedgerEntryRequest $body Ledger entry to add. (required) + * @param string $id Label id to add the ledger entry for. (required) + * @return LedgerEntry + */ + public function addLedgerEntry($body, $id) { + + // verify the required parameter 'id' is set + if ($id === null) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling addLedgerEntry'); + } + + + // parse inputs + $resourcePath = "/labels/{id}/ledger-entries"; + $resourcePath = str_replace("{format}", "json", $resourcePath); + $method = "POST"; + $httpBody = ''; + $queryParams = array(); + $headerParams = array(); + $formParams = array(); + $_header_accept = $this->apiClient->selectHeaderAccept(array('application/vnd.dwolla.v1.hal+json')); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array('application/vnd.dwolla.v1.hal+json')); + + + + + // Entire URL for ID + if (filter_var($id, FILTER_VALIDATE_URL)) { + $split = explode('/', $id); + $id = end($split); + } + // path params + if($id !== null) { + $resourcePath = str_replace("{" . "id" . "}", + $this->apiClient->toPathValue($id), $resourcePath); + } + + // body params + $_tempBody = null; + if (isset($body)) { + $_tempBody = $body; + } + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } else if (count($formParams) > 0) { + // for HTTP post (form) + $httpBody = $formParams; + } + + // make the API Call + $response = $this->apiClient->callAPI($resourcePath, $method, + $queryParams, $httpBody, + $headerParams, $this->authSettings); + + if(!$response[1]) { + return null; + } + + return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'LedgerEntry'); + } + +} diff --git a/lib/LedgerentriesApi.php b/lib/LedgerentriesApi.php new file mode 100644 index 0000000..950f420 --- /dev/null +++ b/lib/LedgerentriesApi.php @@ -0,0 +1,127 @@ +apiClient = Configuration::$apiClient; + } + else + $this->apiClient = Configuration::$apiClient; // use the default one + } else { + $this->apiClient = $apiClient; // use the one provided by the user + } + + // Authentication methods + $this->authSettings = array('oauth2'); + } + + private $apiClient; // instance of the ApiClient + + /** + * get the API client + */ + public function getApiClient() { + return $this->apiClient; + } + + /** + * set the API client + */ + public function setApiClient($apiClient) { + $this->apiClient = $apiClient; + } + + + /** + * byId + * + * Get a ledger entry by id. + * + * @param string $id ID of ledger entry to get. (required) + * @return LedgerEntry + */ + public function getLedgerEntry($id) { + + // verify the required parameter 'id' is set + if ($id === null) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling byId'); + } + + + // parse inputs + $resourcePath = "/ledger-entries/{id}"; + $resourcePath = str_replace("{format}", "json", $resourcePath); + $method = "GET"; + $httpBody = ''; + $queryParams = array(); + $headerParams = array(); + $formParams = array(); + $_header_accept = $this->apiClient->selectHeaderAccept(array('application/vnd.dwolla.v1.hal+json')); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array()); + + + + + // Entire URL for ID + if (filter_var($id, FILTER_VALIDATE_URL)) { + $split = explode('/', $id); + $id = end($split); + } + // path params + if($id !== null) { + $resourcePath = str_replace("{" . "id" . "}", + $this->apiClient->toPathValue($id), $resourcePath); + } + + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } else if (count($formParams) > 0) { + // for HTTP post (form) + $httpBody = $formParams; + } + + // make the API Call + $response = $this->apiClient->callAPI($resourcePath, $method, + $queryParams, $httpBody, + $headerParams, $this->authSettings); + + if(!$response[1]) { + return null; + } + + return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'LedgerEntry'); + } + + +} diff --git a/lib/models/AddLabelLedgerEntryRequest.php b/lib/models/AddLabelLedgerEntryRequest.php new file mode 100644 index 0000000..c1d82c9 --- /dev/null +++ b/lib/models/AddLabelLedgerEntryRequest.php @@ -0,0 +1,60 @@ + 'Amount' + ); + + static $attributeMap = array( + 'amount' => 'amount' + ); + + + public $amount; /* Amount */ + + public function __construct(array $data = null) { + $this->amount = $data["amount"]; + } + + public function offsetExists($offset) { + return isset($this->$offset); + } + + public function offsetGet($offset) { + return $this->$offset; + } + + public function offsetSet($offset, $value) { + $this->$offset = $value; + } + + public function offsetUnset($offset) { + unset($this->$offset); + } +} diff --git a/lib/models/CreateCustomer.php b/lib/models/CreateCustomer.php index 1f61e14..9ad6713 100644 --- a/lib/models/CreateCustomer.php +++ b/lib/models/CreateCustomer.php @@ -47,7 +47,8 @@ class CreateCustomer implements ArrayAccess { 'ein' => 'string', 'doing_business_as' => 'string', 'website' => 'string', - 'controller' => 'object' + 'controller' => 'object', + 'correlation_id' => 'string' ); static $attributeMap = array( @@ -70,7 +71,8 @@ class CreateCustomer implements ArrayAccess { 'ein' => 'ein', 'doing_business_as' => 'doingBusinessAs', 'website' => 'website', - 'controller' => 'controller' + 'controller' => 'controller', + 'correlation_id' => 'correlationId' ); @@ -94,6 +96,7 @@ class CreateCustomer implements ArrayAccess { public $doing_business_as; /* string */ public $website; /* string */ public $controller; /* object */ + public $correlation_id; /* string */ public function __construct(array $data = null) { $this->first_name = $data["first_name"]; @@ -116,6 +119,7 @@ public function __construct(array $data = null) { $this->doing_business_as = $data["doing_business_as"]; $this->website = $data["website"]; $this->controller = $data["controller"]; + $this->correlation_id = $data["correlation_id"]; } public function offsetExists($offset) { diff --git a/lib/models/CreateCustomerLabelRequest.php b/lib/models/CreateCustomerLabelRequest.php new file mode 100644 index 0000000..f25a71d --- /dev/null +++ b/lib/models/CreateCustomerLabelRequest.php @@ -0,0 +1,60 @@ + 'Amount' + ); + + static $attributeMap = array( + 'amount' => 'amount' + ); + + + public $amount; /* Amount */ + + public function __construct(array $data = null) { + $this->amount = $data["amount"]; + } + + public function offsetExists($offset) { + return isset($this->$offset); + } + + public function offsetGet($offset) { + return $this->$offset; + } + + public function offsetSet($offset, $value) { + $this->$offset = $value; + } + + public function offsetUnset($offset) { + unset($this->$offset); + } +} diff --git a/lib/models/Customer.php b/lib/models/Customer.php index 9a5e951..bace8fa 100644 --- a/lib/models/Customer.php +++ b/lib/models/Customer.php @@ -46,7 +46,8 @@ class Customer implements ArrayAccess { 'business_name' => 'string', 'doing_business_as' => 'string', 'website' => 'string', - 'controller' => 'object' + 'controller' => 'object', + 'correlation_id' => 'string' ); static $attributeMap = array( @@ -68,7 +69,8 @@ class Customer implements ArrayAccess { 'business_name' => 'businessName', 'doing_business_as' => 'doingBusinessAs', 'website' => 'website', - 'controller' => 'controller' + 'controller' => 'controller', + 'correlation_id' => 'correlationId' ); @@ -91,6 +93,7 @@ class Customer implements ArrayAccess { public $doing_business_as; /* string */ public $website; /* string */ public $controller; /* object */ + public $correlation_id; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -112,6 +115,7 @@ public function __construct(array $data = null) { $this->doing_business_as = $data["doing_business_as"]; $this->website = $data["website"]; $this->controller = $data["controller"]; + $this->correlation_id = $data["correlation_id"]; } public function offsetExists($offset) { diff --git a/lib/models/Label.php b/lib/models/Label.php new file mode 100644 index 0000000..91d7860 --- /dev/null +++ b/lib/models/Label.php @@ -0,0 +1,76 @@ + 'map[string,HalLink]', + '_embedded' => 'object', + 'id' => 'string', + 'created' => 'DateTime', + 'amount' => 'Amount' + ); + + static $attributeMap = array( + '_links' => '_links', + '_embedded' => '_embedded', + 'id' => 'id', + 'created' => 'created', + 'amount' => 'amount' + ); + + + public $_links; /* map[string,HalLink] */ + public $_embedded; /* object */ + public $id; /* string */ + public $created; /* DateTime */ + public $amount; /* Amount */ + + public function __construct(array $data = null) { + $this->_links = $data["_links"]; + $this->_embedded = $data["_embedded"]; + $this->id = $data["id"]; + $this->created = $data["created"]; + $this->amount = $data["amount"]; + } + + public function offsetExists($offset) { + return isset($this->$offset); + } + + public function offsetGet($offset) { + return $this->$offset; + } + + public function offsetSet($offset, $value) { + $this->$offset = $value; + } + + public function offsetUnset($offset) { + unset($this->$offset); + } +} diff --git a/lib/models/LabelListResponse.php b/lib/models/LabelListResponse.php new file mode 100644 index 0000000..6f0005b --- /dev/null +++ b/lib/models/LabelListResponse.php @@ -0,0 +1,68 @@ + 'map[string,HalLink]', + '_embedded' => 'object', + 'total' => 'int' + ); + + static $attributeMap = array( + '_links' => '_links', + '_embedded' => '_embedded', + 'total' => 'total' + ); + + + public $_links; /* map[string,HalLink] */ + public $_embedded; /* object */ + public $total; /* int */ + + public function __construct(array $data = null) { + $this->_links = $data["_links"]; + $this->_embedded = $data["_embedded"]; + $this->total = $data["total"]; + } + + public function offsetExists($offset) { + return isset($this->$offset); + } + + public function offsetGet($offset) { + return $this->$offset; + } + + public function offsetSet($offset, $value) { + $this->$offset = $value; + } + + public function offsetUnset($offset) { + unset($this->$offset); + } +} diff --git a/lib/models/LabelReallocation.php b/lib/models/LabelReallocation.php new file mode 100644 index 0000000..0eeae9b --- /dev/null +++ b/lib/models/LabelReallocation.php @@ -0,0 +1,68 @@ + 'map[string,HalLink]', + '_embedded' => 'object', + 'created' => 'DateTime' + ); + + static $attributeMap = array( + '_links' => '_links', + '_embedded' => '_embedded', + 'created' => 'created' + ); + + + public $_links; /* map[string,HalLink] */ + public $_embedded; /* object */ + public $created; /* DateTime */ + + public function __construct(array $data = null) { + $this->_links = $data["_links"]; + $this->_embedded = $data["_embedded"]; + $this->created = $data["created"]; + } + + public function offsetExists($offset) { + return isset($this->$offset); + } + + public function offsetGet($offset) { + return $this->$offset; + } + + public function offsetSet($offset, $value) { + $this->$offset = $value; + } + + public function offsetUnset($offset) { + unset($this->$offset); + } +} diff --git a/lib/models/LabelReallocationRequest.php b/lib/models/LabelReallocationRequest.php new file mode 100644 index 0000000..6d57e09 --- /dev/null +++ b/lib/models/LabelReallocationRequest.php @@ -0,0 +1,64 @@ + 'map[string,HalLink]', + 'amount' => 'Amount' + ); + + static $attributeMap = array( + '_links' => '_links', + 'amount' => 'amount' + ); + + + public $_links; /* map[string,HalLink] */ + public $amount; /* Amount */ + + public function __construct(array $data = null) { + $this->_links = $data["_links"]; + $this->amount = $data["amount"]; + } + + public function offsetExists($offset) { + return isset($this->$offset); + } + + public function offsetGet($offset) { + return $this->$offset; + } + + public function offsetSet($offset, $value) { + $this->$offset = $value; + } + + public function offsetUnset($offset) { + unset($this->$offset); + } +} diff --git a/lib/models/LedgerEntry.php b/lib/models/LedgerEntry.php new file mode 100644 index 0000000..2bb27ba --- /dev/null +++ b/lib/models/LedgerEntry.php @@ -0,0 +1,76 @@ + 'map[string,HalLink]', + '_embedded' => 'object', + 'id' => 'string', + 'amount' => 'Amount', + 'created' => 'DateTime' + ); + + static $attributeMap = array( + '_links' => '_links', + '_embedded' => '_embedded', + 'id' => 'id', + 'amount' => 'amount', + 'created' => 'created' + ); + + + public $_links; /* map[string,HalLink] */ + public $_embedded; /* object */ + public $id; /* string */ + public $amount; /* Amount */ + public $created; /* DateTime */ + + public function __construct(array $data = null) { + $this->_links = $data["_links"]; + $this->_embedded = $data["_embedded"]; + $this->id = $data["id"]; + $this->amount = $data["amount"]; + $this->created = $data["created"]; + } + + public function offsetExists($offset) { + return isset($this->$offset); + } + + public function offsetGet($offset) { + return $this->$offset; + } + + public function offsetSet($offset, $value) { + $this->$offset = $value; + } + + public function offsetUnset($offset) { + unset($this->$offset); + } +} diff --git a/lib/models/LedgerEntryListResponse.php b/lib/models/LedgerEntryListResponse.php new file mode 100644 index 0000000..2ec94c8 --- /dev/null +++ b/lib/models/LedgerEntryListResponse.php @@ -0,0 +1,68 @@ + 'map[string,HalLink]', + '_embedded' => 'object', + 'total' => 'int' + ); + + static $attributeMap = array( + '_links' => '_links', + '_embedded' => '_embedded', + 'total' => 'total' + ); + + + public $_links; /* map[string,HalLink] */ + public $_embedded; /* object */ + public $total; /* int */ + + public function __construct(array $data = null) { + $this->_links = $data["_links"]; + $this->_embedded = $data["_embedded"]; + $this->total = $data["total"]; + } + + public function offsetExists($offset) { + return isset($this->$offset); + } + + public function offsetGet($offset) { + return $this->$offset; + } + + public function offsetSet($offset, $value) { + $this->$offset = $value; + } + + public function offsetUnset($offset) { + unset($this->$offset); + } +} diff --git a/lib/models/MassPaymentItemRequestBody.php b/lib/models/MassPaymentItemRequestBody.php index f4e312a..a4b8e78 100644 --- a/lib/models/MassPaymentItemRequestBody.php +++ b/lib/models/MassPaymentItemRequestBody.php @@ -16,7 +16,7 @@ */ /** - * + * * * NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. * @@ -31,27 +31,31 @@ class MassPaymentItemRequestBody implements ArrayAccess { '_links' => 'object', 'amount' => 'Amount', 'metadata' => 'object', - 'correlation_id' => 'string' + 'correlation_id' => 'string', + 'ach_details' => 'object' ); static $attributeMap = array( '_links' => '_links', 'amount' => 'amount', 'metadata' => 'metadata', - 'correlation_id' => 'correlationId' + 'correlation_id' => 'correlationId', + 'ach_details' => 'object' ); - + public $_links; /* object */ public $amount; /* Amount */ public $metadata; /* object */ public $correlation_id; /* string */ + public $ach_details; /* object */ public function __construct(array $data = null) { $this->_links = $data["_links"]; $this->amount = $data["amount"]; $this->metadata = $data["metadata"]; $this->correlation_id = $data["correlation_id"]; + $this->ach_details = $data["ach_details"]; } public function offsetExists($offset) { diff --git a/lib/models/MassPaymentRequestBody.php b/lib/models/MassPaymentRequestBody.php index 3950be7..aea8082 100644 --- a/lib/models/MassPaymentRequestBody.php +++ b/lib/models/MassPaymentRequestBody.php @@ -16,7 +16,7 @@ */ /** - * + * * * NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. * @@ -32,7 +32,8 @@ class MassPaymentRequestBody implements ArrayAccess { 'items' => 'array[MassPaymentItemRequestBody]', 'metadata' => 'object', 'status' => 'string', - 'correlation_id' => 'string' + 'correlation_id' => 'string', + 'ach_details' => 'object' ); static $attributeMap = array( @@ -40,15 +41,17 @@ class MassPaymentRequestBody implements ArrayAccess { 'items' => 'items', 'metadata' => 'metadata', 'status' => 'status', - 'correlation_id' => 'correlationId' + 'correlation_id' => 'correlationId', + 'ach_details' => 'object' ); - + public $_links; /* object */ public $items; /* array[MassPaymentItemRequestBody] */ public $metadata; /* object */ public $status; /* string */ public $correlation_id; /* string */ + public $ach_details; /* object */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -56,6 +59,7 @@ public function __construct(array $data = null) { $this->metadata = $data["metadata"]; $this->status = $data["status"]; $this->correlation_id = $data["correlation_id"]; + $this->ach_details = $data["ach_details"]; } public function offsetExists($offset) { diff --git a/lib/models/Owner.php b/lib/models/Owner.php index 750800e..947657d 100644 --- a/lib/models/Owner.php +++ b/lib/models/Owner.php @@ -34,7 +34,8 @@ class Owner implements ArrayAccess { 'last_name' => 'string', 'address' => 'Address', 'verification_status' => 'string', - '_embedded' => 'map[string,Number]' + '_embedded' => 'map[string,Number]', + 'created' => 'string' ); static $attributeMap = array( @@ -44,7 +45,8 @@ class Owner implements ArrayAccess { 'last_name' => 'lastName', 'address' => 'address', 'verification_status' => 'verificationStatus', - '_embedded' => '_embedded' + '_embedded' => '_embedded', + 'created' => 'created' ); @@ -55,6 +57,7 @@ class Owner implements ArrayAccess { public $address; /* Address */ public $verification_status; /* string */ public $_embedded; /* map[string,Number] */ + public $created; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -64,6 +67,7 @@ public function __construct(array $data = null) { $this->address = $data["address"]; $this->verification_status = $data["verification_status"]; $this->_embedded = $data["_embedded"]; + $this->created = $data["created"]; } public function offsetExists($offset) { diff --git a/lib/models/Transfer.php b/lib/models/Transfer.php index 9bee228..d202e96 100644 --- a/lib/models/Transfer.php +++ b/lib/models/Transfer.php @@ -16,7 +16,7 @@ */ /** - * + * * * NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. * @@ -37,7 +37,8 @@ class Transfer implements ArrayAccess { 'metadata' => 'object', 'clearing' => 'Clearing', 'correlation_id' => 'string', - 'individual_ach_id' => 'string' + 'individual_ach_id' => 'string', + 'ach_details' => 'object' ); static $attributeMap = array( @@ -50,10 +51,11 @@ class Transfer implements ArrayAccess { 'metadata' => 'metadata', 'clearing' => 'clearing', 'correlation_id' => 'correlationId', - 'individual_ach_id' => 'individualAchId' + 'individual_ach_id' => 'individualAchId', + 'ach_details' => 'achDetails' ); - + public $_links; /* map[string,HalLink] */ public $_embedded; /* object */ public $id; /* string */ @@ -64,6 +66,7 @@ class Transfer implements ArrayAccess { public $clearing; /* Clearing */ public $correlation_id; /* string */ public $individual_ach_id; /* string */ + public $ach_details; /* object */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -76,6 +79,7 @@ public function __construct(array $data = null) { $this->clearing = $data["clearing"]; $this->correlation_id = $data["correlation_id"]; $this->individual_ach_id = $data["individual_ach_id"]; + $this->ach_details = $data["ach_details"]; } public function offsetExists($offset) { diff --git a/lib/models/TransferRequestBody.php b/lib/models/TransferRequestBody.php index 86db1ba..9b2af17 100644 --- a/lib/models/TransferRequestBody.php +++ b/lib/models/TransferRequestBody.php @@ -16,7 +16,7 @@ */ /** - * + * * * NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. * @@ -34,7 +34,8 @@ class TransferRequestBody implements ArrayAccess { 'fees' => 'array[FacilitatorFeeRequest]', 'clearing' => 'Clearing', 'imad' => 'string', - 'correlation_id' => 'string' + 'correlation_id' => 'string', + 'ach_details' => 'object' ); static $attributeMap = array( @@ -44,10 +45,11 @@ class TransferRequestBody implements ArrayAccess { 'fees' => 'fees', 'clearing' => 'clearing', 'imad' => 'imad', - 'correlation_id' => 'correlationId' + 'correlation_id' => 'correlationId', + 'ach_details' => 'object' ); - + public $_links; /* map[string,HalLink] */ public $amount; /* Amount */ public $metadata; /* object */ @@ -55,6 +57,7 @@ class TransferRequestBody implements ArrayAccess { public $clearing; /* Clearing */ public $imad; /* string */ public $correlation_id; /* string */ + public $ach_details; /* object */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -64,6 +67,7 @@ public function __construct(array $data = null) { $this->clearing = $data["clearing"]; $this->imad = $data["imad"]; $this->correlation_id = $data["correlation_id"]; + $this->ach_details = $data["ach_details"]; } public function offsetExists($offset) { diff --git a/lib/models/UpdateCustomer.php b/lib/models/UpdateCustomer.php index e92a2d7..4dec928 100644 --- a/lib/models/UpdateCustomer.php +++ b/lib/models/UpdateCustomer.php @@ -48,7 +48,8 @@ class UpdateCustomer implements ArrayAccess { 'ein' => 'string', 'doing_business_as' => 'string', 'website' => 'string', - 'controller' => 'object' + 'controller' => 'object', + 'correlation_id' => 'string' ); static $attributeMap = array( @@ -72,7 +73,8 @@ class UpdateCustomer implements ArrayAccess { 'ein' => 'ein', 'doing_business_as' => 'doingBusinessAs', 'website' => 'website', - 'controller' => 'controller' + 'controller' => 'controller', + 'correlation_id' => 'correlationId' ); @@ -97,6 +99,7 @@ class UpdateCustomer implements ArrayAccess { public $doing_business_as; /* string */ public $website; /* string */ public $controller; /* object */ + public $correlation_id; /* string */ public function __construct(array $data = null) { $this->first_name = $data["first_name"]; @@ -120,6 +123,7 @@ public function __construct(array $data = null) { $this->doing_business_as = $data["doing_business_as"]; $this->website = $data["website"]; $this->controller = $data["controller"]; + $this->correlation_id = $data["correlation_id"]; } public function offsetExists($offset) {