protoype.
This commit is contained in:
@@ -130,8 +130,10 @@
|
||||
:description_original {:type 'String}
|
||||
:description_simple {:type 'String}
|
||||
:status {:type 'String}
|
||||
:merchant_name {:type 'String}
|
||||
:client {:type :client}
|
||||
:payment {:type :payment}
|
||||
:vendor {:type :vendor}
|
||||
:bank_account {:type :bank_account}
|
||||
:date {:type 'String}
|
||||
:post_date {:type 'String}}}
|
||||
|
||||
@@ -25,18 +25,21 @@
|
||||
:cobSession))
|
||||
|
||||
|
||||
(defn login-user [cob-session]
|
||||
(-> (str (:yodlee-base-url env) "/user/login")
|
||||
(client/post {:headers (merge base-headers {"Authorization" (auth-header cob-session)})
|
||||
:body
|
||||
(json/write-str {:user {:loginName (:yodlee-user-login env)
|
||||
:password (:yodlee-user-password env)
|
||||
:locale "en_US"}})
|
||||
:as :json})
|
||||
:body
|
||||
:user
|
||||
:session
|
||||
:userSession))
|
||||
(defn login-user
|
||||
([cob-session] (:yodlee-user-login env) (:yodlee-user-password env))
|
||||
([cob-session user password]
|
||||
(-> (str (:yodlee-base-url env) "/user/login")
|
||||
(client/post {:headers (merge base-headers {"Authorization" (auth-header cob-session)})
|
||||
:body
|
||||
(json/write-str {:user {:loginName user
|
||||
:password password
|
||||
:locale "en_US"}})
|
||||
:as :json})
|
||||
:body
|
||||
:user
|
||||
:session
|
||||
:userSession))
|
||||
)
|
||||
|
||||
(defn get-accounts []
|
||||
(let [cob-session (login-cobrand)
|
||||
|
||||
@@ -83,8 +83,7 @@
|
||||
:payment (when check-id
|
||||
{:db/id check-id
|
||||
:payment/status :payment-status/cleared}
|
||||
)
|
||||
})]
|
||||
)})]
|
||||
|
||||
|
||||
(d/transact (d/connect uri))))
|
||||
|
||||
Reference in New Issue
Block a user