Module: AvaTax::Client::FirmClientLinkages
- Defined in:
- lib/avatax/client/firmclientlinkages.rb
Instance Method Summary collapse
-
#approve_firm_client_linkage(id) ⇒ Object
Approves linkage to a firm for a client account.
-
#create_and_link_new_firm_client_account(model) ⇒ Object
Request a new FirmClient account and create an approved linkage to it.
-
#create_firm_client_linkage(model) ⇒ Object
Links a firm account with the client account.
-
#delete_firm_client_linkage(id) ⇒ ErrorDetail[]
Delete a linkage.
-
#get_firm_client_linkage(id) ⇒ Object
Get linkage between a firm and client by id.
-
#insert_firm_client_linkage(model) ⇒ Object
Insert a full FirmClientLinkage record.
-
#list_firm_client_linkage(options = {}) ⇒ FetchResult
List client linkages for a firm or client.
-
#reject_firm_client_linkage(id) ⇒ Object
Rejects linkage to a firm for a client account.
-
#reset_firm_client_linkage(id) ⇒ Object
Reset linkage status between a client and firm back to requested.
-
#revoke_firm_client_linkage(id) ⇒ Object
Revokes previously approved linkage to a firm for a client account.
-
#update_firm_client_linkage(model) ⇒ Object
Update a full FirmClientLinkage record.
Instance Method Details
#approve_firm_client_linkage(id) ⇒ Object
Approves linkage to a firm for a client account
This API enables the account admin of a client account to approve linkage request by a firm.
Security Policies
- This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. Swagger Name: AvaTaxClient
16 17 |
# File 'lib/avatax/client/firmclientlinkages.rb', line 16 def approve_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/approve" post(path, {}, {}, AvaTax::VERSION) end |
#create_and_link_new_firm_client_account(model) ⇒ Object
Request a new FirmClient account and create an approved linkage to it
This API is for use by Firms only.
Avalara allows firms to manage returns for clients without the clients needing to use AvaTax service. Firms can create accounts of FirmClient for customers they are managing using this API.
Calling this API creates an account with the specified product subscriptions, but without a new user for account. Account is then linked to the Firm so they can managed their returns. You should call this API when a customer does not have an AvaTax account and is to be managed only by the firm.
The created account will be created in Active
status but there will be no user or license key associated with account.
Security Policies
- This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SystemAdmin. Swagger Name: AvaTaxClient
38 39 |
# File 'lib/avatax/client/firmclientlinkages.rb', line 38 def create_and_link_new_firm_client_account(model) path = "/api/v2/firmclientlinkages/createandlinkclient" post(path, model, {}, AvaTax::VERSION) end |
#create_firm_client_linkage(model) ⇒ Object
Links a firm account with the client account
This API enables the firm admins/firm users to request the linkage of a firm account and a client account.
Security Policies
- This API requires one of the following user roles: BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. Swagger Name: AvaTaxClient
51 52 |
# File 'lib/avatax/client/firmclientlinkages.rb', line 51 def create_firm_client_linkage(model) path = "/api/v2/firmclientlinkages" post(path, model, {}, AvaTax::VERSION) end |
#delete_firm_client_linkage(id) ⇒ ErrorDetail[]
Delete a linkage
This API marks a linkage between a firm and client as deleted.
Security Policies
- This API requires one of the following user roles: BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. Swagger Name: AvaTaxClient
64 65 |
# File 'lib/avatax/client/firmclientlinkages.rb', line 64 def delete_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}" delete(path, {}, AvaTax::VERSION) end |
#get_firm_client_linkage(id) ⇒ Object
Get linkage between a firm and client by id
This API enables the firm admins/firm users to request the linkage of a firm account and a client account.
Security Policies
- This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. Swagger Name: AvaTaxClient
77 78 |
# File 'lib/avatax/client/firmclientlinkages.rb', line 77 def get_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}" get(path, {}, AvaTax::VERSION) end |
#insert_firm_client_linkage(model) ⇒ Object
Insert a full FirmClientLinkage record
Avalara allows firms to manage returns for clients without the clients needing to use AvaTax service. Firms can create accounts of FirmClient for customers they are managing using this API.
Security Policies
- This API requires one of the following user roles: BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. Swagger Name: AvaTaxClient
91 92 |
# File 'lib/avatax/client/firmclientlinkages.rb', line 91 def insert_firm_client_linkage(model) path = "/api/v2/firmclientlinkages/insert" post(path, model, {}, AvaTax::VERSION) end |
#list_firm_client_linkage(options = {}) ⇒ FetchResult
List client linkages for a firm or client
This API enables the firm or account users to request the associated linkages to the account.
Security Policies
- This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. Swagger Name: AvaTaxClient
104 105 |
# File 'lib/avatax/client/firmclientlinkages.rb', line 104 def list_firm_client_linkage(={}) path = "/api/v2/firmclientlinkages" get(path, , AvaTax::VERSION) end |
#reject_firm_client_linkage(id) ⇒ Object
Rejects linkage to a firm for a client account
This API enables the account admin of a client account to reject linkage request by a firm.
Security Policies
- This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. Swagger Name: AvaTaxClient
117 118 |
# File 'lib/avatax/client/firmclientlinkages.rb', line 117 def reject_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/reject" post(path, {}, {}, AvaTax::VERSION) end |
#reset_firm_client_linkage(id) ⇒ Object
Reset linkage status between a client and firm back to requested
This API enables the firm admin of a client account to reset a previously created linkage request by a firm.
Security Policies
- This API requires one of the following user roles: BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. Swagger Name: AvaTaxClient
130 131 |
# File 'lib/avatax/client/firmclientlinkages.rb', line 130 def reset_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/reset" post(path, {}, {}, AvaTax::VERSION) end |
#revoke_firm_client_linkage(id) ⇒ Object
Revokes previously approved linkage to a firm for a client account
This API enables the account admin of a client account to revoke a previously approved linkage request by a firm.
Security Policies
- This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. Swagger Name: AvaTaxClient
143 144 |
# File 'lib/avatax/client/firmclientlinkages.rb', line 143 def revoke_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/revoke" post(path, {}, {}, AvaTax::VERSION) end |
#update_firm_client_linkage(model) ⇒ Object
Update a full FirmClientLinkage record
Avalara allow updating the firm client linkage as a pass thru call. Firms can create accounts of FirmClient for customers they are managing using this API.
Security Policies
- This API requires one of the following user roles: BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. Swagger Name: AvaTaxClient
157 158 |
# File 'lib/avatax/client/firmclientlinkages.rb', line 157 def update_firm_client_linkage(model) path = "/api/v2/firmclientlinkages" put(path, model, {}, AvaTax::VERSION) end |