ultracart_rest_api_v2_typescript 3.11.7 → 3.11.8

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@3.11.7
1
+ ## ultracart_rest_api_v2_typescript@3.11.8
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@3.11.7 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.11.8 --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
+ | 3.11.8 | 04/22/2025 | order property fields for created_by and created_dts |
57
58
  | 3.11.7 | 04/21/2025 | conversation agent additional fields |
58
59
  | 3.11.6 | 04/16/2025 | added channel partner order item properties |
59
60
  | 3.11.5 | 03/28/2025 | added paypal fastlane constants for payments |
package/api.ts CHANGED
@@ -5344,6 +5344,80 @@ export interface CartValidationResponse {
5344
5344
  errors?: Array<string>;
5345
5345
  }
5346
5346
 
5347
+ /**
5348
+ *
5349
+ * @export
5350
+ * @interface ChanelPartnerReasonCodesResponse
5351
+ */
5352
+ export interface ChanelPartnerReasonCodesResponse {
5353
+ /**
5354
+ *
5355
+ * @type {ModelError}
5356
+ * @memberof ChanelPartnerReasonCodesResponse
5357
+ */
5358
+ error?: ModelError;
5359
+ /**
5360
+ * True if the item level refund reason is required
5361
+ * @type {boolean}
5362
+ * @memberof ChanelPartnerReasonCodesResponse
5363
+ */
5364
+ item_level_refund_reason_required?: boolean;
5365
+ /**
5366
+ * Reason codes available at the item level.
5367
+ * @type {Array<OrderReason>}
5368
+ * @memberof ChanelPartnerReasonCodesResponse
5369
+ */
5370
+ item_level_refund_reasons?: Array<OrderReason>;
5371
+ /**
5372
+ * Return codes available at the item level.
5373
+ * @type {Array<OrderReason>}
5374
+ * @memberof ChanelPartnerReasonCodesResponse
5375
+ */
5376
+ item_level_return_reasons?: Array<OrderReason>;
5377
+ /**
5378
+ *
5379
+ * @type {ResponseMetadata}
5380
+ * @memberof ChanelPartnerReasonCodesResponse
5381
+ */
5382
+ metadata?: ResponseMetadata;
5383
+ /**
5384
+ * True if the order level refund reason is required
5385
+ * @type {boolean}
5386
+ * @memberof ChanelPartnerReasonCodesResponse
5387
+ */
5388
+ order_level_refund_reason_required?: boolean;
5389
+ /**
5390
+ * Reason codes available at the order level.
5391
+ * @type {Array<OrderReason>}
5392
+ * @memberof ChanelPartnerReasonCodesResponse
5393
+ */
5394
+ order_level_refund_reasons?: Array<OrderReason>;
5395
+ /**
5396
+ * True if the order level reject reason is required
5397
+ * @type {boolean}
5398
+ * @memberof ChanelPartnerReasonCodesResponse
5399
+ */
5400
+ order_level_reject_reason_required?: boolean;
5401
+ /**
5402
+ * Reject codes available at the order level.
5403
+ * @type {Array<OrderReason>}
5404
+ * @memberof ChanelPartnerReasonCodesResponse
5405
+ */
5406
+ order_level_reject_reasons?: Array<OrderReason>;
5407
+ /**
5408
+ * Indicates if API call was successful
5409
+ * @type {boolean}
5410
+ * @memberof ChanelPartnerReasonCodesResponse
5411
+ */
5412
+ success?: boolean;
5413
+ /**
5414
+ *
5415
+ * @type {Warning}
5416
+ * @memberof ChanelPartnerReasonCodesResponse
5417
+ */
5418
+ warning?: Warning;
5419
+ }
5420
+
5347
5421
  /**
5348
5422
  *
5349
5423
  * @export
@@ -35001,6 +35075,18 @@ export interface OrderProcessPaymentResponse {
35001
35075
  * @interface OrderProperty
35002
35076
  */
