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 TransferRequestBody < BaseObject
|
4
|
+
attr_accessor :_links, :amount, :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
|
+
:'amount' => :'amount',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'metadata' => :'metadata'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'_links' => :'map[string,HalLink]',
|
25
|
+
:'amount' => :'Amount',
|
26
|
+
:'metadata' => :'object'
|
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[:'amount']
|
45
|
+
@amount = attributes[:'amount']
|
46
|
+
end
|
47
|
+
|
48
|
+
if attributes[:'metadata']
|
49
|
+
@metadata = attributes[:'metadata']
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class Unit < BaseObject
|
4
|
+
attr_accessor
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
# attribute type
|
13
|
+
def self.swagger_types
|
14
|
+
{
|
15
|
+
|
16
|
+
}
|
17
|
+
end
|
18
|
+
|
19
|
+
def initialize(attributes = {})
|
20
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
21
|
+
|
22
|
+
# convert string to symbol for hash key
|
23
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
24
|
+
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class Webhook < BaseObject
|
4
|
+
attr_accessor :_links, :_embedded, :id, :topic, :account_id, :event_id, :subscription_id, :attempts
|
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
|
+
:'topic' => :'topic',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'account_id' => :'accountId',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'event_id' => :'eventId',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'subscription_id' => :'subscriptionId',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'attempts' => :'attempts'
|
32
|
+
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# attribute type
|
37
|
+
def self.swagger_types
|
38
|
+
{
|
39
|
+
:'_links' => :'map[string,HalLink]',
|
40
|
+
:'_embedded' => :'object',
|
41
|
+
:'id' => :'string',
|
42
|
+
:'topic' => :'string',
|
43
|
+
:'account_id' => :'string',
|
44
|
+
:'event_id' => :'string',
|
45
|
+
:'subscription_id' => :'string',
|
46
|
+
:'attempts' => :'array[WebhookAttempt]'
|
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
|
+
@_embedded = attributes[:'_embedded']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes[:'id']
|
69
|
+
@id = attributes[:'id']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes[:'topic']
|
73
|
+
@topic = attributes[:'topic']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes[:'accountId']
|
77
|
+
@account_id = attributes[:'accountId']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes[:'eventId']
|
81
|
+
@event_id = attributes[:'eventId']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes[:'subscriptionId']
|
85
|
+
@subscription_id = attributes[:'subscriptionId']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes[:'attempts']
|
89
|
+
if (value = attributes[:'attempts']).is_a?(Array)
|
90
|
+
@attempts = value
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class WebhookAttempt < BaseObject
|
4
|
+
attr_accessor :id, :request, :response
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'id' => :'id',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'request' => :'request',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'response' => :'response'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'id' => :'string',
|
25
|
+
:'request' => :'WebhookHttpRequest',
|
26
|
+
:'response' => :'WebhookHttpResponse'
|
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[:'id']
|
39
|
+
@id = attributes[:'id']
|
40
|
+
end
|
41
|
+
|
42
|
+
if attributes[:'request']
|
43
|
+
@request = attributes[:'request']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'response']
|
47
|
+
@response = attributes[:'response']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class WebhookEventListResponse < 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,44 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class WebhookHeader < BaseObject
|
4
|
+
attr_accessor :name, :value
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'name' => :'name',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'value' => :'value'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'name' => :'string',
|
22
|
+
:'value' => :'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[:'name']
|
35
|
+
@name = attributes[:'name']
|
36
|
+
end
|
37
|
+
|
38
|
+
if attributes[:'value']
|
39
|
+
@value = attributes[:'value']
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class WebhookHttpRequest < BaseObject
|
4
|
+
attr_accessor :timestamp, :url, :headers, :body
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'timestamp' => :'timestamp',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'url' => :'url',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'headers' => :'headers',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'body' => :'body'
|
20
|
+
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
# attribute type
|
25
|
+
def self.swagger_types
|
26
|
+
{
|
27
|
+
:'timestamp' => :'DateTime',
|
28
|
+
:'url' => :'string',
|
29
|
+
:'headers' => :'array[WebhookHeader]',
|
30
|
+
:'body' => :'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[:'timestamp']
|
43
|
+
@timestamp = attributes[:'timestamp']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'url']
|
47
|
+
@url = attributes[:'url']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes[:'headers']
|
51
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
52
|
+
@headers = value
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes[:'body']
|
57
|
+
@body = attributes[:'body']
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module DwollaSwagger
|
2
|
+
#
|
3
|
+
class WebhookHttpResponse < BaseObject
|
4
|
+
attr_accessor :timestamp, :headers, :status_code, :body
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'timestamp' => :'timestamp',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'headers' => :'headers',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'status_code' => :'statusCode',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'body' => :'body'
|
20
|
+
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
# attribute type
|
25
|
+
def self.swagger_types
|
26
|
+
{
|
27
|
+
:'timestamp' => :'DateTime',
|
28
|
+
:'headers' => :'array[WebhookHeader]',
|
29
|
+
:'status_code' => :'int',
|
30
|
+
:'body' => :'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[:'timestamp']
|
43
|
+
@timestamp = attributes[:'timestamp']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'headers']
|
47
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
48
|
+
@headers = value
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
if attributes[:'statusCode']
|
53
|
+
@status_code = attributes[:'statusCode']
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes[:'body']
|
57
|
+
@body = attributes[:'body']
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|