dwolla_swagger 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +188 -0
- data/dwolla_swagger.gemspec +1 -1
- data/lib/dwolla_swagger/api/businessclassifications_api.rb +2 -2
- data/lib/dwolla_swagger/api/customers_api.rb +53 -7
- data/lib/dwolla_swagger/api/fundingsources_api.rb +40 -0
- data/lib/dwolla_swagger/api/root_api.rb +1 -1
- data/lib/dwolla_swagger/api/transfers_api.rb +46 -0
- data/lib/dwolla_swagger/models/create_customer.rb +51 -3
- data/lib/dwolla_swagger/models/customer_o_auth_token.rb +54 -0
- data/lib/dwolla_swagger/models/{verification_token.rb → iav_token.rb} +1 -1
- data/lib/dwolla_swagger/models/update_customer.rb +51 -3
- data/lib/dwolla_swagger/swagger/version.rb +1 -1
- data/lib/dwolla_swagger.rb +4 -3
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09b3042f8aec333b4bfd7be2521b06b6a970fc26
|
4
|
+
data.tar.gz: cf0fd873890d67aa801696f8bff811eea8dc4c54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a278e2fa4b84bcd31f6eab9d696ce677e78af8fea652c2f6207b5b50438438b7a29a58cf00b3e502d70abfe50c769d4e732076048a250541b457eb60ccc78183
|
7
|
+
data.tar.gz: 87fbb889a69ff748acf79dcccef698f3e9855a424bb29863adc6abbd3288e941d1e2464b4d7d963639c4f144ec624268315a09ff1685329cad3125d4848993b6
|
data/README.md
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
dwolla-swagger-ruby
|
2
|
+
=========
|
3
|
+
|
4
|
+
The new Dwolla API V2 SDK, as generated by [this fork of swagger-codegen](https://github.com/mach-kernel/swagger-codegen).
|
5
|
+
|
6
|
+
## Version
|
7
|
+
|
8
|
+
1.0.4
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
`dwolla_swagger` is available on [RubyGems](https://rubygems.org/gems/dwolla_swagger).
|
13
|
+
|
14
|
+
```
|
15
|
+
gem install dwolla_swagger
|
16
|
+
```
|
17
|
+
|
18
|
+
*To add as a dependency*
|
19
|
+
|
20
|
+
```bash
|
21
|
+
echo "gem dwolla_swagger, '~>1.0.0'" >> Gemfile
|
22
|
+
bundle install
|
23
|
+
```
|
24
|
+
|
25
|
+
*To install directly from source:*
|
26
|
+
```
|
27
|
+
git clone https://github.com/Dwolla/dwolla-swagger-ruby
|
28
|
+
cd dwolla-swagger-ruby
|
29
|
+
gem build *.gemspec && gem install --local *.gem
|
30
|
+
```
|
31
|
+
|
32
|
+
*OS X users may need to run `gem install` as a privileged user.*
|
33
|
+
|
34
|
+
## Quickstart
|
35
|
+
|
36
|
+
`dwolla_swagger` makes it easy for developers to hit the ground running with our API. Before attempting the following, you should ideally create [an application key and secret](https://www.dwolla.com/applications).
|
37
|
+
|
38
|
+
### Configuring a client
|
39
|
+
|
40
|
+
To get started, all you need to set is the `access_token` and `host` values.
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
require 'dwolla_swagger'
|
44
|
+
|
45
|
+
DwollaSwagger::Swagger.configure do |config|
|
46
|
+
config.access_token = 'a token'
|
47
|
+
config.host = 'api-uat.dwolla.com'
|
48
|
+
config.base_path = '/'
|
49
|
+
end
|
50
|
+
```
|
51
|
+
|
52
|
+
### List 10 customers
|
53
|
+
|
54
|
+
Now that we've set up our client, we can use it to make requests to the API. Let's retrieve 10 customer records associated with the authorization token used.
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
my_custies = DwollaSwagger::CustomersApi.list(:limit => 10)
|
58
|
+
p my_custies.to_body
|
59
|
+
```
|
60
|
+
|
61
|
+
### Creating a new customer
|
62
|
+
|
63
|
+
To create a customer, we can either provide a `Hash` with the expected values, or a `CreateCustomer` object.
|
64
|
+
|
65
|
+
```ruby
|
66
|
+
location = DwollaSwagger::CustomersApi.create({:body => {
|
67
|
+
:firstName => 'Jennifer',
|
68
|
+
:lastName => 'Smith',
|
69
|
+
:email => 'jsmith@gmail.com',
|
70
|
+
:phone => '7188675309'
|
71
|
+
}})
|
72
|
+
```
|
73
|
+
|
74
|
+
#### or
|
75
|
+
|
76
|
+
```ruby
|
77
|
+
jenny = DwollaSwagger::CreateCustomer.new
|
78
|
+
jenny.first_name = 'Jennifer'
|
79
|
+
jenny.last_name = 'Smith'
|
80
|
+
jenny.email = 'jsmith@gmail.com'
|
81
|
+
jenny.phone = '7188675309'
|
82
|
+
|
83
|
+
location = DwollaSwagger::CustomersApi.create(:body => jenny)
|
84
|
+
```
|
85
|
+
|
86
|
+
`location` will contain a URL to your newly created resource (HTTP 201 / Location header).
|
87
|
+
|
88
|
+
## Modules
|
89
|
+
|
90
|
+
`dwolla_swagger` contains `API` modules which allow the user to make requests, as well as `models` which are [DAOs](https://en.wikipedia.org/wiki/Data_access_object) that the library uses to serialize responses.
|
91
|
+
|
92
|
+
### API
|
93
|
+
Each API module is named in accordance to ([Dwolla's API Spec](http://docsv2.dwolla.com/) and encapsulates all of the documented functionality.
|
94
|
+
|
95
|
+
* `AccountsApi`
|
96
|
+
* `BusinessclassificationsApi`
|
97
|
+
* `CustomersApi`
|
98
|
+
* `DocumentsApi`
|
99
|
+
* `EventsApi`
|
100
|
+
* `FundingsourcesApi`
|
101
|
+
* `RootApi`
|
102
|
+
* `TransfersApi`
|
103
|
+
* `WebhooksApi`
|
104
|
+
* `WebhooksubscriptionsApi`
|
105
|
+
|
106
|
+
### Models
|
107
|
+
|
108
|
+
Each model represents the different kinds of requests and responses that can be made with the Dwolla API.
|
109
|
+
|
110
|
+
* `AccountInfo`
|
111
|
+
* `Amount`
|
112
|
+
* `ApplicationEvent`
|
113
|
+
* `BaseObject`
|
114
|
+
* `BusinessClassification`
|
115
|
+
* `BusinessClassificationListResponse`
|
116
|
+
* `CreateCustomer`
|
117
|
+
* `CreateFundingSourceRequest`
|
118
|
+
* `CreateWebhook`
|
119
|
+
* `Customer`
|
120
|
+
* `CustomerListResponse`
|
121
|
+
* `Document`
|
122
|
+
* `DocumentListResponse`
|
123
|
+
* `EventListResponse`
|
124
|
+
* `FundingSource`
|
125
|
+
* `FundingSourceListResponse`
|
126
|
+
* `HalLink`
|
127
|
+
* `Money`
|
128
|
+
* `Transfer`
|
129
|
+
* `TransferListResponse`
|
130
|
+
* `TransferRequestBody`
|
131
|
+
* `Unit`
|
132
|
+
* `UpdateCustomer`
|
133
|
+
* `VerificationToken`
|
134
|
+
* `VerifyMicroDepositsRequest`
|
135
|
+
* `Webhook`
|
136
|
+
* `WebhookAttempt`
|
137
|
+
* `WebhookEventListResponse`
|
138
|
+
* `WebhookHeader`
|
139
|
+
* `WebhookHttpRequest`
|
140
|
+
* `WebhookHttpResponse`
|
141
|
+
* `WebhookListResponse`
|
142
|
+
* `WebhookRetry`
|
143
|
+
* `WebhookRetryRequestListResponse`
|
144
|
+
* `WebhookSubscription`
|
145
|
+
|
146
|
+
|
147
|
+
## Changelog
|
148
|
+
|
149
|
+
1.0.4
|
150
|
+
* API schema updated, `CustomersApi` has new endpoints for IAV verification.
|
151
|
+
* Existing `Customer` related models updated, new `VerificationToken` model.
|
152
|
+
|
153
|
+
1.0.3
|
154
|
+
* API schema updated, `RootApi` now added.
|
155
|
+
* Changed `auth_token` to `access_token` in compliance with [RFC-6749](https://tools.ietf.org/html/rfc6749) recommended nomenclature.
|
156
|
+
|
157
|
+
1.0.2
|
158
|
+
* API schema updated, new methods in `FundingsourcesApi`.
|
159
|
+
* All methods which take Swagger variables in `path` (e.g, `/resource/{id}`) can now be passed a resource URL to make it easier for HAL-styled API consumption.
|
160
|
+
* More idiomatic response logic for HTTP 201 responses.
|
161
|
+
|
162
|
+
1.0.1
|
163
|
+
* API schema updated, new methods in `CustomersApi` and `TransfersApi`
|
164
|
+
|
165
|
+
1.0.0
|
166
|
+
* Initial release.
|
167
|
+
|
168
|
+
## Credits
|
169
|
+
|
170
|
+
This wrapper is semantically generated by a fork of [swagger-codegen](http://github.com/mach-kernel/swagger-codegen).
|
171
|
+
- [swagger-codegen contributors](https://github.com/swagger-api/swagger-codegen/network/members)
|
172
|
+
- [David Stancu](http://github.com/mach-kernel)
|
173
|
+
|
174
|
+
## License
|
175
|
+
|
176
|
+
Copyright 2015 Swagger Contributors, David Stancu
|
177
|
+
|
178
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
179
|
+
you may not use this file except in compliance with the License.
|
180
|
+
You may obtain a copy of the License at
|
181
|
+
|
182
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
183
|
+
|
184
|
+
Unless required by applicable law or agreed to in writing, software
|
185
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
186
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
187
|
+
See the License for the specific language governing permissions and
|
188
|
+
limitations under the License.
|
data/dwolla_swagger.gemspec
CHANGED
@@ -50,7 +50,7 @@ module DwollaSwagger
|
|
50
50
|
#
|
51
51
|
# @param id Id of business classification to get.
|
52
52
|
# @param [Hash] opts the optional parameters
|
53
|
-
# @return [
|
53
|
+
# @return [BusinessClassification]
|
54
54
|
def self.get_business_classification(id, opts = {})
|
55
55
|
|
56
56
|
# verify the required parameter 'id' is set
|
@@ -88,7 +88,7 @@ module DwollaSwagger
|
|
88
88
|
|
89
89
|
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
90
90
|
|
91
|
-
response.code == 201 ? obj = response.headers['Location'] : (obj =
|
91
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = BusinessClassification.new() and obj.build_from_hash(response.body))
|
92
92
|
|
93
93
|
end
|
94
94
|
end
|
@@ -268,19 +268,19 @@ module DwollaSwagger
|
|
268
268
|
|
269
269
|
end
|
270
270
|
|
271
|
-
#
|
271
|
+
# Create an OAuth token that is capable of adding a financial institution for the given customer.
|
272
272
|
#
|
273
273
|
# @param id ID of customer.
|
274
274
|
# @param [Hash] opts the optional parameters
|
275
|
-
# @return [
|
276
|
-
def self.
|
275
|
+
# @return [CustomerOAuthToken]
|
276
|
+
def self.create_add_bank_token_for_customer(id, opts = {})
|
277
277
|
|
278
278
|
# verify the required parameter 'id' is set
|
279
|
-
raise "Missing the required parameter 'id' when calling
|
279
|
+
raise "Missing the required parameter 'id' when calling create_add_bank_token_for_customer" if id.nil?
|
280
280
|
|
281
281
|
|
282
282
|
# resource path
|
283
|
-
path = "/customers/{id}/
|
283
|
+
path = "/customers/{id}/financial-institution-token".sub('{format}','json')
|
284
284
|
|
285
285
|
|
286
286
|
# check if id parameter is resource URI, otherwise substitute for ID
|
@@ -308,9 +308,55 @@ module DwollaSwagger
|
|
308
308
|
post_body = nil
|
309
309
|
|
310
310
|
|
311
|
-
response = Swagger::Request.new(:
|
311
|
+
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
312
|
+
|
313
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = CustomerOAuthToken.new() and obj.build_from_hash(response.body))
|
314
|
+
|
315
|
+
end
|
316
|
+
|
317
|
+
# Get iav token for customer.
|
318
|
+
#
|
319
|
+
# @param id ID of customer.
|
320
|
+
# @param [Hash] opts the optional parameters
|
321
|
+
# @return [IavToken]
|
322
|
+
def self.get_customer_iav_token(id, opts = {})
|
323
|
+
|
324
|
+
# verify the required parameter 'id' is set
|
325
|
+
raise "Missing the required parameter 'id' when calling get_customer_iav_token" if id.nil?
|
326
|
+
|
327
|
+
|
328
|
+
# resource path
|
329
|
+
path = "/customers/{id}/iav-token".sub('{format}','json')
|
330
|
+
|
331
|
+
|
332
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
333
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
334
|
+
|
335
|
+
|
336
|
+
# query parameters
|
337
|
+
query_params = {}
|
338
|
+
|
339
|
+
# header parameters
|
340
|
+
header_params = {}
|
341
|
+
|
342
|
+
# HTTP header 'Accept' (if needed)
|
343
|
+
_header_accept = ['application/vnd.dwolla.v1.hal+json']
|
344
|
+
_header_accept_result = Swagger::Request.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
345
|
+
|
346
|
+
# HTTP header 'Content-Type'
|
347
|
+
_header_content_type = []
|
348
|
+
header_params['Content-Type'] = Swagger::Request.select_header_content_type(_header_content_type)
|
349
|
+
|
350
|
+
# form parameters
|
351
|
+
form_params = {}
|
352
|
+
|
353
|
+
# http body (model)
|
354
|
+
post_body = nil
|
355
|
+
|
356
|
+
|
357
|
+
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
312
358
|
|
313
|
-
response.code == 201 ? obj = response.headers['Location'] : (obj =
|
359
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = IavToken.new() and obj.build_from_hash(response.body))
|
314
360
|
|
315
361
|
end
|
316
362
|
end
|
@@ -119,6 +119,46 @@ module DwollaSwagger
|
|
119
119
|
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
120
120
|
|
121
121
|
|
122
|
+
# query parameters
|
123
|
+
query_params = {}
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = {}
|
127
|
+
|
128
|
+
# HTTP header 'Accept' (if needed)
|
129
|
+
_header_accept = ['application/vnd.dwolla.v1.hal+json']
|
130
|
+
_header_accept_result = Swagger::Request.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
131
|
+
|
132
|
+
# HTTP header 'Content-Type'
|
133
|
+
_header_content_type = ['application/vnd.dwolla.v1.hal+json']
|
134
|
+
header_params['Content-Type'] = Swagger::Request.select_header_content_type(_header_content_type)
|
135
|
+
|
136
|
+
# form parameters
|
137
|
+
form_params = {}
|
138
|
+
|
139
|
+
# http body (model)
|
140
|
+
post_body = Swagger::Request.object_to_http_body(opts[:'body'])
|
141
|
+
|
142
|
+
|
143
|
+
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
144
|
+
|
145
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = FundingSource.new() and obj.build_from_hash(response.body))
|
146
|
+
|
147
|
+
end
|
148
|
+
|
149
|
+
# Create a new funding source.
|
150
|
+
#
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @option opts [CreateFundingSourceRequest] :body Funding source to create.
|
153
|
+
# @return [FundingSource]
|
154
|
+
def self.create_funding_source(opts = {})
|
155
|
+
|
156
|
+
|
157
|
+
# resource path
|
158
|
+
path = "/funding-sources".sub('{format}','json')
|
159
|
+
|
160
|
+
|
161
|
+
|
122
162
|
# query parameters
|
123
163
|
query_params = {}
|
124
164
|
|
@@ -65,7 +65,7 @@ module DwollaSwagger
|
|
65
65
|
header_params = {}
|
66
66
|
|
67
67
|
# HTTP header 'Accept' (if needed)
|
68
|
-
_header_accept = ['application/json']
|
68
|
+
_header_accept = ['application/vnd.dwolla.v1.hal+json']
|
69
69
|
_header_accept_result = Swagger::Request.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
70
70
|
|
71
71
|
# HTTP header 'Content-Type'
|
@@ -187,6 +187,52 @@ module DwollaSwagger
|
|
187
187
|
post_body = nil
|
188
188
|
|
189
189
|
|
190
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
191
|
+
|
192
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = Transfer.new() and obj.build_from_hash(response.body))
|
193
|
+
|
194
|
+
end
|
195
|
+
|
196
|
+
# Get a bank transfer failure by transfer id.
|
197
|
+
#
|
198
|
+
# @param id ID of failed bank transfer to get.
|
199
|
+
# @param [Hash] opts the optional parameters
|
200
|
+
# @return [Transfer]
|
201
|
+
def self.failure_by_id(id, opts = {})
|
202
|
+
|
203
|
+
# verify the required parameter 'id' is set
|
204
|
+
raise "Missing the required parameter 'id' when calling failure_by_id" if id.nil?
|
205
|
+
|
206
|
+
|
207
|
+
# resource path
|
208
|
+
path = "/transfers/{id}/failure".sub('{format}','json')
|
209
|
+
|
210
|
+
|
211
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
212
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
213
|
+
|
214
|
+
|
215
|
+
# query parameters
|
216
|
+
query_params = {}
|
217
|
+
|
218
|
+
# header parameters
|
219
|
+
header_params = {}
|
220
|
+
|
221
|
+
# HTTP header 'Accept' (if needed)
|
222
|
+
_header_accept = ['application/vnd.dwolla.v1.hal+json']
|
223
|
+
_header_accept_result = Swagger::Request.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
224
|
+
|
225
|
+
# HTTP header 'Content-Type'
|
226
|
+
_header_content_type = []
|
227
|
+
header_params['Content-Type'] = Swagger::Request.select_header_content_type(_header_content_type)
|
228
|
+
|
229
|
+
# form parameters
|
230
|
+
form_params = {}
|
231
|
+
|
232
|
+
# http body (model)
|
233
|
+
post_body = nil
|
234
|
+
|
235
|
+
|
190
236
|
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
191
237
|
|
192
238
|
response.code == 201 ? obj = response.headers['Location'] : (obj = Transfer.new() and obj.build_from_hash(response.body))
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class CreateCustomer < BaseObject
|
4
|
-
attr_accessor :first_name, :last_name, :email, :ip_address, :type, :address1, :address2, :city, :state, :postal_code, :date_of_birth, :ssn, :phone
|
4
|
+
attr_accessor :first_name, :last_name, :email, :ip_address, :type, :address1, :address2, :city, :state, :postal_code, :date_of_birth, :ssn, :phone, :business_name, :business_type, :business_classification, :ein, :doing_business_as, :website
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -43,7 +43,25 @@ module DwollaSwagger
|
|
43
43
|
:'ssn' => :'ssn',
|
44
44
|
|
45
45
|
#
|
46
|
-
:'phone' => :'phone'
|
46
|
+
:'phone' => :'phone',
|
47
|
+
|
48
|
+
#
|
49
|
+
:'business_name' => :'businessName',
|
50
|
+
|
51
|
+
#
|
52
|
+
:'business_type' => :'businessType',
|
53
|
+
|
54
|
+
#
|
55
|
+
:'business_classification' => :'businessClassification',
|
56
|
+
|
57
|
+
#
|
58
|
+
:'ein' => :'ein',
|
59
|
+
|
60
|
+
#
|
61
|
+
:'doing_business_as' => :'doingBusinessAs',
|
62
|
+
|
63
|
+
#
|
64
|
+
:'website' => :'website'
|
47
65
|
|
48
66
|
}
|
49
67
|
end
|
@@ -63,7 +81,13 @@ module DwollaSwagger
|
|
63
81
|
:'postal_code' => :'string',
|
64
82
|
:'date_of_birth' => :'string',
|
65
83
|
:'ssn' => :'string',
|
66
|
-
:'phone' => :'string'
|
84
|
+
:'phone' => :'string',
|
85
|
+
:'business_name' => :'string',
|
86
|
+
:'business_type' => :'string',
|
87
|
+
:'business_classification' => :'string',
|
88
|
+
:'ein' => :'string',
|
89
|
+
:'doing_business_as' => :'string',
|
90
|
+
:'website' => :'string'
|
67
91
|
|
68
92
|
}
|
69
93
|
end
|
@@ -127,6 +151,30 @@ module DwollaSwagger
|
|
127
151
|
@phone = attributes[:'phone']
|
128
152
|
end
|
129
153
|
|
154
|
+
if attributes[:'businessName']
|
155
|
+
@business_name = attributes[:'businessName']
|
156
|
+
end
|
157
|
+
|
158
|
+
if attributes[:'businessType']
|
159
|
+
@business_type = attributes[:'businessType']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes[:'businessClassification']
|
163
|
+
@business_classification = attributes[:'businessClassification']
|
164
|
+
end
|
165
|
+
|
166
|
+
if attributes[:'ein']
|
167
|
+
@ein = attributes[:'ein']
|
168
|
+
end
|
169
|
+
|
170
|
+
if attributes[:'doingBusinessAs']
|
171
|
+
@doing_business_as = attributes[:'doingBusinessAs']
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes[:'website']
|
175
|
+
@website = attributes[:'website']
|
176
|
+
end
|
177
|
+
|
130
178
|
end
|
131
179
|
end
|
132
180
|
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class CustomerOAuthToken < BaseObject
|
4
|
+
attr_accessor :_links, :_embedded, :token
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'_links' => :'_links',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'_embedded' => :'_embedded',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'token' => :'token'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'_links' => :'map[string,HalLink]',
|
25
|
+
:'_embedded' => :'object',
|
26
|
+
:'token' => :'string'
|
27
|
+
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
36
|
+
|
37
|
+
|
38
|
+
if attributes[:'_links']
|
39
|
+
if (value = attributes[:'_links']).is_a?(Array)
|
40
|
+
@_links = value
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
if attributes[:'_embedded']
|
45
|
+
@_embedded = attributes[:'_embedded']
|
46
|
+
end
|
47
|
+
|
48
|
+
if attributes[:'token']
|
49
|
+
@token = attributes[:'token']
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class UpdateCustomer < BaseObject
|
4
|
-
attr_accessor :first_name, :last_name, :email, :ip_address, :type, :status, :address1, :address2, :city, :state, :postal_code, :date_of_birth, :ssn, :phone
|
4
|
+
attr_accessor :first_name, :last_name, :email, :ip_address, :type, :status, :address1, :address2, :city, :state, :postal_code, :date_of_birth, :ssn, :phone, :business_name, :business_type, :business_classification, :ein, :doing_business_as, :website
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -46,7 +46,25 @@ module DwollaSwagger
|
|
46
46
|
:'ssn' => :'ssn',
|
47
47
|
|
48
48
|
#
|
49
|
-
:'phone' => :'phone'
|
49
|
+
:'phone' => :'phone',
|
50
|
+
|
51
|
+
#
|
52
|
+
:'business_name' => :'businessName',
|
53
|
+
|
54
|
+
#
|
55
|
+
:'business_type' => :'businessType',
|
56
|
+
|
57
|
+
#
|
58
|
+
:'business_classification' => :'businessClassification',
|
59
|
+
|
60
|
+
#
|
61
|
+
:'ein' => :'ein',
|
62
|
+
|
63
|
+
#
|
64
|
+
:'doing_business_as' => :'doingBusinessAs',
|
65
|
+
|
66
|
+
#
|
67
|
+
:'website' => :'website'
|
50
68
|
|
51
69
|
}
|
52
70
|
end
|
@@ -67,7 +85,13 @@ module DwollaSwagger
|
|
67
85
|
:'postal_code' => :'string',
|
68
86
|
:'date_of_birth' => :'string',
|
69
87
|
:'ssn' => :'string',
|
70
|
-
:'phone' => :'string'
|
88
|
+
:'phone' => :'string',
|
89
|
+
:'business_name' => :'string',
|
90
|
+
:'business_type' => :'string',
|
91
|
+
:'business_classification' => :'string',
|
92
|
+
:'ein' => :'string',
|
93
|
+
:'doing_business_as' => :'string',
|
94
|
+
:'website' => :'string'
|
71
95
|
|
72
96
|
}
|
73
97
|
end
|
@@ -135,6 +159,30 @@ module DwollaSwagger
|
|
135
159
|
@phone = attributes[:'phone']
|
136
160
|
end
|
137
161
|
|
162
|
+
if attributes[:'businessName']
|
163
|
+
@business_name = attributes[:'businessName']
|
164
|
+
end
|
165
|
+
|
166
|
+
if attributes[:'businessType']
|
167
|
+
@business_type = attributes[:'businessType']
|
168
|
+
end
|
169
|
+
|
170
|
+
if attributes[:'businessClassification']
|
171
|
+
@business_classification = attributes[:'businessClassification']
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes[:'ein']
|
175
|
+
@ein = attributes[:'ein']
|
176
|
+
end
|
177
|
+
|
178
|
+
if attributes[:'doingBusinessAs']
|
179
|
+
@doing_business_as = attributes[:'doingBusinessAs']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes[:'website']
|
183
|
+
@website = attributes[:'website']
|
184
|
+
end
|
185
|
+
|
138
186
|
end
|
139
187
|
end
|
140
188
|
end
|
data/lib/dwolla_swagger.rb
CHANGED
@@ -15,14 +15,15 @@ require 'dwolla_swagger/models/funding_source_list_response'
|
|
15
15
|
require 'dwolla_swagger/models/customer'
|
16
16
|
require 'dwolla_swagger/models/customer_list_response'
|
17
17
|
require 'dwolla_swagger/models/catalog_response'
|
18
|
-
require 'dwolla_swagger/models/document'
|
19
18
|
require 'dwolla_swagger/models/transfer_list_response'
|
19
|
+
require 'dwolla_swagger/models/document'
|
20
20
|
require 'dwolla_swagger/models/o_auth_response'
|
21
21
|
require 'dwolla_swagger/models/webhook_http_response'
|
22
22
|
require 'dwolla_swagger/models/hal_link'
|
23
23
|
require 'dwolla_swagger/models/money'
|
24
|
-
require 'dwolla_swagger/models/webhook_retry'
|
25
24
|
require 'dwolla_swagger/models/transfer_request_body'
|
25
|
+
require 'dwolla_swagger/models/webhook_retry'
|
26
|
+
require 'dwolla_swagger/models/customer_o_auth_token'
|
26
27
|
require 'dwolla_swagger/models/webhook_retry_request_list_response'
|
27
28
|
require 'dwolla_swagger/models/webhook_list_response'
|
28
29
|
require 'dwolla_swagger/models/account_info'
|
@@ -30,7 +31,6 @@ require 'dwolla_swagger/models/webhook_attempt'
|
|
30
31
|
require 'dwolla_swagger/models/unit__'
|
31
32
|
require 'dwolla_swagger/models/update_customer'
|
32
33
|
require 'dwolla_swagger/models/webhook_http_request'
|
33
|
-
require 'dwolla_swagger/models/verification_token'
|
34
34
|
require 'dwolla_swagger/models/webhook_subscription'
|
35
35
|
require 'dwolla_swagger/models/webhook_header'
|
36
36
|
require 'dwolla_swagger/models/amount'
|
@@ -41,6 +41,7 @@ require 'dwolla_swagger/models/verify_micro_deposits_request'
|
|
41
41
|
require 'dwolla_swagger/models/business_classification'
|
42
42
|
require 'dwolla_swagger/models/transfer'
|
43
43
|
require 'dwolla_swagger/models/webhook'
|
44
|
+
require 'dwolla_swagger/models/iav_token'
|
44
45
|
require 'dwolla_swagger/models/funding_source'
|
45
46
|
require 'dwolla_swagger/models/create_funding_source_request'
|
46
47
|
require 'dwolla_swagger/models/create_customer'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dwolla_swagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zeke Sikelianos
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-12-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|
@@ -221,6 +221,7 @@ executables: []
|
|
221
221
|
extensions: []
|
222
222
|
extra_rdoc_files: []
|
223
223
|
files:
|
224
|
+
- README.md
|
224
225
|
- dwolla_swagger.gemspec
|
225
226
|
- lib/dwolla_swagger.rb
|
226
227
|
- lib/dwolla_swagger/api/accounts_api.rb
|
@@ -245,12 +246,14 @@ files:
|
|
245
246
|
- lib/dwolla_swagger/models/create_webhook.rb
|
246
247
|
- lib/dwolla_swagger/models/customer.rb
|
247
248
|
- lib/dwolla_swagger/models/customer_list_response.rb
|
249
|
+
- lib/dwolla_swagger/models/customer_o_auth_token.rb
|
248
250
|
- lib/dwolla_swagger/models/document.rb
|
249
251
|
- lib/dwolla_swagger/models/document_list_response.rb
|
250
252
|
- lib/dwolla_swagger/models/event_list_response.rb
|
251
253
|
- lib/dwolla_swagger/models/funding_source.rb
|
252
254
|
- lib/dwolla_swagger/models/funding_source_list_response.rb
|
253
255
|
- lib/dwolla_swagger/models/hal_link.rb
|
256
|
+
- lib/dwolla_swagger/models/iav_token.rb
|
254
257
|
- lib/dwolla_swagger/models/money.rb
|
255
258
|
- lib/dwolla_swagger/models/o_auth_response.rb
|
256
259
|
- lib/dwolla_swagger/models/transfer.rb
|
@@ -258,7 +261,6 @@ files:
|
|
258
261
|
- lib/dwolla_swagger/models/transfer_request_body.rb
|
259
262
|
- lib/dwolla_swagger/models/unit__.rb
|
260
263
|
- lib/dwolla_swagger/models/update_customer.rb
|
261
|
-
- lib/dwolla_swagger/models/verification_token.rb
|
262
264
|
- lib/dwolla_swagger/models/verify_micro_deposits_request.rb
|
263
265
|
- lib/dwolla_swagger/models/webhook.rb
|
264
266
|
- lib/dwolla_swagger/models/webhook_attempt.rb
|
@@ -296,8 +298,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
296
298
|
version: '0'
|
297
299
|
requirements: []
|
298
300
|
rubyforge_project:
|
299
|
-
rubygems_version: 2.0
|
301
|
+
rubygems_version: 2.5.0
|
300
302
|
signing_key:
|
301
303
|
specification_version: 4
|
302
304
|
summary: Dwolla API V2 SDK
|
303
305
|
test_files: []
|
306
|
+
has_rdoc:
|