Skip to content

Commit

Permalink
1.0.12 update
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerhunter committed Jan 25, 2017
1 parent 5d39bd0 commit ccfbe60
Show file tree
Hide file tree
Showing 11 changed files with 189 additions and 17 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/CustomersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
64 changes: 64 additions & 0 deletions lib/models/Clearing.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php
/**
* Copyright 2015 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
*
*
* NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
*
*/

namespace DwollaSwagger\models;

use \ArrayAccess;

class Clearing implements ArrayAccess {
static $swaggerTypes = array(
'source' => '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);
}
}
8 changes: 6 additions & 2 deletions lib/models/CreateFundingSourceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -42,7 +43,8 @@ class CreateFundingSourceRequest implements ArrayAccess {
'account_number' => 'accountNumber',
'type' => 'type',
'name' => 'name',
'verified' => 'verified'
'verified' => 'verified',
'channels' => 'channels'
);


Expand All @@ -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"];
Expand All @@ -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) {
Expand Down
12 changes: 10 additions & 2 deletions lib/models/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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'
);


Expand All @@ -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"];
Expand All @@ -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) {
Expand Down
64 changes: 64 additions & 0 deletions lib/models/FailureDetails.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php
/**
* Copyright 2015 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
*
*
* NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
*
*/

namespace DwollaSwagger\models;

use \ArrayAccess;

class FailureDetails implements ArrayAccess {
static $swaggerTypes = array(
'code' => '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);
}
}
12 changes: 10 additions & 2 deletions lib/models/FundingSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -48,7 +50,9 @@ class FundingSource implements ArrayAccess {
'name' => 'name',
'created' => 'created',
'balance' => 'balance',
'removed' => 'removed'
'removed' => 'removed',
'channels' => 'channels',
'bank_name' => 'bankName'
);


Expand All @@ -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"];
Expand All @@ -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) {
Expand Down
8 changes: 6 additions & 2 deletions lib/models/HalLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 6 additions & 2 deletions lib/models/MicroDepositsInitiated.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,31 @@ 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'
);


public $_links; /* map[string,HalLink] */
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) {
Expand Down
8 changes: 6 additions & 2 deletions lib/models/Transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class Transfer implements ArrayAccess {
'status' => 'string',
'amount' => 'Money',
'created' => 'DateTime',
'metadata' => 'object'
'metadata' => 'object',
'clearing' => 'Clearing'
);

static $attributeMap = array(
Expand All @@ -44,7 +45,8 @@ class Transfer implements ArrayAccess {
'status' => 'status',
'amount' => 'amount',
'created' => 'created',
'metadata' => 'metadata'
'metadata' => 'metadata',
'clearing' => 'clearing'
);


Expand All @@ -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"];
Expand All @@ -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) {
Expand Down
Loading

0 comments on commit ccfbe60

Please sign in to comment.