dwolla_swagger 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/dwolla_swagger.gemspec +32 -0
  3. data/lib/dwolla_swagger/api/accounts_api.rb +54 -0
  4. data/lib/dwolla_swagger/api/customers_api.rb +223 -0
  5. data/lib/dwolla_swagger/api/documents_api.rb +54 -0
  6. data/lib/dwolla_swagger/api/events_api.rb +98 -0
  7. data/lib/dwolla_swagger/api/fundingsources_api.rb +231 -0
  8. data/lib/dwolla_swagger/api/transfers_api.rb +143 -0
  9. data/lib/dwolla_swagger/api/webhooks_api.rb +190 -0
  10. data/lib/dwolla_swagger/api/webhooksubscriptions_api.rb +179 -0
  11. data/lib/dwolla_swagger/models/account_info.rb +62 -0
  12. data/lib/dwolla_swagger/models/amount.rb +44 -0
  13. data/lib/dwolla_swagger/models/application_event.rb +86 -0
  14. data/lib/dwolla_swagger/models/base_object.rb +84 -0
  15. data/lib/dwolla_swagger/models/create_customer.rb +132 -0
  16. data/lib/dwolla_swagger/models/create_funding_source_request.rb +60 -0
  17. data/lib/dwolla_swagger/models/create_webhook.rb +44 -0
  18. data/lib/dwolla_swagger/models/customer.rb +102 -0
  19. data/lib/dwolla_swagger/models/customer_list_response.rb +54 -0
  20. data/lib/dwolla_swagger/models/document.rb +78 -0
  21. data/lib/dwolla_swagger/models/document_list_response.rb +54 -0
  22. data/lib/dwolla_swagger/models/event_list_response.rb +54 -0
  23. data/lib/dwolla_swagger/models/funding_source.rb +96 -0
  24. data/lib/dwolla_swagger/models/funding_source_list_response.rb +46 -0
  25. data/lib/dwolla_swagger/models/hal_link.rb +44 -0
  26. data/lib/dwolla_swagger/models/money.rb +44 -0
  27. data/lib/dwolla_swagger/models/transfer.rb +86 -0
  28. data/lib/dwolla_swagger/models/transfer_list_response.rb +54 -0
  29. data/lib/dwolla_swagger/models/transfer_request_body.rb +54 -0
  30. data/lib/dwolla_swagger/models/unit__.rb +28 -0
  31. data/lib/dwolla_swagger/models/webhook.rb +96 -0
  32. data/lib/dwolla_swagger/models/webhook_attempt.rb +52 -0
  33. data/lib/dwolla_swagger/models/webhook_event_list_response.rb +54 -0
  34. data/lib/dwolla_swagger/models/webhook_header.rb +44 -0
  35. data/lib/dwolla_swagger/models/webhook_http_request.rb +62 -0
  36. data/lib/dwolla_swagger/models/webhook_http_response.rb +62 -0
  37. data/lib/dwolla_swagger/models/webhook_list_response.rb +54 -0
  38. data/lib/dwolla_swagger/models/webhook_retry.rb +70 -0
  39. data/lib/dwolla_swagger/models/webhook_retry_request_list_response.rb +54 -0
  40. data/lib/dwolla_swagger/models/webhook_subscription.rb +70 -0
  41. data/lib/dwolla_swagger/monkey.rb +90 -0
  42. data/lib/dwolla_swagger/swagger/configuration.rb +29 -0
  43. data/lib/dwolla_swagger/swagger/request.rb +264 -0
  44. data/lib/dwolla_swagger/swagger/response.rb +70 -0
  45. data/lib/dwolla_swagger/swagger/version.rb +5 -0
  46. data/lib/dwolla_swagger/swagger.rb +78 -0
  47. data/lib/dwolla_swagger.rb +54 -0
  48. metadata +294 -0
