ultracart_rest_api_v2_typescript 3.10.194 → 3.10.195

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.10.194
1
+ ## ultracart_rest_api_v2_typescript@3.10.195
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.10.194 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.195 --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.10.195 | 05/01/2024 | getConversationPbxAudioUploadUrl - fix the response obj def |
57
58
  | 3.10.194 | 04/24/2024 | esp - add fields for external generation on email |
58
59
  | 3.10.193 | 04/04/2024 | AutoOrder.calculated_next_shipment_dts |
59
60
  | 3.10.192 | 04/01/2024 | added merchant_id as read-only top level property of AutoOrder object |
package/api.ts CHANGED
@@ -1572,6 +1572,20 @@ export interface AutoOrderAddonItemOption {
1572
1572
  value?: string;
1573
1573
  }
1574
1574
 
1575
+ /**
1576
+ *
1577
+ * @export
1578
+ * @interface AutoOrderConsolidate
1579
+ */
1580
+ export interface AutoOrderConsolidate {
1581
+ /**
1582
+ *
1583
+ * @type {Array<number>}
1584
+ * @memberof AutoOrderConsolidate
1585
+ */
1586
+ source_auto_order_oids?: Array<number>;
1587
+ }
1588
+
1575
1589
  /**
1576
1590
  *
1577
1591
  * @export
@@ -8817,6 +8831,64 @@ export interface ConversationPbxAudioResponse {
8817
8831
  warning?: Warning;
8818
8832
  }
8819
8833
 
8834
+ /**
8835
+ *
8836
+ * @export
8837
+ * @interface ConversationPbxAudioUploadUrl
8838
+ */
8839
+ export interface ConversationPbxAudioUploadUrl {
8840
+ /**
8841
+ *
8842
+ * @type {string}
8843
+ * @memberof ConversationPbxAudioUploadUrl
8844
+ */
8845
+ key?: string;
8846
+ /**
8847
+ *
8848
+ * @type {string}
8849
+ * @memberof ConversationPbxAudioUploadUrl
8850
+ */
8851
+ url?: string;
8852
+ }
8853
+
8854
+ /**
8855
+ *
8856
+ * @export
8857
+ * @interface ConversationPbxAudioUploadUrlResponse
8858
+ */
8859
+ export interface ConversationPbxAudioUploadUrlResponse {
8860
+ /**
8861
+ *
8862
+ * @type {ConversationPbxAudioUploadUrl}
8863
+ * @memberof ConversationPbxAudioUploadUrlResponse
8864
+ */
8865
+ conversation_pbx_audio_upload_url?: ConversationPbxAudioUploadUrl;
8866
+ /**
8867
+ *
8868
+ * @type {ModelError}
8869
+ * @memberof ConversationPbxAudioUploadUrlResponse
8870
+ */
8871
+ error?: ModelError;
8872
+ /**
8873
+ *
8874
+ * @type {ResponseMetadata}
8875
+ * @memberof ConversationPbxAudioUploadUrlResponse
8876
+ */
8877
+ metadata?: ResponseMetadata;
8878
+ /**
8879
+ * Indicates if API call was successful
8880
+ * @type {boolean}
8881
+ * @memberof ConversationPbxAudioUploadUrlResponse
8882
+ */
8883
+ success?: boolean;
8884
+ /**
8885
+ *
8886
+ * @type {Warning}
8887
+ * @memberof ConversationPbxAudioUploadUrlResponse
8888
+ */
8889
+ warning?: Warning;
8890
+ }
8891
+
8820
8892
  /**
8821
8893
  *
8822
8894
  * @export
@@ -8925,10 +8997,10 @@ export interface ConversationPbxCustomerSnapshotResponse {
8925
8997
  auto_orders?: Array<AutoOrder>;
8926
8998
  /**
8927
8999
  *
8928
- * @type {Customer}
9000
+ * @type {Array<Customer>}
8929
9001
  * @memberof ConversationPbxCustomerSnapshotResponse
8930
9002
  */
8931
- customer?: Customer;
9003
+ customers?: Array<Customer>;
8932
9004
  /**
8933
9005
  *
8934
9006
  * @type {ModelError}
@@ -44675,6 +44747,72 @@ export class AffiliateApi extends BaseAPI implements AffiliateApiInterface {
44675
44747
  */
