diff --git a/README.md b/README.md index 1e56c3e..0689013 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.11 +1.0.12 ## Installation @@ -147,8 +147,12 @@ Each model represents the different kinds of requests and responses that can be ## Changelog +1.0.12 +* API schema updated, `CustomersApi` updated to allow for null limit, offset, and search. Existing `CreateFundingSourceRequest`, `FundingSource`, `HalLink`, `MicroDepositsInitiated`, `Transfer`, and `TransferRequestBody` models updated. New `Clearing` and `FailureDetails` models. +* Fix README example for creating a Customer. + 1.0.11 -* API schema updated, `WebhooksubscriptionsAPI` supports pause a webhook subscription. `FundingsourcesApi` contains support for `removed` parameter on list funding sources. +* API schema updated, `WebhooksubscriptionsApi` supports pause a webhook subscription. `FundingsourcesApi` contains support for `removed` parameter on list funding sources. * Fix getFeesBySource to support deserialization with new `FeesBySourceResponse` model. 1.0.10 diff --git a/lib/CustomersApi.php b/lib/CustomersApi.php index 950e90f..d5421e6 100644 --- a/lib/CustomersApi.php +++ b/lib/CustomersApi.php @@ -67,7 +67,7 @@ public function setApiClient($apiClient) { * @param string $search Search term. (required) * @return CustomerListResponse */ - public function _list($limit, $offset, $search) { + public function _list($limit = null, $offset = null, $search = null) { // parse inputs diff --git a/lib/models/Clearing.php b/lib/models/Clearing.php new file mode 100644 index 0000000..3041849 --- /dev/null +++ b/lib/models/Clearing.php @@ -0,0 +1,64 @@ + 'string', + 'destination' => 'string' + ); + + static $attributeMap = array( + 'source' => 'source', + 'destination' => 'destination' + ); + + + public $source; /* string */ + public $destination; /* string */ + + public function __construct(array $data = null) { + $this->source = $data["source"]; + $this->destination = $data["destination"]; + } + + 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/CreateFundingSourceRequest.php b/lib/models/CreateFundingSourceRequest.php index f1a08bd..ba22a7d 100644 --- a/lib/models/CreateFundingSourceRequest.php +++ b/lib/models/CreateFundingSourceRequest.php @@ -33,7 +33,8 @@ class CreateFundingSourceRequest implements ArrayAccess { 'account_number' => 'string', 'type' => 'string', 'name' => 'string', - 'verified' => 'boolean' + 'verified' => 'boolean', + 'channels' => 'array[string]' ); static $attributeMap = array( @@ -42,7 +43,8 @@ class CreateFundingSourceRequest implements ArrayAccess { 'account_number' => 'accountNumber', 'type' => 'type', 'name' => 'name', - 'verified' => 'verified' + 'verified' => 'verified', + 'channels' => 'channels' ); @@ -52,6 +54,7 @@ class CreateFundingSourceRequest implements ArrayAccess { public $type; /* string */ public $name; /* string */ public $verified; /* boolean */ + public $channels; /* array[string] */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -60,6 +63,7 @@ public function __construct(array $data = null) { $this->type = $data["type"]; $this->name = $data["name"]; $this->verified = $data["verified"]; + $this->channels = $data["channels"]; } public function offsetExists($offset) { diff --git a/lib/models/Customer.php b/lib/models/Customer.php index 3e88a01..b6b826e 100644 --- a/lib/models/Customer.php +++ b/lib/models/Customer.php @@ -42,8 +42,10 @@ class Customer implements ArrayAccess { 'city' => 'string', 'state' => 'string', 'postal_code' => 'string', + 'phone' => 'string', 'business_name' => 'string', - 'doing_business_as' => 'string' + 'doing_business_as' => 'string', + 'website' => 'string' ); static $attributeMap = array( @@ -61,8 +63,10 @@ class Customer implements ArrayAccess { 'city' => 'city', 'state' => 'state', 'postal_code' => 'postalCode', + 'phone' => 'phone', 'business_name' => 'businessName', - 'doing_business_as' => 'doingBusinessAs' + 'doing_business_as' => 'doingBusinessAs', + 'website' => 'website' ); @@ -80,8 +84,10 @@ class Customer implements ArrayAccess { public $city; /* string */ public $state; /* string */ public $postal_code; /* string */ + public $phone; /* string */ public $business_name; /* string */ public $doing_business_as; /* string */ + public $website; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -98,8 +104,10 @@ public function __construct(array $data = null) { $this->city = $data["city"]; $this->state = $data["state"]; $this->postal_code = $data["postal_code"]; + $this->phone = $data["phone"]; $this->business_name = $data["business_name"]; $this->doing_business_as = $data["doing_business_as"]; + $this->website = $data["website"]; } public function offsetExists($offset) { diff --git a/lib/models/FailureDetails.php b/lib/models/FailureDetails.php new file mode 100644 index 0000000..ec55d5e --- /dev/null +++ b/lib/models/FailureDetails.php @@ -0,0 +1,64 @@ + 'string', + 'description' => 'string' + ); + + static $attributeMap = array( + 'code' => 'code', + 'description' => 'description' + ); + + + public $code; /* string */ + public $description; /* string */ + + public function __construct(array $data = null) { + $this->code = $data["code"]; + $this->description = $data["description"]; + } + + 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/FundingSource.php b/lib/models/FundingSource.php index 1f10ffb..22913b5 100644 --- a/lib/models/FundingSource.php +++ b/lib/models/FundingSource.php @@ -36,7 +36,9 @@ class FundingSource implements ArrayAccess { 'name' => 'string', 'created' => 'DateTime', 'balance' => 'object', - 'removed' => 'boolean' + 'removed' => 'boolean', + 'channels' => 'array[string]', + 'bank_name' => 'string' ); static $attributeMap = array( @@ -48,7 +50,9 @@ class FundingSource implements ArrayAccess { 'name' => 'name', 'created' => 'created', 'balance' => 'balance', - 'removed' => 'removed' + 'removed' => 'removed', + 'channels' => 'channels', + 'bank_name' => 'bankName' ); @@ -61,6 +65,8 @@ class FundingSource implements ArrayAccess { public $created; /* DateTime */ public $balance; /* object */ public $removed; /* boolean */ + public $channels; /* array[string] */ + public $bank_name; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -72,6 +78,8 @@ public function __construct(array $data = null) { $this->created = $data["created"]; $this->balance = $data["balance"]; $this->removed = $data["removed"]; + $this->channels = $data["channels"]; + $this->bank_name = $data["bank_name"]; } public function offsetExists($offset) { diff --git a/lib/models/HalLink.php b/lib/models/HalLink.php index fff8668..8fd94d0 100644 --- a/lib/models/HalLink.php +++ b/lib/models/HalLink.php @@ -29,21 +29,25 @@ class HalLink implements ArrayAccess { static $swaggerTypes = array( 'href' => 'string', - 'type' => 'string' + 'type' => 'string', + 'resource_type' => 'string' ); static $attributeMap = array( 'href' => 'href', - 'type' => 'type' + 'type' => 'type', + 'resource_type' => 'resource-type' ); public $href; /* string */ public $type; /* string */ + public $resource_type; /* string */ public function __construct(array $data = null) { $this->href = $data["href"]; $this->type = $data["type"]; + $this->resource_type = $data["resource_type"]; } public function offsetExists($offset) { diff --git a/lib/models/MicroDepositsInitiated.php b/lib/models/MicroDepositsInitiated.php index 41688bd..2fcefcc 100644 --- a/lib/models/MicroDepositsInitiated.php +++ b/lib/models/MicroDepositsInitiated.php @@ -31,14 +31,16 @@ class MicroDepositsInitiated implements ArrayAccess { '_links' => 'map[string,HalLink]', '_embedded' => 'object', 'created' => 'DateTime', - 'status' => 'string' + 'status' => 'string', + 'failure' => 'FailureDetails' ); static $attributeMap = array( '_links' => '_links', '_embedded' => '_embedded', 'created' => 'created', - 'status' => 'status' + 'status' => 'status', + 'failure' => 'failure' ); @@ -46,12 +48,14 @@ class MicroDepositsInitiated implements ArrayAccess { public $_embedded; /* object */ public $created; /* DateTime */ public $status; /* string */ + public $failure; /* FailureDetails */ public function __construct(array $data = null) { $this->_links = $data["_links"]; $this->_embedded = $data["_embedded"]; $this->created = $data["created"]; $this->status = $data["status"]; + $this->failure = $data["failure"]; } public function offsetExists($offset) { diff --git a/lib/models/Transfer.php b/lib/models/Transfer.php index 3bb2d40..285f6e2 100644 --- a/lib/models/Transfer.php +++ b/lib/models/Transfer.php @@ -34,7 +34,8 @@ class Transfer implements ArrayAccess { 'status' => 'string', 'amount' => 'Money', 'created' => 'DateTime', - 'metadata' => 'object' + 'metadata' => 'object', + 'clearing' => 'Clearing' ); static $attributeMap = array( @@ -44,7 +45,8 @@ class Transfer implements ArrayAccess { 'status' => 'status', 'amount' => 'amount', 'created' => 'created', - 'metadata' => 'metadata' + 'metadata' => 'metadata', + 'clearing' => 'clearing' ); @@ -55,6 +57,7 @@ class Transfer implements ArrayAccess { public $amount; /* Money */ public $created; /* DateTime */ public $metadata; /* object */ + public $clearing; /* Clearing */ public function __construct(array $data = null) { $this->_links = $data["_links"]; @@ -64,6 +67,7 @@ public function __construct(array $data = null) { $this->amount = $data["amount"]; $this->created = $data["created"]; $this->metadata = $data["metadata"]; + $this->clearing = $data["clearing"]; } public function offsetExists($offset) { diff --git a/lib/models/TransferRequestBody.php b/lib/models/TransferRequestBody.php index c847299..9dee6b4 100644 --- a/lib/models/TransferRequestBody.php +++ b/lib/models/TransferRequestBody.php @@ -31,14 +31,18 @@ class TransferRequestBody implements ArrayAccess { '_links' => 'map[string,HalLink]', 'amount' => 'Amount', 'metadata' => 'object', - 'fees' => 'array[FacilitatorFeeRequest]' + 'fees' => 'array[FacilitatorFeeRequest]', + 'clearing' => 'Clearing', + 'imad' => 'string' ); static $attributeMap = array( '_links' => '_links', 'amount' => 'amount', 'metadata' => 'metadata', - 'fees' => 'fees' + 'fees' => 'fees', + 'clearing' => 'clearing', + 'imad' => 'imad' ); @@ -46,12 +50,16 @@ class TransferRequestBody implements ArrayAccess { public $amount; /* Amount */ public $metadata; /* object */ public $fees; /* array[FacilitatorFeeRequest] */ + public $clearing; /* Clearing */ + public $imad; /* string */ public function __construct(array $data = null) { $this->_links = $data["_links"]; $this->amount = $data["amount"]; $this->metadata = $data["metadata"]; $this->fees = $data["fees"]; + $this->clearing = $data["clearing"]; + $this->imad = $data["imad"]; } public function offsetExists($offset) {