samples.md in synapse_payments-0.6.2 vs samples.md in synapse_payments-0.6.3

- old
+ new

@@ -26,12 +26,25 @@ response[1][:bank_name] # => "Bank of America" ``` +### Subscriptions + +Note: This is a feature only available for the Advanced or Premium plans. + +```ruby +client.subscriptions.all +client.subscriptions.create(url: 'http://site.com/callback', scope: ['USERS|PATCH']) +client.subscriptions.find(id) +client.subscriptions.update(id, url: 'http://site.com/new_callback', is_active: false) +``` + ### Users +All actions below require and assume user authentication. + #### Retrieve all users (paginated) ```ruby response = client.users.all ``` @@ -86,11 +99,13 @@ # => ["Javier Julio"] ``` #### Update a user -NOTE: Action needs to be implemented. +```ruby +user_client.update(legal_name: 'John Smith', remove_login: { email: 'test@test.com' }) +``` #### Add a document ```ruby response = user_client.add_document( @@ -193,20 +208,9 @@ user_client.nodes(node_id).transactions.all user_client.nodes(node_id).transactions.create(node_id:, node_type:, amount:, currency:, ip_address:) user_client.nodes(node_id).transactions.delete(id) user_client.nodes(node_id).transactions.find(id) user_client.nodes(node_id).transactions.update(id, data) -``` - -#### Subscriptions - -Note: This is a feature only available for the Advanced or Premium plans. - -```ruby -client.subscriptions.all -client.subscriptions.create(url: 'http://site.com/callback', scope: ['USERS|PATCH']) -client.subscriptions.find(id) -client.subscriptions.update(id, url: 'http://site.com/new_callback', is_active: false) ``` #### Error Handling TODO: add detail