dwolla_swagger 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/.DS_Store +0 -0
- data/lib/dwolla_swagger/.DS_Store +0 -0
- data/lib/dwolla_swagger/api/fundingsources_api.rb +2 -2
- data/lib/dwolla_swagger/api/transfers_api.rb +2 -2
- data/lib/dwolla_swagger/api/webhooksubscriptions_api.rb +47 -0
- data/lib/dwolla_swagger/models/clearing.rb +44 -0
- data/lib/dwolla_swagger/models/create_funding_source_request.rb +21 -3
- data/lib/dwolla_swagger/models/customer.rb +19 -3
- data/lib/dwolla_swagger/models/failure_details.rb +44 -0
- data/lib/dwolla_swagger/models/fees_by_source_response.rb +64 -0
- data/lib/dwolla_swagger/models/funding_source.rb +21 -3
- data/lib/dwolla_swagger/models/hal_link.rb +11 -3
- data/lib/dwolla_swagger/models/micro_deposits_initiated.rb +70 -0
- data/lib/dwolla_swagger/models/transfer.rb +11 -3
- data/lib/dwolla_swagger/models/transfer_request_body.rb +19 -3
- data/lib/dwolla_swagger/models/update_subscription.rb +36 -0
- data/lib/dwolla_swagger/models/webhook_subscription.rb +9 -1
- data/lib/dwolla_swagger/swagger/version.rb +1 -1
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 186dfea0201319c2e48cf7af232314a11b087c17
|
4
|
+
data.tar.gz: c4753ce4c85f169680b60949bd058679d03e80dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b0e774f3a88ef29ec8bb69779d4c6dd9a76c1b9f61f9014b272d75ee4b3a40fbda9f45418e402ac90022dc91aaf4acaabf7438c70d08943019477fb04354ddd
|
7
|
+
data.tar.gz: df1c1d4a0c9180ad7965bba5fba9db208ee16181234a946f4865784219fe2dc531256cabe0a946e4b7b9a8b3c74c34e8cb44c879802fa6a0bea5f8747ba7428f
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ The new Dwolla API V2 SDK, as generated by [this fork of swagger-codegen](https:
|
|
5
5
|
|
6
6
|
## Version
|
7
7
|
|
8
|
-
1.0.
|
8
|
+
1.0.13
|
9
9
|
|
10
10
|
## Installation
|
11
11
|
|
@@ -146,6 +146,9 @@ Each model represents the different kinds of requests and responses that can be
|
|
146
146
|
|
147
147
|
## Changelog
|
148
148
|
|
149
|
+
1.0.13
|
150
|
+
* Existing `CreateFundingSourceRequest`, `FundingSource`, `HalLink`, `Transfer`, and `TransferRequestBody` models updated. New `Clearing`, `MicroDepositsInitiated` `UpdateSubscription` and `FailureDetails` models.
|
151
|
+
|
149
152
|
1.0.12
|
150
153
|
* Patch 1.0.11 update.
|
151
154
|
|
data/lib/.DS_Store
ADDED
Binary file
|
Binary file
|
@@ -379,7 +379,7 @@ module DwollaSwagger
|
|
379
379
|
#
|
380
380
|
# @param id Funding source ID to check for pending validation deposits for.
|
381
381
|
# @param [Hash] opts the optional parameters
|
382
|
-
# @return [
|
382
|
+
# @return [MicroDepositsInitiated]
|
383
383
|
def self.verify_micro_deposits_exist(id, opts = {})
|
384
384
|
|
385
385
|
# verify the required parameter 'id' is set
|
@@ -417,7 +417,7 @@ module DwollaSwagger
|
|
417
417
|
|
418
418
|
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
419
419
|
|
420
|
-
response.code == 201 ? obj = response.headers['Location'] : (obj =
|
420
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = MicroDepositsInitiated.new() and obj.build_from_hash(response.body))
|
421
421
|
|
422
422
|
end
|
423
423
|
|
@@ -290,7 +290,7 @@ module DwollaSwagger
|
|
290
290
|
#
|
291
291
|
# @param id Transfer id to get fees for.
|
292
292
|
# @param [Hash] opts the optional parameters
|
293
|
-
# @return [
|
293
|
+
# @return [FeesBySourceResponse]
|
294
294
|
def self.get_fees_by_source(id, opts = {})
|
295
295
|
|
296
296
|
# verify the required parameter 'id' is set
|
@@ -328,7 +328,7 @@ module DwollaSwagger
|
|
328
328
|
|
329
329
|
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
330
330
|
|
331
|
-
response.code == 201 ? obj = response.headers['Location'] : (obj =
|
331
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = FeesBySourceResponse.new() and obj.build_from_hash(response.body))
|
332
332
|
|
333
333
|
end
|
334
334
|
end
|
@@ -132,6 +132,53 @@ module DwollaSwagger
|
|
132
132
|
|
133
133
|
end
|
134
134
|
|
135
|
+
# Update a subscription by id.
|
136
|
+
#
|
137
|
+
# @param id ID of webhook to update.
|
138
|
+
# @param [Hash] opts the optional parameters
|
139
|
+
# @option opts [UpdateSubscription] :body Details to update.
|
140
|
+
# @return [WebhookSubscription]
|
141
|
+
def self.update_subscription(id, opts = {})
|
142
|
+
|
143
|
+
# verify the required parameter 'id' is set
|
144
|
+
raise "Missing the required parameter 'id' when calling update_subscription" if id.nil?
|
145
|
+
|
146
|
+
|
147
|
+
# resource path
|
148
|
+
path = "/webhook-subscriptions/{id}".sub('{format}','json')
|
149
|
+
|
150
|
+
|
151
|
+
# check if id parameter is resource URI, otherwise substitute for ID
|
152
|
+
path = id =~ URI::regexp ? path.sub('{' + 'id' + '}', id.split('/')[-1].to_s) : path.sub('{' + 'id' + '}', id.to_s)
|
153
|
+
|
154
|
+
|
155
|
+
# query parameters
|
156
|
+
query_params = {}
|
157
|
+
|
158
|
+
# header parameters
|
159
|
+
header_params = {}
|
160
|
+
|
161
|
+
# HTTP header 'Accept' (if needed)
|
162
|
+
_header_accept = ['application/vnd.dwolla.v1.hal+json']
|
163
|
+
_header_accept_result = Swagger::Request.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
164
|
+
|
165
|
+
# HTTP header 'Content-Type'
|
166
|
+
_header_content_type = []
|
167
|
+
header_params['Content-Type'] = Swagger::Request.select_header_content_type(_header_content_type)
|
168
|
+
|
169
|
+
# form parameters
|
170
|
+
form_params = {}
|
171
|
+
|
172
|
+
# http body (model)
|
173
|
+
post_body = Swagger::Request.object_to_http_body(opts[:'body'])
|
174
|
+
|
175
|
+
|
176
|
+
response = Swagger::Request.new(:POST, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
177
|
+
|
178
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = WebhookSubscription.new() and obj.build_from_hash(response.body))
|
179
|
+
|
180
|
+
end
|
181
|
+
|
135
182
|
# Delete a webhook subscription by id.
|
136
183
|
#
|
137
184
|
# @param id ID of webhook subscription to delete.
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class Clearing < BaseObject
|
4
|
+
attr_accessor :source, :destination
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'source' => :'source',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'destination' => :'destination'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'source' => :'string',
|
22
|
+
:'destination' => :'string'
|
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[:'source']
|
35
|
+
@source = attributes[:'source']
|
36
|
+
end
|
37
|
+
|
38
|
+
if attributes[:'destination']
|
39
|
+
@destination = attributes[:'destination']
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class CreateFundingSourceRequest < BaseObject
|
4
|
-
attr_accessor :_links, :routing_number, :account_number, :type, :name
|
4
|
+
attr_accessor :_links, :routing_number, :account_number, :type, :name, :verified, :channels
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -19,7 +19,13 @@ module DwollaSwagger
|
|
19
19
|
:'type' => :'type',
|
20
20
|
|
21
21
|
#
|
22
|
-
:'name' => :'name'
|
22
|
+
:'name' => :'name',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'verified' => :'verified',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'channels' => :'channels'
|
23
29
|
|
24
30
|
}
|
25
31
|
end
|
@@ -31,7 +37,9 @@ module DwollaSwagger
|
|
31
37
|
:'routing_number' => :'string',
|
32
38
|
:'account_number' => :'string',
|
33
39
|
:'type' => :'string',
|
34
|
-
:'name' => :'string'
|
40
|
+
:'name' => :'string',
|
41
|
+
:'verified' => :'boolean',
|
42
|
+
:'channels' => :'array[string]'
|
35
43
|
|
36
44
|
}
|
37
45
|
end
|
@@ -63,6 +71,16 @@ module DwollaSwagger
|
|
63
71
|
@name = attributes[:'name']
|
64
72
|
end
|
65
73
|
|
74
|
+
if attributes[:'verified']
|
75
|
+
@verified = attributes[:'verified']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes[:'channels']
|
79
|
+
if (value = attributes[:'channels']).is_a?(Array)
|
80
|
+
@channels = value
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
66
84
|
end
|
67
85
|
end
|
68
86
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class Customer < BaseObject
|
4
|
-
attr_accessor :_links, :_embedded, :id, :first_name, :last_name, :email, :type, :status, :created, :address1, :address2, :city, :state, :postal_code, :business_name, :doing_business_as
|
4
|
+
attr_accessor :_links, :_embedded, :id, :first_name, :last_name, :email, :type, :status, :created, :address1, :address2, :city, :state, :postal_code, :phone, :business_name, :doing_business_as, :website
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -48,11 +48,17 @@ module DwollaSwagger
|
|
48
48
|
#
|
49
49
|
:'postal_code' => :'postalCode',
|
50
50
|
|
51
|
+
#
|
52
|
+
:'phone' => :'phone',
|
53
|
+
|
51
54
|
#
|
52
55
|
:'business_name' => :'businessName',
|
53
56
|
|
54
57
|
#
|
55
|
-
:'doing_business_as' => :'doingBusinessAs'
|
58
|
+
:'doing_business_as' => :'doingBusinessAs',
|
59
|
+
|
60
|
+
#
|
61
|
+
:'website' => :'website'
|
56
62
|
|
57
63
|
}
|
58
64
|
end
|
@@ -74,8 +80,10 @@ module DwollaSwagger
|
|
74
80
|
:'city' => :'string',
|
75
81
|
:'state' => :'string',
|
76
82
|
:'postal_code' => :'string',
|
83
|
+
:'phone' => :'string',
|
77
84
|
:'business_name' => :'string',
|
78
|
-
:'doing_business_as' => :'string'
|
85
|
+
:'doing_business_as' => :'string',
|
86
|
+
:'website' => :'string'
|
79
87
|
|
80
88
|
}
|
81
89
|
end
|
@@ -145,6 +153,10 @@ module DwollaSwagger
|
|
145
153
|
@postal_code = attributes[:'postalCode']
|
146
154
|
end
|
147
155
|
|
156
|
+
if attributes[:'phone']
|
157
|
+
@phone = attributes[:'phone']
|
158
|
+
end
|
159
|
+
|
148
160
|
if attributes[:'businessName']
|
149
161
|
@business_name = attributes[:'businessName']
|
150
162
|
end
|
@@ -153,6 +165,10 @@ module DwollaSwagger
|
|
153
165
|
@doing_business_as = attributes[:'doingBusinessAs']
|
154
166
|
end
|
155
167
|
|
168
|
+
if attributes[:'website']
|
169
|
+
@website = attributes[:'website']
|
170
|
+
end
|
171
|
+
|
156
172
|
end
|
157
173
|
end
|
158
174
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class FailureDetails < BaseObject
|
4
|
+
attr_accessor :code, :description
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'code' => :'code',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'description' => :'description'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'code' => :'string',
|
22
|
+
:'description' => :'string'
|
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[:'code']
|
35
|
+
@code = attributes[:'code']
|
36
|
+
end
|
37
|
+
|
38
|
+
if attributes[:'description']
|
39
|
+
@description = attributes[:'description']
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class FeesBySourceResponse < BaseObject
|
4
|
+
attr_accessor :_links, :_embedded, :transactions, :total
|
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
|
+
:'transactions' => :'transactions',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'total' => :'total'
|
20
|
+
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
# attribute type
|
25
|
+
def self.swagger_types
|
26
|
+
{
|
27
|
+
:'_links' => :'map[string,HalLink]',
|
28
|
+
:'_embedded' => :'object',
|
29
|
+
:'transactions' => :'array[Transfer]',
|
30
|
+
:'total' => :'int'
|
31
|
+
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
40
|
+
|
41
|
+
|
42
|
+
if attributes[:'_links']
|
43
|
+
if (value = attributes[:'_links']).is_a?(Array)
|
44
|
+
@_links = value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
if attributes[:'_embedded']
|
49
|
+
@_embedded = attributes[:'_embedded']
|
50
|
+
end
|
51
|
+
|
52
|
+
if attributes[:'transactions']
|
53
|
+
if (value = attributes[:'transactions']).is_a?(Array)
|
54
|
+
@transactions = value
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'total']
|
59
|
+
@total = attributes[:'total']
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class FundingSource < BaseObject
|
4
|
-
attr_accessor :_links, :_embedded, :id, :status, :type, :name, :created, :balance, :removed
|
4
|
+
attr_accessor :_links, :_embedded, :id, :status, :type, :name, :created, :balance, :removed, :channels, :bank_name
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -31,7 +31,13 @@ module DwollaSwagger
|
|
31
31
|
:'balance' => :'balance',
|
32
32
|
|
33
33
|
#
|
34
|
-
:'removed' => :'removed'
|
34
|
+
:'removed' => :'removed',
|
35
|
+
|
36
|
+
#
|
37
|
+
:'channels' => :'channels',
|
38
|
+
|
39
|
+
#
|
40
|
+
:'bank_name' => :'bankName'
|
35
41
|
|
36
42
|
}
|
37
43
|
end
|
@@ -47,7 +53,9 @@ module DwollaSwagger
|
|
47
53
|
:'name' => :'string',
|
48
54
|
:'created' => :'DateTime',
|
49
55
|
:'balance' => :'object',
|
50
|
-
:'removed' => :'boolean'
|
56
|
+
:'removed' => :'boolean',
|
57
|
+
:'channels' => :'array[string]',
|
58
|
+
:'bank_name' => :'string'
|
51
59
|
|
52
60
|
}
|
53
61
|
end
|
@@ -97,6 +105,16 @@ module DwollaSwagger
|
|
97
105
|
@removed = attributes[:'removed']
|
98
106
|
end
|
99
107
|
|
108
|
+
if attributes[:'channels']
|
109
|
+
if (value = attributes[:'channels']).is_a?(Array)
|
110
|
+
@channels = value
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes[:'bankName']
|
115
|
+
@bank_name = attributes[:'bankName']
|
116
|
+
end
|
117
|
+
|
100
118
|
end
|
101
119
|
end
|
102
120
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class HalLink < BaseObject
|
4
|
-
attr_accessor :href, :type
|
4
|
+
attr_accessor :href, :type, :resource_type
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -10,7 +10,10 @@ module DwollaSwagger
|
|
10
10
|
:'href' => :'href',
|
11
11
|
|
12
12
|
#
|
13
|
-
:'type' => :'type'
|
13
|
+
:'type' => :'type',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'resource_type' => :'resource-type'
|
14
17
|
|
15
18
|
}
|
16
19
|
end
|
@@ -19,7 +22,8 @@ module DwollaSwagger
|
|
19
22
|
def self.swagger_types
|
20
23
|
{
|
21
24
|
:'href' => :'string',
|
22
|
-
:'type' => :'string'
|
25
|
+
:'type' => :'string',
|
26
|
+
:'resource_type' => :'string'
|
23
27
|
|
24
28
|
}
|
25
29
|
end
|
@@ -39,6 +43,10 @@ module DwollaSwagger
|
|
39
43
|
@type = attributes[:'type']
|
40
44
|
end
|
41
45
|
|
46
|
+
if attributes[:'resource-type']
|
47
|
+
@resource_type = attributes[:'resource-type']
|
48
|
+
end
|
49
|
+
|
42
50
|
end
|
43
51
|
end
|
44
52
|
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class MicroDepositsInitiated < BaseObject
|
4
|
+
attr_accessor :_links, :_embedded, :created, :status, :failure
|
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
|
+
:'created' => :'created',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'status' => :'status',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'failure' => :'failure'
|
23
|
+
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# attribute type
|
28
|
+
def self.swagger_types
|
29
|
+
{
|
30
|
+
:'_links' => :'map[string,HalLink]',
|
31
|
+
:'_embedded' => :'object',
|
32
|
+
:'created' => :'DateTime',
|
33
|
+
:'status' => :'string',
|
34
|
+
:'failure' => :'FailureDetails'
|
35
|
+
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
44
|
+
|
45
|
+
|
46
|
+
if attributes[:'_links']
|
47
|
+
if (value = attributes[:'_links']).is_a?(Array)
|
48
|
+
@_links = value
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
if attributes[:'_embedded']
|
53
|
+
@_embedded = attributes[:'_embedded']
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes[:'created']
|
57
|
+
@created = attributes[:'created']
|
58
|
+
end
|
59
|
+
|
60
|
+
if attributes[:'status']
|
61
|
+
@status = attributes[:'status']
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes[:'failure']
|
65
|
+
@failure = attributes[:'failure']
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class Transfer < BaseObject
|
4
|
-
attr_accessor :_links, :_embedded, :id, :status, :amount, :created, :metadata
|
4
|
+
attr_accessor :_links, :_embedded, :id, :status, :amount, :created, :metadata, :clearing
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -25,7 +25,10 @@ module DwollaSwagger
|
|
25
25
|
:'created' => :'created',
|
26
26
|
|
27
27
|
#
|
28
|
-
:'metadata' => :'metadata'
|
28
|
+
:'metadata' => :'metadata',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'clearing' => :'clearing'
|
29
32
|
|
30
33
|
}
|
31
34
|
end
|
@@ -39,7 +42,8 @@ module DwollaSwagger
|
|
39
42
|
:'status' => :'string',
|
40
43
|
:'amount' => :'Money',
|
41
44
|
:'created' => :'DateTime',
|
42
|
-
:'metadata' => :'object'
|
45
|
+
:'metadata' => :'object',
|
46
|
+
:'clearing' => :'Clearing'
|
43
47
|
|
44
48
|
}
|
45
49
|
end
|
@@ -81,6 +85,10 @@ module DwollaSwagger
|
|
81
85
|
@metadata = attributes[:'metadata']
|
82
86
|
end
|
83
87
|
|
88
|
+
if attributes[:'clearing']
|
89
|
+
@clearing = attributes[:'clearing']
|
90
|
+
end
|
91
|
+
|
84
92
|
end
|
85
93
|
end
|
86
94
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class TransferRequestBody < BaseObject
|
4
|
-
attr_accessor :_links, :amount, :metadata, :fees
|
4
|
+
attr_accessor :_links, :amount, :metadata, :fees, :clearing, :imad
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -16,7 +16,13 @@ module DwollaSwagger
|
|
16
16
|
:'metadata' => :'metadata',
|
17
17
|
|
18
18
|
#
|
19
|
-
:'fees' => :'fees'
|
19
|
+
:'fees' => :'fees',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'clearing' => :'clearing',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'imad' => :'imad'
|
20
26
|
|
21
27
|
}
|
22
28
|
end
|
@@ -27,7 +33,9 @@ module DwollaSwagger
|
|
27
33
|
:'_links' => :'map[string,HalLink]',
|
28
34
|
:'amount' => :'Amount',
|
29
35
|
:'metadata' => :'object',
|
30
|
-
:'fees' => :'array[FacilitatorFeeRequest]'
|
36
|
+
:'fees' => :'array[FacilitatorFeeRequest]',
|
37
|
+
:'clearing' => :'Clearing',
|
38
|
+
:'imad' => :'string'
|
31
39
|
|
32
40
|
}
|
33
41
|
end
|
@@ -59,6 +67,14 @@ module DwollaSwagger
|
|
59
67
|
end
|
60
68
|
end
|
61
69
|
|
70
|
+
if attributes[:'clearing']
|
71
|
+
@clearing = attributes[:'clearing']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes[:'imad']
|
75
|
+
@imad = attributes[:'imad']
|
76
|
+
end
|
77
|
+
|
62
78
|
end
|
63
79
|
end
|
64
80
|
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class UpdateSubscription < BaseObject
|
4
|
+
attr_accessor :paused
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'paused' => :'paused'
|
11
|
+
|
12
|
+
}
|
13
|
+
end
|
14
|
+
|
15
|
+
# attribute type
|
16
|
+
def self.swagger_types
|
17
|
+
{
|
18
|
+
:'paused' => :'boolean'
|
19
|
+
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
def initialize(attributes = {})
|
24
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
25
|
+
|
26
|
+
# convert string to symbol for hash key
|
27
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
28
|
+
|
29
|
+
|
30
|
+
if attributes[:'paused']
|
31
|
+
@paused = attributes[:'paused']
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class WebhookSubscription < BaseObject
|
4
|
-
attr_accessor :_links, :_embedded, :id, :url, :created
|
4
|
+
attr_accessor :_links, :_embedded, :id, :url, :paused, :created
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -18,6 +18,9 @@ module DwollaSwagger
|
|
18
18
|
#
|
19
19
|
:'url' => :'url',
|
20
20
|
|
21
|
+
#
|
22
|
+
:'paused' => :'paused',
|
23
|
+
|
21
24
|
#
|
22
25
|
:'created' => :'created'
|
23
26
|
|
@@ -31,6 +34,7 @@ module DwollaSwagger
|
|
31
34
|
:'_embedded' => :'object',
|
32
35
|
:'id' => :'string',
|
33
36
|
:'url' => :'string',
|
37
|
+
:'paused' => :'boolean',
|
34
38
|
:'created' => :'DateTime'
|
35
39
|
|
36
40
|
}
|
@@ -61,6 +65,10 @@ module DwollaSwagger
|
|
61
65
|
@url = attributes[:'url']
|
62
66
|
end
|
63
67
|
|
68
|
+
if attributes[:'paused']
|
69
|
+
@paused = attributes[:'paused']
|
70
|
+
end
|
71
|
+
|
64
72
|
if attributes[:'created']
|
65
73
|
@created = attributes[:'created']
|
66
74
|
end
|
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.13
|
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:
|
13
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|
@@ -254,7 +254,9 @@ files:
|
|
254
254
|
- README.md
|
255
255
|
- Rakefile
|
256
256
|
- dwolla_swagger.gemspec
|
257
|
+
- lib/.DS_Store
|
257
258
|
- lib/dwolla_swagger.rb
|
259
|
+
- lib/dwolla_swagger/.DS_Store
|
258
260
|
- lib/dwolla_swagger/api/accounts_api.rb
|
259
261
|
- lib/dwolla_swagger/api/businessclassifications_api.rb
|
260
262
|
- lib/dwolla_swagger/api/customers_api.rb
|
@@ -277,6 +279,7 @@ files:
|
|
277
279
|
- lib/dwolla_swagger/models/business_classification.rb
|
278
280
|
- lib/dwolla_swagger/models/business_classification_list_response.rb
|
279
281
|
- lib/dwolla_swagger/models/catalog_response.rb
|
282
|
+
- lib/dwolla_swagger/models/clearing.rb
|
280
283
|
- lib/dwolla_swagger/models/create_customer.rb
|
281
284
|
- lib/dwolla_swagger/models/create_funding_source_request.rb
|
282
285
|
- lib/dwolla_swagger/models/create_webhook.rb
|
@@ -287,6 +290,8 @@ files:
|
|
287
290
|
- lib/dwolla_swagger/models/document_list_response.rb
|
288
291
|
- lib/dwolla_swagger/models/event_list_response.rb
|
289
292
|
- lib/dwolla_swagger/models/facilitator_fee_request.rb
|
293
|
+
- lib/dwolla_swagger/models/failure_details.rb
|
294
|
+
- lib/dwolla_swagger/models/fees_by_source_response.rb
|
290
295
|
- lib/dwolla_swagger/models/funding_source.rb
|
291
296
|
- lib/dwolla_swagger/models/funding_source_balance.rb
|
292
297
|
- lib/dwolla_swagger/models/funding_source_list_response.rb
|
@@ -300,6 +305,7 @@ files:
|
|
300
305
|
- lib/dwolla_swagger/models/mass_payment_list_response.rb
|
301
306
|
- lib/dwolla_swagger/models/mass_payment_request_body.rb
|
302
307
|
- lib/dwolla_swagger/models/micro_deposits.rb
|
308
|
+
- lib/dwolla_swagger/models/micro_deposits_initiated.rb
|
303
309
|
- lib/dwolla_swagger/models/money.rb
|
304
310
|
- lib/dwolla_swagger/models/o_auth_response.rb
|
305
311
|
- lib/dwolla_swagger/models/remove_bank_request.rb
|
@@ -309,6 +315,7 @@ files:
|
|
309
315
|
- lib/dwolla_swagger/models/transfer_request_body.rb
|
310
316
|
- lib/dwolla_swagger/models/unit__.rb
|
311
317
|
- lib/dwolla_swagger/models/update_customer.rb
|
318
|
+
- lib/dwolla_swagger/models/update_subscription.rb
|
312
319
|
- lib/dwolla_swagger/models/update_transfer.rb
|
313
320
|
- lib/dwolla_swagger/models/verify_micro_deposits_request.rb
|
314
321
|
- lib/dwolla_swagger/models/webhook.rb
|