balanced 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/balanced/resources/marketplace.rb +3 -4
- data/lib/balanced/version.rb +1 -1
- metadata +1 -1
@@ -52,21 +52,20 @@ module Balanced
|
|
52
52
|
#
|
53
53
|
# @return [Account]
|
54
54
|
def create_merchant email_address, merchant, bank_account_uri=nil, name=nil, meta={}
|
55
|
-
account_attributes =
|
55
|
+
account_attributes = {
|
56
56
|
:uri => self.accounts_uri,
|
57
57
|
:email_address => email_address,
|
58
58
|
:bank_account_uri => bank_account_uri,
|
59
59
|
:name => name,
|
60
60
|
:meta => meta,
|
61
|
-
|
61
|
+
}
|
62
62
|
|
63
|
-
if merchant.
|
63
|
+
if merchant.respond_to? :keys
|
64
64
|
account_attributes[:merchant] = merchant
|
65
65
|
else
|
66
66
|
account_attributes[:merchant_uri] = merchant
|
67
67
|
end
|
68
68
|
|
69
|
-
account_attributes
|
70
69
|
account = Account.new account_attributes
|
71
70
|
account.save
|
72
71
|
end
|
data/lib/balanced/version.rb
CHANGED