44676
44748
  export const AutoOrderApiFetchParamCreator = function (configuration?: Configuration) {
44677
44749
  return {
44750
+ /**
44751
+ * Consolidates mutliple auto orders on the UltraCart account.
44752
+ * @summary Consolidates multiple auto orders
44753
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
44754
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
44755
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
44756
+ * @param {*} [options] Override http request option.
44757
+ * @throws {RequiredError}
44758
+ */
44759
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options: any = {}): FetchArgs {
44760
+ // verify required parameter 'auto_order_consolidate' is not null or undefined
44761
+ if (auto_order_consolidate === null || auto_order_consolidate === undefined) {
44762
+ throw new RequiredError('auto_order_consolidate','Required parameter auto_order_consolidate was null or undefined when calling consolidateAutoOrders.');
44763
+ }
44764
+ // verify required parameter 'auto_order_oid' is not null or undefined
44765
+ if (auto_order_oid === null || auto_order_oid === undefined) {
44766
+ throw new RequiredError('auto_order_oid','Required parameter auto_order_oid was null or undefined when calling consolidateAutoOrders.');
44767
+ }
44768
+ const localVarPath = `/auto_order/auto_orders/{auto_order_oid}/consolidate`
44769
+ .replace(`{${"auto_order_oid"}}`, encodeURIComponent(String(auto_order_oid)));
44770
+ const localVarUrlObj = url.parse(localVarPath, true);
44771
+ const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
44772
+ const localVarHeaderParameter = {} as any;
44773
+ const localVarQueryParameter = {} as any;
44774
+
44775
+ if(configuration && configuration.apiVersion) {
44776
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
44777
+ }
44778
+
44779
+
44780
+
44781
+ // authentication ultraCartOauth required
44782
+ // oauth required
44783
+ if (configuration && configuration.accessToken) {
44784
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
44785
+ ? configuration.accessToken("ultraCartOauth", ["auto_order_write"])
44786
+ : configuration.accessToken;
44787
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
44788
+ }
44789
+
44790
+ // authentication ultraCartSimpleApiKey required
44791
+ if (configuration && configuration.apiKey) {
44792
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
44793
+ ? configuration.apiKey("x-ultracart-simple-key")
44794
+ : configuration.apiKey;
44795
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
44796
+ }
44797
+
44798
+ if (_expand !== undefined) {
44799
+ localVarQueryParameter['_expand'] = _expand;
44800
+ }
44801
+
44802
+ localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
44803
+
44804
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
44805
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
44806
+ delete localVarUrlObj.search;
44807
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
44808
+ const needsSerialization = (<any>"AutoOrderConsolidate" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
44809
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(auto_order_consolidate || {}) : (auto_order_consolidate || "");
44810
+
44811
+ return {
44812
+ url: url.format(localVarUrlObj),
44813
+ options: localVarRequestOptions,
44814
+ };
44815
+ },
44678
44816
  /**
44679
44817
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
44680
44818
  * @summary Establish an auto order by referencing a regular order id
@@ -45349,6 +45487,29 @@ export const AutoOrderApiFetchParamCreator = function (configuration?: Configura
45349
45487
  */
45350
45488
  export const AutoOrderApiFp = function(configuration?: Configuration) {
45351
45489
  return {
45490
+ /**
45491
+ * Consolidates mutliple auto orders on the UltraCart account.
45492
+ * @summary Consolidates multiple auto orders
45493
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
45494
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
45495
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
45496
+ * @param {*} [options] Override http request option.
45497
+ * @throws {RequiredError}
45498
+ */
45499
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse> {
45500
+ const localVarFetchArgs = AutoOrderApiFetchParamCreator(configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options);
45501
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
45502
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
45503
+
45504
+ if (response.status >= 200 && response.status < 300) {
45505
+ return response.json();
45506
+
45507
+ } else {
45508
+ throw response;
45509
+ }
45510
+ });
45511
+ };
45512
+ },
45352
45513
  /**
45353
45514
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
45354
45515
  * @summary Establish an auto order by referencing a regular order id
@@ -45584,6 +45745,18 @@ export const AutoOrderApiFp = function(configuration?: Configuration) {
45584
45745
  */
45585
45746
  export const AutoOrderApiFactory = function (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) {
45586
45747
  return {
45748
+ /**
45749
+ * Consolidates mutliple auto orders on the UltraCart account.
45750
+ * @summary Consolidates multiple auto orders
45751
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
45752
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
45753
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
45754
+ * @param {*} [options] Override http request option.
45755
+ * @throws {RequiredError}
45756
+ */
45757
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any) {
45758
+ return AutoOrderApiFp(configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options)(fetch, basePath);
45759
+ },
45587
45760
  /**
45588
45761
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
45589
45762
  * @summary Establish an auto order by referencing a regular order id
@@ -45720,6 +45893,18 @@ export const AutoOrderApiFactory = function (configuration?: Configuration, fetc
45720
45893
  * @interface AutoOrderApi
45721
45894
  */
45722
45895
  export interface AutoOrderApiInterface {
45896
+ /**
45897
+ * Consolidates mutliple auto orders on the UltraCart account.
45898
+ * @summary Consolidates multiple auto orders
45899
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
45900
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
45901
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
45902
+ * @param {*} [options] Override http request option.
45903
+ * @throws {RequiredError}
45904
+ * @memberof AutoOrderApiInterface
45905
+ */
45906
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
45907
+
45723
45908
  /**
45724
45909
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
45725
45910
  * @summary Establish an auto order by referencing a regular order id
@@ -45856,6 +46041,20 @@ export interface AutoOrderApiInterface {
45856
46041
  * @extends {BaseAPI}
45857
46042
  */
45858
46043
  export class AutoOrderApi extends BaseAPI implements AutoOrderApiInterface {
46044
+ /**
46045
+ * Consolidates mutliple auto orders on the UltraCart account.
46046
+ * @summary Consolidates multiple auto orders
46047
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
46048
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
46049
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
46050
+ * @param {*} [options] Override http request option.
46051
+ * @throws {RequiredError}
46052
+ * @memberof AutoOrderApi
46053
+ */
46054
+ public consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any) {
46055
+ return AutoOrderApiFp(this.configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options)(this.fetch, this.basePath);
46056
+ }
46057
+
45859
46058
  /**
45860
46059
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
45861
46060
  * @summary Establish an auto order by referencing a regular order id
@@ -55398,7 +55597,7 @@ export const ConversationApiFp = function(configuration?: Configuration) {
55398
55597
  * @param {*} [options] Override http request option.
55399
55598
  * @throws {RequiredError}
55400
55599
  */
55401
- getConversationPbxAudioUploadUrl(extension: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationMultimediaUploadUrlResponse> {
55600
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationPbxAudioUploadUrlResponse> {
55402
55601
  const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getConversationPbxAudioUploadUrl(extension, options);
55403
55602
  return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
55404
55603
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
@@ -57814,7 +58013,7 @@ export interface ConversationApiInterface {
57814
58013
  * @throws {RequiredError}
57815
58014
  * @memberof ConversationApiInterface
57816
58015
  */
57817
- getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
58016
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationPbxAudioUploadUrlResponse>;
57818
58017
 
57819
58018
  /**
57820
58019
  * Retrieves all the orders, auto orders, and customer profile for a given phone number
package/dist/api.d.ts CHANGED
@@ -1526,6 +1526,19 @@ export interface AutoOrderAddonItemOption {
1526
1526
  */
1527
1527
  value?: string;
1528
1528
  }
1529
+ /**
1530
+ *
1531
+ * @export
1532
+ * @interface AutoOrderConsolidate
1533
+ */
1534
+ export interface AutoOrderConsolidate {
1535
+ /**
1536
+ *
1537
+ * @type {Array<number>}
1538
+ * @memberof AutoOrderConsolidate
1539
+ */
1540
+ source_auto_order_oids?: Array<number>;
1541
+ }
1529
1542
  /**
1530
1543
  *
1531
1544
  * @export
@@ -8606,6 +8619,62 @@ export interface ConversationPbxAudioResponse {
8606
8619
  */
8607
8620
  warning?: Warning;
8608
8621
  }
8622
+ /**
8623
+ *
8624
+ * @export
8625
+ * @interface ConversationPbxAudioUploadUrl
8626
+ */
8627
+ export interface ConversationPbxAudioUploadUrl {
8628
+ /**
8629
+ *
8630
+ * @type {string}
8631
+ * @memberof ConversationPbxAudioUploadUrl
8632
+ */
8633
+ key?: string;
8634
+ /**
8635
+ *
8636
+ * @type {string}
8637
+ * @memberof ConversationPbxAudioUploadUrl
8638
+ */
8639
+ url?: string;
8640
+ }
8641
+ /**
8642
+ *
8643
+ * @export
8644
+ * @interface ConversationPbxAudioUploadUrlResponse
8645
+ */
8646
+ export interface ConversationPbxAudioUploadUrlResponse {
8647
+ /**
8648
+ *
8649
+ * @type {ConversationPbxAudioUploadUrl}
8650
+ * @memberof ConversationPbxAudioUploadUrlResponse
8651
+ */
8652
+ conversation_pbx_audio_upload_url?: ConversationPbxAudioUploadUrl;
8653
+ /**
8654
+ *
8655
+ * @type {ModelError}
8656
+ * @memberof ConversationPbxAudioUploadUrlResponse
8657
+ */
8658
+ error?: ModelError;
8659
+ /**
8660
+ *
8661
+ * @type {ResponseMetadata}
8662
+ * @memberof ConversationPbxAudioUploadUrlResponse
8663
+ */
8664
+ metadata?: ResponseMetadata;
8665
+ /**
8666
+ * Indicates if API call was successful
8667
+ * @type {boolean}
8668
+ * @memberof ConversationPbxAudioUploadUrlResponse
8669
+ */
8670
+ success?: boolean;
8671
+ /**
8672
+ *
8673
+ * @type {Warning}
8674
+ * @memberof ConversationPbxAudioUploadUrlResponse
8675
+ */
8676
+ warning?: Warning;
8677
+ }
8609
8678
  /**
8610
8679
  *
8611
8680
  * @export
@@ -8712,10 +8781,10 @@ export interface ConversationPbxCustomerSnapshotResponse {
8712
8781
  auto_orders?: Array<AutoOrder>;
8713
8782
  /**
8714
8783
  *
8715
- * @type {Customer}
8784
+ * @type {Array<Customer>}
8716
8785
  * @memberof ConversationPbxCustomerSnapshotResponse
8717
8786
  */
8718
- customer?: Customer;
8787
+ customers?: Array<Customer>;
8719
8788
  /**
8720
8789
  *
8721
8790
  * @type {ModelError}
@@ -43570,6 +43639,16 @@ export declare class AffiliateApi extends BaseAPI implements AffiliateApiInterfa
43570
43639
  * @export
43571
43640
  */
43572
43641
  export declare const AutoOrderApiFetchParamCreator: (configuration?: Configuration) => {
43642
+ /**
43643
+ * Consolidates mutliple auto orders on the UltraCart account.
43644
+ * @summary Consolidates multiple auto orders
43645
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
43646
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
43647
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
43648
+ * @param {*} [options] Override http request option.
43649
+ * @throws {RequiredError}
43650
+ */
43651
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): FetchArgs;
43573
43652
  /**
43574
43653
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
43575
43654
  * @summary Establish an auto order by referencing a regular order id
@@ -43685,6 +43764,16 @@ export declare const AutoOrderApiFetchParamCreator: (configuration?: Configurati
43685
43764
  * @export
43686
43765
  */
43687
43766
  export declare const AutoOrderApiFp: (configuration?: Configuration) => {
43767
+ /**
43768
+ * Consolidates mutliple auto orders on the UltraCart account.
43769
+ * @summary Consolidates multiple auto orders
43770
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
43771
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
43772
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
43773
+ * @param {*} [options] Override http request option.
43774
+ * @throws {RequiredError}
43775
+ */
43776
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse>;
43688
43777
  /**
43689
43778
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
43690
43779
  * @summary Establish an auto order by referencing a regular order id
@@ -43800,6 +43889,16 @@ export declare const AutoOrderApiFp: (configuration?: Configuration) => {
43800
43889
  * @export
43801
43890
  */
43802
43891
  export declare const AutoOrderApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => {
43892
+ /**
43893
+ * Consolidates mutliple auto orders on the UltraCart account.
43894
+ * @summary Consolidates multiple auto orders
43895
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
43896
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
43897
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
43898
+ * @param {*} [options] Override http request option.
43899
+ * @throws {RequiredError}
43900
+ */
43901
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
43803
43902
  /**
43804
43903
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
43805
43904
  * @summary Establish an auto order by referencing a regular order id
@@ -43916,6 +44015,17 @@ export declare const AutoOrderApiFactory: (configuration?: Configuration, fetch?
43916
44015
  * @interface AutoOrderApi
43917
44016
  */
43918
44017
  export interface AutoOrderApiInterface {
44018
+ /**
44019
+ * Consolidates mutliple auto orders on the UltraCart account.
44020
+ * @summary Consolidates multiple auto orders
44021
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
44022
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
44023
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
44024
+ * @param {*} [options] Override http request option.
44025
+ * @throws {RequiredError}
44026
+ * @memberof AutoOrderApiInterface
44027
+ */
44028
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
43919
44029
  /**
43920
44030
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
43921
44031
  * @summary Establish an auto order by referencing a regular order id
@@ -44042,6 +44152,17 @@ export interface AutoOrderApiInterface {
44042
44152
  * @extends {BaseAPI}
44043
44153
  */
44044
44154
  export declare class AutoOrderApi extends BaseAPI implements AutoOrderApiInterface {
44155
+ /**
44156
+ * Consolidates mutliple auto orders on the UltraCart account.
44157
+ * @summary Consolidates multiple auto orders
44158
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
44159
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
44160
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
44161
+ * @param {*} [options] Override http request option.
44162
+ * @throws {RequiredError}
44163
+ * @memberof AutoOrderApi
44164
+ */
44165
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
44045
44166
  /**
44046
44167
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
44047
44168
  * @summary Establish an auto order by referencing a regular order id
@@ -46791,7 +46912,7 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
46791
46912
  * @param {*} [options] Override http request option.
46792
46913
  * @throws {RequiredError}
46793
46914
  */
46794
- getConversationPbxAudioUploadUrl(extension: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationMultimediaUploadUrlResponse>;
46915
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationPbxAudioUploadUrlResponse>;
46795
46916
  /**
46796
46917
  * Retrieves all the orders, auto orders, and customer profile for a given phone number
46797
46918
  * @summary Get orders and customer information for a phone number
@@ -47488,7 +47609,7 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
47488
47609
  * @param {*} [options] Override http request option.
47489
47610
  * @throws {RequiredError}
47490
47611
  */
47491
- getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
47612
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationPbxAudioUploadUrlResponse>;
47492
47613
  /**
47493
47614
  * Retrieves all the orders, auto orders, and customer profile for a given phone number
47494
47615
  * @summary Get orders and customer information for a phone number
@@ -48212,7 +48333,7 @@ export interface ConversationApiInterface {
48212
48333
  * @throws {RequiredError}
48213
48334
  * @memberof ConversationApiInterface
48214
48335
  */
48215
- getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
48336
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationPbxAudioUploadUrlResponse>;
48216
48337
  /**
48217
48338
  * Retrieves all the orders, auto orders, and customer profile for a given phone number
48218
48339
  * @summary Get orders and customer information for a phone number
@@ -48997,7 +49118,7 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
48997
49118
  * @throws {RequiredError}
48998
49119
  * @memberof ConversationApi
48999
49120
  */
49000
- getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
49121
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationPbxAudioUploadUrlResponse>;
49001
49122
  /**
49002
49123
  * Retrieves all the orders, auto orders, and customer profile for a given phone number
49003
49124
  * @summary Get orders and customer information for a phone number
package/dist/api.js CHANGED
@@ -1990,6 +1990,64 @@ exports.AffiliateApi = AffiliateApi;
1990
1990
  */
1991
1991
  var AutoOrderApiFetchParamCreator = function (configuration) {
1992
1992
  return {
1993
+ /**
1994
+ * Consolidates mutliple auto orders on the UltraCart account.
1995
+ * @summary Consolidates multiple auto orders
1996
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
1997
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
1998
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
1999
+ * @param {*} [options] Override http request option.
2000
+ * @throws {RequiredError}
2001
+ */
2002
+ consolidateAutoOrders: function (auto_order_consolidate, auto_order_oid, _expand, options) {
2003
+ if (options === void 0) { options = {}; }
2004
+ // verify required parameter 'auto_order_consolidate' is not null or undefined
2005
+ if (auto_order_consolidate === null || auto_order_consolidate === undefined) {
2006
+ throw new RequiredError('auto_order_consolidate', 'Required parameter auto_order_consolidate was null or undefined when calling consolidateAutoOrders.');
2007
+ }
2008
+ // verify required parameter 'auto_order_oid' is not null or undefined
2009
+ if (auto_order_oid === null || auto_order_oid === undefined) {
2010
+ throw new RequiredError('auto_order_oid', 'Required parameter auto_order_oid was null or undefined when calling consolidateAutoOrders.');
2011
+ }
2012
+ var localVarPath = "/auto_order/auto_orders/{auto_order_oid}/consolidate"
2013
+ .replace("{".concat("auto_order_oid", "}"), encodeURIComponent(String(auto_order_oid)));
2014
+ var localVarUrlObj = url.parse(localVarPath, true);
2015
+ var localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
2016
+ var localVarHeaderParameter = {};
2017
+ var localVarQueryParameter = {};
2018
+ if (configuration && configuration.apiVersion) {
2019
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
2020
+ }
2021
+ // authentication ultraCartOauth required
2022
+ // oauth required
2023
+ if (configuration && configuration.accessToken) {
2024
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
2025
+ ? configuration.accessToken("ultraCartOauth", ["auto_order_write"])
2026
+ : configuration.accessToken;
2027
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
2028
+ }
2029
+ // authentication ultraCartSimpleApiKey required
2030
+ if (configuration && configuration.apiKey) {
2031
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
2032
+ ? configuration.apiKey("x-ultracart-simple-key")
2033
+ : configuration.apiKey;
2034
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
2035
+ }
2036
+ if (_expand !== undefined) {
2037
+ localVarQueryParameter['_expand'] = _expand;
2038
+ }
2039
+ localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
2040
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
2041
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
2042
+ delete localVarUrlObj.search;
2043
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
2044
+ var needsSerialization = ("AutoOrderConsolidate" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
2045
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(auto_order_consolidate || {}) : (auto_order_consolidate || "");
2046
+ return {
2047
+ url: url.format(localVarUrlObj),
2048
+ options: localVarRequestOptions,
2049
+ };
2050
+ },
1993
2051
  /**
1994
2052
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
1995
2053
  * @summary Establish an auto order by referencing a regular order id
@@ -2569,6 +2627,30 @@ exports.AutoOrderApiFetchParamCreator = AutoOrderApiFetchParamCreator;
2569
2627
  */
2570
2628
  var AutoOrderApiFp = function (configuration) {
2571
2629
  return {
2630
+ /**
2631
+ * Consolidates mutliple auto orders on the UltraCart account.
2632
+ * @summary Consolidates multiple auto orders
2633
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
2634
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
2635
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
2636
+ * @param {*} [options] Override http request option.
2637
+ * @throws {RequiredError}
2638
+ */
2639
+ consolidateAutoOrders: function (auto_order_consolidate, auto_order_oid, _expand, options) {
2640
+ var localVarFetchArgs = (0, exports.AutoOrderApiFetchParamCreator)(configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options);
2641
+ return function (fetch, basePath) {
2642
+ if (fetch === void 0) { fetch = portableFetch; }
2643
+ if (basePath === void 0) { basePath = BASE_PATH; }
2644
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
2645
+ if (response.status >= 200 && response.status < 300) {
2646
+ return response.json();
2647
+ }
2648
+ else {
2649
+ throw response;
2650
+ }
2651
+ });
2652
+ };
2653
+ },
2572
2654
  /**
2573
2655
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
2574
2656
  * @summary Establish an auto order by referencing a regular order id
@@ -2813,6 +2895,18 @@ exports.AutoOrderApiFp = AutoOrderApiFp;
2813
2895
  */
2814
2896
  var AutoOrderApiFactory = function (configuration, fetch, basePath) {
2815
2897
  return {
2898
+ /**
2899
+ * Consolidates mutliple auto orders on the UltraCart account.
2900
+ * @summary Consolidates multiple auto orders
2901
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
2902
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
2903
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
2904
+ * @param {*} [options] Override http request option.
2905
+ * @throws {RequiredError}
2906
+ */
2907
+ consolidateAutoOrders: function (auto_order_consolidate, auto_order_oid, _expand, options) {
2908
+ return (0, exports.AutoOrderApiFp)(configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options)(fetch, basePath);
2909
+ },
2816
2910
  /**
2817
2911
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
2818
2912
  * @summary Establish an auto order by referencing a regular order id
@@ -2954,6 +3048,19 @@ var AutoOrderApi = /** @class */ (function (_super) {
2954
3048
  function AutoOrderApi() {
2955
3049
  return _super !== null && _super.apply(this, arguments) || this;
2956
3050
  }
3051
+ /**
3052
+ * Consolidates mutliple auto orders on the UltraCart account.
3053
+ * @summary Consolidates multiple auto orders
3054
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
3055
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
3056
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
3057
+ * @param {*} [options] Override http request option.
3058
+ * @throws {RequiredError}
3059
+ * @memberof AutoOrderApi
3060
+ */
3061
+ AutoOrderApi.prototype.consolidateAutoOrders = function (auto_order_consolidate, auto_order_oid, _expand, options) {
3062
+ return (0, exports.AutoOrderApiFp)(this.configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options)(this.fetch, this.basePath);
3063
+ };
2957
3064
  /**
2958
3065
  * Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
2959
3066
  * @summary Establish an auto order by referencing a regular order id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.194",
3
+ "version": "3.10.195",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [