Skip to content

Commit c13ac57

Browse files
Merge pull request #140 from avadev/23.1.0
Update for 23.1.0
2 parents 94feee8 + bd44a83 commit c13ac57

39 files changed

+390
-367
lines changed

lib/avatax/client/accounts.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module Accounts
2828
# @param model [Object] A request confirming that you wish to reset the license key of this account.
2929
# @return [Object]
3030
def account_reset_license_key(id, model) path = "/api/v2/accounts/#{id}/resetlicensekey"
31-
post(path, model, {}, "22.11.0") end
31+
post(path, model, {}, "23.1.0") end
3232

3333
# Activate an account by accepting terms and conditions
3434
#
@@ -51,7 +51,7 @@ def account_reset_license_key(id, model) path = "/api/v2/accounts/#{id}/r
5151
# @param model [Object] The activation request
5252
# @return [Object]
5353
def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
54-
post(path, model, {}, "22.11.0") end
54+
post(path, model, {}, "23.1.0") end
5555

5656
# Retrieve audit history for an account.
5757
#
@@ -81,7 +81,7 @@ def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
8181
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
8282
# @return [FetchResult]
8383
def audit_account(id, options={}) path = "/api/v2/accounts/#{id}/audit"
84-
get(path, options, "22.11.0") end
84+
get(path, options, "23.1.0") end
8585

8686
# Create license key for this account
8787
#
@@ -104,7 +104,7 @@ def audit_account(id, options={}) path = "/api/v2/accounts/#{id}/audit"
104104
# @param model [Object]
105105
# @return [Object]
106106
def create_license_key(id, model) path = "/api/v2/accounts/#{id}/licensekey"
107-
post(path, model, {}, "22.11.0") end
107+
post(path, model, {}, "23.1.0") end
108108

109109
# Delete license key for this account by license key name
110110
#
@@ -122,7 +122,7 @@ def create_license_key(id, model) path = "/api/v2/accounts/#{id}/licensek
122122
# @param licensekeyname [String] The license key name you wish to update.
123123
# @return [ErrorDetail[]]
124124
def delete_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
125-
delete(path, {}, "22.11.0") end
125+
delete(path, {}, "23.1.0") end
126126

127127
# Retrieve a single account
128128
#
@@ -140,7 +140,7 @@ def delete_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}
140140
# @param include [String] A comma separated list of special fetch options
141141
# @return [Object]
142142
def get_account(id, options={}) path = "/api/v2/accounts/#{id}"
143-
get(path, options, "22.11.0") end
143+
get(path, options, "23.1.0") end
144144

145145
# Get configuration settings for this account
146146
#
@@ -164,7 +164,7 @@ def get_account(id, options={}) path = "/api/v2/accounts/#{id}"
164164
# @param id [Integer]
165165
# @return [AccountConfigurationModel[]]
166166
def get_account_configuration(id) path = "/api/v2/accounts/#{id}/configuration"
167-
get(path, {}, "22.11.0") end
167+
get(path, {}, "23.1.0") end
168168

169169
# Retrieve license key by license key name
170170
#
@@ -176,7 +176,7 @@ def get_account_configuration(id) path = "/api/v2/accounts/#{id}/configur
176176
# @param licensekeyname [String] The ID of the account to retrieve
177177
# @return [Object]
178178
def get_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
179-
get(path, {}, "22.11.0") end
179+
get(path, {}, "23.1.0") end
180180

181181
# Retrieve all license keys for this account
182182
#
@@ -189,7 +189,7 @@ def get_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/li
189189
# @param id [Integer] The ID of the account to retrieve
190190
# @return [AccountLicenseKeyModel[]]
191191
def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
192-
get(path, {}, "22.11.0") end
192+
get(path, {}, "23.1.0") end
193193

194194
# Retrieve all accounts
195195
#
@@ -217,7 +217,7 @@ def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
217217
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
218218
# @return [FetchResult]
219219
def query_accounts(options={}) path = "/api/v2/accounts"
220-
get(path, options, "22.11.0") end
220+
get(path, options, "23.1.0") end
221221

222222
# Change configuration settings for this account
223223
#
@@ -242,7 +242,7 @@ def query_accounts(options={}) path = "/api/v2/accounts"
242242
# @param model [AccountConfigurationModel[]]
243243
# @return [AccountConfigurationModel[]]
244244
def set_account_configuration(id, model) path = "/api/v2/accounts/#{id}/configuration"
245-
post(path, model, {}, "22.11.0") end
245+
post(path, model, {}, "23.1.0") end
246246
end
247247
end
248248
end