@@ -0,0 +1,132 @@
1
+ module DwollaSwagger
2
+ #
3
+ class CreateCustomer < BaseObject
4
+ attr_accessor :first_name, :last_name, :email, :ip_address, :type, :address1, :address2, :city, :state, :postal_code, :date_of_birth, :tin, :phone
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'first_name' => :'firstName',
11
+
12
+ #
13
+ :'last_name' => :'lastName',
14
+
15
+ #
16
+ :'email' => :'email',
17
+
18
+ #
19
+ :'ip_address' => :'ipAddress',
20
+
21
+ #
22
+ :'type' => :'type',
23
+
24
+ #
25
+ :'address1' => :'address1',
26
+
27
+ #
28
+ :'address2' => :'address2',
29
+
30
+ #
31
+ :'city' => :'city',
32
+
33
+ #
34
+ :'state' => :'state',
35
+
36
+ #
37
+ :'postal_code' => :'postalCode',
38
+
39
+ #
40
+ :'date_of_birth' => :'dateOfBirth',
41
+
42
+ #
43
+ :'tin' => :'tin',
44
+
45
+ #
46
+ :'phone' => :'phone'
47
+
48
+ }
49
+ end
50
+
51
+ # attribute type
52
+ def self.swagger_types
53
+ {
54
+ :'first_name' => :'string',
55
+ :'last_name' => :'string',
56
+ :'email' => :'string',
57
+ :'ip_address' => :'string',
58
+ :'type' => :'string',
59
+ :'address1' => :'string',
60
+ :'address2' => :'string',
61
+ :'city' => :'string',
62
+ :'state' => :'string',
63
+ :'postal_code' => :'string',
64
+ :'date_of_birth' => :'string',
65
+ :'tin' => :'string',
66
+ :'phone' => :'string'
67
+
68
+ }
69
+ end
70
+
71
+ def initialize(attributes = {})
72
+ return if !attributes.is_a?(Hash) || attributes.empty?
73
+
74
+ # convert string to symbol for hash key
75
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
76
+
77
+
78
+ if attributes[:'firstName']
79
+ @first_name = attributes[:'firstName']
80
+ end
81
+
82
+ if attributes[:'lastName']
83
+ @last_name = attributes[:'lastName']
84
+ end
85
+
86
+ if attributes[:'email']
87
+ @email = attributes[:'email']
88
+ end
89
+
90
+ if attributes[:'ipAddress']
91
+ @ip_address = attributes[:'ipAddress']
92
+ end
93
+
94
+ if attributes[:'type']
95
+ @type = attributes[:'type']
96
+ end
97
+
98
+ if attributes[:'address1']
99
+ @address1 = attributes[:'address1']
100
+ end
101
+
102
+ if attributes[:'address2']
103
+ @address2 = attributes[:'address2']
104
+ end
105
+
106
+ if attributes[:'city']
107
+ @city = attributes[:'city']
108
+ end
109
+
110
+ if attributes[:'state']
111
+ @state = attributes[:'state']
112
+ end
113
+
114
+ if attributes[:'postalCode']
115
+ @postal_code = attributes[:'postalCode']
116
+ end
117
+
118
+ if attributes[:'dateOfBirth']
119
+ @date_of_birth = attributes[:'dateOfBirth']
120
+ end
121
+
122
+ if attributes[:'tin']
123
+ @tin = attributes[:'tin']
124
+ end
125
+
126
+ if attributes[:'phone']
127
+ @phone = attributes[:'phone']
128
+ end
129
+
130
+ end
131
+ end
132
+ end
@@ -0,0 +1,60 @@
1
+ module DwollaSwagger
2
+ #
3
+ class CreateFundingSourceRequest < BaseObject
4
+ attr_accessor :routing_number, :account_number, :type, :name
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'routing_number' => :'routingNumber',
11
+
12
+ #
13
+ :'account_number' => :'accountNumber',
14
+
15
+ #
16
+ :'type' => :'type',
17
+
18
+ #
19
+ :'name' => :'name'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'routing_number' => :'string',
28
+ :'account_number' => :'string',
29
+ :'type' => :'string',
30
+ :'name' => :'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[:'routingNumber']
43
+ @routing_number = attributes[:'routingNumber']
44
+ end
45
+
46
+ if attributes[:'accountNumber']
47
+ @account_number = attributes[:'accountNumber']
48
+ end
49
+
50
+ if attributes[:'type']
51
+ @type = attributes[:'type']
52
+ end
53
+
54
+ if attributes[:'name']
55
+ @name = attributes[:'name']
56
+ end
57
+
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,44 @@
1
+ module DwollaSwagger
2
+ #
3
+ class CreateWebhook < BaseObject
4
+ attr_accessor :url, :secret
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'url' => :'url',
11
+
12
+ #
13
+ :'secret' => :'secret'
14
+
15
+ }
16
+ end
17
+
18
+ # attribute type
19
+ def self.swagger_types
20
+ {
21
+ :'url' => :'string',
22
+ :'secret' => :'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[:'url']
35
+ @url = attributes[:'url']
36
+ end
37
+
38
+ if attributes[:'secret']
39
+ @secret = attributes[:'secret']
40
+ end
41
+
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,102 @@
1
+ module DwollaSwagger
2
+ #
3
+ class Customer < BaseObject
4
+ attr_accessor :_links, :_embedded, :id, :first_name, :last_name, :email, :type, :status, :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
+ :'first_name' => :'firstName',
20
+
21
+ #
22
+ :'last_name' => :'lastName',
23
+
24
+ #
25
+ :'email' => :'email',
26
+
27
+ #
28
+ :'type' => :'type',
29
+
30
+ #
31
+ :'status' => :'status',
32
+
33
+ #
34
+ :'created' => :'created'
35
+
36
+ }
37
+ end
38
+
39
+ # attribute type
40
+ def self.swagger_types
41
+ {
42
+ :'_links' => :'map[string,HalLink]',
43
+ :'_embedded' => :'object',
44
+ :'id' => :'string',
45
+ :'first_name' => :'string',
46
+ :'last_name' => :'string',
47
+ :'email' => :'string',
48
+ :'type' => :'string',
49
+ :'status' => :'string',
50
+ :'created' => :'string'
51
+
52
+ }
53
+ end
54
+
55
+ def initialize(attributes = {})
56
+ return if !attributes.is_a?(Hash) || attributes.empty?
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
60
+
61
+
62
+ if attributes[:'_links']
63
+ if (value = attributes[:'_links']).is_a?(Array)
64
+ @_links = value
65
+ end
66
+ end
67
+
68
+ if attributes[:'_embedded']
69
+ @_embedded = attributes[:'_embedded']
70
+ end
71
+
72
+ if attributes[:'id']
73
+ @id = attributes[:'id']
74
+ end
75
+
76
+ if attributes[:'firstName']
77
+ @first_name = attributes[:'firstName']
78
+ end
79
+
80
+ if attributes[:'lastName']
81
+ @last_name = attributes[:'lastName']
82
+ end
83
+
84
+ if attributes[:'email']
85
+ @email = attributes[:'email']
86
+ end
87
+
88
+ if attributes[:'type']
89
+ @type = attributes[:'type']
90
+ end
91
+
92
+ if attributes[:'status']
93
+ @status = attributes[:'status']
94
+ end
95
+
96
+ if attributes[:'created']
97
+ @created = attributes[:'created']
98
+ end
99
+
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,54 @@
1
+ module DwollaSwagger
2
+ #
3
+ class CustomerListResponse < 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,78 @@
1
+ module DwollaSwagger
2
+ #
3
+ class Document < BaseObject
4
+ attr_accessor :_links, :id, :status, :type, :created, :_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
+ :'id' => :'id',
14
+
15
+ #
16
+ :'status' => :'status',
17
+
18
+ #
19
+ :'type' => :'type',
20
+
21
+ #
22
+ :'created' => :'created',
23
+
24
+ #
25
+ :'_embedded' => :'_embedded'
26
+
27
+ }
28
+ end
29
+
30
+ # attribute type
31
+ def self.swagger_types
32
+ {
33
+ :'_links' => :'map[string,HalLink]',
34
+ :'id' => :'string',
35
+ :'status' => :'string',
36
+ :'type' => :'string',
37
+ :'created' => :'DateTime',
38
+ :'_embedded' => :'object'
39
+
40
+ }
41
+ end
42
+
43
+ def initialize(attributes = {})
44
+ return if !attributes.is_a?(Hash) || attributes.empty?
45
+
46
+ # convert string to symbol for hash key
47
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
48
+
49
+
50
+ if attributes[:'_links']
51
+ if (value = attributes[:'_links']).is_a?(Array)
52
+ @_links = value
53
+ end
54
+ end
55
+
56
+ if attributes[:'id']
57
+ @id = attributes[:'id']
58
+ end
59
+
60
+ if attributes[:'status']
61
+ @status = attributes[:'status']
62
+ end
63
+
64
+ if attributes[:'type']
65
+ @type = attributes[:'type']
66
+ end
67
+
68
+ if attributes[:'created']
69
+ @created = attributes[:'created']
70
+ end
71
+
72
+ if attributes[:'_embedded']
73
+ @_embedded = attributes[:'_embedded']
74
+ end
75
+
76
+ end
77
+ end
78
+ end