35003
35077
  export interface OrderProperty {
35078
+ /**
35079
+ * Created by user
35080
+ * @type {string}
35081
+ * @memberof OrderProperty
35082
+ */
35083
+ created_by?: string;
35084
+ /**
35085
+ * The date/time that the property was created by the user
35086
+ * @type {string}
35087
+ * @memberof OrderProperty
35088
+ */
35089
+ created_dts?: string;
35004
35090
  /**
35005
35091
  * True if this property is displayed to the customer
35006
35092
  * @type {boolean}
@@ -47594,6 +47680,58 @@ export const ChannelPartnerApiFetchParamCreator = function (configuration?: Conf
47594
47680
  options: localVarRequestOptions,
47595
47681
  };
47596
47682
  },
47683
+ /**
47684
+ * Retrieve reject and refund reason codes.
47685
+ * @summary Retrieve reject and refund reason codes.
47686
+ * @param {number} channel_partner_oid
47687
+ * @param {*} [options] Override http request option.
47688
+ * @throws {RequiredError}
47689
+ */
47690
+ getChannelPartnerReasonCodes(channel_partner_oid: number, options: any = {}): FetchArgs {
47691
+ // verify required parameter 'channel_partner_oid' is not null or undefined
47692
+ if (channel_partner_oid === null || channel_partner_oid === undefined) {
47693
+ throw new RequiredError('channel_partner_oid','Required parameter channel_partner_oid was null or undefined when calling getChannelPartnerReasonCodes.');
47694
+ }
47695
+ const localVarPath = `/channel_partner/channel_partners/{channel_partner_oid}/reason_codes`
47696
+ .replace(`{${"channel_partner_oid"}}`, encodeURIComponent(String(channel_partner_oid)));
47697
+ const localVarUrlObj = url.parse(localVarPath, true);
47698
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
47699
+ const localVarHeaderParameter = {} as any;
47700
+ const localVarQueryParameter = {} as any;
47701
+
47702
+ if(configuration && configuration.apiVersion) {
47703
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
47704
+ }
47705
+
47706
+
47707
+
47708
+ // authentication ultraCartOauth required
47709
+ // oauth required
47710
+ if (configuration && configuration.accessToken) {
47711
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
47712
+ ? configuration.accessToken("ultraCartOauth", ["channel_partner_read"])
47713
+ : configuration.accessToken;
47714
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
47715
+ }
47716
+
47717
+ // authentication ultraCartSimpleApiKey required
47718
+ if (configuration && configuration.apiKey) {
47719
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
47720
+ ? configuration.apiKey("x-ultracart-simple-key")
47721
+ : configuration.apiKey;
47722
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
47723
+ }
47724
+
47725
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
47726
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
47727
+ delete localVarUrlObj.search;
47728
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
47729
+
47730
+ return {
47731
+ url: url.format(localVarUrlObj),
47732
+ options: localVarRequestOptions,
47733
+ };
47734
+ },
47597
47735
  /**
47598
47736
  * Retrieve the ship to preference associated with the channel partner and the specific id.
47599
47737
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
@@ -48193,6 +48331,27 @@ export const ChannelPartnerApiFp = function(configuration?: Configuration) {
48193
48331
  });
48194
48332
  };
48195
48333
  },
48334
+ /**
48335
+ * Retrieve reject and refund reason codes.
48336
+ * @summary Retrieve reject and refund reason codes.
48337
+ * @param {number} channel_partner_oid
48338
+ * @param {*} [options] Override http request option.
48339
+ * @throws {RequiredError}
48340
+ */
48341
+ getChannelPartnerReasonCodes(channel_partner_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ChanelPartnerReasonCodesResponse> {
48342
+ const localVarFetchArgs = ChannelPartnerApiFetchParamCreator(configuration).getChannelPartnerReasonCodes(channel_partner_oid, options);
48343
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
48344
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
48345
+
48346
+ if (response.status >= 200 && response.status < 300) {
48347
+ return response.json();
48348
+
48349
+ } else {
48350
+ throw response;
48351
+ }
48352
+ });
48353
+ };
48354
+ },
48196
48355
  /**
48197
48356
  * Retrieve the ship to preference associated with the channel partner and the specific id.
48198
48357
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
@@ -48434,6 +48593,16 @@ export const ChannelPartnerApiFactory = function (configuration?: Configuration,
48434
48593
  getChannelPartnerOrderByChannelPartnerOrderId(order_id: string, _expand?: string, options?: any) {
48435
48594
  return ChannelPartnerApiFp(configuration).getChannelPartnerOrderByChannelPartnerOrderId(order_id, _expand, options)(fetch, basePath);
48436
48595
  },
48596
+ /**
48597
+ * Retrieve reject and refund reason codes.
48598
+ * @summary Retrieve reject and refund reason codes.
48599
+ * @param {number} channel_partner_oid
48600
+ * @param {*} [options] Override http request option.
48601
+ * @throws {RequiredError}
48602
+ */
48603
+ getChannelPartnerReasonCodes(channel_partner_oid: number, options?: any) {
48604
+ return ChannelPartnerApiFp(configuration).getChannelPartnerReasonCodes(channel_partner_oid, options)(fetch, basePath);
48605
+ },
48437
48606
  /**
48438
48607
  * Retrieve the ship to preference associated with the channel partner and the specific id.
48439
48608
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
@@ -48598,6 +48767,16 @@ export interface ChannelPartnerApiInterface {
48598
48767
  */
