You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# @param options [Hash] with include, filter, top, skip, and order_by params
9
+
# @return [Hashie::Mash] The requested accounts.
10
+
# @example Returns a list of accounts
11
+
# AvaTax.accounts({ $filter: '' })
12
+
#
13
+
# _You must be authenticated as an Avalara Registrar to use this route_
14
+
# @see http://developer.avalara.com/avatax/filtering-in-rest/ More information on filtering in REST
15
+
defaccounts(options={})
16
+
get('/api/v2/accounts',options)
17
+
end
18
+
19
+
# Retrieve an account
20
+
#
21
+
# @param include [Array] an array of child objects to return underneath the primary object.
22
+
# The include array can contain
23
+
#
24
+
# * Subscriptions
25
+
# * Users
26
+
# @return [Hashie::Mash] The requested accounts.
27
+
# @example Returns a list of accounts
28
+
# AvaTax.accounts({ $filter: 'id in (111444, 222555)' })
29
+
defaccount(id,include=[])
30
+
if !include.empty?
31
+
options={
32
+
'$include': include.join(','),
33
+
}
34
+
end
35
+
get("/api/v2/accounts/#{id}",options || {})
36
+
end
37
+
38
+
# Resets the existing license key for this account to a new key. To reset your account, you must specify the ID of the account you wish to reset and confirm the action. Resetting a license key cannot be undone. Any previous license keys will immediately cease to work when a new key is created.
39
+
#
40
+
# @param options [Hash] should be a hash with { confirmResetLicenseKey: true }
0 commit comments