dwolla_swagger 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +8 -1
  4. data/lib/dwolla_swagger/api/customers_api.rb +2 -0
  5. data/lib/dwolla_swagger/api/fundingsources_api.rb +96 -3
  6. data/lib/dwolla_swagger/api/masspaymentitems_api.rb +108 -0
  7. data/lib/dwolla_swagger/api/masspayments_api.rb +196 -0
  8. data/lib/dwolla_swagger/api/ondemandauthorizations_api.rb +49 -0
  9. data/lib/dwolla_swagger/api/transfers_api.rb +95 -2
  10. data/lib/dwolla_swagger/models/authorization.rb +28 -0
  11. data/lib/dwolla_swagger/models/create_funding_source_request.rb +9 -1
  12. data/lib/dwolla_swagger/models/customer.rb +59 -3
  13. data/lib/dwolla_swagger/models/document.rb +9 -1
  14. data/lib/dwolla_swagger/models/facilitator_fee_request.rb +46 -0
  15. data/lib/dwolla_swagger/models/funding_source.rb +11 -3
  16. data/lib/dwolla_swagger/models/funding_source_balance.rb +62 -0
  17. data/lib/dwolla_swagger/models/id.rb +28 -0
  18. data/lib/dwolla_swagger/models/mass_payment.rb +76 -0
  19. data/lib/dwolla_swagger/models/mass_payment_item.rb +76 -0
  20. data/lib/dwolla_swagger/models/mass_payment_item_list_response.rb +54 -0
  21. data/lib/dwolla_swagger/models/mass_payment_item_request_body.rb +52 -0
  22. data/lib/dwolla_swagger/models/mass_payment_list_response.rb +54 -0
  23. data/lib/dwolla_swagger/models/mass_payment_request_body.rb +54 -0
  24. data/lib/dwolla_swagger/models/remove_bank_request.rb +36 -0
  25. data/lib/dwolla_swagger/models/transfer_request_body.rb +13 -3
  26. data/lib/dwolla_swagger/models/update_transfer.rb +36 -0
  27. data/lib/dwolla_swagger/swagger/version.rb +1 -1
  28. data/lib/dwolla_swagger.rb +35 -20
  29. metadata +18 -4
  30. data/dwolla_swagger-1.0.6.gem +0 -0
@@ -0,0 +1,28 @@
1
+ module DwollaSwagger
2
+ #
3
+ class Authorization < 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
@@ -1,11 +1,14 @@
1
1
  module DwollaSwagger
2
2
  #
3
3
  class CreateFundingSourceRequest < BaseObject
4
- attr_accessor :routing_number, :account_number, :type, :name
4
+ attr_accessor :_links, :routing_number, :account_number, :type, :name
5
5
  # attribute mapping from ruby-style variable name to JSON key
6
6
  def self.attribute_map