48599
48768
  getChannelPartnerOrderByChannelPartnerOrderId(order_id: string, _expand?: string, options?: any): Promise<OrderResponse>;
48600
48769
 
48770
+ /**
48771
+ * Retrieve reject and refund reason codes.
48772
+ * @summary Retrieve reject and refund reason codes.
48773
+ * @param {number} channel_partner_oid
48774
+ * @param {*} [options] Override http request option.
48775
+ * @throws {RequiredError}
48776
+ * @memberof ChannelPartnerApiInterface
48777
+ */
48778
+ getChannelPartnerReasonCodes(channel_partner_oid: number, options?: any): Promise<ChanelPartnerReasonCodesResponse>;
48779
+
48601
48780
  /**
48602
48781
  * Retrieve the ship to preference associated with the channel partner and the specific id.
48603
48782
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
@@ -48776,6 +48955,18 @@ export class ChannelPartnerApi extends BaseAPI implements ChannelPartnerApiInter
48776
48955
  return ChannelPartnerApiFp(this.configuration).getChannelPartnerOrderByChannelPartnerOrderId(order_id, _expand, options)(this.fetch, this.basePath);
48777
48956
  }
48778
48957
 
48958
+ /**
48959
+ * Retrieve reject and refund reason codes.
48960
+ * @summary Retrieve reject and refund reason codes.
48961
+ * @param {number} channel_partner_oid
48962
+ * @param {*} [options] Override http request option.
48963
+ * @throws {RequiredError}
48964
+ * @memberof ChannelPartnerApi
48965
+ */
48966
+ public getChannelPartnerReasonCodes(channel_partner_oid: number, options?: any) {
48967
+ return ChannelPartnerApiFp(this.configuration).getChannelPartnerReasonCodes(channel_partner_oid, options)(this.fetch, this.basePath);
48968
+ }
48969
+
48779
48970
  /**
48780
48971
  * Retrieve the ship to preference associated with the channel partner and the specific id.
48781
48972
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
package/dist/api.d.ts CHANGED
@@ -5214,6 +5214,79 @@ export interface CartValidationResponse {
5214
5214
  */
5215
5215
  errors?: Array<string>;
5216
5216
  }
