money_mover 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/money_mover/dwolla/models/customer.rb +1 -2
- data/lib/money_mover/dwolla/models/{funding_source.rb → customer_funding_source.rb} +1 -1
- data/lib/money_mover/dwolla/models/unverified_business_customer.rb +1 -0
- data/lib/money_mover/dwolla/models/unverified_customer.rb +1 -5
- data/lib/money_mover/dwolla/models/verified_business_customer.rb +2 -5
- data/lib/money_mover/dwolla.rb +1 -1
- data/lib/money_mover/version.rb +1 -1
- data/spec/integration/money_mover/dwolla/customers/create_spec.rb +2 -1
- data/spec/integration/money_mover/dwolla/customers/funding-sources/create_spec.rb +1 -1
- data/spec/lib/money_mover/dwolla/funding_source_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1162d4b84c5bc053a5d4b6c702a13d832850db1d
|
4
|
+
data.tar.gz: 4376d2b5614cb5fa36519fdf3c72c3eac2cf811a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3071621908ec13dc0130ed7734a371b6ec0923ab5fe3dd8a8b6cba0f1c661f0d79d7e9356b536d9a60d146de163eb40d17b4a2ba61e2a11e1fed712fbb8317df
|
7
|
+
data.tar.gz: 762d42ea1cff1d371af3acde40dd4a3e05434958aba3ab46e7d7d66ea43d5d2235ec50f308ab09adf9f11626b4dc8bc5d93ac5992263b022e05b64dcfbc2a2c0
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module MoneyMover
|
2
2
|
module Dwolla
|
3
3
|
class Customer < ApiResource
|
4
|
+
COMPANY_TYPES = %w( soleproprietorship llc partnership corporation )
|
4
5
|
|
5
6
|
attr_accessor :firstName,
|
6
7
|
:lastName,
|
@@ -24,8 +25,6 @@ module MoneyMover
|
|
24
25
|
:status,
|
25
26
|
:created
|
26
27
|
|
27
|
-
validates_presence_of :type
|
28
|
-
|
29
28
|
def self.find(id)
|
30
29
|
client = AccountClient.new
|
31
30
|
|
@@ -5,10 +5,6 @@ module MoneyMover
|
|
5
5
|
|
6
6
|
validates_presence_of :firstName, :lastName, :email
|
7
7
|
|
8
|
-
def initialize(attrs={})
|
9
|
-
super attrs.merge(type: 'unverified')
|
10
|
-
end
|
11
|
-
|
12
8
|
def create_params
|
13
9
|
create_attrs = {
|
14
10
|
firstName: firstName,
|
@@ -18,7 +14,7 @@ module MoneyMover
|
|
18
14
|
|
19
15
|
create_attrs[:businessName] = businessName if businessName.present?
|
20
16
|
create_attrs[:ipAddress] = ipAddress if ipAddress.present?
|
21
|
-
|
17
|
+
create_attrs[:type] = 'unverified'
|
22
18
|
|
23
19
|
create_attrs
|
24
20
|
end
|
@@ -13,10 +13,7 @@ module MoneyMover
|
|
13
13
|
:businessName,
|
14
14
|
:ein
|
15
15
|
|
16
|
-
|
17
|
-
attrs[:type] = 'business'
|
18
|
-
super attrs
|
19
|
-
end
|
16
|
+
validates_inclusion_of :businessType, in: COMPANY_TYPES
|
20
17
|
|
21
18
|
private
|
22
19
|
|
@@ -39,7 +36,7 @@ module MoneyMover
|
|
39
36
|
ein: ein,
|
40
37
|
doingBusinessAs: doingBusinessAs,
|
41
38
|
website: website,
|
42
|
-
type:
|
39
|
+
type: 'business',
|
43
40
|
}
|
44
41
|
|
45
42
|
# hack to fix bug on dwolla's side with funding sources being removed if no dba is sent
|
data/lib/money_mover/dwolla.rb
CHANGED
@@ -17,7 +17,7 @@ require 'money_mover/dwolla/models/api_resource'
|
|
17
17
|
# models
|
18
18
|
require 'money_mover/dwolla/models/account_funding_source'
|
19
19
|
require 'money_mover/dwolla/models/document'
|
20
|
-
require 'money_mover/dwolla/models/
|
20
|
+
require 'money_mover/dwolla/models/customer_funding_source'
|
21
21
|
require 'money_mover/dwolla/models/micro_deposit_initiation'
|
22
22
|
require 'money_mover/dwolla/models/micro_deposit_verification'
|
23
23
|
require 'money_mover/dwolla/models/transfer'
|
data/lib/money_mover/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: money_mover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Errante
|
@@ -193,8 +193,8 @@ files:
|
|
193
193
|
- lib/money_mover/dwolla/models/account_funding_source.rb
|
194
194
|
- lib/money_mover/dwolla/models/api_resource.rb
|
195
195
|
- lib/money_mover/dwolla/models/customer.rb
|
196
|
+
- lib/money_mover/dwolla/models/customer_funding_source.rb
|
196
197
|
- lib/money_mover/dwolla/models/document.rb
|
197
|
-
- lib/money_mover/dwolla/models/funding_source.rb
|
198
198
|
- lib/money_mover/dwolla/models/micro_deposit_initiation.rb
|
199
199
|
- lib/money_mover/dwolla/models/micro_deposit_verification.rb
|
200
200
|
- lib/money_mover/dwolla/models/receive_only_business_customer.rb
|