lib/avatax/client/addresses.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module Addresses
3232
# @param textCase [String] selectable text case for address validation (See TextCase::* for a list of allowable values)
3333
# @return [Object]
3434
def resolve_address(options={}) path = "/api/v2/addresses/resolve"
35-
get(path, options, "22.11.0") end
35+
get(path, options, "23.1.0") end
3636

3737
# Retrieve geolocation information for a specified address
3838
#
@@ -51,7 +51,7 @@ def resolve_address(options={}) path = "/api/v2/addresses/resolve"
5151
# @param model [Object] The address to resolve
5252
# @return [Object]
5353
def resolve_address_post(model) path = "/api/v2/addresses/resolve"
54-
post(path, model, {}, "22.11.0") end
54+
post(path, model, {}, "23.1.0") end
5555
end
5656
end
5757
end

lib/avatax/client/advancedrules.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module AdvancedRules
1212
# @param model [Object] The lookup file you wish to create
1313
# @return [Object]
1414
def create_company_lookup_file(accountId, companyId, model) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
15-
post(path, model, {}, "22.11.0") end
15+
post(path, model, {}, "23.1.0") end
1616

1717
# Delete a lookup file
1818
#
@@ -22,7 +22,7 @@ def create_company_lookup_file(accountId, companyId, model) path = "/api/
2222
# @param id [String] The unique ID/GUID for the company lookup file to be deleted
2323
# @return [ErrorDetail[]]
2424
def delete_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
25-
delete(path, {}, "22.11.0") end
25+
delete(path, {}, "23.1.0") end
2626

2727
# Get the lookup files for a company
2828
#
@@ -32,7 +32,7 @@ def delete_lookup_file(accountId, id) path = "/api/v2/advancedrules/accou
3232
# @param companyId [Integer] The ID of the company for which to retrieve lookup files
3333
# @return [FetchResult]
3434
def get_company_lookup_files(accountId, companyId) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
35-
get(path, {}, "22.11.0") end
35+
get(path, {}, "23.1.0") end
3636

3737
# Get a lookup file for an accountId and companyLookupFileId
3838
#
@@ -42,7 +42,7 @@ def get_company_lookup_files(accountId, companyId) path = "/api/v2/advanc
4242
# @param id [String] The unique ID/GUID of the company lookup file to return
4343
# @return [Object]
4444
def get_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
45-
get(path, {}, "22.11.0") end
45+
get(path, {}, "23.1.0") end
4646

4747
# Update a lookup file
4848
#
@@ -53,7 +53,7 @@ def get_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts
5353
# @param model [Object] The new values to update the lookup file
5454
# @return [Object]
5555
def update_lookup_file(accountId, id, model) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
56-
put(path, model, {}, "22.11.0") end
56+
put(path, model, {}, "23.1.0") end
5757
end
5858
end
5959
end

lib/avatax/client/avafileforms.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module AvaFileForms
1616
# @param model [AvaFileFormModel[]] The AvaFileForm you wish to create.
1717
# @return [AvaFileFormModel[]]
1818
def create_ava_file_forms(model) path = "/api/v2/avafileforms"
19-
post(path, model, {}, "22.11.0") end
19+
post(path, model, {}, "23.1.0") end
2020

2121
# Delete a single AvaFileForm
2222
#
@@ -30,7 +30,7 @@ def create_ava_file_forms(model) path = "/api/v2/avafileforms"
3030
# @param id [Integer] The ID of the AvaFileForm you wish to delete.
3131
# @return [ErrorDetail[]]
3232
def delete_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
33-
delete(path, {}, "22.11.0") end
33+
delete(path, {}, "23.1.0") end
3434

3535
# Retrieve a single AvaFileForm
3636
#
@@ -44,7 +44,7 @@ def delete_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
4444
# @param id [Integer] The primary key of this AvaFileForm
4545
# @return [Object]
4646
def get_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
47-
get(path, {}, "22.11.0") end
47+
get(path, {}, "23.1.0") end
4848

4949
# Retrieve all AvaFileForms
5050
#
@@ -62,7 +62,7 @@ def get_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
6262
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
6363
# @return [FetchResult]
6464
def query_ava_file_forms(options={}) path = "/api/v2/avafileforms"
65-
get(path, options, "22.11.0") end
65+
get(path, options, "23.1.0") end
6666

6767
# Update a AvaFileForm
6868
#
@@ -78,7 +78,7 @@ def query_ava_file_forms(options={}) path = "/api/v2/avafileforms"
7878
# @param model [Object] The AvaFileForm model you wish to update.
7979
# @return [Object]
8080
def update_ava_file_form(id, model) path = "/api/v2/avafileforms/#{id}"
81-
put(path, model, {}, "22.11.0") end
81+
put(path, model, {}, "23.1.0") end
8282
end
8383
end
8484
end