5217
+ /**
5218
+ *
5219
+ * @export
5220
+ * @interface ChanelPartnerReasonCodesResponse
5221
+ */
5222
+ export interface ChanelPartnerReasonCodesResponse {
5223
+ /**
5224
+ *
5225
+ * @type {ModelError}
5226
+ * @memberof ChanelPartnerReasonCodesResponse
5227
+ */
5228
+ error?: ModelError;
5229
+ /**
5230
+ * True if the item level refund reason is required
5231
+ * @type {boolean}
5232
+ * @memberof ChanelPartnerReasonCodesResponse
5233
+ */
5234
+ item_level_refund_reason_required?: boolean;
5235
+ /**
5236
+ * Reason codes available at the item level.
5237
+ * @type {Array<OrderReason>}
5238
+ * @memberof ChanelPartnerReasonCodesResponse
5239
+ */
5240
+ item_level_refund_reasons?: Array<OrderReason>;
5241
+ /**
5242
+ * Return codes available at the item level.
5243
+ * @type {Array<OrderReason>}
5244
+ * @memberof ChanelPartnerReasonCodesResponse
5245
+ */
5246
+ item_level_return_reasons?: Array<OrderReason>;
5247
+ /**
5248
+ *
5249
+ * @type {ResponseMetadata}
5250
+ * @memberof ChanelPartnerReasonCodesResponse
5251
+ */
5252
+ metadata?: ResponseMetadata;
5253
+ /**
5254
+ * True if the order level refund reason is required
5255
+ * @type {boolean}
5256
+ * @memberof ChanelPartnerReasonCodesResponse
5257
+ */
5258
+ order_level_refund_reason_required?: boolean;
5259
+ /**
5260
+ * Reason codes available at the order level.
5261
+ * @type {Array<OrderReason>}
5262
+ * @memberof ChanelPartnerReasonCodesResponse
5263
+ */
5264
+ order_level_refund_reasons?: Array<OrderReason>;
5265
+ /**
5266
+ * True if the order level reject reason is required
5267
+ * @type {boolean}
5268
+ * @memberof ChanelPartnerReasonCodesResponse
5269
+ */
5270
+ order_level_reject_reason_required?: boolean;
5271
+ /**
5272
+ * Reject codes available at the order level.
5273
+ * @type {Array<OrderReason>}
5274
+ * @memberof ChanelPartnerReasonCodesResponse
5275
+ */
5276
+ order_level_reject_reasons?: Array<OrderReason>;
5277
+ /**
5278
+ * Indicates if API call was successful
5279
+ * @type {boolean}
5280
+ * @memberof ChanelPartnerReasonCodesResponse
5281
+ */
5282
+ success?: boolean;
5283
+ /**
5284
+ *
5285
+ * @type {Warning}
5286
+ * @memberof ChanelPartnerReasonCodesResponse
5287
+ */
5288
+ warning?: Warning;
5289
+ }
5217
5290
  /**
5218
5291
  *
5219
5292
  * @export
@@ -34264,6 +34337,18 @@ export interface OrderProcessPaymentResponse {
34264
34337
  * @interface OrderProperty
34265
34338
  */
