ultracart_rest_api_v2_typescript 4.1.111 → 4.1.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,6 +54,7 @@ src/models/AffiliateResponse.ts
54
54
  src/models/AffiliateTierRelationship.ts
55
55
  src/models/AffiliatesResponse.ts
56
56
  src/models/AgentSummary.ts
57
+ src/models/AnrokConfig.ts
57
58
  src/models/ApiUserApplicationProfile.ts
58
59
  src/models/ApplyLibraryItemRequest.ts
59
60
  src/models/ApplyLibraryItemResponse.ts
@@ -984,6 +985,7 @@ src/models/TaxCounty.ts
984
985
  src/models/TaxJarConfig.ts
985
986
  src/models/TaxPostalCode.ts
986
987
  src/models/TaxProviderActivateResult.ts
988
+ src/models/TaxProviderAnrok.ts
987
989
  src/models/TaxProviderAvalara.ts
988
990
  src/models/TaxProviderAvalaraCompaniesResult.ts
989
991
  src/models/TaxProviderAvalaraCompany.ts
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # UltraCart Typescript SDK
2
- ## ultracart_rest_api_v2_typescript@4.1.111
2
+ ## ultracart_rest_api_v2_typescript@4.1.113
3
3
 
4
4
  Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
5
5
 
6
6
  Installation
7
7
 
8
8
  ```
9
- npm install ultracart_rest_api_v2_typescript@4.1.111 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.113 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
85
85
 
86
86
  | Version | Date | Comments |
87
87
  | --: | :-: | --- |
88
+ | 4.1.113 | 07/08/2026 | tax - anrok tax provider |
89
+ | 4.1.112 | 07/08/2026 | tax - added anrok tax provider |
88
90
  | 4.1.111 | 07/08/2026 | storefront - additional email dispatch log methods |
89
91
  | 4.1.110 | 07/06/2026 | Conversation - CRM message type constant for tool call |
90
92
  | 4.1.109 | 07/03/2026 | bulk import endpoints (alpha) |
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { TaxCity, TaxCountry, TaxCounty, TaxPostalCode, TaxProviderActivateResult, TaxProviderAvalara, TaxProviderAvalaraCompaniesResult, TaxProviderSelf, TaxProviderSelfCountriesResponse, TaxProviderSelfRegionsResponse, TaxProviderSovos, TaxProviderTaxJar, TaxProviderTestResult, TaxProviderUltraCart, TaxProvidersResponse, TaxState } from '../models';
13
+ import { TaxCity, TaxCountry, TaxCounty, TaxPostalCode, TaxProviderActivateResult, TaxProviderAnrok, TaxProviderAvalara, TaxProviderAvalaraCompaniesResult, TaxProviderSelf, TaxProviderSelfCountriesResponse, TaxProviderSelfRegionsResponse, TaxProviderSovos, TaxProviderTaxJar, TaxProviderTestResult, TaxProviderUltraCart, TaxProvidersResponse, TaxState } from '../models';
14
14
  export interface DeleteTaxProviderSelfCityRequest {
15
15
  city: string;
16
16
  taxCity: TaxCity;
@@ -45,6 +45,9 @@ export interface GetTaxProvidersRequest {
45
45
  export interface SetActiveTaxProviderRequest {
46
46
  providerName: string;
47
47
  }
48
+ export interface UpdateTaxProviderAnrokRequest {
49
+ taxProviderAnrok: TaxProviderAnrok;
50
+ }
48
51
  export interface UpdateTaxProviderAvalaraRequest {
49
52
  taxProviderAvalara: TaxProviderAvalara;
50
53
  }
@@ -162,6 +165,32 @@ export interface TaxApiInterface {
162
165
  * Deletes a Self tax provider state
163
166
  */
164
167
  deleteTaxProviderSelfState(requestParameters: DeleteTaxProviderSelfStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
168
+ /**
169
+ * Retrieves the Anrok tax provider.
170
+ * @summary Retrieve the Anrok tax provider
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ * @memberof TaxApiInterface
174
+ */
175
+ getTaxProviderAnrokRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderAnrok>>;
176
+ /**
177
+ * Retrieves the Anrok tax provider.
178
+ * Retrieve the Anrok tax provider
179
+ */
180
+ getTaxProviderAnrok(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrok>;
181
+ /**
182
+ * Attempts to connect to Anrok and returns back the response.
183
+ * @summary Attempts to connect to Anrok and returns back the response
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ * @memberof TaxApiInterface
187
+ */
188
+ getTaxProviderAnrokTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTestResult>>;
189
+ /**
190
+ * Attempts to connect to Anrok and returns back the response.
191
+ * Attempts to connect to Anrok and returns back the response
192
+ */
193
+ getTaxProviderAnrokTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTestResult>;
165
194
  /**
166
195
  * Retrieves the Avalara tax provider.
167
196
  * @summary Retrieve the Avalara tax provider
@@ -337,6 +366,20 @@ export interface TaxApiInterface {
337
366
  * Toggle a tax provider to active
338
367
  */
339
368
  setActiveTaxProvider(requestParameters: SetActiveTaxProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderActivateResult>;
369
+ /**
370
+ * Update the Anrok tax provider.
371
+ * @summary Update the Anrok tax provider
372
+ * @param {TaxProviderAnrok} taxProviderAnrok TaxProviderAnrok object
373
+ * @param {*} [options] Override http request option.
374
+ * @throws {RequiredError}
375
+ * @memberof TaxApiInterface
376
+ */
377
+ updateTaxProviderAnrokRaw(requestParameters: UpdateTaxProviderAnrokRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderAnrok>>;
378
+ /**
379
+ * Update the Anrok tax provider.
380
+ * Update the Anrok tax provider
381
+ */
382
+ updateTaxProviderAnrok(requestParameters: UpdateTaxProviderAnrokRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrok>;
340
383
  /**
341
384
  * Update the Avalara tax provider.
342
385
  * @summary Update the Avalara tax provider
@@ -537,6 +580,26 @@ export declare class TaxApi extends runtime.BaseAPI implements TaxApiInterface {
537
580
  * Deletes a Self tax provider state
538
581
  */
539
582
  deleteTaxProviderSelfState(requestParameters: DeleteTaxProviderSelfStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
583
+ /**
584
+ * Retrieves the Anrok tax provider.
585
+ * Retrieve the Anrok tax provider
586
+ */
587
+ getTaxProviderAnrokRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderAnrok>>;
588
+ /**
589
+ * Retrieves the Anrok tax provider.
590
+ * Retrieve the Anrok tax provider
591
+ */
592
+ getTaxProviderAnrok(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrok>;
593
+ /**
594
+ * Attempts to connect to Anrok and returns back the response.
595
+ * Attempts to connect to Anrok and returns back the response
596
+ */
597
+ getTaxProviderAnrokTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTestResult>>;
598
+ /**
599
+ * Attempts to connect to Anrok and returns back the response.
600
+ * Attempts to connect to Anrok and returns back the response
601
+ */
602
+ getTaxProviderAnrokTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTestResult>;
540
603
  /**
541
604
  * Retrieves the Avalara tax provider.
542
605
  * Retrieve the Avalara tax provider
@@ -667,6 +730,16 @@ export declare class TaxApi extends runtime.BaseAPI implements TaxApiInterface {
667
730
  * Toggle a tax provider to active
668
731
  */
669
732
  setActiveTaxProvider(requestParameters: SetActiveTaxProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderActivateResult>;
733
+ /**
734
+ * Update the Anrok tax provider.
735
+ * Update the Anrok tax provider
736
+ */
737
+ updateTaxProviderAnrokRaw(requestParameters: UpdateTaxProviderAnrokRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderAnrok>>;
738
+ /**
739
+ * Update the Anrok tax provider.
740
+ * Update the Anrok tax provider
741
+ */
742
+ updateTaxProviderAnrok(requestParameters: UpdateTaxProviderAnrokRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrok>;
670
743
  /**
671
744
  * Update the Avalara tax provider.
672
745
  * Update the Avalara tax provider
@@ -385,6 +385,118 @@ var TaxApi = /** @class */ (function (_super) {
385
385
  });
386
386
  });
387
387
  };
388
+ /**
389
+ * Retrieves the Anrok tax provider.
390
+ * Retrieve the Anrok tax provider
391
+ */
392
+ TaxApi.prototype.getTaxProviderAnrokRaw = function (initOverrides) {
393
+ return __awaiter(this, void 0, void 0, function () {
394
+ var queryParameters, headerParameters, _a, _b, response;
395
+ return __generator(this, function (_c) {
396
+ switch (_c.label) {
397
+ case 0:
398
+ queryParameters = {};
399
+ headerParameters = {};
400
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
401
+ // oauth required
402
+ _a = headerParameters;
403
+ _b = "Authorization";
404
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["tax_read"])];
405
+ case 1:
406
+ // oauth required
407
+ _a[_b] = _c.sent();
408
+ _c.label = 2;
409
+ case 2:
410
+ if (this.configuration && this.configuration.apiKey) {
411
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
412
+ }
413
+ return [4 /*yield*/, this.request({
414
+ path: "/tax/providers/anrok",
415
+ method: 'GET',
416
+ headers: headerParameters,
417
+ query: queryParameters,
418
+ }, initOverrides)];
419
+ case 3:
420
+ response = _c.sent();
421
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.TaxProviderAnrokFromJSON)(jsonValue); })];
422
+ }
423
+ });
424
+ });
425
+ };
426
+ /**
427
+ * Retrieves the Anrok tax provider.
428
+ * Retrieve the Anrok tax provider
429
+ */
430
+ TaxApi.prototype.getTaxProviderAnrok = function (initOverrides) {
431
+ return __awaiter(this, void 0, void 0, function () {
432
+ var response;
433
+ return __generator(this, function (_a) {
434
+ switch (_a.label) {
435
+ case 0: return [4 /*yield*/, this.getTaxProviderAnrokRaw(initOverrides)];
436
+ case 1:
437
+ response = _a.sent();
438
+ return [4 /*yield*/, response.value()];
439
+ case 2: return [2 /*return*/, _a.sent()];
440
+ }
441
+ });
442
+ });
443
+ };
444
+ /**
445
+ * Attempts to connect to Anrok and returns back the response.
446
+ * Attempts to connect to Anrok and returns back the response
447
+ */
448
+ TaxApi.prototype.getTaxProviderAnrokTestRaw = function (initOverrides) {
449
+ return __awaiter(this, void 0, void 0, function () {
450
+ var queryParameters, headerParameters, _a, _b, response;
451
+ return __generator(this, function (_c) {
452
+ switch (_c.label) {
453
+ case 0:
454
+ queryParameters = {};
455
+ headerParameters = {};
456
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
457
+ // oauth required
458
+ _a = headerParameters;
459
+ _b = "Authorization";
460
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["tax_read"])];
461
+ case 1:
462
+ // oauth required
463
+ _a[_b] = _c.sent();
464
+ _c.label = 2;
465
+ case 2:
466
+ if (this.configuration && this.configuration.apiKey) {
467
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
468
+ }
469
+ return [4 /*yield*/, this.request({
470
+ path: "/tax/providers/anrok/test",
471
+ method: 'GET',
472
+ headers: headerParameters,
473
+ query: queryParameters,
474
+ }, initOverrides)];
475
+ case 3:
476
+ response = _c.sent();
477
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.TaxProviderTestResultFromJSON)(jsonValue); })];
478
+ }
479
+ });
480
+ });
481
+ };
482
+ /**
483
+ * Attempts to connect to Anrok and returns back the response.
484
+ * Attempts to connect to Anrok and returns back the response
485
+ */
486
+ TaxApi.prototype.getTaxProviderAnrokTest = function (initOverrides) {
487
+ return __awaiter(this, void 0, void 0, function () {
488
+ var response;
489
+ return __generator(this, function (_a) {
490
+ switch (_a.label) {
491
+ case 0: return [4 /*yield*/, this.getTaxProviderAnrokTestRaw(initOverrides)];
492
+ case 1:
493
+ response = _a.sent();
494
+ return [4 /*yield*/, response.value()];
495
+ case 2: return [2 /*return*/, _a.sent()];
496
+ }
497
+ });
498
+ });
499
+ };
388
500
  /**
389
501
  * Retrieves the Avalara tax provider.
390
502
  * Retrieve the Avalara tax provider
@@ -1134,6 +1246,67 @@ var TaxApi = /** @class */ (function (_super) {
1134
1246
  });
1135
1247
  });
1136
1248
  };
1249
+ /**
1250
+ * Update the Anrok tax provider.
1251
+ * Update the Anrok tax provider
1252
+ */
1253
+ TaxApi.prototype.updateTaxProviderAnrokRaw = function (requestParameters, initOverrides) {
1254
+ return __awaiter(this, void 0, void 0, function () {
1255
+ var queryParameters, headerParameters, _a, _b, response;
1256
+ return __generator(this, function (_c) {
1257
+ switch (_c.label) {
1258
+ case 0:
1259
+ if (requestParameters.taxProviderAnrok === null || requestParameters.taxProviderAnrok === undefined) {
1260
+ throw new runtime.RequiredError('taxProviderAnrok', 'Required parameter requestParameters.taxProviderAnrok was null or undefined when calling updateTaxProviderAnrok.');
1261
+ }
1262
+ queryParameters = {};
1263
+ headerParameters = {};
1264
+ headerParameters['Content-Type'] = 'application/json';
1265
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1266
+ // oauth required
1267
+ _a = headerParameters;
1268
+ _b = "Authorization";
1269
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["tax_write"])];
1270
+ case 1:
1271
+ // oauth required
1272
+ _a[_b] = _c.sent();
1273
+ _c.label = 2;
1274
+ case 2:
1275
+ if (this.configuration && this.configuration.apiKey) {
1276
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
1277
+ }
1278
+ return [4 /*yield*/, this.request({
1279
+ path: "/tax/providers/anrok",
1280
+ method: 'POST',
1281
+ headers: headerParameters,
1282
+ query: queryParameters,
1283
+ body: (0, models_1.TaxProviderAnrokToJSON)(requestParameters.taxProviderAnrok),
1284
+ }, initOverrides)];
1285
+ case 3:
1286
+ response = _c.sent();
1287
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.TaxProviderAnrokFromJSON)(jsonValue); })];
1288
+ }
1289
+ });
1290
+ });
1291
+ };
1292
+ /**
1293
+ * Update the Anrok tax provider.
1294
+ * Update the Anrok tax provider
1295
+ */
1296
+ TaxApi.prototype.updateTaxProviderAnrok = function (requestParameters, initOverrides) {
1297
+ return __awaiter(this, void 0, void 0, function () {
1298
+ var response;
1299
+ return __generator(this, function (_a) {
1300
+ switch (_a.label) {
1301
+ case 0: return [4 /*yield*/, this.updateTaxProviderAnrokRaw(requestParameters, initOverrides)];
1302
+ case 1:
1303
+ response = _a.sent();
1304
+ return [4 /*yield*/, response.value()];
1305
+ case 2: return [2 /*return*/, _a.sent()];
1306
+ }
1307
+ });
1308
+ });
1309
+ };
1137
1310
  /**
1138
1311
  * Update the Avalara tax provider.
1139
1312
  * Update the Avalara tax provider
@@ -0,0 +1,55 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AnrokConfig
16
+ */
17
+ export interface AnrokConfig {
18
+ /**
19
+ * Anrok API key
20
+ * @type {string}
21
+ * @memberof AnrokConfig
22
+ */
23
+ api_key?: string;
24
+ /**
25
+ * Default Anrok Product ID, used for cart items that do not have their own Anrok Product ID assigned
26
+ * @type {string}
27
+ * @memberof AnrokConfig
28
+ */
29
+ default_product_id?: string;
30
+ /**
31
+ * True if this Anrok configuration is to estimate taxes only and not report placed orders to Anrok
32
+ * @type {boolean}
33
+ * @memberof AnrokConfig
34
+ */
35
+ estimate_only?: boolean;
36
+ /**
37
+ * Date/time of the connection test to Anrok
38
+ * @type {string}
39
+ * @memberof AnrokConfig
40
+ */
41
+ last_test_dts?: string;
42
+ /**
43
+ * Test results of the last connection test to Anrok
44
+ * @type {string}
45
+ * @memberof AnrokConfig
46
+ */
47
+ test_results?: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AnrokConfig interface.
51
+ */
52
+ export declare function instanceOfAnrokConfig(value: object): boolean;
53
+ export declare function AnrokConfigFromJSON(json: any): AnrokConfig;
54
+ export declare function AnrokConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnrokConfig;
55
+ export declare function AnrokConfigToJSON(value?: AnrokConfig | null): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AnrokConfigToJSON = exports.AnrokConfigFromJSONTyped = exports.AnrokConfigFromJSON = exports.instanceOfAnrokConfig = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the AnrokConfig interface.
20
+ */
21
+ function instanceOfAnrokConfig(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfAnrokConfig = instanceOfAnrokConfig;
26
+ function AnrokConfigFromJSON(json) {
27
+ return AnrokConfigFromJSONTyped(json, false);
28
+ }
29
+ exports.AnrokConfigFromJSON = AnrokConfigFromJSON;
30
+ function AnrokConfigFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'api_key': !(0, runtime_1.exists)(json, 'api_key') ? undefined : json['api_key'],
36
+ 'default_product_id': !(0, runtime_1.exists)(json, 'default_product_id') ? undefined : json['default_product_id'],
37
+ 'estimate_only': !(0, runtime_1.exists)(json, 'estimate_only') ? undefined : json['estimate_only'],
38
+ 'last_test_dts': !(0, runtime_1.exists)(json, 'last_test_dts') ? undefined : json['last_test_dts'],
39
+ 'test_results': !(0, runtime_1.exists)(json, 'test_results') ? undefined : json['test_results'],
40
+ };
41
+ }
42
+ exports.AnrokConfigFromJSONTyped = AnrokConfigFromJSONTyped;
43
+ function AnrokConfigToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'api_key': value.api_key,
52
+ 'default_product_id': value.default_product_id,
53
+ 'estimate_only': value.estimate_only,
54
+ 'last_test_dts': value.last_test_dts,
55
+ 'test_results': value.test_results,
56
+ };
57
+ }
58
+ exports.AnrokConfigToJSON = AnrokConfigToJSON;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AnrokConfig } from './AnrokConfig';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TaxProviderAnrok
17
+ */
18
+ export interface TaxProviderAnrok {
19
+ /**
20
+ *
21
+ * @type {AnrokConfig}
22
+ * @memberof TaxProviderAnrok
23
+ */
24
+ _configuration?: AnrokConfig;
25
+ /**
26
+ * Description
27
+ * @type {string}
28
+ * @memberof TaxProviderAnrok
29
+ */
30
+ description?: string;
31
+ /**
32
+ * Selected
33
+ * @type {boolean}
34
+ * @memberof TaxProviderAnrok
35
+ */
36
+ selected?: boolean;
37
+ /**
38
+ * Title
39
+ * @type {string}
40
+ * @memberof TaxProviderAnrok
41
+ */
42
+ title?: string;
43
+ }
44
+ /**
45
+ * Check if a given object implements the TaxProviderAnrok interface.
46
+ */
47
+ export declare function instanceOfTaxProviderAnrok(value: object): boolean;
48
+ export declare function TaxProviderAnrokFromJSON(json: any): TaxProviderAnrok;
49
+ export declare function TaxProviderAnrokFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaxProviderAnrok;
50
+ export declare function TaxProviderAnrokToJSON(value?: TaxProviderAnrok | null): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TaxProviderAnrokToJSON = exports.TaxProviderAnrokFromJSONTyped = exports.TaxProviderAnrokFromJSON = exports.instanceOfTaxProviderAnrok = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var AnrokConfig_1 = require("./AnrokConfig");
19
+ /**
20
+ * Check if a given object implements the TaxProviderAnrok interface.
21
+ */
22
+ function instanceOfTaxProviderAnrok(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfTaxProviderAnrok = instanceOfTaxProviderAnrok;
27
+ function TaxProviderAnrokFromJSON(json) {
28
+ return TaxProviderAnrokFromJSONTyped(json, false);
29
+ }
30
+ exports.TaxProviderAnrokFromJSON = TaxProviderAnrokFromJSON;
31
+ function TaxProviderAnrokFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ '_configuration': !(0, runtime_1.exists)(json, 'configuration') ? undefined : (0, AnrokConfig_1.AnrokConfigFromJSON)(json['configuration']),
37
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
38
+ 'selected': !(0, runtime_1.exists)(json, 'selected') ? undefined : json['selected'],
39
+ 'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['title'],
40
+ };
41
+ }
42
+ exports.TaxProviderAnrokFromJSONTyped = TaxProviderAnrokFromJSONTyped;
43
+ function TaxProviderAnrokToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'configuration': (0, AnrokConfig_1.AnrokConfigToJSON)(value._configuration),
52
+ 'description': value.description,
53
+ 'selected': value.selected,
54
+ 'title': value.title,
55
+ };
56
+ }
57
+ exports.TaxProviderAnrokToJSON = TaxProviderAnrokToJSON;
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import { ModelError } from './ModelError';
13
13
  import { ResponseMetadata } from './ResponseMetadata';
14
+ import { TaxProviderAnrok } from './TaxProviderAnrok';
14
15
  import { TaxProviderAvalara } from './TaxProviderAvalara';
15
16
  import { TaxProviderSelf } from './TaxProviderSelf';
16
17
  import { TaxProviderSovos } from './TaxProviderSovos';
@@ -23,6 +24,12 @@ import { Warning } from './Warning';
23
24
  * @interface TaxProvidersResponse
24
25
  */
25
26
  export interface TaxProvidersResponse {
27
+ /**
28
+ *
29
+ * @type {TaxProviderAnrok}
30
+ * @memberof TaxProvidersResponse
31
+ */
32
+ anrok?: TaxProviderAnrok;
26
33
  /**
27
34
  *
28
35
  * @type {TaxProviderAvalara}
@@ -17,6 +17,7 @@ exports.TaxProvidersResponseToJSON = exports.TaxProvidersResponseFromJSONTyped =
17
17
  var runtime_1 = require("../runtime");
18
18
  var ModelError_1 = require("./ModelError");
19
19
  var ResponseMetadata_1 = require("./ResponseMetadata");
20
+ var TaxProviderAnrok_1 = require("./TaxProviderAnrok");
20
21
  var TaxProviderAvalara_1 = require("./TaxProviderAvalara");
21
22
  var TaxProviderSelf_1 = require("./TaxProviderSelf");
22
23
  var TaxProviderSovos_1 = require("./TaxProviderSovos");
@@ -40,6 +41,7 @@ function TaxProvidersResponseFromJSONTyped(json, ignoreDiscriminator) {
40
41
  return json;
41
42
  }
42
43
  return {
44
+ 'anrok': !(0, runtime_1.exists)(json, 'anrok') ? undefined : (0, TaxProviderAnrok_1.TaxProviderAnrokFromJSON)(json['anrok']),
43
45
  'avalara': !(0, runtime_1.exists)(json, 'avalara') ? undefined : (0, TaxProviderAvalara_1.TaxProviderAvalaraFromJSON)(json['avalara']),
44
46
  'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
45
47
  'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
@@ -60,6 +62,7 @@ function TaxProvidersResponseToJSON(value) {
60
62
  return null;
61
63
  }
62
64
  return {
65
+ 'anrok': (0, TaxProviderAnrok_1.TaxProviderAnrokToJSON)(value.anrok),
63
66
  'avalara': (0, TaxProviderAvalara_1.TaxProviderAvalaraToJSON)(value.avalara),
64
67
  'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
65
68
  'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
@@ -25,6 +25,7 @@ export * from './AffiliateResponse';
25
25
  export * from './AffiliateTierRelationship';
26
26
  export * from './AffiliatesResponse';
27
27
  export * from './AgentSummary';
28
+ export * from './AnrokConfig';
28
29
  export * from './ApiUserApplicationProfile';
29
30
  export * from './ApplyLibraryItemRequest';
30
31
  export * from './ApplyLibraryItemResponse';
@@ -955,6 +956,7 @@ export * from './TaxCounty';
955
956
  export * from './TaxJarConfig';
956
957
  export * from './TaxPostalCode';
957
958
  export * from './TaxProviderActivateResult';
959
+ export * from './TaxProviderAnrok';
958
960
  export * from './TaxProviderAvalara';
959
961
  export * from './TaxProviderAvalaraCompaniesResult';
960
962
  export * from './TaxProviderAvalaraCompany';
@@ -43,6 +43,7 @@ __exportStar(require("./AffiliateResponse"), exports);
43
43
  __exportStar(require("./AffiliateTierRelationship"), exports);
44
44
  __exportStar(require("./AffiliatesResponse"), exports);
45
45
  __exportStar(require("./AgentSummary"), exports);
46
+ __exportStar(require("./AnrokConfig"), exports);
46
47
  __exportStar(require("./ApiUserApplicationProfile"), exports);
47
48
  __exportStar(require("./ApplyLibraryItemRequest"), exports);
48
49
  __exportStar(require("./ApplyLibraryItemResponse"), exports);
@@ -973,6 +974,7 @@ __exportStar(require("./TaxCounty"), exports);
973
974
  __exportStar(require("./TaxJarConfig"), exports);
974
975
  __exportStar(require("./TaxPostalCode"), exports);
975
976
  __exportStar(require("./TaxProviderActivateResult"), exports);
977
+ __exportStar(require("./TaxProviderAnrok"), exports);
976
978
  __exportStar(require("./TaxProviderAvalara"), exports);
977
979
  __exportStar(require("./TaxProviderAvalaraCompaniesResult"), exports);
978
980
  __exportStar(require("./TaxProviderAvalaraCompany"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.111",
3
+ "version": "4.1.113",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -33,6 +33,9 @@ import {
33
33
  TaxProviderActivateResult,
34
34
  TaxProviderActivateResultFromJSON,
35
35
  TaxProviderActivateResultToJSON,
36
+ TaxProviderAnrok,
37
+ TaxProviderAnrokFromJSON,
38
+ TaxProviderAnrokToJSON,
36
39
  TaxProviderAvalara,
37
40
  TaxProviderAvalaraFromJSON,
38
41
  TaxProviderAvalaraToJSON,
@@ -111,6 +114,10 @@ export interface SetActiveTaxProviderRequest {
111
114
  providerName: string;
112
115
  }
113
116
 
117
+ export interface UpdateTaxProviderAnrokRequest {
118
+ taxProviderAnrok: TaxProviderAnrok;
119
+ }
120
+
114
121
  export interface UpdateTaxProviderAvalaraRequest {
115
122
  taxProviderAvalara: TaxProviderAvalara;
116
123
  }
@@ -248,6 +255,36 @@ export interface TaxApiInterface {
248
255
  */
249
256
  deleteTaxProviderSelfState(requestParameters: DeleteTaxProviderSelfStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
250
257
 
258
+ /**
259
+ * Retrieves the Anrok tax provider.
260
+ * @summary Retrieve the Anrok tax provider
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ * @memberof TaxApiInterface
264
+ */
265
+ getTaxProviderAnrokRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderAnrok>>;
266
+
267
+ /**
268
+ * Retrieves the Anrok tax provider.
269
+ * Retrieve the Anrok tax provider
270
+ */
271
+ getTaxProviderAnrok(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrok>;
272
+
273
+ /**
274
+ * Attempts to connect to Anrok and returns back the response.
275
+ * @summary Attempts to connect to Anrok and returns back the response
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ * @memberof TaxApiInterface
279
+ */
280
+ getTaxProviderAnrokTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTestResult>>;
281
+
282
+ /**
283
+ * Attempts to connect to Anrok and returns back the response.
284
+ * Attempts to connect to Anrok and returns back the response
285
+ */
286
+ getTaxProviderAnrokTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTestResult>;
287
+
251
288
  /**
252
289
  * Retrieves the Avalara tax provider.
253
290
  * @summary Retrieve the Avalara tax provider
@@ -449,6 +486,22 @@ export interface TaxApiInterface {
449
486
  */
450
487
  setActiveTaxProvider(requestParameters: SetActiveTaxProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderActivateResult>;
451
488
 
489
+ /**
490
+ * Update the Anrok tax provider.
491
+ * @summary Update the Anrok tax provider
492
+ * @param {TaxProviderAnrok} taxProviderAnrok TaxProviderAnrok object
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ * @memberof TaxApiInterface
496
+ */
497
+ updateTaxProviderAnrokRaw(requestParameters: UpdateTaxProviderAnrokRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderAnrok>>;
498
+
499
+ /**
500
+ * Update the Anrok tax provider.
501
+ * Update the Anrok tax provider
502
+ */
503
+ updateTaxProviderAnrok(requestParameters: UpdateTaxProviderAnrokRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrok>;
504
+
452
505
  /**
453
506
  * Update the Avalara tax provider.
454
507
  * @summary Update the Avalara tax provider
@@ -856,6 +909,80 @@ export class TaxApi extends runtime.BaseAPI implements TaxApiInterface {
856
909
  await this.deleteTaxProviderSelfStateRaw(requestParameters, initOverrides);
857
910
  }
858
911
 
912
+ /**
913
+ * Retrieves the Anrok tax provider.
914
+ * Retrieve the Anrok tax provider
915
+ */
916
+ async getTaxProviderAnrokRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderAnrok>> {
917
+ const queryParameters: any = {};
918
+
919
+ const headerParameters: runtime.HTTPHeaders = {};
920
+
921
+ if (this.configuration && this.configuration.accessToken) {
922
+ // oauth required
923
+ headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["tax_read"]);
924
+ }
925
+
926
+ if (this.configuration && this.configuration.apiKey) {
927
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
928
+ }
929
+
930
+ const response = await this.request({
931
+ path: `/tax/providers/anrok`,
932
+ method: 'GET',
933
+ headers: headerParameters,
934
+ query: queryParameters,
935
+ }, initOverrides);
936
+
937
+ return new runtime.JSONApiResponse(response, (jsonValue) => TaxProviderAnrokFromJSON(jsonValue));
938
+ }
939
+
940
+ /**
941
+ * Retrieves the Anrok tax provider.
942
+ * Retrieve the Anrok tax provider
943
+ */
944
+ async getTaxProviderAnrok(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrok> {
945
+ const response = await this.getTaxProviderAnrokRaw(initOverrides);
946
+ return await response.value();
947
+ }
948
+
949
+ /**
950
+ * Attempts to connect to Anrok and returns back the response.
951
+ * Attempts to connect to Anrok and returns back the response
952
+ */
953
+ async getTaxProviderAnrokTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTestResult>> {
954
+ const queryParameters: any = {};
955
+
956
+ const headerParameters: runtime.HTTPHeaders = {};
957
+
958
+ if (this.configuration && this.configuration.accessToken) {
959
+ // oauth required
960
+ headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["tax_read"]);
961
+ }
962
+
963
+ if (this.configuration && this.configuration.apiKey) {
964
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
965
+ }
966
+
967
+ const response = await this.request({
968
+ path: `/tax/providers/anrok/test`,
969
+ method: 'GET',
970
+ headers: headerParameters,
971
+ query: queryParameters,
972
+ }, initOverrides);
973
+
974
+ return new runtime.JSONApiResponse(response, (jsonValue) => TaxProviderTestResultFromJSON(jsonValue));
975
+ }
976
+
977
+ /**
978
+ * Attempts to connect to Anrok and returns back the response.
979
+ * Attempts to connect to Anrok and returns back the response
980
+ */
981
+ async getTaxProviderAnrokTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTestResult> {
982
+ const response = await this.getTaxProviderAnrokTestRaw(initOverrides);
983
+ return await response.value();
984
+ }
985
+
859
986
  /**
860
987
  * Retrieves the Avalara tax provider.
861
988
  * Retrieve the Avalara tax provider
@@ -1364,6 +1491,50 @@ export class TaxApi extends runtime.BaseAPI implements TaxApiInterface {
1364
1491
  return await response.value();
1365
1492
  }
1366
1493
 
1494
+ /**
1495
+ * Update the Anrok tax provider.
1496
+ * Update the Anrok tax provider
1497
+ */
1498
+ async updateTaxProviderAnrokRaw(requestParameters: UpdateTaxProviderAnrokRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderAnrok>> {
1499
+ if (requestParameters.taxProviderAnrok === null || requestParameters.taxProviderAnrok === undefined) {
1500
+ throw new runtime.RequiredError('taxProviderAnrok','Required parameter requestParameters.taxProviderAnrok was null or undefined when calling updateTaxProviderAnrok.');
1501
+ }
1502
+
1503
+ const queryParameters: any = {};
1504
+
1505
+ const headerParameters: runtime.HTTPHeaders = {};
1506
+
1507
+ headerParameters['Content-Type'] = 'application/json';
1508
+
1509
+ if (this.configuration && this.configuration.accessToken) {
1510
+ // oauth required
1511
+ headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["tax_write"]);
1512
+ }
1513
+
1514
+ if (this.configuration && this.configuration.apiKey) {
1515
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
1516
+ }
1517
+
1518
+ const response = await this.request({
1519
+ path: `/tax/providers/anrok`,
1520
+ method: 'POST',
1521
+ headers: headerParameters,
1522
+ query: queryParameters,
1523
+ body: TaxProviderAnrokToJSON(requestParameters.taxProviderAnrok),
1524
+ }, initOverrides);
1525
+
1526
+ return new runtime.JSONApiResponse(response, (jsonValue) => TaxProviderAnrokFromJSON(jsonValue));
1527
+ }
1528
+
1529
+ /**
1530
+ * Update the Anrok tax provider.
1531
+ * Update the Anrok tax provider
1532
+ */
1533
+ async updateTaxProviderAnrok(requestParameters: UpdateTaxProviderAnrokRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrok> {
1534
+ const response = await this.updateTaxProviderAnrokRaw(requestParameters, initOverrides);
1535
+ return await response.value();
1536
+ }
1537
+
1367
1538
  /**
1368
1539
  * Update the Avalara tax provider.
1369
1540
  * Update the Avalara tax provider
@@ -0,0 +1,99 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AnrokConfig
20
+ */
21
+ export interface AnrokConfig {
22
+ /**
23
+ * Anrok API key
24
+ * @type {string}
25
+ * @memberof AnrokConfig
26
+ */
27
+ api_key?: string;
28
+ /**
29
+ * Default Anrok Product ID, used for cart items that do not have their own Anrok Product ID assigned
30
+ * @type {string}
31
+ * @memberof AnrokConfig
32
+ */
33
+ default_product_id?: string;
34
+ /**
35
+ * True if this Anrok configuration is to estimate taxes only and not report placed orders to Anrok
36
+ * @type {boolean}
37
+ * @memberof AnrokConfig
38
+ */
39
+ estimate_only?: boolean;
40
+ /**
41
+ * Date/time of the connection test to Anrok
42
+ * @type {string}
43
+ * @memberof AnrokConfig
44
+ */
45
+ last_test_dts?: string;
46
+ /**
47
+ * Test results of the last connection test to Anrok
48
+ * @type {string}
49
+ * @memberof AnrokConfig
50
+ */
51
+ test_results?: string;
52
+ }
53
+
54
+
55
+
56
+ /**
57
+ * Check if a given object implements the AnrokConfig interface.
58
+ */
59
+ export function instanceOfAnrokConfig(value: object): boolean {
60
+ let isInstance = true;
61
+
62
+ return isInstance;
63
+ }
64
+
65
+ export function AnrokConfigFromJSON(json: any): AnrokConfig {
66
+ return AnrokConfigFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function AnrokConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnrokConfig {
70
+ if ((json === undefined) || (json === null)) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'api_key': !exists(json, 'api_key') ? undefined : json['api_key'],
76
+ 'default_product_id': !exists(json, 'default_product_id') ? undefined : json['default_product_id'],
77
+ 'estimate_only': !exists(json, 'estimate_only') ? undefined : json['estimate_only'],
78
+ 'last_test_dts': !exists(json, 'last_test_dts') ? undefined : json['last_test_dts'],
79
+ 'test_results': !exists(json, 'test_results') ? undefined : json['test_results'],
80
+ };
81
+ }
82
+
83
+ export function AnrokConfigToJSON(value?: AnrokConfig | null): any {
84
+ if (value === undefined) {
85
+ return undefined;
86
+ }
87
+ if (value === null) {
88
+ return null;
89
+ }
90
+ return {
91
+
92
+ 'api_key': value.api_key,
93
+ 'default_product_id': value.default_product_id,
94
+ 'estimate_only': value.estimate_only,
95
+ 'last_test_dts': value.last_test_dts,
96
+ 'test_results': value.test_results,
97
+ };
98
+ }
99
+
@@ -0,0 +1,98 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import {
17
+ AnrokConfig,
18
+ AnrokConfigFromJSON,
19
+ AnrokConfigFromJSONTyped,
20
+ AnrokConfigToJSON,
21
+ } from './AnrokConfig';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TaxProviderAnrok
27
+ */
28
+ export interface TaxProviderAnrok {
29
+ /**
30
+ *
31
+ * @type {AnrokConfig}
32
+ * @memberof TaxProviderAnrok
33
+ */
34
+ _configuration?: AnrokConfig;
35
+ /**
36
+ * Description
37
+ * @type {string}
38
+ * @memberof TaxProviderAnrok
39
+ */
40
+ description?: string;
41
+ /**
42
+ * Selected
43
+ * @type {boolean}
44
+ * @memberof TaxProviderAnrok
45
+ */
46
+ selected?: boolean;
47
+ /**
48
+ * Title
49
+ * @type {string}
50
+ * @memberof TaxProviderAnrok
51
+ */
52
+ title?: string;
53
+ }
54
+
55
+
56
+
57
+ /**
58
+ * Check if a given object implements the TaxProviderAnrok interface.
59
+ */
60
+ export function instanceOfTaxProviderAnrok(value: object): boolean {
61
+ let isInstance = true;
62
+
63
+ return isInstance;
64
+ }
65
+
66
+ export function TaxProviderAnrokFromJSON(json: any): TaxProviderAnrok {
67
+ return TaxProviderAnrokFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function TaxProviderAnrokFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaxProviderAnrok {
71
+ if ((json === undefined) || (json === null)) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ '_configuration': !exists(json, 'configuration') ? undefined : AnrokConfigFromJSON(json['configuration']),
77
+ 'description': !exists(json, 'description') ? undefined : json['description'],
78
+ 'selected': !exists(json, 'selected') ? undefined : json['selected'],
79
+ 'title': !exists(json, 'title') ? undefined : json['title'],
80
+ };
81
+ }
82
+
83
+ export function TaxProviderAnrokToJSON(value?: TaxProviderAnrok | null): any {
84
+ if (value === undefined) {
85
+ return undefined;
86
+ }
87
+ if (value === null) {
88
+ return null;
89
+ }
90
+ return {
91
+
92
+ 'configuration': AnrokConfigToJSON(value._configuration),
93
+ 'description': value.description,
94
+ 'selected': value.selected,
95
+ 'title': value.title,
96
+ };
97
+ }
98
+
@@ -25,6 +25,12 @@ import {
25
25
  ResponseMetadataFromJSONTyped,
26
26
  ResponseMetadataToJSON,
27
27
  } from './ResponseMetadata';
28
+ import {
29
+ TaxProviderAnrok,
30
+ TaxProviderAnrokFromJSON,
31
+ TaxProviderAnrokFromJSONTyped,
32
+ TaxProviderAnrokToJSON,
33
+ } from './TaxProviderAnrok';
28
34
  import {
29
35
  TaxProviderAvalara,
30
36
  TaxProviderAvalaraFromJSON,
@@ -68,6 +74,12 @@ import {
68
74
  * @interface TaxProvidersResponse
69
75
  */
70
76
  export interface TaxProvidersResponse {
77
+ /**
78
+ *
79
+ * @type {TaxProviderAnrok}
80
+ * @memberof TaxProvidersResponse
81
+ */
82
+ anrok?: TaxProviderAnrok;
71
83
  /**
72
84
  *
73
85
  * @type {TaxProviderAvalara}
@@ -145,6 +157,7 @@ export function TaxProvidersResponseFromJSONTyped(json: any, ignoreDiscriminator
145
157
  }
146
158
  return {
147
159
 
160
+ 'anrok': !exists(json, 'anrok') ? undefined : TaxProviderAnrokFromJSON(json['anrok']),
148
161
  'avalara': !exists(json, 'avalara') ? undefined : TaxProviderAvalaraFromJSON(json['avalara']),
149
162
  'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
150
163
  'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
@@ -166,6 +179,7 @@ export function TaxProvidersResponseToJSON(value?: TaxProvidersResponse | null):
166
179
  }
167
180
  return {
168
181
 
182
+ 'anrok': TaxProviderAnrokToJSON(value.anrok),
169
183
  'avalara': TaxProviderAvalaraToJSON(value.avalara),
170
184
  'error': ModelErrorToJSON(value.error),
171
185
  'metadata': ResponseMetadataToJSON(value.metadata),
@@ -27,6 +27,7 @@ export * from './AffiliateResponse';
27
27
  export * from './AffiliateTierRelationship';
28
28
  export * from './AffiliatesResponse';
29
29
  export * from './AgentSummary';
30
+ export * from './AnrokConfig';
30
31
  export * from './ApiUserApplicationProfile';
31
32
  export * from './ApplyLibraryItemRequest';
32
33
  export * from './ApplyLibraryItemResponse';
@@ -957,6 +958,7 @@ export * from './TaxCounty';
957
958
  export * from './TaxJarConfig';
958
959
  export * from './TaxPostalCode';
959
960
  export * from './TaxProviderActivateResult';
961
+ export * from './TaxProviderAnrok';
960
962
  export * from './TaxProviderAvalara';
961
963
  export * from './TaxProviderAvalaraCompaniesResult';
962
964
  export * from './TaxProviderAvalaraCompany';