lib/hello_sign/api/team.rb in hellosign-ruby-sdk-3.7.0 vs lib/hello_sign/api/team.rb in hellosign-ruby-sdk-3.7.1

- old
+ new

@@ -1,10 +1,10 @@ # # The MIT License (MIT) -# +# # Copyright (C) 2014 hellosign.com -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is @@ -22,20 +22,18 @@ # SOFTWARE. # module HelloSign module Api - # - # Contains all the api calls for the Team resource. - # Take a look at our {https://app.hellosign.com/api/reference#Team team api document} + # Contains all the API calls for the Team resource. + # Take a look at our API Documentation on the Team Resource (https://app.hellosign.com/api/reference#Team) # for more information about this. # # @author [hellosign] # module Team - # # Returns information about your Team as well as a list of its members. # If you do not belong to a Team, HelloSign::Error::NotFound will be raised # # @return [HelloSign::Resource::Team] your current Team @@ -46,61 +44,63 @@ HelloSign::Resource::Team.new get('/team') end # # Creates a new Team and makes you a member. You must not currently belong to a Team to invoke. - # @option opts [String] name The name of your Team + # @option opts [String] name The name of the Team. # - # @return [HelloSign::Resource::Team] new created Team + # @return [HelloSign::Resource::Team] new created Team object # # @example # team = @client.create_team :name => 'Team America World Police' def create_team(opts) HelloSign::Resource::Team.new post('/team/create', :body => opts) end # # Updates the name of your Team. - # @option opts [String] name The name of your Team + # @option opts [String] name The name of your Team. # # @return [HelloSign::Resource::Team] a Team object # # @example # team = @client.update_team :name => 'New Team Name' def update_team(opts) HelloSign::Resource::Team.new post('/team', :body => opts) end # - # Deletes your Team. Can only be invoked when you have a Team with only one member (yourself). + # Deletes your Team. Can only be invoked with a Team with one member (yourself). # # @example # team = @client.destroy_team def destroy_team post('/team/destroy') end # - # Adds or invites a user (specified using the email_address parameter) to your Team. + # Adds or invites a user (specified using the email_address parameter) to the Team. # If the user does not currently have a HelloSign Account, a new one will be created for them. - # If the user currently has a paid subscription, they will not automatically join the Team but instead will be sent an invitation to join. - # If a user is already a part of another Team, a "team_invite_failed" error will be returned. - # @option opts [String] account_id The id of the Account of the user to invite to your Team. The account id prevails if both email_address and acccount_id are provided. - # @option opts [String] email_address The email address of the Account of the user to invite to your Team. The account id prevails if both email_address and acccount_id are provided. + # If the user currently has a paid subscription, they will be emailed an invitation to join the Team. + # If a user is already a part of a Team, a "team_invite_failed" error will be returned. + # @option opts [String] account_id The user's Account ID to invite to the Team. + # @option opts [String] email_address The user's email address to invite to your Team. + # Note: The account_id prevails if both email_address and acccount_id are provided. # # @return [HelloSign::Resource::Team] updated Team object # # @example # team = @client.add_member_to_team :email_address => 'george@example.com' def add_member_to_team(opts) HelloSign::Resource::Team.new post('/team/add_member', :body => opts) end - # - # Removes a user from your Team. If the user had an outstanding invitation to your Team the invitation will be expired. - # @option opts [String] account_id The id of the Account of the user to invite to your Team. The account id prevails if both email_address and acccount_id are provided. - # @option opts [String] email_address The email address of the Account of the user to invite to your Team. The account id prevails if both email_address and acccount_id are provided. + # Removes a user from the Team. If the user had an outstanding invitation to your Team, the original invitation will expire. + # @option opts [String] account_id The user's Account ID to remove from the Team. + # @option opts [String] email_address The user's email address to remove from your Team. + # @option opts [String] new_owner_email_address The Account's email address to receive all documents, API Apps (if applicable), and API key from removed account. (optional) + # Note: The account_id prevails if both email_address and acccount_id are provided. # # @return [HelloSign::Resource::Team] updated Team object # @example # team = @client.remove_member_from_team :email_address => 'george@example.com' def remove_member_from_team(opts)