dwolla_swagger 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd8fc619d295115d9f7a63f5e61e8c0b7aebf399
|
4
|
+
data.tar.gz: 55347f267f315b88b09ef6b1daf26c20e9ec509c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2750c263b0182d0ae694506c0864ad79852fbab4dec2bc044938b88bc8c0d3a02ec6e13d94b9eb5a0ca3815b356b2e37105eb2bdbfbfad1a96c0e2a92d6c405
|
7
|
+
data.tar.gz: 4268dc58b5af616c6df691d8833f278d8d854204556036a39ca786e4d7b32a8b9efd6cd1175d7b0ce676ee18640836b7ce93cf00239c1f5ffc98f9790f35c822
|
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.10
|
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.10
|
150
|
+
* Fix transfer failure to support deserialization with new transfer failure model.
|
151
|
+
|
149
152
|
1.0.9
|
150
153
|
* Fix how boolean values are deserialized
|
151
154
|
|
@@ -244,7 +244,7 @@ module DwollaSwagger
|
|
244
244
|
#
|
245
245
|
# @param id ID of failed bank transfer to get.
|
246
246
|
# @param [Hash] opts the optional parameters
|
247
|
-
# @return [
|
247
|
+
# @return [TransferFailure]
|
248
248
|
def self.failure_by_id(id, opts = {})
|
249
249
|
|
250
250
|
# verify the required parameter 'id' is set
|
@@ -282,7 +282,7 @@ module DwollaSwagger
|
|
282
282
|
|
283
283
|
response = Swagger::Request.new(:GET, path, {:params => query_params, :headers => header_params, :form_params => form_params, :body => post_body, :auth_names => @auth_names}).make
|
284
284
|
|
285
|
-
response.code == 201 ? obj = response.headers['Location'] : (obj =
|
285
|
+
response.code == 201 ? obj = response.headers['Location'] : (obj = TransferFailure.new() and obj.build_from_hash(response.body))
|
286
286
|
|
287
287
|
end
|
288
288
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DwollaSwagger
|
2
2
|
#
|
3
3
|
class HalLink < BaseObject
|
4
|
-
attr_accessor :href, :
|
4
|
+
attr_accessor :href, :type
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -10,7 +10,7 @@ module DwollaSwagger
|
|
10
10
|
:'href' => :'href',
|
11
11
|
|
12
12
|
#
|
13
|
-
:'
|
13
|
+
:'type' => :'type'
|
14
14
|
|
15
15
|
}
|
16
16
|
end
|
@@ -19,7 +19,7 @@ module DwollaSwagger
|
|
19
19
|
def self.swagger_types
|
20
20
|
{
|
21
21
|
:'href' => :'string',
|
22
|
-
:'
|
22
|
+
:'type' => :'string'
|
23
23
|
|
24
24
|
}
|
25
25
|
end
|
@@ -35,8 +35,8 @@ module DwollaSwagger
|
|
35
35
|
@href = attributes[:'href']
|
36
36
|
end
|
37
37
|
|
38
|
-
if attributes[:'
|
39
|
-
@
|
38
|
+
if attributes[:'type']
|
39
|
+
@type = attributes[:'type']
|
40
40
|
end
|
41
41
|
|
42
42
|
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class TransferFailure < BaseObject
|
4
|
+
attr_accessor :_links, :_embedded, :code, :description
|
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
|
+
:'code' => :'code',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'description' => :'description'
|
20
|
+
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
# attribute type
|
25
|
+
def self.swagger_types
|
26
|
+
{
|
27
|
+
:'_links' => :'map[string,HalLink]',
|
28
|
+
:'_embedded' => :'object',
|
29
|
+
:'code' => :'string',
|
30
|
+
:'description' => :'string'
|
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[:'code']
|
53
|
+
@code = attributes[:'code']
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes[:'description']
|
57
|
+
@description = attributes[:'description']
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
data/lib/dwolla_swagger.rb
CHANGED
@@ -14,12 +14,13 @@ require 'dwolla_swagger/models/base_object'
|
|
14
14
|
require 'dwolla_swagger/models/document_list_response'
|
15
15
|
require 'dwolla_swagger/models/customer'
|
16
16
|
require 'dwolla_swagger/models/mass_payment'
|
17
|
+
require 'dwolla_swagger/models/transfer_failure'
|
17
18
|
require 'dwolla_swagger/models/update_transfer'
|
18
19
|
require 'dwolla_swagger/models/transfer_list_response'
|
19
20
|
require 'dwolla_swagger/models/document'
|
20
|
-
require 'dwolla_swagger/models/account_o_auth_token'
|
21
21
|
require 'dwolla_swagger/models/facilitator_fee_request'
|
22
22
|
require 'dwolla_swagger/models/customer_o_auth_token'
|
23
|
+
require 'dwolla_swagger/models/account_o_auth_token'
|
23
24
|
require 'dwolla_swagger/models/webhook_list_response'
|
24
25
|
require 'dwolla_swagger/models/update_customer'
|
25
26
|
require 'dwolla_swagger/models/application_event'
|
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.10
|
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: 2016-06-
|
13
|
+
date: 2016-06-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|
@@ -304,6 +304,7 @@ files:
|
|
304
304
|
- lib/dwolla_swagger/models/o_auth_response.rb
|
305
305
|
- lib/dwolla_swagger/models/remove_bank_request.rb
|
306
306
|
- lib/dwolla_swagger/models/transfer.rb
|
307
|
+
- lib/dwolla_swagger/models/transfer_failure.rb
|
307
308
|
- lib/dwolla_swagger/models/transfer_list_response.rb
|
308
309
|
- lib/dwolla_swagger/models/transfer_request_body.rb
|
309
310
|
- lib/dwolla_swagger/models/unit__.rb
|
@@ -346,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
346
347
|
version: '0'
|
347
348
|
requirements: []
|
348
349
|
rubyforge_project:
|
349
|
-
rubygems_version: 2.5.
|
350
|
+
rubygems_version: 2.5.0
|
350
351
|
signing_key:
|
351
352
|
specification_version: 4
|
352
353
|
summary: Dwolla API V2 SDK
|