ultracart_rest_api_v2_typescript 4.1.174 → 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.
- package/.openapi-generator/FILES +6 -0
- package/README.md +4 -2
- package/dist/apis/SfvbApi.d.ts +30 -1
- package/dist/apis/SfvbApi.js +64 -0
- package/dist/apis/TaxApi.d.ts +82 -9
- package/dist/apis/TaxApi.js +176 -3
- package/dist/models/SfvbPageRefreshRequest.d.ts +31 -0
- package/dist/models/SfvbPageRefreshRequest.js +50 -0
- package/dist/models/SfvbPageRefreshResponse.d.ts +55 -0
- package/dist/models/SfvbPageRefreshResponse.js +58 -0
- package/dist/models/TaxCloudConfig.d.ts +67 -0
- package/dist/models/TaxCloudConfig.js +62 -0
- package/dist/models/TaxProviderAnrokProduct.d.ts +49 -0
- package/dist/models/TaxProviderAnrokProduct.js +56 -0
- package/dist/models/TaxProviderAnrokTestResult.d.ts +44 -0
- package/dist/models/TaxProviderAnrokTestResult.js +55 -0
- package/dist/models/TaxProviderTaxCloud.d.ts +50 -0
- package/dist/models/TaxProviderTaxCloud.js +57 -0
- package/dist/models/TaxProvidersResponse.d.ts +7 -0
- package/dist/models/TaxProvidersResponse.js +3 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/SfvbApi.ts +76 -0
- package/src/apis/TaxApi.ts +183 -9
- package/src/models/SfvbPageRefreshRequest.ts +67 -0
- package/src/models/SfvbPageRefreshResponse.ts +99 -0
- package/src/models/TaxCloudConfig.ts +115 -0
- package/src/models/TaxProviderAnrokProduct.ts +91 -0
- package/src/models/TaxProviderAnrokTestResult.ts +90 -0
- package/src/models/TaxProviderTaxCloud.ts +98 -0
- package/src/models/TaxProvidersResponse.ts +14 -0
- package/src/models/index.ts +6 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -1060,6 +1060,8 @@ src/models/SfvbPageItemsResponse.ts
|
|
|
1060
1060
|
src/models/SfvbPageListResponse.ts
|
|
1061
1061
|
src/models/SfvbPageMultimedia.ts
|
|
1062
1062
|
src/models/SfvbPageMultimediaRequest.ts
|
|
1063
|
+
src/models/SfvbPageRefreshRequest.ts
|
|
1064
|
+
src/models/SfvbPageRefreshResponse.ts
|
|
1063
1065
|
src/models/SfvbPageResponse.ts
|
|
1064
1066
|
src/models/SfvbPageSelectors.ts
|
|
1065
1067
|
src/models/SfvbPageSettingsRequest.ts
|
|
@@ -1123,6 +1125,7 @@ src/models/StoreFront.ts
|
|
|
1123
1125
|
src/models/StoreFrontPageContentAttribute.ts
|
|
1124
1126
|
src/models/StoreFrontsResponse.ts
|
|
1125
1127
|
src/models/TaxCity.ts
|
|
1128
|
+
src/models/TaxCloudConfig.ts
|
|
1126
1129
|
src/models/TaxCountry.ts
|
|
1127
1130
|
src/models/TaxCountryCode.ts
|
|
1128
1131
|
src/models/TaxCounty.ts
|
|
@@ -1130,6 +1133,8 @@ src/models/TaxJarConfig.ts
|
|
|
1130
1133
|
src/models/TaxPostalCode.ts
|
|
1131
1134
|
src/models/TaxProviderActivateResult.ts
|
|
1132
1135
|
src/models/TaxProviderAnrok.ts
|
|
1136
|
+
src/models/TaxProviderAnrokProduct.ts
|
|
1137
|
+
src/models/TaxProviderAnrokTestResult.ts
|
|
1133
1138
|
src/models/TaxProviderAvalara.ts
|
|
1134
1139
|
src/models/TaxProviderAvalaraCompaniesResult.ts
|
|
1135
1140
|
src/models/TaxProviderAvalaraCompany.ts
|
|
@@ -1137,6 +1142,7 @@ src/models/TaxProviderSelf.ts
|
|
|
1137
1142
|
src/models/TaxProviderSelfCountriesResponse.ts
|
|
1138
1143
|
src/models/TaxProviderSelfRegionsResponse.ts
|
|
1139
1144
|
src/models/TaxProviderSovos.ts
|
|
1145
|
+
src/models/TaxProviderTaxCloud.ts
|
|
1140
1146
|
src/models/TaxProviderTaxJar.ts
|
|
1141
1147
|
src/models/TaxProviderTestResult.ts
|
|
1142
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.
|
|
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.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.176 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -84,6 +84,8 @@ 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 |
|
|
88
|
+
| 4.1.175 | 09/29/2026 | sfvb internal testing |
|
|
87
89
|
| 4.1.174 | 09/25/2026 | sfvb internal testing |
|
|
88
90
|
| 4.1.173 | 09/24/2026 | storefront communications flow re-entry setting |
|
|
89
91
|
| 4.1.172 | 09/24/2026 | storefront communications flow re-entry setting |
|
package/dist/apis/SfvbApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { SfvbBlogPostsResponse, SfvbCompileRequest, SfvbCompileResponse, SfvbContainerResponse, SfvbContainerRevertRequest, SfvbContainerVersion, SfvbContainerVersionsResponse, SfvbContainerWriteRequest, SfvbElementSchemaResponse, SfvbElementsResponse, SfvbExperiment, SfvbExperimentEndRequest, SfvbExperimentObjectivesResponse, SfvbExperimentStartRequest, SfvbExperimentVariationUpdateRequest, SfvbExperimentsResponse, SfvbFileContentResponse, SfvbFileRevertRequest, SfvbFileSearchRequest, SfvbFileSearchResponse, SfvbFileUploadRequest, SfvbFileUploadUrlResponse, SfvbFileVersionsResponse, SfvbFileWriteRequest, SfvbFileWriteResponse, SfvbFilesResponse, SfvbItemAttributeUpdateRequest, SfvbItemContainersResponse, SfvbItemContentRequest, SfvbItemMultimediaRequest, SfvbItemResponse, SfvbItemSeoRequest, SfvbLibraryEntry, SfvbLibraryResponse, SfvbMenu, SfvbMenuWriteRequest, SfvbMenusResponse, SfvbPageAttributeUpdateRequest, SfvbPageBlogPostsRequest, SfvbPageBlogPostsResponse, SfvbPageCreateRequest, SfvbPageDuplicateRequest, SfvbPageItemsAddRequest, SfvbPageItemsRemoveRequest, SfvbPageItemsResponse, SfvbPageListResponse, SfvbPageMultimediaRequest, SfvbPageResponse, SfvbPageSelectors, SfvbPageSettingsRequest, SfvbPreviewAccessRequest, SfvbPreviewAccessResponse, SfvbPreviewSessionRequest, SfvbPreviewSessionResponse, SfvbPreviewUrlResponse, SfvbRenderRequest, SfvbRenderResponse, SfvbSiteAttributeUpdateRequest, SfvbSiteAttributesResponse, SfvbStorefrontsResponse, SfvbTemplateResolveResponse, SfvbTemplatesResponse, SfvbTheme, SfvbThemeAttributeUpdateRequest, SfvbThemeAttributesResponse, SfvbThemeDuplicateRequest, SfvbThemeJobResponse, SfvbThemesResponse, SfvbUpsellOffer, SfvbUpsellOffersResponse, SfvbUpsellPath, SfvbUpsellPathDuplicateRequest, SfvbUpsellPathMoveRequest, SfvbUpsellPathsResponse, SfvbValidateRequest, SfvbValidationResponse, SfvbVelocityValidateRequest, SfvbVersionResponse, SfvbWhoamiResponse, SfvbWidgetIdsResponse } from '../models';
|
|
13
|
+
import { SfvbBlogPostsResponse, SfvbCompileRequest, SfvbCompileResponse, SfvbContainerResponse, SfvbContainerRevertRequest, SfvbContainerVersion, SfvbContainerVersionsResponse, SfvbContainerWriteRequest, SfvbElementSchemaResponse, SfvbElementsResponse, SfvbExperiment, SfvbExperimentEndRequest, SfvbExperimentObjectivesResponse, SfvbExperimentStartRequest, SfvbExperimentVariationUpdateRequest, SfvbExperimentsResponse, SfvbFileContentResponse, SfvbFileRevertRequest, SfvbFileSearchRequest, SfvbFileSearchResponse, SfvbFileUploadRequest, SfvbFileUploadUrlResponse, SfvbFileVersionsResponse, SfvbFileWriteRequest, SfvbFileWriteResponse, SfvbFilesResponse, SfvbItemAttributeUpdateRequest, SfvbItemContainersResponse, SfvbItemContentRequest, SfvbItemMultimediaRequest, SfvbItemResponse, SfvbItemSeoRequest, SfvbLibraryEntry, SfvbLibraryResponse, SfvbMenu, SfvbMenuWriteRequest, SfvbMenusResponse, SfvbPageAttributeUpdateRequest, SfvbPageBlogPostsRequest, SfvbPageBlogPostsResponse, SfvbPageCreateRequest, SfvbPageDuplicateRequest, SfvbPageItemsAddRequest, SfvbPageItemsRemoveRequest, SfvbPageItemsResponse, SfvbPageListResponse, SfvbPageMultimediaRequest, SfvbPageRefreshRequest, SfvbPageRefreshResponse, SfvbPageResponse, SfvbPageSelectors, SfvbPageSettingsRequest, SfvbPreviewAccessRequest, SfvbPreviewAccessResponse, SfvbPreviewSessionRequest, SfvbPreviewSessionResponse, SfvbPreviewUrlResponse, SfvbRenderRequest, SfvbRenderResponse, SfvbSiteAttributeUpdateRequest, SfvbSiteAttributesResponse, SfvbStorefrontsResponse, SfvbTemplateResolveResponse, SfvbTemplatesResponse, SfvbTheme, SfvbThemeAttributeUpdateRequest, SfvbThemeAttributesResponse, SfvbThemeDuplicateRequest, SfvbThemeJobResponse, SfvbThemesResponse, SfvbUpsellOffer, SfvbUpsellOffersResponse, SfvbUpsellPath, SfvbUpsellPathDuplicateRequest, SfvbUpsellPathMoveRequest, SfvbUpsellPathsResponse, SfvbValidateRequest, SfvbValidationResponse, SfvbVelocityValidateRequest, SfvbVersionResponse, SfvbWhoamiResponse, SfvbWidgetIdsResponse } from '../models';
|
|
14
14
|
export interface AddSfvbPageBlogPostsRequest {
|
|
15
15
|
storefrontOid: number;
|
|
16
16
|
path: string;
|
|
@@ -375,6 +375,10 @@ export interface PutSfvbThemeAttributesRequest {
|
|
|
375
375
|
themeOid: number;
|
|
376
376
|
attributeUpdateRequest: SfvbThemeAttributeUpdateRequest;
|
|
377
377
|
}
|
|
378
|
+
export interface RefreshSfvbPageRequest {
|
|
379
|
+
storefrontOid: number;
|
|
380
|
+
pageRefreshRequest: SfvbPageRefreshRequest;
|
|
381
|
+
}
|
|
378
382
|
export interface RemoveSfvbPageBlogPostsRequest {
|
|
379
383
|
storefrontOid: number;
|
|
380
384
|
path: string;
|
|
@@ -1679,6 +1683,21 @@ export interface SfvbApiInterface {
|
|
|
1679
1683
|
* Change a theme\'s colors, fonts and settings
|
|
1680
1684
|
*/
|
|
1681
1685
|
putSfvbThemeAttributes(requestParameters: PutSfvbThemeAttributesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbThemeAttributesResponse>;
|
|
1686
|
+
/**
|
|
1687
|
+
* The next request renders the page fresh. Use it when a write succeeded, a read shows the new value, and the public page still shows the old one. Writes normally refresh the pages they affect, so a stale page after a write is a bug worth reporting with its URL. One page per request. The response says whether the page had a cached copy and whether anything was dropped.
|
|
1688
|
+
* @summary Drop one page\'s cached copy
|
|
1689
|
+
* @param {number} storefrontOid
|
|
1690
|
+
* @param {SfvbPageRefreshRequest} pageRefreshRequest The page to refresh
|
|
1691
|
+
* @param {*} [options] Override http request option.
|
|
1692
|
+
* @throws {RequiredError}
|
|
1693
|
+
* @memberof SfvbApiInterface
|
|
1694
|
+
*/
|
|
1695
|
+
refreshSfvbPageRaw(requestParameters: RefreshSfvbPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbPageRefreshResponse>>;
|
|
1696
|
+
/**
|
|
1697
|
+
* The next request renders the page fresh. Use it when a write succeeded, a read shows the new value, and the public page still shows the old one. Writes normally refresh the pages they affect, so a stale page after a write is a bug worth reporting with its URL. One page per request. The response says whether the page had a cached copy and whether anything was dropped.
|
|
1698
|
+
* Drop one page\'s cached copy
|
|
1699
|
+
*/
|
|
1700
|
+
refreshSfvbPage(requestParameters: RefreshSfvbPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbPageRefreshResponse>;
|
|
1682
1701
|
/**
|
|
1683
1702
|
* Removes posts by blog_post_oid, at most 500 at a time. Every oid must be on the page, and one that is not changes nothing. The posts themselves are not touched. Always needs sfvb_publish.
|
|
1684
1703
|
* @summary Take blog posts off a page
|
|
@@ -2705,6 +2724,16 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
|
|
|
2705
2724
|
* Change a theme\'s colors, fonts and settings
|
|
2706
2725
|
*/
|
|
2707
2726
|
putSfvbThemeAttributes(requestParameters: PutSfvbThemeAttributesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbThemeAttributesResponse>;
|
|
2727
|
+
/**
|
|
2728
|
+
* The next request renders the page fresh. Use it when a write succeeded, a read shows the new value, and the public page still shows the old one. Writes normally refresh the pages they affect, so a stale page after a write is a bug worth reporting with its URL. One page per request. The response says whether the page had a cached copy and whether anything was dropped.
|
|
2729
|
+
* Drop one page\'s cached copy
|
|
2730
|
+
*/
|
|
2731
|
+
refreshSfvbPageRaw(requestParameters: RefreshSfvbPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbPageRefreshResponse>>;
|
|
2732
|
+
/**
|
|
2733
|
+
* The next request renders the page fresh. Use it when a write succeeded, a read shows the new value, and the public page still shows the old one. Writes normally refresh the pages they affect, so a stale page after a write is a bug worth reporting with its URL. One page per request. The response says whether the page had a cached copy and whether anything was dropped.
|
|
2734
|
+
* Drop one page\'s cached copy
|
|
2735
|
+
*/
|
|
2736
|
+
refreshSfvbPage(requestParameters: RefreshSfvbPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbPageRefreshResponse>;
|
|
2708
2737
|
/**
|
|
2709
2738
|
* Removes posts by blog_post_oid, at most 500 at a time. Every oid must be on the page, and one that is not changes nothing. The posts themselves are not touched. Always needs sfvb_publish.
|
|
2710
2739
|
* Take blog posts off a page
|
package/dist/apis/SfvbApi.js
CHANGED
|
@@ -5121,6 +5121,70 @@ var SfvbApi = /** @class */ (function (_super) {
|
|
|
5121
5121
|
});
|
|
5122
5122
|
});
|
|
5123
5123
|
};
|
|
5124
|
+
/**
|
|
5125
|
+
* The next request renders the page fresh. Use it when a write succeeded, a read shows the new value, and the public page still shows the old one. Writes normally refresh the pages they affect, so a stale page after a write is a bug worth reporting with its URL. One page per request. The response says whether the page had a cached copy and whether anything was dropped.
|
|
5126
|
+
* Drop one page\'s cached copy
|
|
5127
|
+
*/
|
|
5128
|
+
SfvbApi.prototype.refreshSfvbPageRaw = function (requestParameters, initOverrides) {
|
|
5129
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5130
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
5131
|
+
return __generator(this, function (_c) {
|
|
5132
|
+
switch (_c.label) {
|
|
5133
|
+
case 0:
|
|
5134
|
+
if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
|
|
5135
|
+
throw new runtime.RequiredError('storefrontOid', 'Required parameter requestParameters.storefrontOid was null or undefined when calling refreshSfvbPage.');
|
|
5136
|
+
}
|
|
5137
|
+
if (requestParameters.pageRefreshRequest === null || requestParameters.pageRefreshRequest === undefined) {
|
|
5138
|
+
throw new runtime.RequiredError('pageRefreshRequest', 'Required parameter requestParameters.pageRefreshRequest was null or undefined when calling refreshSfvbPage.');
|
|
5139
|
+
}
|
|
5140
|
+
queryParameters = {};
|
|
5141
|
+
headerParameters = {};
|
|
5142
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5143
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
5144
|
+
// oauth required
|
|
5145
|
+
_a = headerParameters;
|
|
5146
|
+
_b = "Authorization";
|
|
5147
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", [])];
|
|
5148
|
+
case 1:
|
|
5149
|
+
// oauth required
|
|
5150
|
+
_a[_b] = _c.sent();
|
|
5151
|
+
_c.label = 2;
|
|
5152
|
+
case 2:
|
|
5153
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
5154
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
5155
|
+
}
|
|
5156
|
+
return [4 /*yield*/, this.request({
|
|
5157
|
+
path: "/sfvb/storefronts/{storefront_oid}/pages/refresh".replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(requestParameters.storefrontOid))),
|
|
5158
|
+
method: 'POST',
|
|
5159
|
+
headers: headerParameters,
|
|
5160
|
+
query: queryParameters,
|
|
5161
|
+
body: (0, models_1.SfvbPageRefreshRequestToJSON)(requestParameters.pageRefreshRequest),
|
|
5162
|
+
}, initOverrides)];
|
|
5163
|
+
case 3:
|
|
5164
|
+
response = _c.sent();
|
|
5165
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SfvbPageRefreshResponseFromJSON)(jsonValue); })];
|
|
5166
|
+
}
|
|
5167
|
+
});
|
|
5168
|
+
});
|
|
5169
|
+
};
|
|
5170
|
+
/**
|
|
5171
|
+
* The next request renders the page fresh. Use it when a write succeeded, a read shows the new value, and the public page still shows the old one. Writes normally refresh the pages they affect, so a stale page after a write is a bug worth reporting with its URL. One page per request. The response says whether the page had a cached copy and whether anything was dropped.
|
|
5172
|
+
* Drop one page\'s cached copy
|
|
5173
|
+
*/
|
|
5174
|
+
SfvbApi.prototype.refreshSfvbPage = function (requestParameters, initOverrides) {
|
|
5175
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5176
|
+
var response;
|
|
5177
|
+
return __generator(this, function (_a) {
|
|
5178
|
+
switch (_a.label) {
|
|
5179
|
+
case 0: return [4 /*yield*/, this.refreshSfvbPageRaw(requestParameters, initOverrides)];
|
|
5180
|
+
case 1:
|
|
5181
|
+
response = _a.sent();
|
|
5182
|
+
return [4 /*yield*/, response.value()];
|
|
5183
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
5184
|
+
}
|
|
5185
|
+
});
|
|
5186
|
+
});
|
|
5187
|
+
};
|
|
5124
5188
|
/**
|
|
5125
5189
|
* Removes posts by blog_post_oid, at most 500 at a time. Every oid must be on the page, and one that is not changes nothing. The posts themselves are not touched. Always needs sfvb_publish.
|
|
5126
5190
|
* Take blog posts off a page
|
package/dist/apis/TaxApi.d.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
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<
|
|
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<
|
|
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
|
package/dist/apis/TaxApi.js
CHANGED
|
@@ -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.
|
|
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,31 @@
|
|
|
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 SfvbPageRefreshRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SfvbPageRefreshRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The page to refresh. A path such as /shop/coffee.html, or a full URL on this storefront's host. The query string is ignored, and a path ending in / means its index.html. One page per request.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SfvbPageRefreshRequest
|
|
22
|
+
*/
|
|
23
|
+
url?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SfvbPageRefreshRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSfvbPageRefreshRequest(value: object): boolean;
|
|
29
|
+
export declare function SfvbPageRefreshRequestFromJSON(json: any): SfvbPageRefreshRequest;
|
|
30
|
+
export declare function SfvbPageRefreshRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SfvbPageRefreshRequest;
|
|
31
|
+
export declare function SfvbPageRefreshRequestToJSON(value?: SfvbPageRefreshRequest | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.SfvbPageRefreshRequestToJSON = exports.SfvbPageRefreshRequestFromJSONTyped = exports.SfvbPageRefreshRequestFromJSON = exports.instanceOfSfvbPageRefreshRequest = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SfvbPageRefreshRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSfvbPageRefreshRequest(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfSfvbPageRefreshRequest = instanceOfSfvbPageRefreshRequest;
|
|
26
|
+
function SfvbPageRefreshRequestFromJSON(json) {
|
|
27
|
+
return SfvbPageRefreshRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SfvbPageRefreshRequestFromJSON = SfvbPageRefreshRequestFromJSON;
|
|
30
|
+
function SfvbPageRefreshRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.SfvbPageRefreshRequestFromJSONTyped = SfvbPageRefreshRequestFromJSONTyped;
|
|
39
|
+
function SfvbPageRefreshRequestToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'url': value.url,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.SfvbPageRefreshRequestToJSON = SfvbPageRefreshRequestToJSON;
|