34266
34339
  export interface OrderProperty {
34340
+ /**
34341
+ * Created by user
34342
+ * @type {string}
34343
+ * @memberof OrderProperty
34344
+ */
34345
+ created_by?: string;
34346
+ /**
34347
+ * The date/time that the property was created by the user
34348
+ * @type {string}
34349
+ * @memberof OrderProperty
34350
+ */
34351
+ created_dts?: string;
34267
34352
  /**
34268
34353
  * True if this property is displayed to the customer
34269
34354
  * @type {boolean}
@@ -45255,6 +45340,14 @@ export declare const ChannelPartnerApiFetchParamCreator: (configuration?: Config
45255
45340
  * @throws {RequiredError}
45256
45341
  */
45257
45342
  getChannelPartnerOrderByChannelPartnerOrderId(order_id: string, _expand?: string, options?: any): FetchArgs;
45343
+ /**
45344
+ * Retrieve reject and refund reason codes.
45345
+ * @summary Retrieve reject and refund reason codes.
45346
+ * @param {number} channel_partner_oid
45347
+ * @param {*} [options] Override http request option.
45348
+ * @throws {RequiredError}
45349
+ */
45350
+ getChannelPartnerReasonCodes(channel_partner_oid: number, options?: any): FetchArgs;
45258
45351
  /**
45259
45352
  * Retrieve the ship to preference associated with the channel partner and the specific id.
45260
45353
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
@@ -45388,6 +45481,14 @@ export declare const ChannelPartnerApiFp: (configuration?: Configuration) => {
45388
45481
  * @throws {RequiredError}
45389
45482
  */
45390
45483
  getChannelPartnerOrderByChannelPartnerOrderId(order_id: string, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderResponse>;
45484
+ /**
45485
+ * Retrieve reject and refund reason codes.
45486
+ * @summary Retrieve reject and refund reason codes.
45487
+ * @param {number} channel_partner_oid
45488
+ * @param {*} [options] Override http request option.
45489
+ * @throws {RequiredError}
45490
+ */
45491
+ getChannelPartnerReasonCodes(channel_partner_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ChanelPartnerReasonCodesResponse>;
45391
45492
  /**
45392
45493
  * Retrieve the ship to preference associated with the channel partner and the specific id.
45393
45494
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
@@ -45521,6 +45622,14 @@ export declare const ChannelPartnerApiFactory: (configuration?: Configuration, f
45521
45622
  * @throws {RequiredError}
45522
45623
  */
45523
45624
  getChannelPartnerOrderByChannelPartnerOrderId(order_id: string, _expand?: string, options?: any): Promise<OrderResponse>;
45625
+ /**
45626
+ * Retrieve reject and refund reason codes.
45627
+ * @summary Retrieve reject and refund reason codes.
45628
+ * @param {number} channel_partner_oid
45629
+ * @param {*} [options] Override http request option.
45630
+ * @throws {RequiredError}
45631
+ */
45632
+ getChannelPartnerReasonCodes(channel_partner_oid: number, options?: any): Promise<ChanelPartnerReasonCodesResponse>;
45524
45633
  /**
45525
45634
  * Retrieve the ship to preference associated with the channel partner and the specific id.
45526
45635
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
@@ -45662,6 +45771,15 @@ export interface ChannelPartnerApiInterface {
45662
45771
  * @memberof ChannelPartnerApiInterface
45663
45772
  */
45664
45773
  getChannelPartnerOrderByChannelPartnerOrderId(order_id: string, _expand?: string, options?: any): Promise<OrderResponse>;
45774
+ /**
45775
+ * Retrieve reject and refund reason codes.
45776
+ * @summary Retrieve reject and refund reason codes.
45777
+ * @param {number} channel_partner_oid
45778
+ * @param {*} [options] Override http request option.
45779
+ * @throws {RequiredError}
45780
+ * @memberof ChannelPartnerApiInterface
45781
+ */
45782
+ getChannelPartnerReasonCodes(channel_partner_oid: number, options?: any): Promise<ChanelPartnerReasonCodesResponse>;
45665
45783
  /**
45666
45784
  * Retrieve the ship to preference associated with the channel partner and the specific id.
45667
45785
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
@@ -45811,6 +45929,15 @@ export declare class ChannelPartnerApi extends BaseAPI implements ChannelPartner
45811
45929
  * @memberof ChannelPartnerApi
45812
45930
  */
45813
45931
  getChannelPartnerOrderByChannelPartnerOrderId(order_id: string, _expand?: string, options?: any): Promise<OrderResponse>;
45932
+ /**
45933
+ * Retrieve reject and refund reason codes.
45934
+ * @summary Retrieve reject and refund reason codes.
45935
+ * @param {number} channel_partner_oid
45936
+ * @param {*} [options] Override http request option.
45937
+ * @throws {RequiredError}
45938
+ * @memberof ChannelPartnerApi
45939
+ */
45940
+ getChannelPartnerReasonCodes(channel_partner_oid: number, options?: any): Promise<ChanelPartnerReasonCodesResponse>;
45814
45941
  /**
45815
45942
  * Retrieve the ship to preference associated with the channel partner and the specific id.
45816
45943
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
package/dist/api.js CHANGED
@@ -3846,6 +3846,52 @@ var ChannelPartnerApiFetchParamCreator = function (configuration) {
3846
3846
  options: localVarRequestOptions,
3847
3847
  };
3848
3848
  },
3849
+ /**
3850
+ * Retrieve reject and refund reason codes.
3851
+ * @summary Retrieve reject and refund reason codes.
3852
+ * @param {number} channel_partner_oid
3853
+ * @param {*} [options] Override http request option.
3854
+ * @throws {RequiredError}
3855
+ */
3856
+ getChannelPartnerReasonCodes: function (channel_partner_oid, options) {
3857
+ if (options === void 0) { options = {}; }
3858
+ // verify required parameter 'channel_partner_oid' is not null or undefined
3859
+ if (channel_partner_oid === null || channel_partner_oid === undefined) {
3860
+ throw new RequiredError('channel_partner_oid', 'Required parameter channel_partner_oid was null or undefined when calling getChannelPartnerReasonCodes.');
3861
+ }
3862
+ var localVarPath = "/channel_partner/channel_partners/{channel_partner_oid}/reason_codes"
3863
+ .replace("{".concat("channel_partner_oid", "}"), encodeURIComponent(String(channel_partner_oid)));
3864
+ var localVarUrlObj = url.parse(localVarPath, true);
3865
+ var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
3866
+ var localVarHeaderParameter = {};
3867
+ var localVarQueryParameter = {};
3868
+ if (configuration && configuration.apiVersion) {
3869
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
3870
+ }
3871
+ // authentication ultraCartOauth required
3872
+ // oauth required
3873
+ if (configuration && configuration.accessToken) {
3874
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
3875
+ ? configuration.accessToken("ultraCartOauth", ["channel_partner_read"])
3876
+ : configuration.accessToken;
3877
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
3878
+ }
3879
+ // authentication ultraCartSimpleApiKey required
3880
+ if (configuration && configuration.apiKey) {
3881
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
3882
+ ? configuration.apiKey("x-ultracart-simple-key")
3883
+ : configuration.apiKey;
3884
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
3885
+ }
3886
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
3887
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
3888
+ delete localVarUrlObj.search;
3889
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
3890
+ return {
3891
+ url: url.format(localVarUrlObj),
3892
+ options: localVarRequestOptions,
3893
+ };
3894
+ },
3849
3895
  /**
3850
3896
  * Retrieve the ship to preference associated with the channel partner and the specific id.
3851
3897
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
@@ -4398,6 +4444,28 @@ var ChannelPartnerApiFp = function (configuration) {
4398
4444
  });
4399
4445
  };
4400
4446
  },
4447
+ /**
4448
+ * Retrieve reject and refund reason codes.
4449
+ * @summary Retrieve reject and refund reason codes.
4450
+ * @param {number} channel_partner_oid
4451
+ * @param {*} [options] Override http request option.
4452
+ * @throws {RequiredError}
4453
+ */
4454
+ getChannelPartnerReasonCodes: function (channel_partner_oid, options) {
4455
+ var localVarFetchArgs = (0, exports.ChannelPartnerApiFetchParamCreator)(configuration).getChannelPartnerReasonCodes(channel_partner_oid, options);
4456
+ return function (fetch, basePath) {
4457
+ if (fetch === void 0) { fetch = portableFetch; }
4458
+ if (basePath === void 0) { basePath = BASE_PATH; }
4459
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
4460
+ if (response.status >= 200 && response.status < 300) {
4461
+ return response.json();
4462
+ }
4463
+ else {
4464
+ throw response;
4465
+ }
4466
+ });
4467
+ };
4468
+ },
4401
4469
  /**
4402
4470
  * Retrieve the ship to preference associated with the channel partner and the specific id.
4403
4471
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
@@ -4646,6 +4714,16 @@ var ChannelPartnerApiFactory = function (configuration, fetch, basePath) {
4646
4714
  getChannelPartnerOrderByChannelPartnerOrderId: function (order_id, _expand, options) {
4647
4715
  return (0, exports.ChannelPartnerApiFp)(configuration).getChannelPartnerOrderByChannelPartnerOrderId(order_id, _expand, options)(fetch, basePath);
4648
4716
  },
4717
+ /**
4718
+ * Retrieve reject and refund reason codes.
4719
+ * @summary Retrieve reject and refund reason codes.
4720
+ * @param {number} channel_partner_oid
4721
+ * @param {*} [options] Override http request option.
4722
+ * @throws {RequiredError}
4723
+ */
4724
+ getChannelPartnerReasonCodes: function (channel_partner_oid, options) {
4725
+ return (0, exports.ChannelPartnerApiFp)(configuration).getChannelPartnerReasonCodes(channel_partner_oid, options)(fetch, basePath);
4726
+ },
4649
4727
  /**
4650
4728
  * Retrieve the ship to preference associated with the channel partner and the specific id.
4651
4729
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
@@ -4822,6 +4900,17 @@ var ChannelPartnerApi = /** @class */ (function (_super) {
4822
4900
  ChannelPartnerApi.prototype.getChannelPartnerOrderByChannelPartnerOrderId = function (order_id, _expand, options) {
4823
4901
  return (0, exports.ChannelPartnerApiFp)(this.configuration).getChannelPartnerOrderByChannelPartnerOrderId(order_id, _expand, options)(this.fetch, this.basePath);
4824
4902
  };
4903
+ /**
4904
+ * Retrieve reject and refund reason codes.
4905
+ * @summary Retrieve reject and refund reason codes.
4906
+ * @param {number} channel_partner_oid
4907
+ * @param {*} [options] Override http request option.
4908
+ * @throws {RequiredError}
4909
+ * @memberof ChannelPartnerApi
4910
+ */
4911
+ ChannelPartnerApi.prototype.getChannelPartnerReasonCodes = function (channel_partner_oid, options) {
4912
+ return (0, exports.ChannelPartnerApiFp)(this.configuration).getChannelPartnerReasonCodes(channel_partner_oid, options)(this.fetch, this.basePath);
4913
+ };
4825
4914
  /**
4826
4915
  * Retrieve the ship to preference associated with the channel partner and the specific id.
4827
4916
  * @summary Retrieve the ship to preference associated with the channel partner and the specific id.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.11.7",
3
+ "version": "3.11.8",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [