dwolla_swagger 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/dwolla_swagger.gemspec +32 -0
- data/lib/dwolla_swagger/api/accounts_api.rb +54 -0
- data/lib/dwolla_swagger/api/customers_api.rb +223 -0
- data/lib/dwolla_swagger/api/documents_api.rb +54 -0
- data/lib/dwolla_swagger/api/events_api.rb +98 -0
- data/lib/dwolla_swagger/api/fundingsources_api.rb +231 -0
- data/lib/dwolla_swagger/api/transfers_api.rb +143 -0
- data/lib/dwolla_swagger/api/webhooks_api.rb +190 -0
- data/lib/dwolla_swagger/api/webhooksubscriptions_api.rb +179 -0
- data/lib/dwolla_swagger/models/account_info.rb +62 -0
- data/lib/dwolla_swagger/models/amount.rb +44 -0
- data/lib/dwolla_swagger/models/application_event.rb +86 -0
- data/lib/dwolla_swagger/models/base_object.rb +84 -0
- data/lib/dwolla_swagger/models/create_customer.rb +132 -0
- data/lib/dwolla_swagger/models/create_funding_source_request.rb +60 -0
- data/lib/dwolla_swagger/models/create_webhook.rb +44 -0
- data/lib/dwolla_swagger/models/customer.rb +102 -0
- data/lib/dwolla_swagger/models/customer_list_response.rb +54 -0
- data/lib/dwolla_swagger/models/document.rb +78 -0
- data/lib/dwolla_swagger/models/document_list_response.rb +54 -0
- data/lib/dwolla_swagger/models/event_list_response.rb +54 -0
- data/lib/dwolla_swagger/models/funding_source.rb +96 -0
- data/lib/dwolla_swagger/models/funding_source_list_response.rb +46 -0
- data/lib/dwolla_swagger/models/hal_link.rb +44 -0
- data/lib/dwolla_swagger/models/money.rb +44 -0
- data/lib/dwolla_swagger/models/transfer.rb +86 -0
- data/lib/dwolla_swagger/models/transfer_list_response.rb +54 -0
- data/lib/dwolla_swagger/models/transfer_request_body.rb +54 -0
- data/lib/dwolla_swagger/models/unit__.rb +28 -0
- data/lib/dwolla_swagger/models/webhook.rb +96 -0
- data/lib/dwolla_swagger/models/webhook_attempt.rb +52 -0
- data/lib/dwolla_swagger/models/webhook_event_list_response.rb +54 -0
- data/lib/dwolla_swagger/models/webhook_header.rb +44 -0
- data/lib/dwolla_swagger/models/webhook_http_request.rb +62 -0
- data/lib/dwolla_swagger/models/webhook_http_response.rb +62 -0
- data/lib/dwolla_swagger/models/webhook_list_response.rb +54 -0
- data/lib/dwolla_swagger/models/webhook_retry.rb +70 -0
- data/lib/dwolla_swagger/models/webhook_retry_request_list_response.rb +54 -0
- data/lib/dwolla_swagger/models/webhook_subscription.rb +70 -0
- data/lib/dwolla_swagger/monkey.rb +90 -0
- data/lib/dwolla_swagger/swagger/configuration.rb +29 -0
- data/lib/dwolla_swagger/swagger/request.rb +264 -0
- data/lib/dwolla_swagger/swagger/response.rb +70 -0
- data/lib/dwolla_swagger/swagger/version.rb +5 -0
- data/lib/dwolla_swagger/swagger.rb +78 -0
- data/lib/dwolla_swagger.rb +54 -0
- metadata +294 -0
@@ -0,0 +1,54 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class DocumentListResponse < BaseObject
|
4
|
+
attr_accessor :_links, :_embedded, :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
|
+
:'total' => :'total'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'_links' => :'map[string,HalLink]',
|
25
|
+
:'_embedded' => :'object',
|
26
|
+
:'total' => :'int'
|
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[:'total']
|
49
|
+
@total = attributes[:'total']
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class EventListResponse < BaseObject
|
4
|
+
attr_accessor :_links, :_embedded, :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
|
+
:'total' => :'total'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'_links' => :'map[string,HalLink]',
|
25
|
+
:'_embedded' => :'object',
|
26
|
+
:'total' => :'int'
|
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[:'total']
|
49
|
+
@total = attributes[:'total']
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class FundingSource < BaseObject
|
4
|
+
attr_accessor :_links, :_embedded, :id, :account_id, :status, :type, :name, :created
|
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
|
+
:'id' => :'id',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'account_id' => :'accountId',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'status' => :'status',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'type' => :'type',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'name' => :'name',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'created' => :'created'
|
32
|
+
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# attribute type
|
37
|
+
def self.swagger_types
|
38
|
+
{
|
39
|
+
:'_links' => :'map[string,HalLink]',
|
40
|
+
:'_embedded' => :'array[map[string,object]]',
|
41
|
+
:'id' => :'string',
|
42
|
+
:'account_id' => :'string',
|
43
|
+
:'status' => :'string',
|
44
|
+
:'type' => :'string',
|
45
|
+
:'name' => :'string',
|
46
|
+
:'created' => :'DateTime'
|
47
|
+
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
56
|
+
|
57
|
+
|
58
|
+
if attributes[:'_links']
|
59
|
+
if (value = attributes[:'_links']).is_a?(Array)
|
60
|
+
@_links = value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes[:'_embedded']
|
65
|
+
if (value = attributes[:'_embedded']).is_a?(Array)
|
66
|
+
@_embedded = value
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes[:'id']
|
71
|
+
@id = attributes[:'id']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes[:'accountId']
|
75
|
+
@account_id = attributes[:'accountId']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes[:'status']
|
79
|
+
@status = attributes[:'status']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes[:'type']
|
83
|
+
@type = attributes[:'type']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes[:'name']
|
87
|
+
@name = attributes[:'name']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes[:'created']
|
91
|
+
@created = attributes[:'created']
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class FundingSourceListResponse < BaseObject
|
4
|
+
attr_accessor :_links, :_embedded
|
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
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'_links' => :'map[string,HalLink]',
|
22
|
+
:'_embedded' => :'object'
|
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[:'_links']
|
35
|
+
if (value = attributes[:'_links']).is_a?(Array)
|
36
|
+
@_links = value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
if attributes[:'_embedded']
|
41
|
+
@_embedded = attributes[:'_embedded']
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class HalLink < BaseObject
|
4
|
+
attr_accessor :href, :name
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'href' => :'href',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'name' => :'name'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'href' => :'string',
|
22
|
+
:'name' => :'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[:'href']
|
35
|
+
@href = attributes[:'href']
|
36
|
+
end
|
37
|
+
|
38
|
+
if attributes[:'name']
|
39
|
+
@name = attributes[:'name']
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class Money < BaseObject
|
4
|
+
attr_accessor :value, :currency
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'value' => :'value',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'currency' => :'currency'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'value' => :'string',
|
22
|
+
:'currency' => :'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[:'value']
|
35
|
+
@value = attributes[:'value']
|
36
|
+
end
|
37
|
+
|
38
|
+
if attributes[:'currency']
|
39
|
+
@currency = attributes[:'currency']
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class Transfer < BaseObject
|
4
|
+
attr_accessor :_links, :_embedded, :id, :status, :amount, :created, :metadata
|
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
|
+
:'id' => :'id',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'status' => :'status',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'amount' => :'amount',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'created' => :'created',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'metadata' => :'metadata'
|
29
|
+
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# attribute type
|
34
|
+
def self.swagger_types
|
35
|
+
{
|
36
|
+
:'_links' => :'map[string,HalLink]',
|
37
|
+
:'_embedded' => :'object',
|
38
|
+
:'id' => :'string',
|
39
|
+
:'status' => :'string',
|
40
|
+
:'amount' => :'Money',
|
41
|
+
:'created' => :'DateTime',
|
42
|
+
:'metadata' => :'object'
|
43
|
+
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
def initialize(attributes = {})
|
48
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
49
|
+
|
50
|
+
# convert string to symbol for hash key
|
51
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
52
|
+
|
53
|
+
|
54
|
+
if attributes[:'_links']
|
55
|
+
if (value = attributes[:'_links']).is_a?(Array)
|
56
|
+
@_links = value
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
if attributes[:'_embedded']
|
61
|
+
@_embedded = attributes[:'_embedded']
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes[:'id']
|
65
|
+
@id = attributes[:'id']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes[:'status']
|
69
|
+
@status = attributes[:'status']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes[:'amount']
|
73
|
+
@amount = attributes[:'amount']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes[:'created']
|
77
|
+
@created = attributes[:'created']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes[:'metadata']
|
81
|
+
@metadata = attributes[:'metadata']
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class TransferListResponse < BaseObject
|
4
|
+
attr_accessor :_links, :_embedded, :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
|
+
:'total' => :'total'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'_links' => :'map[string,HalLink]',
|
25
|
+
:'_embedded' => :'object',
|
26
|
+
:'total' => :'int'
|
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[:'total']
|
49
|
+
@total = attributes[:'total']
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|