dwolla_swagger 1.0.4 → 1.0.5
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/dwolla_swagger.rb +2 -1
- data/lib/dwolla_swagger/api/accounts_api.rb +46 -0
- data/lib/dwolla_swagger/api/customers_api.rb +3 -3
- data/lib/dwolla_swagger/models/account_o_auth_token.rb +54 -0
- data/lib/dwolla_swagger/models/funding_source.rb +2 -4
- data/lib/dwolla_swagger/swagger/version.rb +1 -1
- 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: a1ea698728b2e119faa4f2393b1b80aa821f1635
|
4
|
+
data.tar.gz: 20af8ea37a39aa1af3f241297c712bb79094fed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8616c5fc7795da64e1bbf58fb79e09f70c854014c84138132cbb5c752e2ad58e05e8d0943fc5f15008605281f242854c9b09e8d2bc7b334208cee517d7252385
|
7
|
+
data.tar.gz: 67945e1cac01bce3580c1265affd6dba5b4487915d874286b4612450ba5a12732a6e882001c86e8efd9b84bc28c7948fdda23fd7cd385f5a5eed63873beacbec
|
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.5
|
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.5
|
150
|
+
* API schema error fixed, `FundingSource` object now has `_embedded` key to fix serialization issues.
|
151
|
+
|
149
152
|
1.0.4
|
150
153
|
* API schema updated, `CustomersApi` has new endpoints for IAV verification.
|
151
154
|
* Existing `Customer` related models updated, new `VerificationToken` model.
|
data/lib/dwolla_swagger.rb
CHANGED
@@ -23,6 +23,7 @@ require 'dwolla_swagger/models/hal_link'
|
|
23
23
|
require 'dwolla_swagger/models/money'
|
24
24
|
require 'dwolla_swagger/models/transfer_request_body'
|
25
25
|
require 'dwolla_swagger/models/webhook_retry'
|
26
|
+
require 'dwolla_swagger/models/account_o_auth_token'
|
26
27
|
require 'dwolla_swagger/models/customer_o_auth_token'
|
27
28
|
require 'dwolla_swagger/models/webhook_retry_request_list_response'
|
28
29
|
require 'dwolla_swagger/models/webhook_list_response'
|
@@ -40,8 +41,8 @@ require 'dwolla_swagger/models/webhook_event_list_response'
|
|
40
41
|
require 'dwolla_swagger/models/verify_micro_deposits_request'
|
41
42
|
require 'dwolla_swagger/models/business_classification'
|
42
43
|
require 'dwolla_swagger/models/transfer'
|
43
|
-
require 'dwolla_swagger/models/webhook'
|
44
44
|
require 'dwolla_swagger/models/iav_token'
|
45
|
+
require 'dwolla_swagger/models/webhook'
|
45
46
|
require 'dwolla_swagger/models/funding_source'
|
46
47
|
require 'dwolla_swagger/models/create_funding_source_request'
|
47
48
|
require 'dwolla_swagger/models/create_customer'
|
@@ -52,5 +52,51 @@ module DwollaSwagger
|
|
52
52
|
response.code == 201 ? obj = response.headers['Location'] : (obj = AccountInfo.new() and obj.build_from_hash(response.body))
|
53
53
|
|
54
54
|
end
|
55
|
+
|
56
|
+
# Create an OAuth token that is capable of adding a financial institution for the given account.
|
57
|
+
#
|
58
|
+
# @param id Account ID to create token for.
|
59
|
+
# @param [Hash] opts the optional parameters
|
60
|
+
# @return [AccountOAuthToken]
|
61
|
+
def self.create_funding_sources_token(id, opts = {})
|
62
|
+
|
63
|
+
# verify the required parameter 'id' is set
|
64
|
+
raise "Missing the required parameter 'id' when calling create_funding_sources_token" if id.nil?
|
65
|
+
|
66
|
+
|
67
|
+
# resource path
|
68
|
+
path = "/accounts/{id}/funding-sources-token".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
|
+
|
74
|
+
|
75
|
+
# query parameters
|
76
|
+
query_params = {}
|
77
|
+
|
78
|
+
# header parameters
|
79
|
+
header_params = {}
|
80
|
+
|
81
|
+
# HTTP header 'Accept' (if needed)
|
82
|
+
_header_accept = ['application/vnd.dwolla.v1.hal+json']
|
83
|
+
_header_accept_result = Swagger::Request.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
84
|
+
|
85
|
+
# HTTP header 'Content-Type'
|
86
|
+
_header_content_type = []
|
87
|
+
header_params['Content-Type'] = Swagger::Request.select_header_content_type(_header_content_type)
|
88
|
+
|
89
|
+
# form parameters
|
90
|
+
form_params = {}
|
91
|
+
|
92
|
+
# http body (model)
|
93
|
+
post_body = nil
|
94
|
+
|
95
|
+
|
96
|
+
response = Swagger::Request.new(:POST, 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 = AccountOAuthToken.new() and obj.build_from_hash(response.body))
|
99
|
+
|
100
|
+
end
|
55
101
|
end
|
56
102
|
end
|
@@ -273,14 +273,14 @@ module DwollaSwagger
|
|
273
273
|
# @param id ID of customer.
|
274
274
|
# @param [Hash] opts the optional parameters
|
275
275
|
# @return [CustomerOAuthToken]
|
276
|
-
def self.
|
276
|
+
def self.create_funding_sources_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_funding_sources_token_for_customer" if id.nil?
|
280
280
|
|
281
281
|
|
282
282
|
# resource path
|
283
|
-
path = "/customers/{id}/
|
283
|
+
path = "/customers/{id}/funding-sources-token".sub('{format}','json')
|
284
284
|
|
285
285
|
|
286
286
|
# check if id parameter is resource URI, otherwise substitute for ID
|
@@ -0,0 +1,54 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class AccountOAuthToken < 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
|
@@ -37,7 +37,7 @@ module DwollaSwagger
|
|
37
37
|
def self.swagger_types
|
38
38
|
{
|
39
39
|
:'_links' => :'map[string,HalLink]',
|
40
|
-
:'_embedded' => :'
|
40
|
+
:'_embedded' => :'object',
|
41
41
|
:'id' => :'string',
|
42
42
|
:'status' => :'string',
|
43
43
|
:'type' => :'string',
|
@@ -62,9 +62,7 @@ module DwollaSwagger
|
|
62
62
|
end
|
63
63
|
|
64
64
|
if attributes[:'_embedded']
|
65
|
-
|
66
|
-
@_embedded = value
|
67
|
-
end
|
65
|
+
@_embedded = attributes[:'_embedded']
|
68
66
|
end
|
69
67
|
|
70
68
|
if attributes[:'id']
|
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.5
|
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-12-
|
13
|
+
date: 2015-12-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|
@@ -235,6 +235,7 @@ files:
|
|
235
235
|
- lib/dwolla_swagger/api/webhooks_api.rb
|
236
236
|
- lib/dwolla_swagger/api/webhooksubscriptions_api.rb
|
237
237
|
- lib/dwolla_swagger/models/account_info.rb
|
238
|
+
- lib/dwolla_swagger/models/account_o_auth_token.rb
|
238
239
|
- lib/dwolla_swagger/models/amount.rb
|
239
240
|
- lib/dwolla_swagger/models/application_event.rb
|
240
241
|
- lib/dwolla_swagger/models/base_object.rb
|