7
7
  {
8
8
 
9
+ #
10
+ :'_links' => :'_links',
11
+
9
12
  #
10
13
  :'routing_number' => :'routingNumber',
11
14
 
@@ -24,6 +27,7 @@ module DwollaSwagger
24
27
  # attribute type
25
28
  def self.swagger_types
26
29
  {
30
+ :'_links' => :'object',
27
31
  :'routing_number' => :'string',
28
32
  :'account_number' => :'string',
29
33
  :'type' => :'string',
@@ -39,6 +43,10 @@ module DwollaSwagger
39
43
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
40
44
 
41
45
 
46
+ if attributes[:'_links']
47
+ @_links = attributes[:'_links']
48
+ end
49
+
42
50
  if attributes[:'routingNumber']
43
51
  @routing_number = attributes[:'routingNumber']
44
52
  end
@@ -1,7 +1,7 @@
1
1
  module DwollaSwagger
2
2
  #
3
3
  class Customer < BaseObject
4
- attr_accessor :_links, :_embedded, :id, :first_name, :last_name, :email, :type, :status, :created
4
+ attr_accessor :_links, :_embedded, :id, :first_name, :last_name, :email, :type, :status, :created, :address1, :address2, :city, :state, :postal_code, :business_name, :doing_business_as
5
5
  # attribute mapping from ruby-style variable name to JSON key
6
6
  def self.attribute_map
7
7
  {
@@ -31,7 +31,28 @@ module DwollaSwagger
31
31
  :'status' => :'status',
32
32
 
33
33
  #
34
- :'created' => :'created'
34
+ :'created' => :'created',
35
+
36
+ #
37
+ :'address1' => :'address1',
38
+
39
+ #
40
+ :'address2' => :'address2',
41
+
42
+ #
43
+ :'city' => :'city',
44
+
45
+ #
46
+ :'state' => :'state',
47
+
48
+ #
49
+ :'postal_code' => :'postalCode',
50
+
51
+ #
52
+ :'business_name' => :'businessName',
53
+
54
+ #
55
+ :'doing_business_as' => :'doingBusinessAs'
35
56
 
36
57
  }
37
58
  end
@@ -47,7 +68,14 @@ module DwollaSwagger
47
68
  :'email' => :'string',
48
69
  :'type' => :'string',
49
70
  :'status' => :'string',
50
- :'created' => :'string'
71
+ :'created' => :'string',
72
+ :'address1' => :'string',
73
+ :'address2' => :'string',
74
+ :'city' => :'string',
75
+ :'state' => :'string',
76
+ :'postal_code' => :'string',
77
+ :'business_name' => :'string',
78
+ :'doing_business_as' => :'string'
51
79
 
52
80
  }
53
81
  end
@@ -97,6 +125,34 @@ module DwollaSwagger
97
125
  @created = attributes[:'created']
98
126
  end
99
127
 
128
+ if attributes[:'address1']
129
+ @address1 = attributes[:'address1']
130
+ end
131
+
132
+ if attributes[:'address2']
133
+ @address2 = attributes[:'address2']
134
+ end
135
+
136
+ if attributes[:'city']
137
+ @city = attributes[:'city']
138
+ end
139
+
140
+ if attributes[:'state']
141
+ @state = attributes[:'state']
142
+ end
143
+
144
+ if attributes[:'postalCode']
145
+ @postal_code = attributes[:'postalCode']
146
+ end
147
+
148
+ if attributes[:'businessName']
149
+ @business_name = attributes[:'businessName']
150
+ end
151
+
152
+ if attributes[:'doingBusinessAs']
153
+ @doing_business_as = attributes[:'doingBusinessAs']
154
+ end
155
+
100
156
  end
101
157
  end
102
158
  end
@@ -1,7 +1,7 @@
1
1
  module DwollaSwagger
2
2
  #
3
3
  class Document < BaseObject
4
- attr_accessor :_links, :id, :status, :type, :created, :_embedded
4
+ attr_accessor :_links, :id, :status, :type, :created, :failure_reason, :_embedded
5
5
  # attribute mapping from ruby-style variable name to JSON key
6
6
  def self.attribute_map
7
7
  {
@@ -21,6 +21,9 @@ module DwollaSwagger
21
21
  #
22
22
  :'created' => :'created',
23
23
 
24
+ #
25
+ :'failure_reason' => :'failureReason',
26
+
24
27
  #
25
28
  :'_embedded' => :'_embedded'
26
29
 
@@ -35,6 +38,7 @@ module DwollaSwagger
35
38
  :'status' => :'string',
36
39
  :'type' => :'string',
37
40
  :'created' => :'DateTime',
41
+ :'failure_reason' => :'string',
38
42
  :'_embedded' => :'object'
39
43
 
40
44
  }
@@ -69,6 +73,10 @@ module DwollaSwagger
69
73
  @created = attributes[:'created']
70
74
  end
71
75
 
76
+ if attributes[:'failureReason']
77
+ @failure_reason = attributes[:'failureReason']
78
+ end
79
+
72
80
  if attributes[:'_embedded']
73
81
  @_embedded = attributes[:'_embedded']
74
82
  end
@@ -0,0 +1,46 @@
1
+ module DwollaSwagger
2
+ #
3
+ class FacilitatorFeeRequest < BaseObject
4
+ attr_accessor :_links, :amount
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
+ end
17
+
18
+ # attribute type
19
+ def self.swagger_types
20
+ {
21
+ :'_links' => :'map[string,HalLink]',
22
+ :'amount' => :'Amount'
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[:'amount']
41
+ @amount = attributes[:'amount']
42
+ end
43
+
44
+ end
45
+ end
46
+ end
@@ -1,7 +1,7 @@
1
1
  module DwollaSwagger
2
2
  #
3
3
  class FundingSource < BaseObject
4
- attr_accessor :_links, :_embedded, :id, :status, :type, :name, :created, :balance
4
+ attr_accessor :_links, :_embedded, :id, :status, :type, :name, :created, :balance, :removed
5
5
  # attribute mapping from ruby-style variable name to JSON key
6
6
  def self.attribute_map
7
7
  {
@@ -28,7 +28,10 @@ module DwollaSwagger
28
28
  :'created' => :'created',
29
29
 
30
30
  #
31
- :'balance' => :'balance'
31
+ :'balance' => :'balance',
32
+
33
+ #
34
+ :'removed' => :'removed'
32
35
 
33
36
  }
34
37
  end
@@ -43,7 +46,8 @@ module DwollaSwagger
43
46
  :'type' => :'string',
44
47
  :'name' => :'string',
45
48
  :'created' => :'DateTime',
46
- :'balance' => :'object'
49
+ :'balance' => :'object',
50
+ :'removed' => :'boolean'
47
51
 
48
52
  }
49
53
  end
@@ -89,6 +93,10 @@ module DwollaSwagger
89
93
  @balance = attributes[:'balance']
90
94
  end
91
95
 
96
+ if attributes[:'removed']
97
+ @removed = attributes[:'removed']
98
+ end
99
+
92
100
  end
93
101
  end
94
102
  end
@@ -0,0 +1,62 @@
1
+ module DwollaSwagger
2
+ #
3
+ class FundingSourceBalance < BaseObject
4
+ attr_accessor :_links, :_embedded, :balance, :last_updated
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
+ :'balance' => :'balance',
17
+
18
+ #
19
+ :'last_updated' => :'lastUpdated'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'_links' => :'map[string,HalLink]',
28
+ :'_embedded' => :'object',
29
+ :'balance' => :'object',
30
+ :'last_updated' => :'DateTime'
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[:'balance']
53
+ @balance = attributes[:'balance']
54
+ end
55
+
56
+ if attributes[:'lastUpdated']
57
+ @last_updated = attributes[:'lastUpdated']
58
+ end
59
+
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,28 @@
1
+ module DwollaSwagger
2
+ #
3
+ class Id < 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,76 @@
1
+ module DwollaSwagger
2
+ #
3
+ class MassPayment < BaseObject
4
+ attr_accessor :_links, :_embedded, :id, :status, :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
+ :'created' => :'created',
23
+
24
+ #
25
+ :'metadata' => :'metadata'
26
+
27
+ }
28
+ end
29
+
30
+ # attribute type
31
+ def self.swagger_types
32
+ {
33
+ :'_links' => :'object',
34
+ :'_embedded' => :'object',
35
+ :'id' => :'string',
36
+ :'status' => :'string',
37
+ :'created' => :'string',
38
+ :'metadata' => :'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
+ @_links = attributes[:'_links']
52
+ end
53
+
54
+ if attributes[:'_embedded']
55
+ @_embedded = attributes[:'_embedded']
56
+ end
57
+
58
+ if attributes[:'id']
59
+ @id = attributes[:'id']
60
+ end
61
+
62
+ if attributes[:'status']
63
+ @status = attributes[:'status']
64
+ end
65
+
66
+ if attributes[:'created']
67
+ @created = attributes[:'created']
68
+ end
69
+
70
+ if attributes[:'metadata']
71
+ @metadata = attributes[:'metadata']
72
+ end
73
+
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,76 @@
1
+ module DwollaSwagger
2
+ #
3
+ class MassPaymentItem < BaseObject
4
+ attr_accessor :_links, :_embedded, :id, :status, :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
+ :'_embedded' => :'_embedded',
14
+
15
+ #
16
+ :'id' => :'id',
17
+
18
+ #
19
+ :'status' => :'status',
20
+
21
+ #
22
+ :'amount' => :'amount',
23
+
24
+ #
25
+ :'metadata' => :'metadata'
26
+
27
+ }
28
+ end
29
+
30
+ # attribute type
31
+ def self.swagger_types
32
+ {
33
+ :'_links' => :'object',
34
+ :'_embedded' => :'object',
35
+ :'id' => :'string',
36
+ :'status' => :'string',
37
+ :'amount' => :'Amount',
38
+ :'metadata' => :'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
+ @_links = attributes[:'_links']
52
+ end
53
+
54
+ if attributes[:'_embedded']
55
+ @_embedded = attributes[:'_embedded']
56
+ end
57
+
58
+ if attributes[:'id']
59
+ @id = attributes[:'id']
60
+ end
61
+
62
+ if attributes[:'status']
63
+ @status = attributes[:'status']
64
+ end
65
+
66
+ if attributes[:'amount']
67
+ @amount = attributes[:'amount']
68
+ end
69
+
70
+ if attributes[:'metadata']
71
+ @metadata = attributes[:'metadata']
72
+ end
73
+
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,54 @@
1
+ module DwollaSwagger
2
+ #
3
+ class MassPaymentItemListResponse < 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,52 @@
1
+ module DwollaSwagger
2
+ #
3
+ class MassPaymentItemRequestBody < 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' => :'object',
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
+ @_links = attributes[:'_links']
40
+ end
41
+
42
+ if attributes[:'amount']
43
+ @amount = attributes[:'amount']
44
+ end
45
+
46
+ if attributes[:'metadata']
47
+ @metadata = attributes[:'metadata']
48
+ end
49
+
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,54 @@
1
+ module DwollaSwagger
2
+ #
3
+ class MassPaymentListResponse < 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