lib/avatax/client/batches.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module Batches
2626
# @param id [Integer] The ID of the batch to cancel.
2727
# @return [Object]
2828
def cancel_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batches/#{id}/cancel"
29-
post(path, {}, "22.11.0") end
29+
post(path, {}, "23.1.0") end
3030

3131
# Create a new batch
3232
#
@@ -58,7 +58,7 @@ def cancel_batch(companyId, id) path = "/api/v2/companies/#{companyId}/ba
5858
# @param model [BatchModel[]] The batch you wish to create.
5959
# @return [BatchModel[]]
6060
def create_batches(companyId, model) path = "/api/v2/companies/#{companyId}/batches"
61-
post(path, model, {}, "22.11.0") end
61+
post(path, model, {}, "23.1.0") end
6262

6363
# Create a new transaction batch
6464
#
@@ -88,7 +88,7 @@ def create_batches(companyId, model) path = "/api/v2/companies/#{companyI
8888
# @param model [Object] The transaction batch you wish to create.
8989
# @return [Object]
9090
def create_transaction_batch(companyId, model) path = "/api/v2/companies/#{companyId}/batches/transactions"
91-
post(path, model, {}, "22.11.0") end
91+
post(path, model, {}, "23.1.0") end
9292

9393
# Delete a single batch
9494
#
@@ -111,7 +111,7 @@ def create_transaction_batch(companyId, model) path = "/api/v2/companies/
111111
# @param id [Integer] The ID of the batch to delete.
112112
# @return [ErrorDetail[]]
113113
def delete_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batches/#{id}"
114-
delete(path, {}, "22.11.0") end
114+
delete(path, {}, "23.1.0") end
115115

116116
# Download a single batch file
117117
#
@@ -126,7 +126,7 @@ def delete_batch(companyId, id) path = "/api/v2/companies/#{companyId}/ba
126126
# @param id [Integer] The primary key of this batch file object
127127
# @return [Object]
128128
def download_batch(companyId, batchId, id) path = "/api/v2/companies/#{companyId}/batches/#{batchId}/files/#{id}/attachment"
129-
get(path, {}, "22.11.0") end
129+
get(path, {}, "23.1.0") end
130130

131131
# Retrieve a single batch
132132
#
@@ -154,7 +154,7 @@ def download_batch(companyId, batchId, id) path = "/api/v2/companies/#{co
154154
# @param id [Integer] The primary key of this batch
155155
# @return [Object]
156156
def get_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batches/#{id}"
157-
get(path, {}, "22.11.0") end
157+
get(path, {}, "23.1.0") end
158158

159159
# Retrieve all batches for this company
160160
#
@@ -192,7 +192,7 @@ def get_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batch
192192
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
193193
# @return [FetchResult]
194194
def list_batches_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/batches"
195-
get(path, options, "22.11.0") end
195+
get(path, options, "23.1.0") end
196196

197197
# Retrieve all batches
198198
#
@@ -226,7 +226,7 @@ def list_batches_by_company(companyId, options={}) path = "/api/v2/compan
226226
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
227227
# @return [FetchResult]
228228
def query_batches(options={}) path = "/api/v2/batches"
229-
get(path, options, "22.11.0") end
229+
get(path, options, "23.1.0") end
230230
end
231231
end
232232
end

lib/avatax/client/certexpressinvites.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module CertExpressInvites
3131
# @param model [CreateCertExpressInvitationModel[]] the requests to send out to customers
3232
# @return [CertExpressInvitationStatusModel[]]
3333
def create_cert_express_invitation(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites"
34-
post(path, model, {}, "22.11.0") end
34+
post(path, model, {}, "23.1.0") end
3535

3636
# Retrieve a single CertExpress invitation
3737
#
@@ -62,7 +62,7 @@ def create_cert_express_invitation(companyId, customerCode, model) path =
6262
# @param include [String] OPTIONAL: A comma separated list of special fetch options. No options are defined at this time.
6363
# @return [Object]
6464
def get_cert_express_invitation(companyId, customerCode, id, options={}) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites/#{id}"
65-
get(path, options, "22.11.0") end
65+
get(path, options, "23.1.0") end
6666

6767
# List CertExpress invitations
6868
#
@@ -95,7 +95,7 @@ def get_cert_express_invitation(companyId, customerCode, id, options={})
9595
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
9696
# @return [FetchResult]
9797
def list_cert_express_invitations(companyId, options={}) path = "/api/v2/companies/#{companyId}/certexpressinvites"
98-
get(path, options, "22.11.0") end
98+
get(path, options, "23.1.0") end
9999
end
100100
end
101101
end

0 commit comments

Comments
 (0)