ultracart_rest_api_v2_typescript 4.1.175 → 4.1.176

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.
@@ -1125,6 +1125,7 @@ src/models/StoreFront.ts
1125
1125
  src/models/StoreFrontPageContentAttribute.ts
1126
1126
  src/models/StoreFrontsResponse.ts
1127
1127
  src/models/TaxCity.ts
1128
+ src/models/TaxCloudConfig.ts
1128
1129
  src/models/TaxCountry.ts
1129
1130
  src/models/TaxCountryCode.ts
1130
1131
  src/models/TaxCounty.ts
@@ -1132,6 +1133,8 @@ src/models/TaxJarConfig.ts
1132
1133
  src/models/TaxPostalCode.ts
1133
1134
  src/models/TaxProviderActivateResult.ts
1134
1135
  src/models/TaxProviderAnrok.ts
1136
+ src/models/TaxProviderAnrokProduct.ts
1137
+ src/models/TaxProviderAnrokTestResult.ts
1135
1138
  src/models/TaxProviderAvalara.ts
1136
1139
  src/models/TaxProviderAvalaraCompaniesResult.ts
1137
1140
  src/models/TaxProviderAvalaraCompany.ts
@@ -1139,6 +1142,7 @@ src/models/TaxProviderSelf.ts
1139
1142
  src/models/TaxProviderSelfCountriesResponse.ts
1140
1143
  src/models/TaxProviderSelfRegionsResponse.ts
1141
1144
  src/models/TaxProviderSovos.ts
1145
+ src/models/TaxProviderTaxCloud.ts
1142
1146
  src/models/TaxProviderTaxJar.ts
1143
1147
  src/models/TaxProviderTestResult.ts
1144
1148
  src/models/TaxProviderUltraCart.ts
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # UltraCart Typescript SDK
2
- ## ultracart_rest_api_v2_typescript@4.1.175
2
+ ## ultracart_rest_api_v2_typescript@4.1.176
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.175 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.176 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -84,6 +84,7 @@ Not every change is committed to every SDK.
84
84
 
85
85
  | Version | Date | Comments |
86
86
  | --: | :-: | --- |
87
+ | 4.1.176 | 09/29/2026 | taxcloud tax provider testing |
87
88
  | 4.1.175 | 09/29/2026 | sfvb internal testing |
88
89
  | 4.1.174 | 09/25/2026 | sfvb internal testing |
89
90
  | 4.1.173 | 09/24/2026 | storefront communications flow re-entry setting |
@@ -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, TaxProviderAnrok, TaxProviderAvalara, TaxProviderAvalaraCompaniesResult, TaxProviderSelf, TaxProviderSelfCountriesResponse, TaxProviderSelfRegionsResponse, TaxProviderSovos, TaxProviderTaxJar, TaxProviderTestResult, TaxProviderUltraCart, TaxProvidersResponse, TaxState } from '../models';
13
+ import { TaxCity, TaxCountry, TaxCounty, TaxPostalCode, TaxProviderActivateResult, TaxProviderAnrok, TaxProviderAnrokTestResult, TaxProviderAvalara, TaxProviderAvalaraCompaniesResult, TaxProviderSelf, TaxProviderSelfCountriesResponse, TaxProviderSelfRegionsResponse, TaxProviderSovos, TaxProviderTaxCloud, TaxProviderTaxJar, TaxProviderTestResult, TaxProviderUltraCart, TaxProvidersResponse, TaxState } from '../models';
14
14
  export interface DeleteTaxProviderSelfCityRequest {
15
15
  city: string;
16
16
  taxCity: TaxCity;
@@ -77,6 +77,9 @@ export interface UpdateTaxProviderSelfStateRequest {
77
77
  export interface UpdateTaxProviderSovosRequest {
78
78
  taxProviderSovos: TaxProviderSovos;
79
79
  }
80
+ export interface UpdateTaxProviderTaxCloudRequest {
81
+ taxProviderTaxcloud: TaxProviderTaxCloud;
82
+ }
80
83
  export interface UpdateTaxProviderTaxJarRequest {
81
84
  taxProviderTaxJar: TaxProviderTaxJar;
82
85
  }
@@ -179,18 +182,18 @@ export interface TaxApiInterface {
179
182
  */
180
183
  getTaxProviderAnrok(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrok>;
181
184
  /**
182
- * Attempts to connect to Anrok and returns back the response.
185
+ * Attempts to connect to Anrok and returns back the response, including the products configured on the merchant\'s Anrok account.
183
186
  * @summary Attempts to connect to Anrok and returns back the response
184
187
  * @param {*} [options] Override http request option.
185
188
  * @throws {RequiredError}
186
189
  * @memberof TaxApiInterface
187
190
  */
188
- getTaxProviderAnrokTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTestResult>>;
191
+ getTaxProviderAnrokTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderAnrokTestResult>>;
189
192
  /**
190
- * Attempts to connect to Anrok and returns back the response.
193
+ * Attempts to connect to Anrok and returns back the response, including the products configured on the merchant\'s Anrok account.
191
194
  * Attempts to connect to Anrok and returns back the response
192
195
  */
193
- getTaxProviderAnrokTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTestResult>;
196
+ getTaxProviderAnrokTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrokTestResult>;
194
197
  /**
195
198
  * Retrieves the Avalara tax provider.
196
199
  * @summary Retrieve the Avalara tax provider
@@ -297,6 +300,32 @@ export interface TaxApiInterface {
297
300
  * Attempts to connect to Sovos and returns back the response
298
301
  */
299
302
  getTaxProviderSovosTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTestResult>;
303
+ /**
304
+ * Retrieves the TaxCloud tax provider.
305
+ * @summary Retrieve the TaxCloud tax provider
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ * @memberof TaxApiInterface
309
+ */
310
+ getTaxProviderTaxCloudRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTaxCloud>>;
311
+ /**
312
+ * Retrieves the TaxCloud tax provider.
313
+ * Retrieve the TaxCloud tax provider
314
+ */
315
+ getTaxProviderTaxCloud(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTaxCloud>;
316
+ /**
317
+ * Attempts to connect to TaxCloud with the saved API key and Connection ID and returns back the response.
318
+ * @summary Attempts to connect to TaxCloud and returns back the response
319
+ * @param {*} [options] Override http request option.
320
+ * @throws {RequiredError}
321
+ * @memberof TaxApiInterface
322
+ */
323
+ getTaxProviderTaxCloudTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTestResult>>;
324
+ /**
325
+ * Attempts to connect to TaxCloud with the saved API key and Connection ID and returns back the response.
326
+ * Attempts to connect to TaxCloud and returns back the response
327
+ */
328
+ getTaxProviderTaxCloudTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTestResult>;
300
329
  /**
301
330
  * Retrieves the TaxJar tax provider.
302
331
  * @summary Retrieve the TaxJar tax provider
@@ -497,6 +526,20 @@ export interface TaxApiInterface {
497
526
  * Update the Sovos tax provider
498
527
  */
499
528
  updateTaxProviderSovos(requestParameters: UpdateTaxProviderSovosRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderSovos>;
529
+ /**
530
+ * Update the TaxCloud tax provider.
531
+ * @summary Update the TaxCloud tax provider
532
+ * @param {TaxProviderTaxCloud} taxProviderTaxcloud TaxProviderTaxCloud object
533
+ * @param {*} [options] Override http request option.
534
+ * @throws {RequiredError}
535
+ * @memberof TaxApiInterface
536
+ */
537
+ updateTaxProviderTaxCloudRaw(requestParameters: UpdateTaxProviderTaxCloudRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTaxCloud>>;
538
+ /**
539
+ * Update the TaxCloud tax provider.
540
+ * Update the TaxCloud tax provider
541
+ */
542
+ updateTaxProviderTaxCloud(requestParameters: UpdateTaxProviderTaxCloudRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTaxCloud>;
500
543
  /**
501
544
  * Update the TaxJar tax provider.
502
545
  * @summary Update the TaxJar tax provider
@@ -591,15 +634,15 @@ export declare class TaxApi extends runtime.BaseAPI implements TaxApiInterface {
591
634
  */
592
635
  getTaxProviderAnrok(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrok>;
593
636
  /**
594
- * Attempts to connect to Anrok and returns back the response.
637
+ * Attempts to connect to Anrok and returns back the response, including the products configured on the merchant\'s Anrok account.
595
638
  * Attempts to connect to Anrok and returns back the response
596
639
  */
597
- getTaxProviderAnrokTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTestResult>>;
640
+ getTaxProviderAnrokTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderAnrokTestResult>>;
598
641
  /**
599
- * Attempts to connect to Anrok and returns back the response.
642
+ * Attempts to connect to Anrok and returns back the response, including the products configured on the merchant\'s Anrok account.
600
643
  * Attempts to connect to Anrok and returns back the response
601
644
  */
602
- getTaxProviderAnrokTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTestResult>;
645
+ getTaxProviderAnrokTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderAnrokTestResult>;
603
646
  /**
604
647
  * Retrieves the Avalara tax provider.
605
648
  * Retrieve the Avalara tax provider
@@ -680,6 +723,26 @@ export declare class TaxApi extends runtime.BaseAPI implements TaxApiInterface {
680
723
  * Attempts to connect to Sovos and returns back the response
681
724
  */
682
725
  getTaxProviderSovosTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTestResult>;
726
+ /**
727
+ * Retrieves the TaxCloud tax provider.
728
+ * Retrieve the TaxCloud tax provider
729
+ */
730
+ getTaxProviderTaxCloudRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTaxCloud>>;
731
+ /**
732
+ * Retrieves the TaxCloud tax provider.
733
+ * Retrieve the TaxCloud tax provider
734
+ */
735
+ getTaxProviderTaxCloud(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTaxCloud>;
736
+ /**
737
+ * Attempts to connect to TaxCloud with the saved API key and Connection ID and returns back the response.
738
+ * Attempts to connect to TaxCloud and returns back the response
739
+ */
740
+ getTaxProviderTaxCloudTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTestResult>>;
741
+ /**
742
+ * Attempts to connect to TaxCloud with the saved API key and Connection ID and returns back the response.
743
+ * Attempts to connect to TaxCloud and returns back the response
744
+ */
745
+ getTaxProviderTaxCloudTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTestResult>;
683
746
  /**
684
747
  * Retrieves the TaxJar tax provider.
685
748
  * Retrieve the TaxJar tax provider
@@ -820,6 +883,16 @@ export declare class TaxApi extends runtime.BaseAPI implements TaxApiInterface {
820
883
  * Update the Sovos tax provider
821
884
  */
822
885
  updateTaxProviderSovos(requestParameters: UpdateTaxProviderSovosRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderSovos>;
886
+ /**
887
+ * Update the TaxCloud tax provider.
888
+ * Update the TaxCloud tax provider
889
+ */
890
+ updateTaxProviderTaxCloudRaw(requestParameters: UpdateTaxProviderTaxCloudRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxProviderTaxCloud>>;
891
+ /**
892
+ * Update the TaxCloud tax provider.
893
+ * Update the TaxCloud tax provider
894
+ */
895
+ updateTaxProviderTaxCloud(requestParameters: UpdateTaxProviderTaxCloudRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxProviderTaxCloud>;
823
896
  /**
824
897
  * Update the TaxJar tax provider.
825
898
  * Update the TaxJar tax provider
@@ -442,7 +442,7 @@ var TaxApi = /** @class */ (function (_super) {
442
442
  });
443
443
  };
444
444
  /**
445
- * Attempts to connect to Anrok and returns back the response.
445
+ * Attempts to connect to Anrok and returns back the response, including the products configured on the merchant\'s Anrok account.
446
446
  * Attempts to connect to Anrok and returns back the response
447
447
  */
448
448
  TaxApi.prototype.getTaxProviderAnrokTestRaw = function (initOverrides) {
@@ -474,13 +474,13 @@ var TaxApi = /** @class */ (function (_super) {
474
474
  }, initOverrides)];
475
475
  case 3:
476
476
  response = _c.sent();
477
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.TaxProviderTestResultFromJSON)(jsonValue); })];
477
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.TaxProviderAnrokTestResultFromJSON)(jsonValue); })];
478
478
  }
479
479
  });
480
480
  });
481
481
  };
482
482
  /**
483
- * Attempts to connect to Anrok and returns back the response.
483
+ * Attempts to connect to Anrok and returns back the response, including the products configured on the merchant\'s Anrok account.
484
484
  * Attempts to connect to Anrok and returns back the response
485
485
  */
486
486
  TaxApi.prototype.getTaxProviderAnrokTest = function (initOverrides) {
@@ -953,6 +953,118 @@ var TaxApi = /** @class */ (function (_super) {
953
953
  });
954
954
  });
955
955
  };
956
+ /**
957
+ * Retrieves the TaxCloud tax provider.
958
+ * Retrieve the TaxCloud tax provider
959
+ */
960
+ TaxApi.prototype.getTaxProviderTaxCloudRaw = function (initOverrides) {
961
+ return __awaiter(this, void 0, void 0, function () {
962
+ var queryParameters, headerParameters, _a, _b, response;
963
+ return __generator(this, function (_c) {
964
+ switch (_c.label) {
965
+ case 0:
966
+ queryParameters = {};
967
+ headerParameters = {};
968
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
969
+ // oauth required
970
+ _a = headerParameters;
971
+ _b = "Authorization";
972
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["tax_read"])];
973
+ case 1:
974
+ // oauth required
975
+ _a[_b] = _c.sent();
976
+ _c.label = 2;
977
+ case 2:
978
+ if (this.configuration && this.configuration.apiKey) {
979
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
980
+ }
981
+ return [4 /*yield*/, this.request({
982
+ path: "/tax/providers/taxcloud",
983
+ method: 'GET',
984
+ headers: headerParameters,
985
+ query: queryParameters,
986
+ }, initOverrides)];
987
+ case 3:
988
+ response = _c.sent();
989
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.TaxProviderTaxCloudFromJSON)(jsonValue); })];
990
+ }
991
+ });
992
+ });
993
+ };
994
+ /**
995
+ * Retrieves the TaxCloud tax provider.
996
+ * Retrieve the TaxCloud tax provider
997
+ */
998
+ TaxApi.prototype.getTaxProviderTaxCloud = function (initOverrides) {
999
+ return __awaiter(this, void 0, void 0, function () {
1000
+ var response;
1001
+ return __generator(this, function (_a) {
1002
+ switch (_a.label) {
1003
+ case 0: return [4 /*yield*/, this.getTaxProviderTaxCloudRaw(initOverrides)];
1004
+ case 1:
1005
+ response = _a.sent();
1006
+ return [4 /*yield*/, response.value()];
1007
+ case 2: return [2 /*return*/, _a.sent()];
1008
+ }
1009
+ });
1010
+ });
1011
+ };
1012
+ /**
1013
+ * Attempts to connect to TaxCloud with the saved API key and Connection ID and returns back the response.
1014
+ * Attempts to connect to TaxCloud and returns back the response
1015
+ */
1016
+ TaxApi.prototype.getTaxProviderTaxCloudTestRaw = function (initOverrides) {
1017
+ return __awaiter(this, void 0, void 0, function () {
1018
+ var queryParameters, headerParameters, _a, _b, response;
1019
+ return __generator(this, function (_c) {
1020
+ switch (_c.label) {
1021
+ case 0:
1022
+ queryParameters = {};
1023
+ headerParameters = {};
1024
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1025
+ // oauth required
1026
+ _a = headerParameters;
1027
+ _b = "Authorization";
1028
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["tax_read"])];
1029
+ case 1:
1030
+ // oauth required
1031
+ _a[_b] = _c.sent();
1032
+ _c.label = 2;
1033
+ case 2:
1034
+ if (this.configuration && this.configuration.apiKey) {
1035
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
1036
+ }
1037
+ return [4 /*yield*/, this.request({
1038
+ path: "/tax/providers/taxcloud/test",
1039
+ method: 'GET',
1040
+ headers: headerParameters,
1041
+ query: queryParameters,
1042
+ }, initOverrides)];
1043
+ case 3:
1044
+ response = _c.sent();
1045
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.TaxProviderTestResultFromJSON)(jsonValue); })];
1046
+ }
1047
+ });
1048
+ });
1049
+ };
1050
+ /**
1051
+ * Attempts to connect to TaxCloud with the saved API key and Connection ID and returns back the response.
1052
+ * Attempts to connect to TaxCloud and returns back the response
1053
+ */
1054
+ TaxApi.prototype.getTaxProviderTaxCloudTest = function (initOverrides) {
1055
+ return __awaiter(this, void 0, void 0, function () {
1056
+ var response;
1057
+ return __generator(this, function (_a) {
1058
+ switch (_a.label) {
1059
+ case 0: return [4 /*yield*/, this.getTaxProviderTaxCloudTestRaw(initOverrides)];
1060
+ case 1:
1061
+ response = _a.sent();
1062
+ return [4 /*yield*/, response.value()];
1063
+ case 2: return [2 /*return*/, _a.sent()];
1064
+ }
1065
+ });
1066
+ });
1067
+ };
956
1068
  /**
957
1069
  * Retrieves the TaxJar tax provider.
958
1070
  * Retrieve the TaxJar tax provider
@@ -1810,6 +1922,67 @@ var TaxApi = /** @class */ (function (_super) {
1810
1922
  });
1811
1923
  });
1812
1924
  };
1925
+ /**
1926
+ * Update the TaxCloud tax provider.
1927
+ * Update the TaxCloud tax provider
1928
+ */
1929
+ TaxApi.prototype.updateTaxProviderTaxCloudRaw = function (requestParameters, initOverrides) {
1930
+ return __awaiter(this, void 0, void 0, function () {
1931
+ var queryParameters, headerParameters, _a, _b, response;
1932
+ return __generator(this, function (_c) {
1933
+ switch (_c.label) {
1934
+ case 0:
1935
+ if (requestParameters.taxProviderTaxcloud === null || requestParameters.taxProviderTaxcloud === undefined) {
1936
+ throw new runtime.RequiredError('taxProviderTaxcloud', 'Required parameter requestParameters.taxProviderTaxcloud was null or undefined when calling updateTaxProviderTaxCloud.');
1937
+ }
1938
+ queryParameters = {};
1939
+ headerParameters = {};
1940
+ headerParameters['Content-Type'] = 'application/json';
1941
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1942
+ // oauth required
1943
+ _a = headerParameters;
1944
+ _b = "Authorization";
1945
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["tax_write"])];
1946
+ case 1:
1947
+ // oauth required
1948
+ _a[_b] = _c.sent();
1949
+ _c.label = 2;
1950
+ case 2:
1951
+ if (this.configuration && this.configuration.apiKey) {
1952
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
1953
+ }
1954
+ return [4 /*yield*/, this.request({
1955
+ path: "/tax/providers/taxcloud",
1956
+ method: 'POST',
1957
+ headers: headerParameters,
1958
+ query: queryParameters,
1959
+ body: (0, models_1.TaxProviderTaxCloudToJSON)(requestParameters.taxProviderTaxcloud),
1960
+ }, initOverrides)];
1961
+ case 3:
1962
+ response = _c.sent();
1963
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.TaxProviderTaxCloudFromJSON)(jsonValue); })];
1964
+ }
1965
+ });
1966
+ });
1967
+ };
1968
+ /**
1969
+ * Update the TaxCloud tax provider.
1970
+ * Update the TaxCloud tax provider
1971
+ */
1972
+ TaxApi.prototype.updateTaxProviderTaxCloud = function (requestParameters, initOverrides) {
1973
+ return __awaiter(this, void 0, void 0, function () {
1974
+ var response;
1975
+ return __generator(this, function (_a) {
1976
+ switch (_a.label) {
1977
+ case 0: return [4 /*yield*/, this.updateTaxProviderTaxCloudRaw(requestParameters, initOverrides)];
1978
+ case 1:
1979
+ response = _a.sent();
1980
+ return [4 /*yield*/, response.value()];
1981
+ case 2: return [2 /*return*/, _a.sent()];
1982
+ }
1983
+ });
1984
+ });
1985
+ };
1813
1986
  /**
1814
1987
  * Update the TaxJar tax provider.
1815
1988
  * Update the TaxJar tax provider
@@ -0,0 +1,67 @@
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 TaxCloudConfig
16
+ */
17
+ export interface TaxCloudConfig {
18
+ /**
19
+ * TaxCloud API key
20
+ * @type {string}
21
+ * @memberof TaxCloudConfig
22
+ */
23
+ api_key?: string;
24
+ /**
25
+ * TaxCloud Connection ID (a UUID) identifying the TaxCloud connection to use; a test connection and a production connection have different IDs
26
+ * @type {string}
27
+ * @memberof TaxCloudConfig
28
+ */
29
+ connection_id?: string;
30
+ /**
31
+ * Default TaxCloud TIC (Taxability Information Code), used for items that do not have their own TIC; blank lets TaxCloud apply its default (0, general goods)
32
+ * @type {string}
33
+ * @memberof TaxCloudConfig
34
+ */
35
+ default_tic?: string;
36
+ /**
37
+ * True if this TaxCloud configuration is to estimate taxes only and not report placed orders to TaxCloud
38
+ * @type {boolean}
39
+ * @memberof TaxCloudConfig
40
+ */
41
+ estimate_only?: boolean;
42
+ /**
43
+ * Date/time of the connection test to TaxCloud
44
+ * @type {string}
45
+ * @memberof TaxCloudConfig
46
+ */
47
+ last_test_dts?: string;
48
+ /**
49
+ * TaxCloud TIC used to classify shipping/handling charges (11000 = shipping and handling); blank means shipping is not taxed
50
+ * @type {string}
51
+ * @memberof TaxCloudConfig
52
+ */
53
+ shipping_tic?: string;
54
+ /**
55
+ * Test results of the last connection test to TaxCloud
56
+ * @type {string}
57
+ * @memberof TaxCloudConfig
58
+ */
59
+ test_results?: string;
60
+ }
61
+ /**
62
+ * Check if a given object implements the TaxCloudConfig interface.
63
+ */
64
+ export declare function instanceOfTaxCloudConfig(value: object): boolean;
65
+ export declare function TaxCloudConfigFromJSON(json: any): TaxCloudConfig;
66
+ export declare function TaxCloudConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaxCloudConfig;
67
+ export declare function TaxCloudConfigToJSON(value?: TaxCloudConfig | null): any;
@@ -0,0 +1,62 @@
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.TaxCloudConfigToJSON = exports.TaxCloudConfigFromJSONTyped = exports.TaxCloudConfigFromJSON = exports.instanceOfTaxCloudConfig = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the TaxCloudConfig interface.
20
+ */
21
+ function instanceOfTaxCloudConfig(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfTaxCloudConfig = instanceOfTaxCloudConfig;
26
+ function TaxCloudConfigFromJSON(json) {
27
+ return TaxCloudConfigFromJSONTyped(json, false);
28
+ }
29
+ exports.TaxCloudConfigFromJSON = TaxCloudConfigFromJSON;
30
+ function TaxCloudConfigFromJSONTyped(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
+ 'connection_id': !(0, runtime_1.exists)(json, 'connection_id') ? undefined : json['connection_id'],
37
+ 'default_tic': !(0, runtime_1.exists)(json, 'default_tic') ? undefined : json['default_tic'],
38
+ 'estimate_only': !(0, runtime_1.exists)(json, 'estimate_only') ? undefined : json['estimate_only'],
39
+ 'last_test_dts': !(0, runtime_1.exists)(json, 'last_test_dts') ? undefined : json['last_test_dts'],
40
+ 'shipping_tic': !(0, runtime_1.exists)(json, 'shipping_tic') ? undefined : json['shipping_tic'],
41
+ 'test_results': !(0, runtime_1.exists)(json, 'test_results') ? undefined : json['test_results'],
42
+ };
43
+ }
44
+ exports.TaxCloudConfigFromJSONTyped = TaxCloudConfigFromJSONTyped;
45
+ function TaxCloudConfigToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'api_key': value.api_key,
54
+ 'connection_id': value.connection_id,
55
+ 'default_tic': value.default_tic,
56
+ 'estimate_only': value.estimate_only,
57
+ 'last_test_dts': value.last_test_dts,
58
+ 'shipping_tic': value.shipping_tic,
59
+ 'test_results': value.test_results,
60
+ };
61
+ }
62
+ exports.TaxCloudConfigToJSON = TaxCloudConfigToJSON;
@@ -0,0 +1,49 @@
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 TaxProviderAnrokProduct
16
+ */
17
+ export interface TaxProviderAnrokProduct {
18
+ /**
19
+ * Product description in Anrok
20
+ * @type {string}
21
+ * @memberof TaxProviderAnrokProduct
22
+ */
23
+ description?: string;
24
+ /**
25
+ * Anrok product external id. This is the value to enter as the item's Anrok Product ID.
26
+ * @type {string}
27
+ * @memberof TaxProviderAnrokProduct
28
+ */
29
+ external_id?: string;
30
+ /**
31
+ * Product name in Anrok
32
+ * @type {string}
33
+ * @memberof TaxProviderAnrokProduct
34
+ */
35
+ name?: string;
36
+ /**
37
+ * Anrok product tax category applied to this product, for example "SaaS - General, B2C"
38
+ * @type {string}
39
+ * @memberof TaxProviderAnrokProduct
40
+ */
41
+ tax_category_name?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the TaxProviderAnrokProduct interface.
45
+ */
46
+ export declare function instanceOfTaxProviderAnrokProduct(value: object): boolean;
47
+ export declare function TaxProviderAnrokProductFromJSON(json: any): TaxProviderAnrokProduct;
48
+ export declare function TaxProviderAnrokProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaxProviderAnrokProduct;
49
+ export declare function TaxProviderAnrokProductToJSON(value?: TaxProviderAnrokProduct | null): any;
@@ -0,0 +1,56 @@
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.TaxProviderAnrokProductToJSON = exports.TaxProviderAnrokProductFromJSONTyped = exports.TaxProviderAnrokProductFromJSON = exports.instanceOfTaxProviderAnrokProduct = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the TaxProviderAnrokProduct interface.
20
+ */
21
+ function instanceOfTaxProviderAnrokProduct(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfTaxProviderAnrokProduct = instanceOfTaxProviderAnrokProduct;
26
+ function TaxProviderAnrokProductFromJSON(json) {
27
+ return TaxProviderAnrokProductFromJSONTyped(json, false);
28
+ }
29
+ exports.TaxProviderAnrokProductFromJSON = TaxProviderAnrokProductFromJSON;
30
+ function TaxProviderAnrokProductFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
36
+ 'external_id': !(0, runtime_1.exists)(json, 'external_id') ? undefined : json['external_id'],
37
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
38
+ 'tax_category_name': !(0, runtime_1.exists)(json, 'tax_category_name') ? undefined : json['tax_category_name'],
39
+ };
40
+ }
41
+ exports.TaxProviderAnrokProductFromJSONTyped = TaxProviderAnrokProductFromJSONTyped;
42
+ function TaxProviderAnrokProductToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'description': value.description,
51
+ 'external_id': value.external_id,
52
+ 'name': value.name,
53
+ 'tax_category_name': value.tax_category_name,
54
+ };
55
+ }
56
+ exports.TaxProviderAnrokProductToJSON = TaxProviderAnrokProductToJSON;