dwolla_swagger 1.0.1 → 1.0.2
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/lib/dwolla_swagger/api/accounts_api.rb +11 -9
- data/lib/dwolla_swagger/api/customers_api.rb +49 -46
- data/lib/dwolla_swagger/api/documents_api.rb +11 -9
- data/lib/dwolla_swagger/api/events_api.rb +17 -16
- data/lib/dwolla_swagger/api/fundingsources_api.rb +140 -41
- data/lib/dwolla_swagger/api/transfers_api.rb +37 -32
- data/lib/dwolla_swagger/api/webhooks_api.rb +41 -33
- data/lib/dwolla_swagger/api/webhooksubscriptions_api.rb +33 -31
- data/lib/dwolla_swagger/models/application_event.rb +1 -9
- data/lib/dwolla_swagger/models/update_customer.rb +9 -1
- data/lib/dwolla_swagger/models/verify_micro_deposits_request.rb +44 -0
- data/lib/dwolla_swagger/models/webhook_retry.rb +5 -13
- data/lib/dwolla_swagger/swagger/version.rb +1 -1
- data/lib/dwolla_swagger.rb +22 -21
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a27a509a07b8fca49048dcdf558b817672c98971
|
4
|
+
data.tar.gz: 858c9f5c6434ab552a7708a68b226eb4803683ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8ff31a39fe008138ed82885a69c3c8b03300076e95e6c1c5e681ee97689086574523ad1d1d2e58f313b55199dc8eccf24fc25de17c581e50288b7e7fbf7144c
|
7
|
+
data.tar.gz: 87b0981305e4948ee9de821ba409fd3dc15a731ea8dcd1416c1cf2a5fbc50307d868097887231d31d173be00b61797f12d3970fb31083634cef20a74bb44e547
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'uri'
|
2
2
|
|
3
3
|
module DwollaSwagger
|
4
4
|
class AccountsApi
|
@@ -19,7 +19,12 @@ module DwollaSwagger
|
|
19
19
|
|
20
20
|
|
21
21
|
# resource path
|
22
|
-
path = "/accounts/{id}".sub('{format}','json')
|
22
|
+
path = "/accounts/{id}".sub('{format}','json')
|
23
|
+
|
24
|
+
|
25
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
26
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
27
|
+
|
23
28
|
|
24
29
|
# query parameters
|
25
30
|
query_params = {}
|
@@ -42,13 +47,10 @@ module DwollaSwagger
|
|
42
47
|
post_body = nil
|
43
48
|
|
44
49
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
50
|
-
obj = AccountInfo.new() and obj.build_from_hash(response)
|
51
|
-
end
|
50
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
51
|
+
|
52
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = AccountInfo.new() and obj.build_from_hash(response.body))
|
53
|
+
|
52
54
|
end
|
53
55
|
end
|
54
56
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'uri'
|
2
2
|
|
3
3
|
module DwollaSwagger
|
4
4
|
class CustomersApi
|
@@ -19,6 +19,8 @@ module DwollaSwagger
|
|
19
19
|
# resource path
|
20
20
|
path = "/customers".sub('{format}','json')
|
21
21
|
|
22
|
+
|
23
|
+
|
22
24
|
# query parameters
|
23
25
|
query_params = {}
|
24
26
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
@@ -42,13 +44,10 @@ module DwollaSwagger
|
|
42
44
|
post_body = nil
|
43
45
|
|
44
46
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
50
|
-
obj = CustomerListResponse.new() and obj.build_from_hash(response)
|
51
|
-
end
|
47
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
48
|
+
|
49
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = CustomerListResponse.new() and obj.build_from_hash(response.body))
|
50
|
+
|
52
51
|
end
|
53
52
|
|
54
53
|
# Create a new customer.
|
@@ -62,6 +61,8 @@ module DwollaSwagger
|
|
62
61
|
# resource path
|
63
62
|
path = "/customers".sub('{format}','json')
|
64
63
|
|
64
|
+
|
65
|
+
|
65
66
|
# query parameters
|
66
67
|
query_params = {}
|
67
68
|
|
@@ -83,13 +84,10 @@ module DwollaSwagger
|
|
83
84
|
post_body = Swagger::Request.object_to_http_body(opts[:'body'])
|
84
85
|
|
85
86
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
91
|
-
obj = Unit.new() and obj.build_from_hash(response)
|
92
|
-
end
|
87
|
+
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
88
|
+
|
89
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = Unit.new() and obj.build_from_hash(response.body))
|
90
|
+
|
93
91
|
end
|
94
92
|
|
95
93
|
# Get a customer by id
|
@@ -104,7 +102,12 @@ module DwollaSwagger
|
|
104
102
|
|
105
103
|
|
106
104
|
# resource path
|
107
|
-
path = "/customers/{id}".sub('{format}','json')
|
105
|
+
path = "/customers/{id}".sub('{format}','json')
|
106
|
+
|
107
|
+
|
108
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
109
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
110
|
+
|
108
111
|
|
109
112
|
# query parameters
|
110
113
|
query_params = {}
|
@@ -127,13 +130,10 @@ module DwollaSwagger
|
|
127
130
|
post_body = nil
|
128
131
|
|
129
132
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
135
|
-
obj = Customer.new() and obj.build_from_hash(response)
|
136
|
-
end
|
133
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
134
|
+
|
135
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = Customer.new() and obj.build_from_hash(response.body))
|
136
|
+
|
137
137
|
end
|
138
138
|
|
139
139
|
# Update customer record. Personal customer records are re-verified upon update.
|
@@ -149,7 +149,12 @@ module DwollaSwagger
|
|
149
149
|
|
150
150
|
|
151
151
|
# resource path
|
152
|
-
path = "/customers/{id}".sub('{format}','json')
|
152
|
+
path = "/customers/{id}".sub('{format}','json')
|
153
|
+
|
154
|
+
|
155
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
156
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
157
|
+
|
153
158
|
|
154
159
|
# query parameters
|
155
160
|
query_params = {}
|
@@ -172,13 +177,10 @@ module DwollaSwagger
|
|
172
177
|
post_body = Swagger::Request.object_to_http_body(opts[:'body'])
|
173
178
|
|
174
179
|
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
180
|
-
obj = Customer.new() and obj.build_from_hash(response)
|
181
|
-
end
|
180
|
+
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
181
|
+
|
182
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = Customer.new() and obj.build_from_hash(response.body))
|
183
|
+
|
182
184
|
end
|
183
185
|
|
184
186
|
# Get documents uploaded for customer.
|
@@ -193,7 +195,12 @@ module DwollaSwagger
|
|
193
195
|
|
194
196
|
|
195
197
|
# resource path
|
196
|
-
path = "/customers/{id}/documents".sub('{format}','json')
|
198
|
+
path = "/customers/{id}/documents".sub('{format}','json')
|
199
|
+
|
200
|
+
|
201
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
202
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
203
|
+
|
197
204
|
|
198
205
|
# query parameters
|
199
206
|
query_params = {}
|
@@ -216,13 +223,10 @@ module DwollaSwagger
|
|
216
223
|
post_body = nil
|
217
224
|
|
218
225
|
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
224
|
-
obj = DocumentListResponse.new() and obj.build_from_hash(response)
|
225
|
-
end
|
226
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
227
|
+
|
228
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = DocumentListResponse.new() and obj.build_from_hash(response.body))
|
229
|
+
|
226
230
|
end
|
227
231
|
|
228
232
|
# Upload a verification document.
|
@@ -235,6 +239,8 @@ module DwollaSwagger
|
|
235
239
|
# resource path
|
236
240
|
path = "/customers/{id}/documents".sub('{format}','json')
|
237
241
|
|
242
|
+
|
243
|
+
|
238
244
|
# query parameters
|
239
245
|
query_params = {}
|
240
246
|
|
@@ -256,13 +262,10 @@ module DwollaSwagger
|
|
256
262
|
post_body = nil
|
257
263
|
|
258
264
|
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
264
|
-
obj = Unit.new() and obj.build_from_hash(response)
|
265
|
-
end
|
265
|
+
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
266
|
+
|
267
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = Unit.new() and obj.build_from_hash(response.body))
|
268
|
+
|
266
269
|
end
|
267
270
|
end
|
268
271
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'uri'
|
2
2
|
|
3
3
|
module DwollaSwagger
|
4
4
|
class DocumentsApi
|
@@ -19,7 +19,12 @@ module DwollaSwagger
|
|
19
19
|
|
20
20
|
|
21
21
|
# resource path
|
22
|
-
path = "/documents/{id}".sub('{format}','json')
|
22
|
+
path = "/documents/{id}".sub('{format}','json')
|
23
|
+
|
24
|
+
|
25
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
26
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
27
|
+
|
23
28
|
|
24
29
|
# query parameters
|
25
30
|
query_params = {}
|
@@ -42,13 +47,10 @@ module DwollaSwagger
|
|
42
47
|
post_body = nil
|
43
48
|
|
44
49
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
50
|
-
obj = Document.new() and obj.build_from_hash(response)
|
51
|
-
end
|
50
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
51
|
+
|
52
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = Document.new() and obj.build_from_hash(response.body))
|
53
|
+
|
52
54
|
end
|
53
55
|
end
|
54
56
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'uri'
|
2
2
|
|
3
3
|
module DwollaSwagger
|
4
4
|
class EventsApi
|
@@ -19,6 +19,8 @@ module DwollaSwagger
|
|
19
19
|
# resource path
|
20
20
|
path = "/events".sub('{format}','json')
|
21
21
|
|
22
|
+
|
23
|
+
|
22
24
|
# query parameters
|
23
25
|
query_params = {}
|
24
26
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
@@ -42,13 +44,10 @@ module DwollaSwagger
|
|
42
44
|
post_body = nil
|
43
45
|
|
44
46
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
50
|
-
obj = EventListResponse.new() and obj.build_from_hash(response)
|
51
|
-
end
|
47
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
48
|
+
|
49
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = EventListResponse.new() and obj.build_from_hash(response.body))
|
50
|
+
|
52
51
|
end
|
53
52
|
|
54
53
|
# Get an event by id.
|
@@ -63,7 +62,12 @@ module DwollaSwagger
|
|
63
62
|
|
64
63
|
|
65
64
|
# resource path
|
66
|
-
path = "/events/{id}".sub('{format}','json')
|
65
|
+
path = "/events/{id}".sub('{format}','json')
|
66
|
+
|
67
|
+
|
68
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
69
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
70
|
+
|
67
71
|
|
68
72
|
# query parameters
|
69
73
|
query_params = {}
|
@@ -86,13 +90,10 @@ module DwollaSwagger
|
|
86
90
|
post_body = nil
|
87
91
|
|
88
92
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
94
|
-
obj = ApplicationEvent.new() and obj.build_from_hash(response)
|
95
|
-
end
|
93
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
94
|
+
|
95
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = ApplicationEvent.new() and obj.build_from_hash(response.body))
|
96
|
+
|
96
97
|
end
|
97
98
|
end
|
98
99
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'uri'
|
2
2
|
|
3
3
|
module DwollaSwagger
|
4
4
|
class FundingsourcesApi
|
@@ -19,7 +19,12 @@ module DwollaSwagger
|
|
19
19
|
|
20
20
|
|
21
21
|
# resource path
|
22
|
-
path = "/accounts/{id}/funding-sources".sub('{format}','json')
|
22
|
+
path = "/accounts/{id}/funding-sources".sub('{format}','json')
|
23
|
+
|
24
|
+
|
25
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
26
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
27
|
+
|
23
28
|
|
24
29
|
# query parameters
|
25
30
|
query_params = {}
|
@@ -42,13 +47,10 @@ module DwollaSwagger
|
|
42
47
|
post_body = nil
|
43
48
|
|
44
49
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
50
|
-
obj = FundingSourceListResponse.new() and obj.build_from_hash(response)
|
51
|
-
end
|
50
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
51
|
+
|
52
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = FundingSourceListResponse.new() and obj.build_from_hash(response.body))
|
53
|
+
|
52
54
|
end
|
53
55
|
|
54
56
|
# Get a customer's funding sources.
|
@@ -63,7 +65,12 @@ module DwollaSwagger
|
|
63
65
|
|
64
66
|
|
65
67
|
# resource path
|
66
|
-
path = "/customers/{id}/funding-sources".sub('{format}','json')
|
68
|
+
path = "/customers/{id}/funding-sources".sub('{format}','json')
|
69
|
+
|
70
|
+
|
71
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
72
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
73
|
+
|
67
74
|
|
68
75
|
# query parameters
|
69
76
|
query_params = {}
|
@@ -86,13 +93,10 @@ module DwollaSwagger
|
|
86
93
|
post_body = nil
|
87
94
|
|
88
95
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
94
|
-
obj = FundingSourceListResponse.new() and obj.build_from_hash(response)
|
95
|
-
end
|
96
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
97
|
+
|
98
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = FundingSourceListResponse.new() and obj.build_from_hash(response.body))
|
99
|
+
|
96
100
|
end
|
97
101
|
|
98
102
|
# Create a new funding source.
|
@@ -108,7 +112,12 @@ module DwollaSwagger
|
|
108
112
|
|
109
113
|
|
110
114
|
# resource path
|
111
|
-
path = "/customers/{id}/funding-sources".sub('{format}','json')
|
115
|
+
path = "/customers/{id}/funding-sources".sub('{format}','json')
|
116
|
+
|
117
|
+
|
118
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
119
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
120
|
+
|
112
121
|
|
113
122
|
# query parameters
|
114
123
|
query_params = {}
|
@@ -131,13 +140,10 @@ module DwollaSwagger
|
|
131
140
|
post_body = Swagger::Request.object_to_http_body(opts[:'body'])
|
132
141
|
|
133
142
|
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
139
|
-
obj = FundingSource.new() and obj.build_from_hash(response)
|
140
|
-
end
|
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
|
+
|
141
147
|
end
|
142
148
|
|
143
149
|
# Get a funding source by id.
|
@@ -152,7 +158,12 @@ module DwollaSwagger
|
|
152
158
|
|
153
159
|
|
154
160
|
# resource path
|
155
|
-
path = "/funding-sources/{id}".sub('{format}','json')
|
161
|
+
path = "/funding-sources/{id}".sub('{format}','json')
|
162
|
+
|
163
|
+
|
164
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
165
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
166
|
+
|
156
167
|
|
157
168
|
# query parameters
|
158
169
|
query_params = {}
|
@@ -175,13 +186,10 @@ module DwollaSwagger
|
|
175
186
|
post_body = nil
|
176
187
|
|
177
188
|
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
183
|
-
obj = FundingSource.new() and obj.build_from_hash(response)
|
184
|
-
end
|
189
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
190
|
+
|
191
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = FundingSource.new() and obj.build_from_hash(response.body))
|
192
|
+
|
185
193
|
end
|
186
194
|
|
187
195
|
# Delete a funding source by id.
|
@@ -196,7 +204,12 @@ module DwollaSwagger
|
|
196
204
|
|
197
205
|
|
198
206
|
# resource path
|
199
|
-
path = "/funding-sources/{id}".sub('{format}','json')
|
207
|
+
path = "/funding-sources/{id}".sub('{format}','json')
|
208
|
+
|
209
|
+
|
210
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
211
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
212
|
+
|
200
213
|
|
201
214
|
# query parameters
|
202
215
|
query_params = {}
|
@@ -219,13 +232,99 @@ module DwollaSwagger
|
|
219
232
|
post_body = nil
|
220
233
|
|
221
234
|
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
235
|
+
response = Swagger::Request.new(:DELETE, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
236
|
+
|
237
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = FundingSource.new() and obj.build_from_hash(response.body))
|
238
|
+
|
239
|
+
end
|
240
|
+
|
241
|
+
# Verify pending verifications exist.
|
242
|
+
#
|
243
|
+
# @param id Funding source ID to check for pending validation deposits for.
|
244
|
+
# @param [Hash] opts the optional parameters
|
245
|
+
# @return [nil]
|
246
|
+
def self.verify_micro_deposits_exist(id, opts = {})
|
247
|
+
|
248
|
+
# verify the required parameter 'id' is set
|
249
|
+
raise "Missing the required parameter 'id' when calling verify_micro_deposits_exist" if id.nil?
|
250
|
+
|
251
|
+
|
252
|
+
# resource path
|
253
|
+
path = "/funding-sources/{id}/micro-deposits".sub('{format}','json')
|
254
|
+
|
255
|
+
|
256
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
257
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
258
|
+
|
259
|
+
|
260
|
+
# query parameters
|
261
|
+
query_params = {}
|
262
|
+
|
263
|
+
# header parameters
|
264
|
+
header_params = {}
|
265
|
+
|
266
|
+
# HTTP header 'Accept' (if needed)
|
267
|
+
_header_accept = ['application/vnd.dwolla.v1.hal+json']
|
268
|
+
_header_accept_result = Swagger::Request.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
269
|
+
|
270
|
+
# HTTP header 'Content-Type'
|
271
|
+
_header_content_type = []
|
272
|
+
header_params['Content-Type'] = Swagger::Request.select_header_content_type(_header_content_type)
|
273
|
+
|
274
|
+
# form parameters
|
275
|
+
form_params = {}
|
276
|
+
|
277
|
+
# http body (model)
|
278
|
+
post_body = nil
|
279
|
+
|
280
|
+
|
281
|
+
nil
|
282
|
+
|
283
|
+
end
|
284
|
+
|
285
|
+
# Initiate or verify micro deposits for bank verification.
|
286
|
+
#
|
287
|
+
# @param id Funding source ID to initiate or verify micro deposits for.
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @option opts [VerifyMicroDepositsRequest] :body Optional micro deposit amounts for verification
|
290
|
+
# @return [nil]
|
291
|
+
def self.micro_deposits(id, opts = {})
|
292
|
+
|
293
|
+
# verify the required parameter 'id' is set
|
294
|
+
raise "Missing the required parameter 'id' when calling micro_deposits" if id.nil?
|
295
|
+
|
296
|
+
|
297
|
+
# resource path
|
298
|
+
path = "/funding-sources/{id}/micro-deposits".sub('{format}','json')
|
299
|
+
|
300
|
+
|
301
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
302
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
303
|
+
|
304
|
+
|
305
|
+
# query parameters
|
306
|
+
query_params = {}
|
307
|
+
|
308
|
+
# header parameters
|
309
|
+
header_params = {}
|
310
|
+
|
311
|
+
# HTTP header 'Accept' (if needed)
|
312
|
+
_header_accept = ['application/vnd.dwolla.v1.hal+json']
|
313
|
+
_header_accept_result = Swagger::Request.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
314
|
+
|
315
|
+
# HTTP header 'Content-Type'
|
316
|
+
_header_content_type = []
|
317
|
+
header_params['Content-Type'] = Swagger::Request.select_header_content_type(_header_content_type)
|
318
|
+
|
319
|
+
# form parameters
|
320
|
+
form_params = {}
|
321
|
+
|
322
|
+
# http body (model)
|
323
|
+
post_body = Swagger::Request.object_to_http_body(opts[:'body'])
|
324
|
+
|
325
|
+
|
326
|
+
nil
|
327
|
+
|
229
328
|
end
|
230
329
|
end
|
231
330
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'uri'
|
2
2
|
|
3
3
|
module DwollaSwagger
|
4
4
|
class TransfersApi
|
@@ -21,7 +21,12 @@ module DwollaSwagger
|
|
21
21
|
|
22
22
|
|
23
23
|
# resource path
|
24
|
-
path = "/accounts/{id}/transfers".sub('{format}','json')
|
24
|
+
path = "/accounts/{id}/transfers".sub('{format}','json')
|
25
|
+
|
26
|
+
|
27
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
28
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
29
|
+
|
25
30
|
|
26
31
|
# query parameters
|
27
32
|
query_params = {}
|
@@ -46,13 +51,10 @@ module DwollaSwagger
|
|
46
51
|
post_body = nil
|
47
52
|
|
48
53
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
54
|
-
obj = TransferListResponse.new() and obj.build_from_hash(response)
|
55
|
-
end
|
54
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
55
|
+
|
56
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = TransferListResponse.new() and obj.build_from_hash(response.body))
|
57
|
+
|
56
58
|
end
|
57
59
|
|
58
60
|
# Get a customer's transfers.
|
@@ -69,7 +71,12 @@ module DwollaSwagger
|
|
69
71
|
|
70
72
|
|
71
73
|
# resource path
|
72
|
-
path = "/customers/{id}/transfers".sub('{format}','json')
|
74
|
+
path = "/customers/{id}/transfers".sub('{format}','json')
|
75
|
+
|
76
|
+
|
77
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
78
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
79
|
+
|
73
80
|
|
74
81
|
# query parameters
|
75
82
|
query_params = {}
|
@@ -94,13 +101,10 @@ module DwollaSwagger
|
|
94
101
|
post_body = nil
|
95
102
|
|
96
103
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
102
|
-
obj = TransferListResponse.new() and obj.build_from_hash(response)
|
103
|
-
end
|
104
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
105
|
+
|
106
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = TransferListResponse.new() and obj.build_from_hash(response.body))
|
107
|
+
|
104
108
|
end
|
105
109
|
|
106
110
|
# Create a new transfer.
|
@@ -114,6 +118,8 @@ module DwollaSwagger
|
|
114
118
|
# resource path
|
115
119
|
path = "/transfers".sub('{format}','json')
|
116
120
|
|
121
|
+
|
122
|
+
|
117
123
|
# query parameters
|
118
124
|
query_params = {}
|
119
125
|
|
@@ -135,13 +141,10 @@ module DwollaSwagger
|
|
135
141
|
post_body = Swagger::Request.object_to_http_body(opts[:'body'])
|
136
142
|
|
137
143
|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
143
|
-
obj = Unit.new() and obj.build_from_hash(response)
|
144
|
-
end
|
144
|
+
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
145
|
+
|
146
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = Unit.new() and obj.build_from_hash(response.body))
|
147
|
+
|
145
148
|
end
|
146
149
|
|
147
150
|
# Get a transfer by id.
|
@@ -156,7 +159,12 @@ module DwollaSwagger
|
|
156
159
|
|
157
160
|
|
158
161
|
# resource path
|
159
|
-
path = "/transfers/{id}".sub('{format}','json')
|
162
|
+
path = "/transfers/{id}".sub('{format}','json')
|
163
|
+
|
164
|
+
|
165
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
166
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
167
|
+
|
160
168
|
|
161
169
|
# query parameters
|
162
170
|
query_params = {}
|
@@ -179,13 +187,10 @@ module DwollaSwagger
|
|
179
187
|
post_body = nil
|
180
188
|
|
181
189
|
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
187
|
-
obj = Transfer.new() and obj.build_from_hash(response)
|
188
|
-
end
|
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
|
+
|
189
194
|
end
|
190
195
|
end
|
191
196
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'uri'
|
2
2
|
|
3
3
|
module DwollaSwagger
|
4
4
|
class WebhooksApi
|
@@ -21,7 +21,12 @@ module DwollaSwagger
|
|
21
21
|
|
22
22
|
|
23
23
|
# resource path
|
24
|
-
path = "/webhook-subscriptions/{id}/webhooks".sub('{format}','json')
|
24
|
+
path = "/webhook-subscriptions/{id}/webhooks".sub('{format}','json')
|
25
|
+
|
26
|
+
|
27
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
28
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
29
|
+
|
25
30
|
|
26
31
|
# query parameters
|
27
32
|
query_params = {}
|
@@ -46,13 +51,10 @@ module DwollaSwagger
|
|
46
51
|
post_body = nil
|
47
52
|
|
48
53
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
54
|
-
obj = WebhookEventListResponse.new() and obj.build_from_hash(response)
|
55
|
-
end
|
54
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
55
|
+
|
56
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = WebhookEventListResponse.new() and obj.build_from_hash(response.body))
|
57
|
+
|
56
58
|
end
|
57
59
|
|
58
60
|
# Get a webhook by id.
|
@@ -67,7 +69,12 @@ module DwollaSwagger
|
|
67
69
|
|
68
70
|
|
69
71
|
# resource path
|
70
|
-
path = "/webhooks/{id}".sub('{format}','json')
|
72
|
+
path = "/webhooks/{id}".sub('{format}','json')
|
73
|
+
|
74
|
+
|
75
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
76
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
77
|
+
|
71
78
|
|
72
79
|
# query parameters
|
73
80
|
query_params = {}
|
@@ -90,13 +97,10 @@ module DwollaSwagger
|
|
90
97
|
post_body = nil
|
91
98
|
|
92
99
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
98
|
-
obj = Webhook.new() and obj.build_from_hash(response)
|
99
|
-
end
|
100
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
101
|
+
|
102
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = Webhook.new() and obj.build_from_hash(response.body))
|
103
|
+
|
100
104
|
end
|
101
105
|
|
102
106
|
# Get retries requested by webhook id.
|
@@ -111,7 +115,12 @@ module DwollaSwagger
|
|
111
115
|
|
112
116
|
|
113
117
|
# resource path
|
114
|
-
path = "/webhooks/{id}/retries".sub('{format}','json')
|
118
|
+
path = "/webhooks/{id}/retries".sub('{format}','json')
|
119
|
+
|
120
|
+
|
121
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
122
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
123
|
+
|
115
124
|
|
116
125
|
# query parameters
|
117
126
|
query_params = {}
|
@@ -134,13 +143,10 @@ module DwollaSwagger
|
|
134
143
|
post_body = nil
|
135
144
|
|
136
145
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
142
|
-
obj = WebhookRetryRequestListResponse.new() and obj.build_from_hash(response)
|
143
|
-
end
|
146
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
147
|
+
|
148
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = WebhookRetryRequestListResponse.new() and obj.build_from_hash(response.body))
|
149
|
+
|
144
150
|
end
|
145
151
|
|
146
152
|
# Retry a webhook by id.
|
@@ -155,7 +161,12 @@ module DwollaSwagger
|
|
155
161
|
|
156
162
|
|
157
163
|
# resource path
|
158
|
-
path = "/webhooks/{id}/retries".sub('{format}','json')
|
164
|
+
path = "/webhooks/{id}/retries".sub('{format}','json')
|
165
|
+
|
166
|
+
|
167
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
168
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
169
|
+
|
159
170
|
|
160
171
|
# query parameters
|
161
172
|
query_params = {}
|
@@ -178,13 +189,10 @@ module DwollaSwagger
|
|
178
189
|
post_body = nil
|
179
190
|
|
180
191
|
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
186
|
-
obj = WebhookRetry.new() and obj.build_from_hash(response)
|
187
|
-
end
|
192
|
+
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
193
|
+
|
194
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = WebhookRetry.new() and obj.build_from_hash(response.body))
|
195
|
+
|
188
196
|
end
|
189
197
|
end
|
190
198
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'uri'
|
2
2
|
|
3
3
|
module DwollaSwagger
|
4
4
|
class WebhooksubscriptionsApi
|
@@ -17,6 +17,8 @@ module DwollaSwagger
|
|
17
17
|
# resource path
|
18
18
|
path = "/webhook-subscriptions".sub('{format}','json')
|
19
19
|
|
20
|
+
|
21
|
+
|
20
22
|
# query parameters
|
21
23
|
query_params = {}
|
22
24
|
|
@@ -38,13 +40,10 @@ module DwollaSwagger
|
|
38
40
|
post_body = nil
|
39
41
|
|
40
42
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
46
|
-
obj = WebhookListResponse.new() and obj.build_from_hash(response)
|
47
|
-
end
|
43
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
44
|
+
|
45
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = WebhookListResponse.new() and obj.build_from_hash(response.body))
|
46
|
+
|
48
47
|
end
|
49
48
|
|
50
49
|
# Create a new webhook subscription.
|
@@ -58,6 +57,8 @@ module DwollaSwagger
|
|
58
57
|
# resource path
|
59
58
|
path = "/webhook-subscriptions".sub('{format}','json')
|
60
59
|
|
60
|
+
|
61
|
+
|
61
62
|
# query parameters
|
62
63
|
query_params = {}
|
63
64
|
|
@@ -79,13 +80,10 @@ module DwollaSwagger
|
|
79
80
|
post_body = Swagger::Request.object_to_http_body(opts[:'body'])
|
80
81
|
|
81
82
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
87
|
-
obj = WebhookSubscription.new() and obj.build_from_hash(response)
|
88
|
-
end
|
83
|
+
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
84
|
+
|
85
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = WebhookSubscription.new() and obj.build_from_hash(response.body))
|
86
|
+
|
89
87
|
end
|
90
88
|
|
91
89
|
# Get a webhook subscription by id.
|
@@ -100,7 +98,12 @@ module DwollaSwagger
|
|
100
98
|
|
101
99
|
|
102
100
|
# resource path
|
103
|
-
path = "/webhook-subscriptions/{id}".sub('{format}','json')
|
101
|
+
path = "/webhook-subscriptions/{id}".sub('{format}','json')
|
102
|
+
|
103
|
+
|
104
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
105
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
106
|
+
|
104
107
|
|
105
108
|
# query parameters
|
106
109
|
query_params = {}
|
@@ -123,13 +126,10 @@ module DwollaSwagger
|
|
123
126
|
post_body = nil
|
124
127
|
|
125
128
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
131
|
-
obj = WebhookSubscription.new() and obj.build_from_hash(response)
|
132
|
-
end
|
129
|
+
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
130
|
+
|
131
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = WebhookSubscription.new() and obj.build_from_hash(response.body))
|
132
|
+
|
133
133
|
end
|
134
134
|
|
135
135
|
# Delete a webhook subscription by id.
|
@@ -144,7 +144,12 @@ module DwollaSwagger
|
|
144
144
|
|
145
145
|
|
146
146
|
# resource path
|
147
|
-
path = "/webhook-subscriptions/{id}".sub('{format}','json')
|
147
|
+
path = "/webhook-subscriptions/{id}".sub('{format}','json')
|
148
|
+
|
149
|
+
|
150
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
151
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
152
|
+
|
148
153
|
|
149
154
|
# query parameters
|
150
155
|
query_params = {}
|
@@ -167,13 +172,10 @@ module DwollaSwagger
|
|
167
172
|
post_body = nil
|
168
173
|
|
169
174
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
response = Swagger::Request.new(:DELETE, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make.body
|
175
|
-
obj = WebhookSubscription.new() and obj.build_from_hash(response)
|
176
|
-
end
|
175
|
+
response = Swagger::Request.new(:DELETE, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
176
|
+
|
177
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = WebhookSubscription.new() and obj.build_from_hash(response.body))
|
178
|
+
|
177
179
|
end
|
178
180
|
end
|
179
181
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class ApplicationEvent < BaseObject
|
4
|
-
attr_accessor :_links, :_embedded, :id, :created, :
|
4
|
+
attr_accessor :_links, :_embedded, :id, :created, :topic, :resource_id
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -18,9 +18,6 @@ module DwollaSwagger
|
|
18
18
|
#
|
19
19
|
:'created' => :'created',
|
20
20
|
|
21
|
-
#
|
22
|
-
:'account_id' => :'accountId',
|
23
|
-
|
24
21
|
#
|
25
22
|
:'topic' => :'topic',
|
26
23
|
|
@@ -37,7 +34,6 @@ module DwollaSwagger
|
|
37
34
|
:'_embedded' => :'object',
|
38
35
|
:'id' => :'string',
|
39
36
|
:'created' => :'DateTime',
|
40
|
-
:'account_id' => :'string',
|
41
37
|
:'topic' => :'string',
|
42
38
|
:'resource_id' => :'string'
|
43
39
|
|
@@ -69,10 +65,6 @@ module DwollaSwagger
|
|
69
65
|
@created = attributes[:'created']
|
70
66
|
end
|
71
67
|
|
72
|
-
if attributes[:'accountId']
|
73
|
-
@account_id = attributes[:'accountId']
|
74
|
-
end
|
75
|
-
|
76
68
|
if attributes[:'topic']
|
77
69
|
@topic = attributes[:'topic']
|
78
70
|
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, :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
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -21,6 +21,9 @@ module DwollaSwagger
|
|
21
21
|
#
|
22
22
|
:'type' => :'type',
|
23
23
|
|
24
|
+
#
|
25
|
+
:'status' => :'status',
|
26
|
+
|
24
27
|
#
|
25
28
|
:'address1' => :'address1',
|
26
29
|
|
@@ -56,6 +59,7 @@ module DwollaSwagger
|
|
56
59
|
:'email' => :'string',
|
57
60
|
:'ip_address' => :'string',
|
58
61
|
:'type' => :'string',
|
62
|
+
:'status' => :'string',
|
59
63
|
:'address1' => :'string',
|
60
64
|
:'address2' => :'string',
|
61
65
|
:'city' => :'string',
|
@@ -95,6 +99,10 @@ module DwollaSwagger
|
|
95
99
|
@type = attributes[:'type']
|
96
100
|
end
|
97
101
|
|
102
|
+
if attributes[:'status']
|
103
|
+
@status = attributes[:'status']
|
104
|
+
end
|
105
|
+
|
98
106
|
if attributes[:'address1']
|
99
107
|
@address1 = attributes[:'address1']
|
100
108
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class VerifyMicroDepositsRequest < BaseObject
|
4
|
+
attr_accessor :amount1, :amount2
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'amount1' => :'amount1',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'amount2' => :'amount2'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'amount1' => :'Amount',
|
22
|
+
:'amount2' => :'Amount'
|
23
|
+
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
def initialize(attributes = {})
|
28
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
29
|
+
|
30
|
+
# convert string to symbol for hash key
|
31
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
32
|
+
|
33
|
+
|
34
|
+
if attributes[:'amount1']
|
35
|
+
@amount1 = attributes[:'amount1']
|
36
|
+
end
|
37
|
+
|
38
|
+
if attributes[:'amount2']
|
39
|
+
@amount2 = attributes[:'amount2']
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class WebhookRetry < BaseObject
|
4
|
-
attr_accessor :_links, :_embedded, :id, :
|
4
|
+
attr_accessor :_links, :_embedded, :id, :timestamp
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -16,10 +16,7 @@ module DwollaSwagger
|
|
16
16
|
:'id' => :'id',
|
17
17
|
|
18
18
|
#
|
19
|
-
:'
|
20
|
-
|
21
|
-
#
|
22
|
-
:'hook_id' => :'hookId'
|
19
|
+
:'timestamp' => :'timestamp'
|
23
20
|
|
24
21
|
}
|
25
22
|
end
|
@@ -30,8 +27,7 @@ module DwollaSwagger
|
|
30
27
|
:'_links' => :'map[string,HalLink]',
|
31
28
|
:'_embedded' => :'object',
|
32
29
|
:'id' => :'string',
|
33
|
-
:'
|
34
|
-
:'hook_id' => :'string'
|
30
|
+
:'timestamp' => :'DateTime'
|
35
31
|
|
36
32
|
}
|
37
33
|
end
|
@@ -57,12 +53,8 @@ module DwollaSwagger
|
|
57
53
|
@id = attributes[:'id']
|
58
54
|
end
|
59
55
|
|
60
|
-
if attributes[:'
|
61
|
-
@
|
62
|
-
end
|
63
|
-
|
64
|
-
if attributes[:'hookId']
|
65
|
-
@hook_id = attributes[:'hookId']
|
56
|
+
if attributes[:'timestamp']
|
57
|
+
@timestamp = attributes[:'timestamp']
|
66
58
|
end
|
67
59
|
|
68
60
|
end
|
data/lib/dwolla_swagger.rb
CHANGED
@@ -8,36 +8,37 @@ require 'dwolla_swagger/swagger/version'
|
|
8
8
|
|
9
9
|
# Models
|
10
10
|
require 'dwolla_swagger/models/base_object'
|
11
|
-
require 'dwolla_swagger/models/
|
12
|
-
require 'dwolla_swagger/models/webhook_event_list_response'
|
13
|
-
require 'dwolla_swagger/models/hal_link'
|
14
|
-
require 'dwolla_swagger/models/account_info'
|
11
|
+
require 'dwolla_swagger/models/create_webhook'
|
15
12
|
require 'dwolla_swagger/models/document_list_response'
|
13
|
+
require 'dwolla_swagger/models/event_list_response'
|
14
|
+
require 'dwolla_swagger/models/customer'
|
15
|
+
require 'dwolla_swagger/models/funding_source_list_response'
|
16
16
|
require 'dwolla_swagger/models/customer_list_response'
|
17
17
|
require 'dwolla_swagger/models/transfer_list_response'
|
18
|
-
require 'dwolla_swagger/models/application_event'
|
19
|
-
require 'dwolla_swagger/models/transfer_request_body'
|
20
|
-
require 'dwolla_swagger/models/webhook_retry'
|
21
|
-
require 'dwolla_swagger/models/webhook_subscription'
|
22
|
-
require 'dwolla_swagger/models/funding_source_list_response'
|
23
|
-
require 'dwolla_swagger/models/create_customer'
|
24
|
-
require 'dwolla_swagger/models/unit__'
|
25
|
-
require 'dwolla_swagger/models/customer'
|
26
|
-
require 'dwolla_swagger/models/amount'
|
27
18
|
require 'dwolla_swagger/models/document'
|
19
|
+
require 'dwolla_swagger/models/webhook_http_response'
|
20
|
+
require 'dwolla_swagger/models/hal_link'
|
21
|
+
require 'dwolla_swagger/models/money'
|
22
|
+
require 'dwolla_swagger/models/webhook_retry'
|
23
|
+
require 'dwolla_swagger/models/transfer_request_body'
|
24
|
+
require 'dwolla_swagger/models/webhook_retry_request_list_response'
|
28
25
|
require 'dwolla_swagger/models/webhook_list_response'
|
29
|
-
require 'dwolla_swagger/models/
|
26
|
+
require 'dwolla_swagger/models/account_info'
|
30
27
|
require 'dwolla_swagger/models/webhook_attempt'
|
31
|
-
require 'dwolla_swagger/models/
|
28
|
+
require 'dwolla_swagger/models/unit__'
|
29
|
+
require 'dwolla_swagger/models/update_customer'
|
30
|
+
require 'dwolla_swagger/models/webhook_http_request'
|
31
|
+
require 'dwolla_swagger/models/webhook_subscription'
|
32
|
+
require 'dwolla_swagger/models/webhook_header'
|
33
|
+
require 'dwolla_swagger/models/amount'
|
34
|
+
require 'dwolla_swagger/models/application_event'
|
35
|
+
require 'dwolla_swagger/models/webhook_event_list_response'
|
36
|
+
require 'dwolla_swagger/models/verify_micro_deposits_request'
|
37
|
+
require 'dwolla_swagger/models/transfer'
|
32
38
|
require 'dwolla_swagger/models/webhook'
|
33
39
|
require 'dwolla_swagger/models/funding_source'
|
34
|
-
require 'dwolla_swagger/models/event_list_response'
|
35
|
-
require 'dwolla_swagger/models/transfer'
|
36
40
|
require 'dwolla_swagger/models/create_funding_source_request'
|
37
|
-
require 'dwolla_swagger/models/
|
38
|
-
require 'dwolla_swagger/models/webhook_retry_request_list_response'
|
39
|
-
require 'dwolla_swagger/models/create_webhook'
|
40
|
-
require 'dwolla_swagger/models/webhook_http_response'
|
41
|
+
require 'dwolla_swagger/models/create_customer'
|
41
42
|
|
42
43
|
# APIs
|
43
44
|
require 'dwolla_swagger/api/webhooksubscriptions_api'
|
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.2
|
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-10-
|
13
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|
@@ -252,6 +252,7 @@ files:
|
|
252
252
|
- lib/dwolla_swagger/models/transfer_request_body.rb
|
253
253
|
- lib/dwolla_swagger/models/unit__.rb
|
254
254
|
- lib/dwolla_swagger/models/update_customer.rb
|
255
|
+
- lib/dwolla_swagger/models/verify_micro_deposits_request.rb
|
255
256
|
- lib/dwolla_swagger/models/webhook.rb
|
256
257
|
- lib/dwolla_swagger/models/webhook_attempt.rb
|
257
258
|
- lib/dwolla_swagger/models/webhook_event_list_response.rb
|