ultracart_rest_api_v2_typescript 4.0.111-RC → 4.0.112-RC
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 +4 -0
- package/README.md +3 -2
- package/dist/apis/ChannelPartnerApi.d.ts +169 -1
- package/dist/apis/ChannelPartnerApi.js +368 -0
- package/dist/models/ChannelPartnerShipToPreference.d.ts +57 -0
- package/dist/models/ChannelPartnerShipToPreference.js +52 -0
- package/dist/models/ChannelPartnerShipToPreferenceResponse.d.ts +55 -0
- package/dist/models/ChannelPartnerShipToPreferenceResponse.js +54 -0
- package/dist/models/ChannelPartnerShipToPreferencesResponse.d.ts +55 -0
- package/dist/models/ChannelPartnerShipToPreferencesResponse.js +54 -0
- package/dist/models/ChannelPartnersResponse.d.ts +55 -0
- package/dist/models/ChannelPartnersResponse.js +54 -0
- package/dist/models/OrderPayment.d.ts +1 -0
- package/dist/models/OrderPayment.js +2 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/ChannelPartnerApi.ts +404 -0
- package/src/models/ChannelPartnerShipToPreference.ts +96 -0
- package/src/models/ChannelPartnerShipToPreferenceResponse.ts +113 -0
- package/src/models/ChannelPartnerShipToPreferencesResponse.ts +113 -0
- package/src/models/ChannelPartnersResponse.ts +113 -0
- package/src/models/OrderPayment.ts +2 -1
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -130,7 +130,11 @@ src/models/ChannelPartnerOrderItem.ts
|
|
|
130
130
|
src/models/ChannelPartnerOrderItemOption.ts
|
|
131
131
|
src/models/ChannelPartnerOrderTransaction.ts
|
|
132
132
|
src/models/ChannelPartnerOrderTransactionDetail.ts
|
|
133
|
+
src/models/ChannelPartnerShipToPreference.ts
|
|
134
|
+
src/models/ChannelPartnerShipToPreferenceResponse.ts
|
|
135
|
+
src/models/ChannelPartnerShipToPreferencesResponse.ts
|
|
133
136
|
src/models/ChannelPartnerShippingEstimate.ts
|
|
137
|
+
src/models/ChannelPartnersResponse.ts
|
|
134
138
|
src/models/ChargebackDispute.ts
|
|
135
139
|
src/models/ChargebackDisputeResponse.ts
|
|
136
140
|
src/models/ChargebackDisputesResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.112-RC
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.112-RC --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.112-RC | 01/13/2023 | channel - ops to manage ship to prefs |
|
|
57
58
|
| 4.0.111-RC | 01/11/2023 | conversations - adjust search results to return multiple convo summaries |
|
|
58
59
|
| 4.0.110-RC | 01/10/2023 | add method to query integration log record by oid |
|
|
59
60
|
| 4.0.109-RC | 01/10/2023 | bug fix for typescript enum error due to apost |
|
|
@@ -10,22 +10,42 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { ChannelPartnerCancelResponse, ChannelPartnerEstimateShippingResponse, ChannelPartnerEstimateTaxResponse, ChannelPartnerImportResponse, ChannelPartnerOrder } from '../models';
|
|
13
|
+
import { ChannelPartnerCancelResponse, ChannelPartnerEstimateShippingResponse, ChannelPartnerEstimateTaxResponse, ChannelPartnerImportResponse, ChannelPartnerOrder, ChannelPartnerShipToPreference, ChannelPartnerShipToPreferenceResponse, ChannelPartnerShipToPreferencesResponse, ChannelPartnersResponse } from '../models';
|
|
14
14
|
export interface CancelOrderByChannelPartnerOrderIdRequest {
|
|
15
15
|
orderId: string;
|
|
16
16
|
}
|
|
17
17
|
export interface CancelOrderByUltraCartOrderIdRequest {
|
|
18
18
|
orderId: string;
|
|
19
19
|
}
|
|
20
|
+
export interface DeleteChannelPartnerShipToPreferenceRequest {
|
|
21
|
+
channelPartnerOid: number;
|
|
22
|
+
channelPartnerShipToPreferenceOid: number;
|
|
23
|
+
}
|
|
20
24
|
export interface EstimateShippingForChannelPartnerOrderRequest {
|
|
21
25
|
channelPartnerOrder: ChannelPartnerOrder;
|
|
22
26
|
}
|
|
23
27
|
export interface EstimateTaxForChannelPartnerOrderRequest {
|
|
24
28
|
channelPartnerOrder: ChannelPartnerOrder;
|
|
25
29
|
}
|
|
30
|
+
export interface GetChannelPartnerShipToPreferenceRequest {
|
|
31
|
+
channelPartnerOid: number;
|
|
32
|
+
channelPartnerShipToPreferenceOid: number;
|
|
33
|
+
}
|
|
34
|
+
export interface GetChannelPartnerShipToPreferencesRequest {
|
|
35
|
+
channelPartnerOid: number;
|
|
36
|
+
}
|
|
26
37
|
export interface ImportChannelPartnerOrderRequest {
|
|
27
38
|
channelPartnerOrder: ChannelPartnerOrder;
|
|
28
39
|
}
|
|
40
|
+
export interface InsertChannelPartnerShipToPreferenceRequest {
|
|
41
|
+
channelPartnerOid: number;
|
|
42
|
+
shipToPreference: ChannelPartnerShipToPreference;
|
|
43
|
+
}
|
|
44
|
+
export interface UpdateChannelPartnerShipToPreferenceRequest {
|
|
45
|
+
channelPartnerOid: number;
|
|
46
|
+
channelPartnerShipToPreferenceOid: number;
|
|
47
|
+
shipToPreference: ChannelPartnerShipToPreference;
|
|
48
|
+
}
|
|
29
49
|
/**
|
|
30
50
|
* ChannelPartnerApi - interface
|
|
31
51
|
*
|
|
@@ -61,6 +81,21 @@ export interface ChannelPartnerApiInterface {
|
|
|
61
81
|
* Cancel channel partner order by UltraCart order id
|
|
62
82
|
*/
|
|
63
83
|
cancelOrderByUltraCartOrderId(requestParameters: CancelOrderByUltraCartOrderIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerCancelResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* Delete a ship to preference record for the channel partner.
|
|
86
|
+
* @summary Delete a ship to preference record for the channel partner.
|
|
87
|
+
* @param {number} channelPartnerOid
|
|
88
|
+
* @param {number} channelPartnerShipToPreferenceOid
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
* @memberof ChannelPartnerApiInterface
|
|
92
|
+
*/
|
|
93
|
+
deleteChannelPartnerShipToPreferenceRaw(requestParameters: DeleteChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
94
|
+
/**
|
|
95
|
+
* Delete a ship to preference record for the channel partner.
|
|
96
|
+
* Delete a ship to preference record for the channel partner.
|
|
97
|
+
*/
|
|
98
|
+
deleteChannelPartnerShipToPreference(requestParameters: DeleteChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
64
99
|
/**
|
|
65
100
|
* Estimate shipping for order from a channel partner.
|
|
66
101
|
* @summary Estimate shipping for channel partner order
|
|
@@ -89,6 +124,48 @@ export interface ChannelPartnerApiInterface {
|
|
|
89
124
|
* Estimate tax for channel partner order
|
|
90
125
|
*/
|
|
91
126
|
estimateTaxForChannelPartnerOrder(requestParameters: EstimateTaxForChannelPartnerOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerEstimateTaxResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
129
|
+
* @summary Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
130
|
+
* @param {number} channelPartnerOid
|
|
131
|
+
* @param {number} channelPartnerShipToPreferenceOid
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
* @memberof ChannelPartnerApiInterface
|
|
135
|
+
*/
|
|
136
|
+
getChannelPartnerShipToPreferenceRaw(requestParameters: GetChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChannelPartnerShipToPreferenceResponse>>;
|
|
137
|
+
/**
|
|
138
|
+
* Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
139
|
+
* Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
140
|
+
*/
|
|
141
|
+
getChannelPartnerShipToPreference(requestParameters: GetChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerShipToPreferenceResponse>;
|
|
142
|
+
/**
|
|
143
|
+
* Retrieve the ship to preferences associated with the channel partner.
|
|
144
|
+
* @summary Retrieve the ship to preferences associated with the channel partner.
|
|
145
|
+
* @param {number} channelPartnerOid
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
* @memberof ChannelPartnerApiInterface
|
|
149
|
+
*/
|
|
150
|
+
getChannelPartnerShipToPreferencesRaw(requestParameters: GetChannelPartnerShipToPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChannelPartnerShipToPreferencesResponse>>;
|
|
151
|
+
/**
|
|
152
|
+
* Retrieve the ship to preferences associated with the channel partner.
|
|
153
|
+
* Retrieve the ship to preferences associated with the channel partner.
|
|
154
|
+
*/
|
|
155
|
+
getChannelPartnerShipToPreferences(requestParameters: GetChannelPartnerShipToPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerShipToPreferencesResponse>;
|
|
156
|
+
/**
|
|
157
|
+
* Retrieve the channel partners configured on the account.
|
|
158
|
+
* @summary Retrieve the channel partners configured on the account.
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
* @memberof ChannelPartnerApiInterface
|
|
162
|
+
*/
|
|
163
|
+
getChannelPartnersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChannelPartnersResponse>>;
|
|
164
|
+
/**
|
|
165
|
+
* Retrieve the channel partners configured on the account.
|
|
166
|
+
* Retrieve the channel partners configured on the account.
|
|
167
|
+
*/
|
|
168
|
+
getChannelPartners(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnersResponse>;
|
|
92
169
|
/**
|
|
93
170
|
* Insert order from a channel partner.
|
|
94
171
|
* @summary Insert channel partner order
|
|
@@ -103,6 +180,37 @@ export interface ChannelPartnerApiInterface {
|
|
|
103
180
|
* Insert channel partner order
|
|
104
181
|
*/
|
|
105
182
|
importChannelPartnerOrder(requestParameters: ImportChannelPartnerOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerImportResponse>;
|
|
183
|
+
/**
|
|
184
|
+
* Insert a ship to preference record for the channel partner.
|
|
185
|
+
* @summary Insert a ship to preference record for the channel partner.
|
|
186
|
+
* @param {number} channelPartnerOid
|
|
187
|
+
* @param {ChannelPartnerShipToPreference} shipToPreference Ship to preference to create
|
|
188
|
+
* @param {*} [options] Override http request option.
|
|
189
|
+
* @throws {RequiredError}
|
|
190
|
+
* @memberof ChannelPartnerApiInterface
|
|
191
|
+
*/
|
|
192
|
+
insertChannelPartnerShipToPreferenceRaw(requestParameters: InsertChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChannelPartnerShipToPreferenceResponse>>;
|
|
193
|
+
/**
|
|
194
|
+
* Insert a ship to preference record for the channel partner.
|
|
195
|
+
* Insert a ship to preference record for the channel partner.
|
|
196
|
+
*/
|
|
197
|
+
insertChannelPartnerShipToPreference(requestParameters: InsertChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerShipToPreferenceResponse>;
|
|
198
|
+
/**
|
|
199
|
+
* Update a ship to preference record for the channel partner.
|
|
200
|
+
* @summary Update a ship to preference record for the channel partner.
|
|
201
|
+
* @param {number} channelPartnerOid
|
|
202
|
+
* @param {number} channelPartnerShipToPreferenceOid
|
|
203
|
+
* @param {ChannelPartnerShipToPreference} shipToPreference Ship to preference to create
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
* @memberof ChannelPartnerApiInterface
|
|
207
|
+
*/
|
|
208
|
+
updateChannelPartnerShipToPreferenceRaw(requestParameters: UpdateChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChannelPartnerShipToPreferenceResponse>>;
|
|
209
|
+
/**
|
|
210
|
+
* Update a ship to preference record for the channel partner.
|
|
211
|
+
* Update a ship to preference record for the channel partner.
|
|
212
|
+
*/
|
|
213
|
+
updateChannelPartnerShipToPreference(requestParameters: UpdateChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerShipToPreferenceResponse>;
|
|
106
214
|
}
|
|
107
215
|
/**
|
|
108
216
|
*
|
|
@@ -128,6 +236,16 @@ export declare class ChannelPartnerApi extends runtime.BaseAPI implements Channe
|
|
|
128
236
|
* Cancel channel partner order by UltraCart order id
|
|
129
237
|
*/
|
|
130
238
|
cancelOrderByUltraCartOrderId(requestParameters: CancelOrderByUltraCartOrderIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerCancelResponse>;
|
|
239
|
+
/**
|
|
240
|
+
* Delete a ship to preference record for the channel partner.
|
|
241
|
+
* Delete a ship to preference record for the channel partner.
|
|
242
|
+
*/
|
|
243
|
+
deleteChannelPartnerShipToPreferenceRaw(requestParameters: DeleteChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
244
|
+
/**
|
|
245
|
+
* Delete a ship to preference record for the channel partner.
|
|
246
|
+
* Delete a ship to preference record for the channel partner.
|
|
247
|
+
*/
|
|
248
|
+
deleteChannelPartnerShipToPreference(requestParameters: DeleteChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
131
249
|
/**
|
|
132
250
|
* Estimate shipping for order from a channel partner.
|
|
133
251
|
* Estimate shipping for channel partner order
|
|
@@ -148,6 +266,36 @@ export declare class ChannelPartnerApi extends runtime.BaseAPI implements Channe
|
|
|
148
266
|
* Estimate tax for channel partner order
|
|
149
267
|
*/
|
|
150
268
|
estimateTaxForChannelPartnerOrder(requestParameters: EstimateTaxForChannelPartnerOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerEstimateTaxResponse>;
|
|
269
|
+
/**
|
|
270
|
+
* Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
271
|
+
* Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
272
|
+
*/
|
|
273
|
+
getChannelPartnerShipToPreferenceRaw(requestParameters: GetChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChannelPartnerShipToPreferenceResponse>>;
|
|
274
|
+
/**
|
|
275
|
+
* Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
276
|
+
* Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
277
|
+
*/
|
|
278
|
+
getChannelPartnerShipToPreference(requestParameters: GetChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerShipToPreferenceResponse>;
|
|
279
|
+
/**
|
|
280
|
+
* Retrieve the ship to preferences associated with the channel partner.
|
|
281
|
+
* Retrieve the ship to preferences associated with the channel partner.
|
|
282
|
+
*/
|
|
283
|
+
getChannelPartnerShipToPreferencesRaw(requestParameters: GetChannelPartnerShipToPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChannelPartnerShipToPreferencesResponse>>;
|
|
284
|
+
/**
|
|
285
|
+
* Retrieve the ship to preferences associated with the channel partner.
|
|
286
|
+
* Retrieve the ship to preferences associated with the channel partner.
|
|
287
|
+
*/
|
|
288
|
+
getChannelPartnerShipToPreferences(requestParameters: GetChannelPartnerShipToPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerShipToPreferencesResponse>;
|
|
289
|
+
/**
|
|
290
|
+
* Retrieve the channel partners configured on the account.
|
|
291
|
+
* Retrieve the channel partners configured on the account.
|
|
292
|
+
*/
|
|
293
|
+
getChannelPartnersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChannelPartnersResponse>>;
|
|
294
|
+
/**
|
|
295
|
+
* Retrieve the channel partners configured on the account.
|
|
296
|
+
* Retrieve the channel partners configured on the account.
|
|
297
|
+
*/
|
|
298
|
+
getChannelPartners(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnersResponse>;
|
|
151
299
|
/**
|
|
152
300
|
* Insert order from a channel partner.
|
|
153
301
|
* Insert channel partner order
|
|
@@ -158,4 +306,24 @@ export declare class ChannelPartnerApi extends runtime.BaseAPI implements Channe
|
|
|
158
306
|
* Insert channel partner order
|
|
159
307
|
*/
|
|
160
308
|
importChannelPartnerOrder(requestParameters: ImportChannelPartnerOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerImportResponse>;
|
|
309
|
+
/**
|
|
310
|
+
* Insert a ship to preference record for the channel partner.
|
|
311
|
+
* Insert a ship to preference record for the channel partner.
|
|
312
|
+
*/
|
|
313
|
+
insertChannelPartnerShipToPreferenceRaw(requestParameters: InsertChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChannelPartnerShipToPreferenceResponse>>;
|
|
314
|
+
/**
|
|
315
|
+
* Insert a ship to preference record for the channel partner.
|
|
316
|
+
* Insert a ship to preference record for the channel partner.
|
|
317
|
+
*/
|
|
318
|
+
insertChannelPartnerShipToPreference(requestParameters: InsertChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerShipToPreferenceResponse>;
|
|
319
|
+
/**
|
|
320
|
+
* Update a ship to preference record for the channel partner.
|
|
321
|
+
* Update a ship to preference record for the channel partner.
|
|
322
|
+
*/
|
|
323
|
+
updateChannelPartnerShipToPreferenceRaw(requestParameters: UpdateChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChannelPartnerShipToPreferenceResponse>>;
|
|
324
|
+
/**
|
|
325
|
+
* Update a ship to preference record for the channel partner.
|
|
326
|
+
* Update a ship to preference record for the channel partner.
|
|
327
|
+
*/
|
|
328
|
+
updateChannelPartnerShipToPreference(requestParameters: UpdateChannelPartnerShipToPreferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChannelPartnerShipToPreferenceResponse>;
|
|
161
329
|
}
|
|
@@ -193,6 +193,66 @@ var ChannelPartnerApi = /** @class */ (function (_super) {
|
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
195
|
};
|
|
196
|
+
/**
|
|
197
|
+
* Delete a ship to preference record for the channel partner.
|
|
198
|
+
* Delete a ship to preference record for the channel partner.
|
|
199
|
+
*/
|
|
200
|
+
ChannelPartnerApi.prototype.deleteChannelPartnerShipToPreferenceRaw = function (requestParameters, initOverrides) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
202
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
203
|
+
return __generator(this, function (_c) {
|
|
204
|
+
switch (_c.label) {
|
|
205
|
+
case 0:
|
|
206
|
+
if (requestParameters.channelPartnerOid === null || requestParameters.channelPartnerOid === undefined) {
|
|
207
|
+
throw new runtime.RequiredError('channelPartnerOid', 'Required parameter requestParameters.channelPartnerOid was null or undefined when calling deleteChannelPartnerShipToPreference.');
|
|
208
|
+
}
|
|
209
|
+
if (requestParameters.channelPartnerShipToPreferenceOid === null || requestParameters.channelPartnerShipToPreferenceOid === undefined) {
|
|
210
|
+
throw new runtime.RequiredError('channelPartnerShipToPreferenceOid', 'Required parameter requestParameters.channelPartnerShipToPreferenceOid was null or undefined when calling deleteChannelPartnerShipToPreference.');
|
|
211
|
+
}
|
|
212
|
+
queryParameters = {};
|
|
213
|
+
headerParameters = {};
|
|
214
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
215
|
+
// oauth required
|
|
216
|
+
_a = headerParameters;
|
|
217
|
+
_b = "Authorization";
|
|
218
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["channel_partner_write"])];
|
|
219
|
+
case 1:
|
|
220
|
+
// oauth required
|
|
221
|
+
_a[_b] = _c.sent();
|
|
222
|
+
_c.label = 2;
|
|
223
|
+
case 2:
|
|
224
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
225
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
226
|
+
}
|
|
227
|
+
return [4 /*yield*/, this.request({
|
|
228
|
+
path: "/channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences/{channel_partner_ship_to_preference_oid}".replace("{".concat("channel_partner_oid", "}"), encodeURIComponent(String(requestParameters.channelPartnerOid))).replace("{".concat("channel_partner_ship_to_preference_oid", "}"), encodeURIComponent(String(requestParameters.channelPartnerShipToPreferenceOid))),
|
|
229
|
+
method: 'DELETE',
|
|
230
|
+
headers: headerParameters,
|
|
231
|
+
query: queryParameters,
|
|
232
|
+
}, initOverrides)];
|
|
233
|
+
case 3:
|
|
234
|
+
response = _c.sent();
|
|
235
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Delete a ship to preference record for the channel partner.
|
|
242
|
+
* Delete a ship to preference record for the channel partner.
|
|
243
|
+
*/
|
|
244
|
+
ChannelPartnerApi.prototype.deleteChannelPartnerShipToPreference = function (requestParameters, initOverrides) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
246
|
+
return __generator(this, function (_a) {
|
|
247
|
+
switch (_a.label) {
|
|
248
|
+
case 0: return [4 /*yield*/, this.deleteChannelPartnerShipToPreferenceRaw(requestParameters, initOverrides)];
|
|
249
|
+
case 1:
|
|
250
|
+
_a.sent();
|
|
251
|
+
return [2 /*return*/];
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
};
|
|
196
256
|
/**
|
|
197
257
|
* Estimate shipping for order from a channel partner.
|
|
198
258
|
* Estimate shipping for channel partner order
|
|
@@ -315,6 +375,183 @@ var ChannelPartnerApi = /** @class */ (function (_super) {
|
|
|
315
375
|
});
|
|
316
376
|
});
|
|
317
377
|
};
|
|
378
|
+
/**
|
|
379
|
+
* Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
380
|
+
* Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
381
|
+
*/
|
|
382
|
+
ChannelPartnerApi.prototype.getChannelPartnerShipToPreferenceRaw = function (requestParameters, initOverrides) {
|
|
383
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
384
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
385
|
+
return __generator(this, function (_c) {
|
|
386
|
+
switch (_c.label) {
|
|
387
|
+
case 0:
|
|
388
|
+
if (requestParameters.channelPartnerOid === null || requestParameters.channelPartnerOid === undefined) {
|
|
389
|
+
throw new runtime.RequiredError('channelPartnerOid', 'Required parameter requestParameters.channelPartnerOid was null or undefined when calling getChannelPartnerShipToPreference.');
|
|
390
|
+
}
|
|
391
|
+
if (requestParameters.channelPartnerShipToPreferenceOid === null || requestParameters.channelPartnerShipToPreferenceOid === undefined) {
|
|
392
|
+
throw new runtime.RequiredError('channelPartnerShipToPreferenceOid', 'Required parameter requestParameters.channelPartnerShipToPreferenceOid was null or undefined when calling getChannelPartnerShipToPreference.');
|
|
393
|
+
}
|
|
394
|
+
queryParameters = {};
|
|
395
|
+
headerParameters = {};
|
|
396
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
397
|
+
// oauth required
|
|
398
|
+
_a = headerParameters;
|
|
399
|
+
_b = "Authorization";
|
|
400
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["channel_partner_read"])];
|
|
401
|
+
case 1:
|
|
402
|
+
// oauth required
|
|
403
|
+
_a[_b] = _c.sent();
|
|
404
|
+
_c.label = 2;
|
|
405
|
+
case 2:
|
|
406
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
407
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
408
|
+
}
|
|
409
|
+
return [4 /*yield*/, this.request({
|
|
410
|
+
path: "/channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences/{channel_partner_ship_to_preference_oid}".replace("{".concat("channel_partner_oid", "}"), encodeURIComponent(String(requestParameters.channelPartnerOid))).replace("{".concat("channel_partner_ship_to_preference_oid", "}"), encodeURIComponent(String(requestParameters.channelPartnerShipToPreferenceOid))),
|
|
411
|
+
method: 'GET',
|
|
412
|
+
headers: headerParameters,
|
|
413
|
+
query: queryParameters,
|
|
414
|
+
}, initOverrides)];
|
|
415
|
+
case 3:
|
|
416
|
+
response = _c.sent();
|
|
417
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ChannelPartnerShipToPreferenceResponseFromJSON)(jsonValue); })];
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
424
|
+
* Retrieve the ship to preference associated with the channel partner and the specific id.
|
|
425
|
+
*/
|
|
426
|
+
ChannelPartnerApi.prototype.getChannelPartnerShipToPreference = function (requestParameters, initOverrides) {
|
|
427
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
428
|
+
var response;
|
|
429
|
+
return __generator(this, function (_a) {
|
|
430
|
+
switch (_a.label) {
|
|
431
|
+
case 0: return [4 /*yield*/, this.getChannelPartnerShipToPreferenceRaw(requestParameters, initOverrides)];
|
|
432
|
+
case 1:
|
|
433
|
+
response = _a.sent();
|
|
434
|
+
return [4 /*yield*/, response.value()];
|
|
435
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* Retrieve the ship to preferences associated with the channel partner.
|
|
442
|
+
* Retrieve the ship to preferences associated with the channel partner.
|
|
443
|
+
*/
|
|
444
|
+
ChannelPartnerApi.prototype.getChannelPartnerShipToPreferencesRaw = function (requestParameters, initOverrides) {
|
|
445
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
446
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
447
|
+
return __generator(this, function (_c) {
|
|
448
|
+
switch (_c.label) {
|
|
449
|
+
case 0:
|
|
450
|
+
if (requestParameters.channelPartnerOid === null || requestParameters.channelPartnerOid === undefined) {
|
|
451
|
+
throw new runtime.RequiredError('channelPartnerOid', 'Required parameter requestParameters.channelPartnerOid was null or undefined when calling getChannelPartnerShipToPreferences.');
|
|
452
|
+
}
|
|
453
|
+
queryParameters = {};
|
|
454
|
+
headerParameters = {};
|
|
455
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
456
|
+
// oauth required
|
|
457
|
+
_a = headerParameters;
|
|
458
|
+
_b = "Authorization";
|
|
459
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["channel_partner_read"])];
|
|
460
|
+
case 1:
|
|
461
|
+
// oauth required
|
|
462
|
+
_a[_b] = _c.sent();
|
|
463
|
+
_c.label = 2;
|
|
464
|
+
case 2:
|
|
465
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
466
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
467
|
+
}
|
|
468
|
+
return [4 /*yield*/, this.request({
|
|
469
|
+
path: "/channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences".replace("{".concat("channel_partner_oid", "}"), encodeURIComponent(String(requestParameters.channelPartnerOid))),
|
|
470
|
+
method: 'GET',
|
|
471
|
+
headers: headerParameters,
|
|
472
|
+
query: queryParameters,
|
|
473
|
+
}, initOverrides)];
|
|
474
|
+
case 3:
|
|
475
|
+
response = _c.sent();
|
|
476
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ChannelPartnerShipToPreferencesResponseFromJSON)(jsonValue); })];
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
});
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* Retrieve the ship to preferences associated with the channel partner.
|
|
483
|
+
* Retrieve the ship to preferences associated with the channel partner.
|
|
484
|
+
*/
|
|
485
|
+
ChannelPartnerApi.prototype.getChannelPartnerShipToPreferences = function (requestParameters, initOverrides) {
|
|
486
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
487
|
+
var response;
|
|
488
|
+
return __generator(this, function (_a) {
|
|
489
|
+
switch (_a.label) {
|
|
490
|
+
case 0: return [4 /*yield*/, this.getChannelPartnerShipToPreferencesRaw(requestParameters, initOverrides)];
|
|
491
|
+
case 1:
|
|
492
|
+
response = _a.sent();
|
|
493
|
+
return [4 /*yield*/, response.value()];
|
|
494
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
});
|
|
498
|
+
};
|
|
499
|
+
/**
|
|
500
|
+
* Retrieve the channel partners configured on the account.
|
|
501
|
+
* Retrieve the channel partners configured on the account.
|
|
502
|
+
*/
|
|
503
|
+
ChannelPartnerApi.prototype.getChannelPartnersRaw = function (initOverrides) {
|
|
504
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
505
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
506
|
+
return __generator(this, function (_c) {
|
|
507
|
+
switch (_c.label) {
|
|
508
|
+
case 0:
|
|
509
|
+
queryParameters = {};
|
|
510
|
+
headerParameters = {};
|
|
511
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
512
|
+
// oauth required
|
|
513
|
+
_a = headerParameters;
|
|
514
|
+
_b = "Authorization";
|
|
515
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["channel_partner_read"])];
|
|
516
|
+
case 1:
|
|
517
|
+
// oauth required
|
|
518
|
+
_a[_b] = _c.sent();
|
|
519
|
+
_c.label = 2;
|
|
520
|
+
case 2:
|
|
521
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
522
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
523
|
+
}
|
|
524
|
+
return [4 /*yield*/, this.request({
|
|
525
|
+
path: "/channel_partner/channel_partners",
|
|
526
|
+
method: 'GET',
|
|
527
|
+
headers: headerParameters,
|
|
528
|
+
query: queryParameters,
|
|
529
|
+
}, initOverrides)];
|
|
530
|
+
case 3:
|
|
531
|
+
response = _c.sent();
|
|
532
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ChannelPartnersResponseFromJSON)(jsonValue); })];
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
});
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* Retrieve the channel partners configured on the account.
|
|
539
|
+
* Retrieve the channel partners configured on the account.
|
|
540
|
+
*/
|
|
541
|
+
ChannelPartnerApi.prototype.getChannelPartners = function (initOverrides) {
|
|
542
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
543
|
+
var response;
|
|
544
|
+
return __generator(this, function (_a) {
|
|
545
|
+
switch (_a.label) {
|
|
546
|
+
case 0: return [4 /*yield*/, this.getChannelPartnersRaw(initOverrides)];
|
|
547
|
+
case 1:
|
|
548
|
+
response = _a.sent();
|
|
549
|
+
return [4 /*yield*/, response.value()];
|
|
550
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
});
|
|
554
|
+
};
|
|
318
555
|
/**
|
|
319
556
|
* Insert order from a channel partner.
|
|
320
557
|
* Insert channel partner order
|
|
@@ -376,6 +613,137 @@ var ChannelPartnerApi = /** @class */ (function (_super) {
|
|
|
376
613
|
});
|
|
377
614
|
});
|
|
378
615
|
};
|
|
616
|
+
/**
|
|
617
|
+
* Insert a ship to preference record for the channel partner.
|
|
618
|
+
* Insert a ship to preference record for the channel partner.
|
|
619
|
+
*/
|
|
620
|
+
ChannelPartnerApi.prototype.insertChannelPartnerShipToPreferenceRaw = function (requestParameters, initOverrides) {
|
|
621
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
622
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
623
|
+
return __generator(this, function (_c) {
|
|
624
|
+
switch (_c.label) {
|
|
625
|
+
case 0:
|
|
626
|
+
if (requestParameters.channelPartnerOid === null || requestParameters.channelPartnerOid === undefined) {
|
|
627
|
+
throw new runtime.RequiredError('channelPartnerOid', 'Required parameter requestParameters.channelPartnerOid was null or undefined when calling insertChannelPartnerShipToPreference.');
|
|
628
|
+
}
|
|
629
|
+
if (requestParameters.shipToPreference === null || requestParameters.shipToPreference === undefined) {
|
|
630
|
+
throw new runtime.RequiredError('shipToPreference', 'Required parameter requestParameters.shipToPreference was null or undefined when calling insertChannelPartnerShipToPreference.');
|
|
631
|
+
}
|
|
632
|
+
queryParameters = {};
|
|
633
|
+
headerParameters = {};
|
|
634
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
635
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
636
|
+
// oauth required
|
|
637
|
+
_a = headerParameters;
|
|
638
|
+
_b = "Authorization";
|
|
639
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["channel_partner_write"])];
|
|
640
|
+
case 1:
|
|
641
|
+
// oauth required
|
|
642
|
+
_a[_b] = _c.sent();
|
|
643
|
+
_c.label = 2;
|
|
644
|
+
case 2:
|
|
645
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
646
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
647
|
+
}
|
|
648
|
+
return [4 /*yield*/, this.request({
|
|
649
|
+
path: "/channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences".replace("{".concat("channel_partner_oid", "}"), encodeURIComponent(String(requestParameters.channelPartnerOid))),
|
|
650
|
+
method: 'POST',
|
|
651
|
+
headers: headerParameters,
|
|
652
|
+
query: queryParameters,
|
|
653
|
+
body: (0, models_1.ChannelPartnerShipToPreferenceToJSON)(requestParameters.shipToPreference),
|
|
654
|
+
}, initOverrides)];
|
|
655
|
+
case 3:
|
|
656
|
+
response = _c.sent();
|
|
657
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ChannelPartnerShipToPreferenceResponseFromJSON)(jsonValue); })];
|
|
658
|
+
}
|
|
659
|
+
});
|
|
660
|
+
});
|
|
661
|
+
};
|
|
662
|
+
/**
|
|
663
|
+
* Insert a ship to preference record for the channel partner.
|
|
664
|
+
* Insert a ship to preference record for the channel partner.
|
|
665
|
+
*/
|
|
666
|
+
ChannelPartnerApi.prototype.insertChannelPartnerShipToPreference = function (requestParameters, initOverrides) {
|
|
667
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
668
|
+
var response;
|
|
669
|
+
return __generator(this, function (_a) {
|
|
670
|
+
switch (_a.label) {
|
|
671
|
+
case 0: return [4 /*yield*/, this.insertChannelPartnerShipToPreferenceRaw(requestParameters, initOverrides)];
|
|
672
|
+
case 1:
|
|
673
|
+
response = _a.sent();
|
|
674
|
+
return [4 /*yield*/, response.value()];
|
|
675
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
});
|
|
679
|
+
};
|
|
680
|
+
/**
|
|
681
|
+
* Update a ship to preference record for the channel partner.
|
|
682
|
+
* Update a ship to preference record for the channel partner.
|
|
683
|
+
*/
|
|
684
|
+
ChannelPartnerApi.prototype.updateChannelPartnerShipToPreferenceRaw = function (requestParameters, initOverrides) {
|
|
685
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
686
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
687
|
+
return __generator(this, function (_c) {
|
|
688
|
+
switch (_c.label) {
|
|
689
|
+
case 0:
|
|
690
|
+
if (requestParameters.channelPartnerOid === null || requestParameters.channelPartnerOid === undefined) {
|
|
691
|
+
throw new runtime.RequiredError('channelPartnerOid', 'Required parameter requestParameters.channelPartnerOid was null or undefined when calling updateChannelPartnerShipToPreference.');
|
|
692
|
+
}
|
|
693
|
+
if (requestParameters.channelPartnerShipToPreferenceOid === null || requestParameters.channelPartnerShipToPreferenceOid === undefined) {
|
|
694
|
+
throw new runtime.RequiredError('channelPartnerShipToPreferenceOid', 'Required parameter requestParameters.channelPartnerShipToPreferenceOid was null or undefined when calling updateChannelPartnerShipToPreference.');
|
|
695
|
+
}
|
|
696
|
+
if (requestParameters.shipToPreference === null || requestParameters.shipToPreference === undefined) {
|
|
697
|
+
throw new runtime.RequiredError('shipToPreference', 'Required parameter requestParameters.shipToPreference was null or undefined when calling updateChannelPartnerShipToPreference.');
|
|
698
|
+
}
|
|
699
|
+
queryParameters = {};
|
|
700
|
+
headerParameters = {};
|
|
701
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
702
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
703
|
+
// oauth required
|
|
704
|
+
_a = headerParameters;
|
|
705
|
+
_b = "Authorization";
|
|
706
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["channel_partner_write"])];
|
|
707
|
+
case 1:
|
|
708
|
+
// oauth required
|
|
709
|
+
_a[_b] = _c.sent();
|
|
710
|
+
_c.label = 2;
|
|
711
|
+
case 2:
|
|
712
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
713
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
714
|
+
}
|
|
715
|
+
return [4 /*yield*/, this.request({
|
|
716
|
+
path: "/channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences/{channel_partner_ship_to_preference_oid}".replace("{".concat("channel_partner_oid", "}"), encodeURIComponent(String(requestParameters.channelPartnerOid))).replace("{".concat("channel_partner_ship_to_preference_oid", "}"), encodeURIComponent(String(requestParameters.channelPartnerShipToPreferenceOid))),
|
|
717
|
+
method: 'PUT',
|
|
718
|
+
headers: headerParameters,
|
|
719
|
+
query: queryParameters,
|
|
720
|
+
body: (0, models_1.ChannelPartnerShipToPreferenceToJSON)(requestParameters.shipToPreference),
|
|
721
|
+
}, initOverrides)];
|
|
722
|
+
case 3:
|
|
723
|
+
response = _c.sent();
|
|
724
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ChannelPartnerShipToPreferenceResponseFromJSON)(jsonValue); })];
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
});
|
|
728
|
+
};
|
|
729
|
+
/**
|
|
730
|
+
* Update a ship to preference record for the channel partner.
|
|
731
|
+
* Update a ship to preference record for the channel partner.
|
|
732
|
+
*/
|
|
733
|
+
ChannelPartnerApi.prototype.updateChannelPartnerShipToPreference = function (requestParameters, initOverrides) {
|
|
734
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
735
|
+
var response;
|
|
736
|
+
return __generator(this, function (_a) {
|
|
737
|
+
switch (_a.label) {
|
|
738
|
+
case 0: return [4 /*yield*/, this.updateChannelPartnerShipToPreferenceRaw(requestParameters, initOverrides)];
|
|
739
|
+
case 1:
|
|
740
|
+
response = _a.sent();
|
|
741
|
+
return [4 /*yield*/, response.value()];
|
|
742
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
});
|
|
746
|
+
};
|
|
379
747
|
return ChannelPartnerApi;
|
|
380
748
|
}(runtime.BaseAPI));
|
|
381
749
|
exports.ChannelPartnerApi = ChannelPartnerApi;
|