lib/sila-ruby/accounts.rb in sila-ruby-0.0.24 vs lib/sila-ruby/accounts.rb in sila-ruby-0.0.25

- old
+ new

@@ -74,7 +74,24 @@ # } sila_post_signed('plaid_sameday_auth', header, message, params, user_key, nil) end + # -------------------------------------------- + # UPDATE-LINK-TOKEN -------------------------- + # -------------------------------------------- + # Get a link token for an existing linked bank account. + def self.update_link_token(handle, params={}, user_key) + header = { user_handle: handle } + message = 'header_msg' + + # Example of params passed + # + # params = { + # account_name: "Custom Account Name", + # } + + sila_post_signed('plaid_update_link_token', header, message, params, user_key, nil) + end + end end