ultracart_rest_api_v2_typescript 3.10.194 → 3.10.196

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.196
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.196 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 3.10.196 | 05/02/2024 | autoorder - fields to record merge association and tstamp |
58
+ | 3.10.195 | 05/01/2024 | getConversationPbxAudioUploadUrl - fix the response obj def |
57
59
  | 3.10.194 | 04/24/2024 | esp - add fields for external generation on email |
58
60
  | 3.10.193 | 04/04/2024 | AutoOrder.calculated_next_shipment_dts |
59
61
  | 3.10.192 | 04/01/2024 | added merchant_id as read-only top level property of AutoOrder object |
package/api.ts CHANGED
@@ -1448,6 +1448,18 @@ export interface AutoOrder {
1448
1448
  * @memberof AutoOrder
1449
1449
  */
1450
1450
  merchant_id?: string;
1451
+ /**
1452
+ * The date/time the auto order was merged into another auto order
1453
+ * @type {string}
1454
+ * @memberof AutoOrder
1455
+ */
1456
+ merged_dts?: string;
1457
+ /**
1458
+ * The auto order that this auto order was merged into
1459
+ * @type {number}
1460
+ * @memberof AutoOrder
1461
+ */
1462
+ merged_into_auto_order_oid?: number;
1451
1463
  /**
1452
1464
  * The next time that the auto order will be attempted for processing
1453
1465
  * @type {string}
@@ -1504,7 +1516,8 @@ export namespace AutoOrder {
1504
1516
  export enum StatusEnum {
1505
1517
  Active = <any> 'active',
1506
1518
  Canceled = <any> 'canceled',
1507
- Disabled = <any> 'disabled'
1519
+ Disabled = <any> 'disabled',
1520
+ Merged = <any> 'merged'
1508
1521
  }
1509
1522
  }
1510
1523
 
@@ -1572,6 +1585,20 @@ export interface AutoOrderAddonItemOption {
1572
1585
  value?: string;
1573
1586
  }
1574
1587
 
1588
+ /**
1589
+ *
1590
+ * @export
1591
+ * @interface AutoOrderConsolidate
1592
+ */
1593
+ export interface AutoOrderConsolidate {
1594
+ /**
1595
+ *
1596
+ * @type {Array<number>}
1597
+ * @memberof AutoOrderConsolidate
1598
+ */
1599
+ source_auto_order_oids?: Array<number>;
1600
+ }
1601
+
1575
1602
  /**
1576
1603
  *
1577
1604
  * @export
@@ -8817,6 +8844,64 @@ export interface ConversationPbxAudioResponse {
8817
8844
  warning?: Warning;
8818
8845
  }
8819
8846
 
8847
+ /**
8848
+ *
8849
+ * @export
8850
+ * @interface ConversationPbxAudioUploadUrl
8851
+ */
8852
+ export interface ConversationPbxAudioUploadUrl {
8853
+ /**
8854
+ *
8855
+ * @type {string}
8856
+ * @memberof ConversationPbxAudioUploadUrl
8857
+ */
8858
+ key?: string;
8859
+ /**
8860
+ *
8861
+ * @type {string}
8862
+ * @memberof ConversationPbxAudioUploadUrl
8863
+ */
8864
+ url?: string;
8865
+ }
8866
+
8867
+ /**
8868
+ *
8869
+ * @export
8870
+ * @interface ConversationPbxAudioUploadUrlResponse
8871
+ */
8872
+ export interface ConversationPbxAudioUploadUrlResponse {
8873
+ /**
8874
+ *
8875
+ * @type {ConversationPbxAudioUploadUrl}
8876
+ * @memberof ConversationPbxAudioUploadUrlResponse
8877
+ */
8878
+ conversation_pbx_audio_upload_url?: ConversationPbxAudioUploadUrl;
8879
+ /**
8880
+ *
8881
+ * @type {ModelError}
8882
+ * @memberof ConversationPbxAudioUploadUrlResponse
8883
+ */
8884
+ error?: ModelError;
8885
+ /**
8886
+ *
8887
+ * @type {ResponseMetadata}
8888
+ * @memberof ConversationPbxAudioUploadUrlResponse
8889
+ */
8890
+ metadata?: ResponseMetadata;
8891
+ /**
8892
+ * Indicates if API call was successful
8893
+ * @type {boolean}
8894
+ * @memberof ConversationPbxAudioUploadUrlResponse
8895
+ */
8896
+ success?: boolean;
8897
+ /**
8898
+ *
8899
+ * @type {Warning}
8900
+ * @memberof ConversationPbxAudioUploadUrlResponse
8901
+ */
8902
+ warning?: Warning;
8903
+ }
8904
+
8820
8905
  /**
8821
8906
  *
8822
8907
  * @export
@@ -8925,10 +9010,10 @@ export interface ConversationPbxCustomerSnapshotResponse {
8925
9010
  auto_orders?: Array<AutoOrder>;
8926
9011
  /**
8927
9012
  *
8928
- * @type {Customer}
9013
+ * @type {Array<Customer>}
8929
9014
  * @memberof ConversationPbxCustomerSnapshotResponse
8930
9015
  */
8931
- customer?: Customer;
9016
+ customers?: Array<Customer>;
8932
9017
  /**
8933
9018
  *
8934
9019
  * @type {ModelError}
@@ -44675,6 +44760,72 @@ export class AffiliateApi extends BaseAPI implements AffiliateApiInterface {
44675
44760
  */
44676
44761
  export const AutoOrderApiFetchParamCreator = function (configuration?: Configuration) {
44677
44762
  return {
44763
+ /**
44764
+ * Consolidates mutliple auto orders on the UltraCart account.
44765
+ * @summary Consolidates multiple auto orders
44766
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
44767
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
44768
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
44769
+ * @param {*} [options] Override http request option.
44770
+ * @throws {RequiredError}
44771
+ */
44772
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options: any = {}): FetchArgs {
44773
+ // verify required parameter 'auto_order_consolidate' is not null or undefined
44774
+ if (auto_order_consolidate === null || auto_order_consolidate === undefined) {
44775
+ throw new RequiredError('auto_order_consolidate','Required parameter auto_order_consolidate was null or undefined when calling consolidateAutoOrders.');
44776
+ }
44777
+ // verify required parameter 'auto_order_oid' is not null or undefined
44778
+ if (auto_order_oid === null || auto_order_oid === undefined) {
44779
+ throw new RequiredError('auto_order_oid','Required parameter auto_order_oid was null or undefined when calling consolidateAutoOrders.');
44780
+ }
44781
+ const localVarPath = `/auto_order/auto_orders/{auto_order_oid}/consolidate`
44782
+ .replace(`{${"auto_order_oid"}}`, encodeURIComponent(String(auto_order_oid)));
44783
+ const localVarUrlObj = url.parse(localVarPath, true);
44784
+ const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
44785
+ const localVarHeaderParameter = {} as any;
44786
+ const localVarQueryParameter = {} as any;
44787
+
44788
+ if(configuration && configuration.apiVersion) {
44789
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
44790
+ }
44791
+
44792
+
44793
+
44794
+ // authentication ultraCartOauth required
44795
+ // oauth required
44796
+ if (configuration && configuration.accessToken) {
44797
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
44798
+ ? configuration.accessToken("ultraCartOauth", ["auto_order_write"])
44799
+ : configuration.accessToken;
44800
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
44801
+ }
44802
+
44803
+ // authentication ultraCartSimpleApiKey required
44804
+ if (configuration && configuration.apiKey) {
44805
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
44806
+ ? configuration.apiKey("x-ultracart-simple-key")
44807
+ : configuration.apiKey;
44808
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
44809
+ }
44810
+
44811
+ if (_expand !== undefined) {
44812
+ localVarQueryParameter['_expand'] = _expand;
44813
+ }
44814
+
44815
+ localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
44816
+
44817
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
44818
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
44819
+ delete localVarUrlObj.search;
44820
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
44821
+ const needsSerialization = (<any>"AutoOrderConsolidate" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
44822
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(auto_order_consolidate || {}) : (auto_order_consolidate || "");
44823
+
44824
+ return {
44825
+ url: url.format(localVarUrlObj),
44826
+ options: localVarRequestOptions,
44827
+ };
44828
+ },
44678
44829
  /**
44679
44830
  * 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
44831
  * @summary Establish an auto order by referencing a regular order id
@@ -45349,6 +45500,29 @@ export const AutoOrderApiFetchParamCreator = function (configuration?: Configura
45349
45500
  */
45350
45501
  export const AutoOrderApiFp = function(configuration?: Configuration) {
45351
45502
  return {
45503
+ /**
45504
+ * Consolidates mutliple auto orders on the UltraCart account.
45505
+ * @summary Consolidates multiple auto orders
45506
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
45507
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
45508
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
45509
+ * @param {*} [options] Override http request option.
45510
+ * @throws {RequiredError}
45511
+ */
45512
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse> {
45513
+ const localVarFetchArgs = AutoOrderApiFetchParamCreator(configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options);
45514
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
45515
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
45516
+
45517
+ if (response.status >= 200 && response.status < 300) {
45518
+ return response.json();
45519
+
45520
+ } else {
45521
+ throw response;
45522
+ }
45523
+ });
45524
+ };
45525
+ },
45352
45526
  /**
45353
45527
  * 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
45528
  * @summary Establish an auto order by referencing a regular order id
@@ -45584,6 +45758,18 @@ export const AutoOrderApiFp = function(configuration?: Configuration) {
45584
45758
  */
45585
45759
  export const AutoOrderApiFactory = function (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) {
45586
45760
  return {
45761
+ /**
45762
+ * Consolidates mutliple auto orders on the UltraCart account.
45763
+ * @summary Consolidates multiple auto orders
45764
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
45765
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
45766
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
45767
+ * @param {*} [options] Override http request option.
45768
+ * @throws {RequiredError}
45769
+ */
45770
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any) {
45771
+ return AutoOrderApiFp(configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options)(fetch, basePath);
45772
+ },
45587
45773
  /**
45588
45774
  * 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
45775
  * @summary Establish an auto order by referencing a regular order id
@@ -45720,6 +45906,18 @@ export const AutoOrderApiFactory = function (configuration?: Configuration, fetc
45720
45906
  * @interface AutoOrderApi
45721
45907
  */
45722
45908
  export interface AutoOrderApiInterface {
45909
+ /**
45910
+ * Consolidates mutliple auto orders on the UltraCart account.
45911
+ * @summary Consolidates multiple auto orders
45912
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
45913
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
45914
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
45915
+ * @param {*} [options] Override http request option.
45916
+ * @throws {RequiredError}
45917
+ * @memberof AutoOrderApiInterface
45918
+ */
45919
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
45920
+
45723
45921
  /**
45724
45922
  * 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
45923
  * @summary Establish an auto order by referencing a regular order id
@@ -45856,6 +46054,20 @@ export interface AutoOrderApiInterface {
45856
46054
  * @extends {BaseAPI}
45857
46055
  */
45858
46056
  export class AutoOrderApi extends BaseAPI implements AutoOrderApiInterface {
46057
+ /**
46058
+ * Consolidates mutliple auto orders on the UltraCart account.
46059
+ * @summary Consolidates multiple auto orders
46060
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
46061
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
46062
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
46063
+ * @param {*} [options] Override http request option.
46064
+ * @throws {RequiredError}
46065
+ * @memberof AutoOrderApi
46066
+ */
46067
+ public consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any) {
46068
+ return AutoOrderApiFp(this.configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options)(this.fetch, this.basePath);
46069
+ }
46070
+
45859
46071
  /**
45860
46072
  * 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
46073
  * @summary Establish an auto order by referencing a regular order id
@@ -55398,7 +55610,7 @@ export const ConversationApiFp = function(configuration?: Configuration) {
55398
55610
  * @param {*} [options] Override http request option.
55399
55611
  * @throws {RequiredError}
55400
55612
  */
55401
- getConversationPbxAudioUploadUrl(extension: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationMultimediaUploadUrlResponse> {
55613
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationPbxAudioUploadUrlResponse> {
55402
55614
  const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getConversationPbxAudioUploadUrl(extension, options);
55403
55615
  return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
55404
55616
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
@@ -57814,7 +58026,7 @@ export interface ConversationApiInterface {
57814
58026
  * @throws {RequiredError}
57815
58027
  * @memberof ConversationApiInterface
57816
58028
  */
57817
- getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
58029
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationPbxAudioUploadUrlResponse>;
57818
58030
 
57819
58031
  /**
57820
58032
  * Retrieves all the orders, auto orders, and customer profile for a given phone number
package/dist/api.d.ts CHANGED
@@ -1406,6 +1406,18 @@ export interface AutoOrder {
1406
1406
  * @memberof AutoOrder
1407
1407
  */
1408
1408
  merchant_id?: string;
1409
+ /**
1410
+ * The date/time the auto order was merged into another auto order
1411
+ * @type {string}
1412
+ * @memberof AutoOrder
1413
+ */
1414
+ merged_dts?: string;
1415
+ /**
1416
+ * The auto order that this auto order was merged into
1417
+ * @type {number}
1418
+ * @memberof AutoOrder
1419
+ */
1420
+ merged_into_auto_order_oid?: number;
1409
1421
  /**
1410
1422
  * The next time that the auto order will be attempted for processing
1411
1423
  * @type {string}
@@ -1461,7 +1473,8 @@ export declare namespace AutoOrder {
1461
1473
  enum StatusEnum {
1462
1474
  Active,
1463
1475
  Canceled,
1464
- Disabled
1476
+ Disabled,
1477
+ Merged
1465
1478
  }
1466
1479
  }
1467
1480
  /**
@@ -1526,6 +1539,19 @@ export interface AutoOrderAddonItemOption {
1526
1539
  */
1527
1540
  value?: string;
1528
1541
  }
1542
+ /**
1543
+ *
1544
+ * @export
1545
+ * @interface AutoOrderConsolidate
1546
+ */
1547
+ export interface AutoOrderConsolidate {
1548
+ /**
1549
+ *
1550
+ * @type {Array<number>}
1551
+ * @memberof AutoOrderConsolidate
1552
+ */
1553
+ source_auto_order_oids?: Array<number>;
1554
+ }
1529
1555
  /**
1530
1556
  *
1531
1557
  * @export
@@ -8606,6 +8632,62 @@ export interface ConversationPbxAudioResponse {
8606
8632
  */
8607
8633
  warning?: Warning;
8608
8634
  }
8635
+ /**
8636
+ *
8637
+ * @export
8638
+ * @interface ConversationPbxAudioUploadUrl
8639
+ */
8640
+ export interface ConversationPbxAudioUploadUrl {
8641
+ /**
8642
+ *
8643
+ * @type {string}
8644
+ * @memberof ConversationPbxAudioUploadUrl
8645
+ */
8646
+ key?: string;
8647
+ /**
8648
+ *
8649
+ * @type {string}
8650
+ * @memberof ConversationPbxAudioUploadUrl
8651
+ */
8652
+ url?: string;
8653
+ }
8654
+ /**
8655
+ *
8656
+ * @export
8657
+ * @interface ConversationPbxAudioUploadUrlResponse
8658
+ */
8659
+ export interface ConversationPbxAudioUploadUrlResponse {
8660
+ /**
8661
+ *
8662
+ * @type {ConversationPbxAudioUploadUrl}
8663
+ * @memberof ConversationPbxAudioUploadUrlResponse
8664
+ */
8665
+ conversation_pbx_audio_upload_url?: ConversationPbxAudioUploadUrl;
8666
+ /**
8667
+ *
8668
+ * @type {ModelError}
8669
+ * @memberof ConversationPbxAudioUploadUrlResponse
8670
+ */
8671
+ error?: ModelError;
8672
+ /**
8673
+ *
8674
+ * @type {ResponseMetadata}
8675
+ * @memberof ConversationPbxAudioUploadUrlResponse
8676
+ */
8677
+ metadata?: ResponseMetadata;
8678
+ /**
8679
+ * Indicates if API call was successful
8680
+ * @type {boolean}
8681
+ * @memberof ConversationPbxAudioUploadUrlResponse
8682
+ */
8683
+ success?: boolean;
8684
+ /**
8685
+ *
8686
+ * @type {Warning}
8687
+ * @memberof ConversationPbxAudioUploadUrlResponse
8688
+ */
8689
+ warning?: Warning;
8690
+ }
8609
8691
  /**
8610
8692
  *
8611
8693
  * @export
@@ -8712,10 +8794,10 @@ export interface ConversationPbxCustomerSnapshotResponse {
8712
8794
  auto_orders?: Array<AutoOrder>;
8713
8795
  /**
8714
8796
  *
8715
- * @type {Customer}
8797
+ * @type {Array<Customer>}
8716
8798
  * @memberof ConversationPbxCustomerSnapshotResponse
8717
8799
  */
8718
- customer?: Customer;
8800
+ customers?: Array<Customer>;
8719
8801
  /**
8720
8802
  *
8721
8803
  * @type {ModelError}
@@ -43570,6 +43652,16 @@ export declare class AffiliateApi extends BaseAPI implements AffiliateApiInterfa
43570
43652
  * @export
43571
43653
  */
43572
43654
  export declare const AutoOrderApiFetchParamCreator: (configuration?: Configuration) => {
43655
+ /**
43656
+ * Consolidates mutliple auto orders on the UltraCart account.
43657
+ * @summary Consolidates multiple auto orders
43658
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
43659
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
43660
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
43661
+ * @param {*} [options] Override http request option.
43662
+ * @throws {RequiredError}
43663
+ */
43664
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): FetchArgs;
43573
43665
  /**
43574
43666
  * 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
43667
  * @summary Establish an auto order by referencing a regular order id
@@ -43685,6 +43777,16 @@ export declare const AutoOrderApiFetchParamCreator: (configuration?: Configurati
43685
43777
  * @export
43686
43778
  */
43687
43779
  export declare const AutoOrderApiFp: (configuration?: Configuration) => {
43780
+ /**
43781
+ * Consolidates mutliple auto orders on the UltraCart account.
43782
+ * @summary Consolidates multiple auto orders
43783
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
43784
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
43785
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
43786
+ * @param {*} [options] Override http request option.
43787
+ * @throws {RequiredError}
43788
+ */
43789
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse>;
43688
43790
  /**
43689
43791
  * 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
43792
  * @summary Establish an auto order by referencing a regular order id
@@ -43800,6 +43902,16 @@ export declare const AutoOrderApiFp: (configuration?: Configuration) => {
43800
43902
  * @export
43801
43903
  */
43802
43904
  export declare const AutoOrderApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => {
43905
+ /**
43906
+ * Consolidates mutliple auto orders on the UltraCart account.
43907
+ * @summary Consolidates multiple auto orders
43908
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
43909
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
43910
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
43911
+ * @param {*} [options] Override http request option.
43912
+ * @throws {RequiredError}
43913
+ */
43914
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
43803
43915
  /**
43804
43916
  * 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
43917
  * @summary Establish an auto order by referencing a regular order id
@@ -43916,6 +44028,17 @@ export declare const AutoOrderApiFactory: (configuration?: Configuration, fetch?
43916
44028
  * @interface AutoOrderApi
43917
44029
  */
43918
44030
  export interface AutoOrderApiInterface {
44031
+ /**
44032
+ * Consolidates mutliple auto orders on the UltraCart account.
44033
+ * @summary Consolidates multiple auto orders
44034
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
44035
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
44036
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
44037
+ * @param {*} [options] Override http request option.
44038
+ * @throws {RequiredError}
44039
+ * @memberof AutoOrderApiInterface
44040
+ */
44041
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
43919
44042
  /**
43920
44043
  * 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
44044
  * @summary Establish an auto order by referencing a regular order id
@@ -44042,6 +44165,17 @@ export interface AutoOrderApiInterface {
44042
44165
  * @extends {BaseAPI}
44043
44166
  */
44044
44167
  export declare class AutoOrderApi extends BaseAPI implements AutoOrderApiInterface {
44168
+ /**
44169
+ * Consolidates mutliple auto orders on the UltraCart account.
44170
+ * @summary Consolidates multiple auto orders
44171
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
44172
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
44173
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
44174
+ * @param {*} [options] Override http request option.
44175
+ * @throws {RequiredError}
44176
+ * @memberof AutoOrderApi
44177
+ */
44178
+ consolidateAutoOrders(auto_order_consolidate: AutoOrderConsolidate, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
44045
44179
  /**
44046
44180
  * 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
44181
  * @summary Establish an auto order by referencing a regular order id
@@ -46791,7 +46925,7 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
46791
46925
  * @param {*} [options] Override http request option.
46792
46926
  * @throws {RequiredError}
46793
46927
  */
46794
- getConversationPbxAudioUploadUrl(extension: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationMultimediaUploadUrlResponse>;
46928
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationPbxAudioUploadUrlResponse>;
46795
46929
  /**
46796
46930
  * Retrieves all the orders, auto orders, and customer profile for a given phone number
46797
46931
  * @summary Get orders and customer information for a phone number
@@ -47488,7 +47622,7 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
47488
47622
  * @param {*} [options] Override http request option.
47489
47623
  * @throws {RequiredError}
47490
47624
  */
47491
- getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
47625
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationPbxAudioUploadUrlResponse>;
47492
47626
  /**
47493
47627
  * Retrieves all the orders, auto orders, and customer profile for a given phone number
47494
47628
  * @summary Get orders and customer information for a phone number
@@ -48212,7 +48346,7 @@ export interface ConversationApiInterface {
48212
48346
  * @throws {RequiredError}
48213
48347
  * @memberof ConversationApiInterface
48214
48348
  */
48215
- getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
48349
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationPbxAudioUploadUrlResponse>;
48216
48350
  /**
48217
48351
  * Retrieves all the orders, auto orders, and customer profile for a given phone number
48218
48352
  * @summary Get orders and customer information for a phone number
@@ -48997,7 +49131,7 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
48997
49131
  * @throws {RequiredError}
48998
49132
  * @memberof ConversationApi
48999
49133
  */
49000
- getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationMultimediaUploadUrlResponse>;
49134
+ getConversationPbxAudioUploadUrl(extension: string, options?: any): Promise<ConversationPbxAudioUploadUrlResponse>;
49001
49135
  /**
49002
49136
  * Retrieves all the orders, auto orders, and customer profile for a given phone number
49003
49137
  * @summary Get orders and customer information for a phone number
package/dist/api.js CHANGED
@@ -154,6 +154,7 @@ var AutoOrder;
154
154
  StatusEnum[StatusEnum["Active"] = 'active'] = "Active";
155
155
  StatusEnum[StatusEnum["Canceled"] = 'canceled'] = "Canceled";
156
156
  StatusEnum[StatusEnum["Disabled"] = 'disabled'] = "Disabled";
157
+ StatusEnum[StatusEnum["Merged"] = 'merged'] = "Merged";
157
158
  })(StatusEnum = AutoOrder.StatusEnum || (AutoOrder.StatusEnum = {}));
158
159
  })(AutoOrder = exports.AutoOrder || (exports.AutoOrder = {}));
159
160
  /**
@@ -1990,6 +1991,64 @@ exports.AffiliateApi = AffiliateApi;
1990
1991
  */
1991
1992
  var AutoOrderApiFetchParamCreator = function (configuration) {
1992
1993
  return {
1994
+ /**
1995
+ * Consolidates mutliple auto orders on the UltraCart account.
1996
+ * @summary Consolidates multiple auto orders
1997
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
1998
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
1999
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
2000
+ * @param {*} [options] Override http request option.
2001
+ * @throws {RequiredError}
2002
+ */
2003
+ consolidateAutoOrders: function (auto_order_consolidate, auto_order_oid, _expand, options) {
2004
+ if (options === void 0) { options = {}; }
2005
+ // verify required parameter 'auto_order_consolidate' is not null or undefined
2006
+ if (auto_order_consolidate === null || auto_order_consolidate === undefined) {
2007
+ throw new RequiredError('auto_order_consolidate', 'Required parameter auto_order_consolidate was null or undefined when calling consolidateAutoOrders.');
2008
+ }
2009
+ // verify required parameter 'auto_order_oid' is not null or undefined
2010
+ if (auto_order_oid === null || auto_order_oid === undefined) {
2011
+ throw new RequiredError('auto_order_oid', 'Required parameter auto_order_oid was null or undefined when calling consolidateAutoOrders.');
2012
+ }
2013
+ var localVarPath = "/auto_order/auto_orders/{auto_order_oid}/consolidate"
2014
+ .replace("{".concat("auto_order_oid", "}"), encodeURIComponent(String(auto_order_oid)));
2015
+ var localVarUrlObj = url.parse(localVarPath, true);
2016
+ var localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
2017
+ var localVarHeaderParameter = {};
2018
+ var localVarQueryParameter = {};
2019
+ if (configuration && configuration.apiVersion) {
2020
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
2021
+ }
2022
+ // authentication ultraCartOauth required
2023
+ // oauth required
2024
+ if (configuration && configuration.accessToken) {
2025
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
2026
+ ? configuration.accessToken("ultraCartOauth", ["auto_order_write"])
2027
+ : configuration.accessToken;
2028
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
2029
+ }
2030
+ // authentication ultraCartSimpleApiKey required
2031
+ if (configuration && configuration.apiKey) {
2032
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
2033
+ ? configuration.apiKey("x-ultracart-simple-key")
2034
+ : configuration.apiKey;
2035
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
2036
+ }
2037
+ if (_expand !== undefined) {
2038
+ localVarQueryParameter['_expand'] = _expand;
2039
+ }
2040
+ localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
2041
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
2042
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
2043
+ delete localVarUrlObj.search;
2044
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
2045
+ var needsSerialization = ("AutoOrderConsolidate" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
2046
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(auto_order_consolidate || {}) : (auto_order_consolidate || "");
2047
+ return {
2048
+ url: url.format(localVarUrlObj),
2049
+ options: localVarRequestOptions,
2050
+ };
2051
+ },
1993
2052
  /**
1994
2053
  * 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
2054
  * @summary Establish an auto order by referencing a regular order id
@@ -2569,6 +2628,30 @@ exports.AutoOrderApiFetchParamCreator = AutoOrderApiFetchParamCreator;
2569
2628
  */
2570
2629
  var AutoOrderApiFp = function (configuration) {
2571
2630
  return {
2631
+ /**
2632
+ * Consolidates mutliple auto orders on the UltraCart account.
2633
+ * @summary Consolidates multiple auto orders
2634
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
2635
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
2636
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
2637
+ * @param {*} [options] Override http request option.
2638
+ * @throws {RequiredError}
2639
+ */
2640
+ consolidateAutoOrders: function (auto_order_consolidate, auto_order_oid, _expand, options) {
2641
+ var localVarFetchArgs = (0, exports.AutoOrderApiFetchParamCreator)(configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options);
2642
+ return function (fetch, basePath) {
2643
+ if (fetch === void 0) { fetch = portableFetch; }
2644
+ if (basePath === void 0) { basePath = BASE_PATH; }
2645
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
2646
+ if (response.status >= 200 && response.status < 300) {
2647
+ return response.json();
2648
+ }
2649
+ else {
2650
+ throw response;
2651
+ }
2652
+ });
2653
+ };
2654
+ },
2572
2655
  /**
2573
2656
  * 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
2657
  * @summary Establish an auto order by referencing a regular order id
@@ -2813,6 +2896,18 @@ exports.AutoOrderApiFp = AutoOrderApiFp;
2813
2896
  */
2814
2897
  var AutoOrderApiFactory = function (configuration, fetch, basePath) {
2815
2898
  return {
2899
+ /**
2900
+ * Consolidates mutliple auto orders on the UltraCart account.
2901
+ * @summary Consolidates multiple auto orders
2902
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
2903
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
2904
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
2905
+ * @param {*} [options] Override http request option.
2906
+ * @throws {RequiredError}
2907
+ */
2908
+ consolidateAutoOrders: function (auto_order_consolidate, auto_order_oid, _expand, options) {
2909
+ return (0, exports.AutoOrderApiFp)(configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options)(fetch, basePath);
2910
+ },
2816
2911
  /**
2817
2912
  * 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
2913
  * @summary Establish an auto order by referencing a regular order id
@@ -2954,6 +3049,19 @@ var AutoOrderApi = /** @class */ (function (_super) {
2954
3049
  function AutoOrderApi() {
2955
3050
  return _super !== null && _super.apply(this, arguments) || this;
2956
3051
  }
3052
+ /**
3053
+ * Consolidates mutliple auto orders on the UltraCart account.
3054
+ * @summary Consolidates multiple auto orders
3055
+ * @param {AutoOrderConsolidate} auto_order_consolidate Auto orders to consolidate
3056
+ * @param {number} auto_order_oid The auto order oid to consolidate into.
3057
+ * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
3058
+ * @param {*} [options] Override http request option.
3059
+ * @throws {RequiredError}
3060
+ * @memberof AutoOrderApi
3061
+ */
3062
+ AutoOrderApi.prototype.consolidateAutoOrders = function (auto_order_consolidate, auto_order_oid, _expand, options) {
3063
+ return (0, exports.AutoOrderApiFp)(this.configuration).consolidateAutoOrders(auto_order_consolidate, auto_order_oid, _expand, options)(this.fetch, this.basePath);
3064
+ };
2957
3065
  /**
2958
3066
  * 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
3067
  * @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.196",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [