diff --git a/README.md b/README.md index 2c7a99c..015ff7b 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.15 +1.0.16 ## Installation @@ -91,7 +91,11 @@ Each API module is named in accordance to ([Dwolla's API Spec](http://docsv2.dwo * `DocumentsApi` * `EventsApi` * `FundingsourcesApi` +* `MasspaymentitemsApi` +* `MasspaymentsApi` +* `OndemandauthorizationsApi` * `RootApi` +* `SandboxApi` * `TransfersApi` * `WebhooksApi` * `WebhooksubscriptionsApi` @@ -147,6 +151,12 @@ Each model represents the different kinds of requests and responses that can be ## Changelog +1.0.16 +* API schema updated, `FundingsourcesApi` updated to support update a funding source. `MasspaymentsApi` and `MasspaymentitemsApi` updated to support filtering by correlationId. +* New `SandboxApi` which is used to simulate bank transfer processing in the Sandbox. +* Existing `CreateFundingSourceRequest`, `FundingSource`, `MassPayment`, `MassPaymentItem`, `MassPaymentItemRequestBody`, `MassPaymentRequestBody`, `Transfer`, `TransferFailure`, and `TransferRequestBody` models updated. +* New `ProcessResult`, `UpdateBankRequest`, and `UpdateJobRequestBody` models. + 1.0.15 * Optional parameters set to null. diff --git a/lib/CustomersApi.php b/lib/CustomersApi.php index 43a5ec6..4a4260e 100644 --- a/lib/CustomersApi.php +++ b/lib/CustomersApi.php @@ -382,9 +382,15 @@ public function getCustomerDocuments($id) { * * Upload a verification document. * + * @param string $id ID of customer. (required) * @return Unit */ - public function uploadDocument() { + public function uploadDocument($id) { + + // verify the required parameter 'id' is set + if ($id === null) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling uploadDocument'); + } // parse inputs @@ -404,6 +410,16 @@ public function uploadDocument() { + // 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); + } diff --git a/lib/FundingsourcesApi.php b/lib/FundingsourcesApi.php index 7e309c7..ca5ed56 100644 --- a/lib/FundingsourcesApi.php +++ b/lib/FundingsourcesApi.php @@ -388,7 +388,78 @@ public function id($id) { return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'FundingSource'); } - + + /** + * update + * + * Update a funding source. + * + * @param UpdateBankRequest $body request body to update a funding source (required) + * @param string $id Funding source ID to update. (required) + * @return FundingSource + */ + public function update($body, $id) { + + // verify the required parameter 'id' is set + if ($id === null) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling update'); + } + + + // parse inputs + $resourcePath = "/funding-sources/{id}"; + $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()); + + + + + // 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],'FundingSource'); + } + /** * softDelete * diff --git a/lib/MasspaymentitemsApi.php b/lib/MasspaymentitemsApi.php index e496a11..ce5380f 100644 --- a/lib/MasspaymentitemsApi.php +++ b/lib/MasspaymentitemsApi.php @@ -132,9 +132,10 @@ public function byId($id) { * @param int $limit How many results to return. (optional) * @param int $offset How many results to skip. (optional) * @param string $status What status to filter by. (optional) + * @param string $correlation_id Correlation ID to search by. (optional) * @return MassPaymentItemListResponse */ - public function getMassPaymentItems($id, $limit = null, $offset = null, $status = null) { + public function getMassPaymentItems($id, $limit = null, $offset = null, $status = null, $correlation_id = null) { // verify the required parameter 'id' is set if ($id === null) { @@ -165,6 +166,9 @@ public function getMassPaymentItems($id, $limit = null, $offset = null, $status }// query params if($status !== null) { $queryParams['status'] = $this->apiClient->toQueryValue($status); + }// query params + if($correlation_id !== null) { + $queryParams['correlationId'] = $this->apiClient->toQueryValue($correlation_id); } diff --git a/lib/MasspaymentsApi.php b/lib/MasspaymentsApi.php index 32d492f..cc696ca 100644 --- a/lib/MasspaymentsApi.php +++ b/lib/MasspaymentsApi.php @@ -65,9 +65,10 @@ public function setApiClient($apiClient) { * @param string $id Account ID (required) * @param int $limit How many results to return. (optional) * @param int $offset How many results to skip. (optional) + * @param string $correlation_id Correlation ID to search by. (optional) * @return MassPaymentListResponse */ - public function getByAccount($id, $limit = null, $offset = null) { + public function getByAccount($id, $limit = null, $offset = null, $correlation_id = null) { // verify the required parameter 'id' is set if ($id === null) { @@ -95,6 +96,9 @@ public function getByAccount($id, $limit = null, $offset = null) { }// query params if($offset !== null) { $queryParams['offset'] = $this->apiClient->toQueryValue($offset); + }// query params + if($correlation_id !== null) { + $queryParams['correlationId'] = $this->apiClient->toQueryValue($correlation_id); } @@ -139,9 +143,10 @@ public function getByAccount($id, $limit = null, $offset = null) { * @param string $id Customer ID (required) * @param int $limit How many results to return. (optional) * @param int $offset How many results to skip. (optional) + * @param string $correlation_id Correlation ID to search by. (required) * @return MassPaymentListResponse */ - public function getByCustomer($id, $limit = null, $offset = null) { + public function getByCustomer($id, $limit = null, $offset = null, $correlation_id = null) { // verify the required parameter 'id' is set if ($id === null) { @@ -169,6 +174,9 @@ public function getByCustomer($id, $limit = null, $offset = null) { }// query params if($offset !== null) { $queryParams['offset'] = $this->apiClient->toQueryValue($offset); + }// query params + if($correlation_id !== null) { + $queryParams['correlationId'] = $this->apiClient->toQueryValue($correlation_id); } @@ -326,5 +334,76 @@ public function byId($id) { return $response[0] == 201 ? $response[1] : $this->apiClient->deserialize($response[1],'MassPayment'); } + /** + * update + * + * Update a mass-payment. + * + * @param UpdateJobRequestBody $body Mass-payment to update. (required) + * @param string $id ID of mass-payment to update (required) + * @return MassPayment + */ + public function update($body, $id) { + + // verify the required parameter 'id' is set + if ($id === null) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling update'); + } + + + // parse inputs + $resourcePath = "/mass-payments/{id}"; + $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],'MassPayment'); + } + } diff --git a/lib/SandboxApi.php b/lib/SandboxApi.php new file mode 100644 index 0000000..ad7a225 --- /dev/null +++ b/lib/SandboxApi.php @@ -0,0 +1,111 @@ +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; + } + + + /** + * simulations + * + * Simulate ach processing + * + * @return ProcessResult + */ + public function simulations() { + + + // parse inputs + $resourcePath = "/sandbox-simulations"; + $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()); + + + + + + + + // 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],'ProcessResult'); + } + + +} diff --git a/lib/TransfersApi.php b/lib/TransfersApi.php index a2a8a43..6193a92 100644 --- a/lib/TransfersApi.php +++ b/lib/TransfersApi.php @@ -65,9 +65,10 @@ public function setApiClient($apiClient) { * @param string $id Account id to get transfers for. (required) * @param int $limit How many results to return. (optional) * @param int $offset How many results to skip. (optional) + * @param string $status What status to filter by. (optional) * @return TransferListResponse */ - public function getAccountTransfers($id, $limit = null, $offset = null) { + public function getAccountTransfers($id, $limit = null, $offset = null, $status = null) { // verify the required parameter 'id' is set if ($id === null) { @@ -95,6 +96,9 @@ public function getAccountTransfers($id, $limit = null, $offset = null) { }// query params if($offset !== null) { $queryParams['offset'] = $this->apiClient->toQueryValue($offset); + }// query params + if($status !== null) { + $queryParams['status'] = $this->apiClient->toQueryValue($status); } @@ -139,9 +143,10 @@ public function getAccountTransfers($id, $limit = null, $offset = null) { * @param string $id Customer id to get transfers for. (required) * @param int $limit How many results to return. (optional) * @param int $offset How many results to skip. (optional) + * @param string $status What status to filter by. (required) * @return TransferListResponse */ - public function getCustomerTransfers($id, $limit = null, $offset = null) { + public function getCustomerTransfers($id, $limit = null, $offset = null, $status = null) { // verify the required parameter 'id' is set if ($id === null) { @@ -169,6 +174,9 @@ public function getCustomerTransfers($id, $limit = null, $offset = null) { }// query params if($offset !== null) { $queryParams['offset'] = $this->apiClient->toQueryValue($offset); + }// query params + if($status !== null) { + $queryParams['status'] = $this->apiClient->toQueryValue($status); } diff --git a/lib/models/CreateFundingSourceRequest.php b/lib/models/CreateFundingSourceRequest.php index ba22a7d..5a208cd 100644 --- a/lib/models/CreateFundingSourceRequest.php +++ b/lib/models/CreateFundingSourceRequest.php @@ -42,6 +42,7 @@ class CreateFundingSourceRequest implements ArrayAccess { 'routing_number' => 'routingNumber', 'account_number' => 'accountNumber', 'type' => 'type', + 'bank_account_type' => 'bankAccountType', 'name' => 'name', 'verified' => 'verified', 'channels' => 'channels' @@ -52,6 +53,7 @@ class CreateFundingSourceRequest implements ArrayAccess { public $routing_number; /* string */ public $account_number; /* string */ public $type; /* string */ + public $bank_account_type; /* string */ public $name; /* string */ public $verified; /* boolean */ public $channels; /* array[string] */ @@ -61,6 +63,7 @@ public function __construct(array $data = null) { $this->routing_number = $data["routing_number"]; $this->account_number = $data["account_number"]; $this->type = $data["type"]; + $this->bank_account_type = $data["bank_account_type"]; $this->name = $data["name"]; $this->verified = $data["verified"]; $this->channels = $data["channels"]; diff --git a/lib/models/FundingSource.php b/lib/models/FundingSource.php index 22913b5..acecf28 100644 --- a/lib/models/FundingSource.php +++ b/lib/models/FundingSource.php @@ -33,12 +33,15 @@ class FundingSource implements ArrayAccess { 'id' => 'string', 'status' => 'string', 'type' => 'string', + 'bank_account_type' => 'string', 'name' => 'string', 'created' => 'DateTime', 'balance' => 'object', 'removed' => 'boolean', 'channels' => 'array[string]', - 'bank_name' => 'string' + 'bank_name' => 'string', + 'iav_account_holders' => 'object', + 'fingerprint' => 'string' ); static $attributeMap = array( @@ -47,12 +50,15 @@ class FundingSource implements ArrayAccess { 'id' => 'id', 'status' => 'status', 'type' => 'type', + 'bank_account_type' => 'bankAccountType', 'name' => 'name', 'created' => 'created', 'balance' => 'balance', 'removed' => 'removed', 'channels' => 'channels', - 'bank_name' => 'bankName' + 'bank_name' => 'bankName', + 'iav_account_holders' => 'iavAccountHolders', + 'fingerprint' => 'fingerprint' ); @@ -61,12 +67,15 @@ class FundingSource implements ArrayAccess { public $id; /* string */ public $status; /* string */ public $type; /* string */ + public $bank_account_type; /* string */ public $name; /* string */ public $created; /* DateTime */ public $balance; /* object */ public $removed; /* boolean */ public $channels; /* array[string] */ public $bank_name; /* string */ + public $iav_account_holders; /* object */ + public $fingerprint; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -74,12 +83,15 @@ public function __construct(array $data = null) { $this->id = $data["id"]; $this->status = $data["status"]; $this->type = $data["type"]; + $this->bank_account_type = $data["bank_account_type"]; $this->name = $data["name"]; $this->created = $data["created"]; $this->balance = $data["balance"]; $this->removed = $data["removed"]; $this->channels = $data["channels"]; $this->bank_name = $data["bank_name"]; + $this->iav_account_holders = $data["iav_account_holders"]; + $this->fingerprint = $data["fingerprint"]; } public function offsetExists($offset) { diff --git a/lib/models/MassPayment.php b/lib/models/MassPayment.php index e7356fb..c1d69fa 100644 --- a/lib/models/MassPayment.php +++ b/lib/models/MassPayment.php @@ -33,7 +33,10 @@ class MassPayment implements ArrayAccess { 'id' => 'string', 'status' => 'string', 'created' => 'string', - 'metadata' => 'object' + 'metadata' => 'object', + 'total' => 'object', + 'total_fees' => 'object', + 'correlation_id' => 'string' ); static $attributeMap = array( @@ -42,7 +45,10 @@ class MassPayment implements ArrayAccess { 'id' => 'id', 'status' => 'status', 'created' => 'created', - 'metadata' => 'metadata' + 'metadata' => 'metadata', + 'total' => 'total', + 'total_fees' => 'totalFees', + 'correlation_id' => 'correlationId' ); @@ -52,6 +58,9 @@ class MassPayment implements ArrayAccess { public $status; /* string */ public $created; /* string */ public $metadata; /* object */ + public $total; /* object */ + public $total_fees; /* object */ + public $correlation_id; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -60,6 +69,9 @@ public function __construct(array $data = null) { $this->status = $data["status"]; $this->created = $data["created"]; $this->metadata = $data["metadata"]; + $this->total = $data["total"]; + $this->total_fees = $data["total_fees"]; + $this->correlation_id = $data["correlation_id"]; } public function offsetExists($offset) { diff --git a/lib/models/MassPaymentItem.php b/lib/models/MassPaymentItem.php index 30c3a13..5b178a4 100644 --- a/lib/models/MassPaymentItem.php +++ b/lib/models/MassPaymentItem.php @@ -33,7 +33,8 @@ class MassPaymentItem implements ArrayAccess { 'id' => 'string', 'status' => 'string', 'amount' => 'Amount', - 'metadata' => 'object' + 'metadata' => 'object', + 'correlation_id' => 'string' ); static $attributeMap = array( @@ -42,7 +43,8 @@ class MassPaymentItem implements ArrayAccess { 'id' => 'id', 'status' => 'status', 'amount' => 'amount', - 'metadata' => 'metadata' + 'metadata' => 'metadata', + 'correlation_id' => 'correlationId' ); @@ -52,6 +54,7 @@ class MassPaymentItem implements ArrayAccess { public $status; /* string */ public $amount; /* Amount */ public $metadata; /* object */ + public $correlation_id; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -60,6 +63,7 @@ public function __construct(array $data = null) { $this->status = $data["status"]; $this->amount = $data["amount"]; $this->metadata = $data["metadata"]; + $this->correlation_id = $data["correlation_id"]; } public function offsetExists($offset) { diff --git a/lib/models/MassPaymentItemRequestBody.php b/lib/models/MassPaymentItemRequestBody.php index d2624fc..f4e312a 100644 --- a/lib/models/MassPaymentItemRequestBody.php +++ b/lib/models/MassPaymentItemRequestBody.php @@ -30,24 +30,28 @@ class MassPaymentItemRequestBody implements ArrayAccess { static $swaggerTypes = array( '_links' => 'object', 'amount' => 'Amount', - 'metadata' => 'object' + 'metadata' => 'object', + 'correlation_id' => 'string' ); static $attributeMap = array( '_links' => '_links', 'amount' => 'amount', - 'metadata' => 'metadata' + 'metadata' => 'metadata', + 'correlation_id' => 'correlationId' ); public $_links; /* object */ public $amount; /* Amount */ public $metadata; /* object */ + public $correlation_id; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; $this->amount = $data["amount"]; $this->metadata = $data["metadata"]; + $this->correlation_id = $data["correlation_id"]; } public function offsetExists($offset) { diff --git a/lib/models/MassPaymentRequestBody.php b/lib/models/MassPaymentRequestBody.php index 40b38c1..3950be7 100644 --- a/lib/models/MassPaymentRequestBody.php +++ b/lib/models/MassPaymentRequestBody.php @@ -30,24 +30,32 @@ class MassPaymentRequestBody implements ArrayAccess { static $swaggerTypes = array( '_links' => 'object', 'items' => 'array[MassPaymentItemRequestBody]', - 'metadata' => 'object' + 'metadata' => 'object', + 'status' => 'string', + 'correlation_id' => 'string' ); static $attributeMap = array( '_links' => '_links', 'items' => 'items', - 'metadata' => 'metadata' + 'metadata' => 'metadata', + 'status' => 'status', + 'correlation_id' => 'correlationId' ); public $_links; /* object */ public $items; /* array[MassPaymentItemRequestBody] */ public $metadata; /* object */ + public $status; /* string */ + public $correlation_id; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; $this->items = $data["items"]; $this->metadata = $data["metadata"]; + $this->status = $data["status"]; + $this->correlation_id = $data["correlation_id"]; } public function offsetExists($offset) { diff --git a/lib/models/ProcessResult.php b/lib/models/ProcessResult.php new file mode 100644 index 0000000..f640395 --- /dev/null +++ b/lib/models/ProcessResult.php @@ -0,0 +1,68 @@ + 'object', + '_embedded' => 'object', + 'total' => 'int' + ); + + static $attributeMap = array( + '_links' => '_links', + '_embedded' => '_embedded', + 'total' => 'total' + ); + + + public $_links; /* object */ + 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/Transfer.php b/lib/models/Transfer.php index 285f6e2..9bee228 100644 --- a/lib/models/Transfer.php +++ b/lib/models/Transfer.php @@ -35,7 +35,9 @@ class Transfer implements ArrayAccess { 'amount' => 'Money', 'created' => 'DateTime', 'metadata' => 'object', - 'clearing' => 'Clearing' + 'clearing' => 'Clearing', + 'correlation_id' => 'string', + 'individual_ach_id' => 'string' ); static $attributeMap = array( @@ -46,7 +48,9 @@ class Transfer implements ArrayAccess { 'amount' => 'amount', 'created' => 'created', 'metadata' => 'metadata', - 'clearing' => 'clearing' + 'clearing' => 'clearing', + 'correlation_id' => 'correlationId', + 'individual_ach_id' => 'individualAchId' ); @@ -58,6 +62,8 @@ class Transfer implements ArrayAccess { public $created; /* DateTime */ public $metadata; /* object */ public $clearing; /* Clearing */ + public $correlation_id; /* string */ + public $individual_ach_id; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -68,6 +74,8 @@ public function __construct(array $data = null) { $this->created = $data["created"]; $this->metadata = $data["metadata"]; $this->clearing = $data["clearing"]; + $this->correlation_id = $data["correlation_id"]; + $this->individual_ach_id = $data["individual_ach_id"]; } public function offsetExists($offset) { diff --git a/lib/models/TransferFailure.php b/lib/models/TransferFailure.php index e62f32a..893580a 100644 --- a/lib/models/TransferFailure.php +++ b/lib/models/TransferFailure.php @@ -31,14 +31,16 @@ class TransferFailure implements ArrayAccess { '_links' => 'map[string,HalLink]', '_embedded' => 'object', 'code' => 'string', - 'description' => 'string' + 'description' => 'string', + 'explanation' => 'string' ); static $attributeMap = array( '_links' => '_links', '_embedded' => '_embedded', 'code' => 'code', - 'description' => 'description' + 'description' => 'description', + 'explanation' => 'explanation' ); @@ -46,12 +48,14 @@ class TransferFailure implements ArrayAccess { public $_embedded; /* object */ public $code; /* string */ public $description; /* string */ + public $explanation; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; $this->_embedded = $data["_embedded"]; $this->code = $data["code"]; $this->description = $data["description"]; + $this->explanation = $data["explanation"]; } public function offsetExists($offset) { diff --git a/lib/models/TransferRequestBody.php b/lib/models/TransferRequestBody.php index 9dee6b4..86db1ba 100644 --- a/lib/models/TransferRequestBody.php +++ b/lib/models/TransferRequestBody.php @@ -33,7 +33,8 @@ class TransferRequestBody implements ArrayAccess { 'metadata' => 'object', 'fees' => 'array[FacilitatorFeeRequest]', 'clearing' => 'Clearing', - 'imad' => 'string' + 'imad' => 'string', + 'correlation_id' => 'string' ); static $attributeMap = array( @@ -42,7 +43,8 @@ class TransferRequestBody implements ArrayAccess { 'metadata' => 'metadata', 'fees' => 'fees', 'clearing' => 'clearing', - 'imad' => 'imad' + 'imad' => 'imad', + 'correlation_id' => 'correlationId' ); @@ -52,6 +54,7 @@ class TransferRequestBody implements ArrayAccess { public $fees; /* array[FacilitatorFeeRequest] */ public $clearing; /* Clearing */ public $imad; /* string */ + public $correlation_id; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -60,6 +63,7 @@ public function __construct(array $data = null) { $this->fees = $data["fees"]; $this->clearing = $data["clearing"]; $this->imad = $data["imad"]; + $this->correlation_id = $data["correlation_id"]; } public function offsetExists($offset) { diff --git a/lib/models/UpdateBankRequest.php b/lib/models/UpdateBankRequest.php new file mode 100644 index 0000000..baafb78 --- /dev/null +++ b/lib/models/UpdateBankRequest.php @@ -0,0 +1,76 @@ + 'object', + 'name' => 'string', + 'routing_number' => 'string', + 'account_number' => 'string', + 'bank_account_type' => 'string' + ); + + static $attributeMap = array( + '_links' => '_links', + 'name' => 'name', + 'routing_number' => 'routingNumber', + 'account_number' => 'accountNumber', + 'bank_account_type' => 'bankAccountType' + ); + + + public $_links; /* object */ + public $name; /* string */ + public $routing_number; /* string */ + public $account_number; /* string */ + public $bank_account_type; /* string */ + + public function __construct(array $data = null) { + $this->_links = $data["_links"]; + $this->name = $data["name"]; + $this->routing_number = $data["routing_number"]; + $this->account_number = $data["account_number"]; + $this->bank_account_type = $data["bank_account_type"]; + } + + 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/UpdateJobRequestBody.php b/lib/models/UpdateJobRequestBody.php new file mode 100644 index 0000000..93eb493 --- /dev/null +++ b/lib/models/UpdateJobRequestBody.php @@ -0,0 +1,60 @@ + 'string' + ); + + static $attributeMap = array( + 'status' => 'status' + ); + + + public $status; /* string */ + + public function __construct(array $data = null) { + $this->status = $data["status"]; + } + + 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); + } +}