ultracart_rest_api_v2_typescript 3.10.117 → 3.10.119

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.117
1
+ ## ultracart_rest_api_v2_typescript@3.10.119
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.117 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.119 --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.119 | 02/20/2023 | refund reasons |
58
+ | 3.10.118 | 02/17/2023 | convo api - smsUnsubscribeConversation method |
57
59
  | 3.10.117 | 02/15/2023 | added auto order sorting by next_shipment_dts |
58
60
  | 3.10.116 | 02/10/2023 | convo - add storefront_host_name to search request |
59
61
  | 3.10.115 | 02/07/2023 | convo - new event for when a customer joins a queue |
package/api.ts CHANGED
@@ -28309,12 +28309,24 @@ export interface Order {
28309
28309
  * @memberof Order
28310
28310
  */
28311
28311
  refund_dts?: string;
28312
+ /**
28313
+ * Refund reason code. This can only be written during a refund operation otherwise this field is read only.
28314
+ * @type {string}
28315
+ * @memberof Order
28316
+ */
28317
+ refund_reason?: string;
28312
28318
  /**
28313
28319
  * If the order was rejected, the date/time that the rejection occurred
28314
28320
  * @type {string}
28315
28321
  * @memberof Order
28316
28322
  */
28317
28323
  reject_dts?: string;
28324
+ /**
28325
+ * Reject reason code. This can only be written during a reject operation otherwise this field is read only.
28326
+ * @type {string}
28327
+ * @memberof Order
28328
+ */
28329
+ reject_reason?: string;
28318
28330
  /**
28319
28331
  *
28320
28332
  * @type {OrderSalesforce}
@@ -29877,6 +29889,18 @@ export interface OrderItem {
29877
29889
  * @memberof OrderItem
29878
29890
  */
29879
29891
  quickbooks_class?: string;
29892
+ /**
29893
+ * Refund reason code. This can only be written during a refund operation otherwise this field is read only.
29894
+ * @type {string}
29895
+ * @memberof OrderItem
29896
+ */
29897
+ refund_reason?: string;
29898
+ /**
29899
+ * Return reason code. This can only be written during a refund operation otherwise this field is read only.
29900
+ * @type {string}
29901
+ * @memberof OrderItem
29902
+ */
29903
+ return_reason?: string;
29880
29904
  /**
29881
29905
  * True if this item ships in a separate box
29882
29906
  * @type {boolean}
@@ -31241,6 +31265,32 @@ export interface OrderQuote {
31241
31265
  quoted_dts?: string;
31242
31266
  }
31243
31267
 
31268
+ /**
31269
+ *
31270
+ * @export
31271
+ * @interface OrderReason
31272
+ */
31273
+ export interface OrderReason {
31274
+ /**
31275
+ * Default reason
31276
+ * @type {boolean}
31277
+ * @memberof OrderReason
31278
+ */
31279
+ default_reason?: boolean;
31280
+ /**
31281
+ * Reason description. This is the friendly description of the reason that should be displayed to the user.
31282
+ * @type {string}
31283
+ * @memberof OrderReason
31284
+ */
31285
+ description?: string;
31286
+ /**
31287
+ * Reason value. This is what should be submitted with a refund operation.
31288
+ * @type {string}
31289
+ * @memberof OrderReason
31290
+ */
31291
+ value?: string;
31292
+ }
31293
+
31244
31294
  /**
31245
31295
  *
31246
31296
  * @export
@@ -31253,12 +31303,48 @@ export interface OrderRefundableResponse {
31253
31303
  * @memberof OrderRefundableResponse
31254
31304
  */
31255
31305
  error?: ModelError;
31306
+ /**
31307
+ * True if the item level refund reason is required
31308
+ * @type {boolean}
31309
+ * @memberof OrderRefundableResponse
31310
+ */
31311
+ item_level_refund_reason_required?: boolean;
31312
+ /**
31313
+ * Reason codes available at the item level.
31314
+ * @type {Array<OrderReason>}
31315
+ * @memberof OrderRefundableResponse
31316
+ */
31317
+ item_level_refund_reasons?: Array<OrderReason>;
31318
+ /**
31319
+ * Return codes available at the item level.
31320
+ * @type {Array<OrderReason>}
31321
+ * @memberof OrderRefundableResponse
31322
+ */
31323
+ item_level_return_reasons?: Array<OrderReason>;
31256
31324
  /**
31257
31325
  *
31258
31326
  * @type {ResponseMetadata}
31259
31327
  * @memberof OrderRefundableResponse
31260
31328
  */
31261
31329
  metadata?: ResponseMetadata;
31330
+ /**
31331
+ * True if the order level refund reason is required
31332
+ * @type {boolean}
31333
+ * @memberof OrderRefundableResponse
31334
+ */
31335
+ order_level_refund_reason_required?: boolean;
31336
+ /**
31337
+ * Reason codes available at the order level.
31338
+ * @type {Array<OrderReason>}
31339
+ * @memberof OrderRefundableResponse
31340
+ */
31341
+ order_level_refund_reasons?: Array<OrderReason>;
31342
+ /**
31343
+ * Reject codes available at the order level.
31344
+ * @type {Array<OrderReason>}
31345
+ * @memberof OrderRefundableResponse
31346
+ */
31347
+ order_level_reject_reasons?: Array<OrderReason>;
31262
31348
  /**
31263
31349
  * Whether the order is refundable or not. Null should be interpreted as false.
31264
31350
  * @type {boolean}
@@ -45729,6 +45815,58 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
45729
45815
  options: localVarRequestOptions,
45730
45816
  };
45731
45817
  },
45818
+ /**
45819
+ * Unsubscribe any SMS participants in this conversation
45820
+ * @summary Unsubscribe any SMS participants in this conversation
45821
+ * @param {string} conversation_uuid
45822
+ * @param {*} [options] Override http request option.
45823
+ * @throws {RequiredError}
45824
+ */
45825
+ smsUnsubscribeConversation(conversation_uuid: string, options: any = {}): FetchArgs {
45826
+ // verify required parameter 'conversation_uuid' is not null or undefined
45827
+ if (conversation_uuid === null || conversation_uuid === undefined) {
45828
+ throw new RequiredError('conversation_uuid','Required parameter conversation_uuid was null or undefined when calling smsUnsubscribeConversation.');
45829
+ }
45830
+ const localVarPath = `/conversation/conversations/{conversation_uuid}/sms_unsubscribe`
45831
+ .replace(`{${"conversation_uuid"}}`, encodeURIComponent(String(conversation_uuid)));
45832
+ const localVarUrlObj = url.parse(localVarPath, true);
45833
+ const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
45834
+ const localVarHeaderParameter = {} as any;
45835
+ const localVarQueryParameter = {} as any;
45836
+
45837
+ if(configuration && configuration.apiVersion) {
45838
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
45839
+ }
45840
+
45841
+
45842
+
45843
+ // authentication ultraCartOauth required
45844
+ // oauth required
45845
+ if (configuration && configuration.accessToken) {
45846
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
45847
+ ? configuration.accessToken("ultraCartOauth", ["conversation_write"])
45848
+ : configuration.accessToken;
45849
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
45850
+ }
45851
+
45852
+ // authentication ultraCartSimpleApiKey required
45853
+ if (configuration && configuration.apiKey) {
45854
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
45855
+ ? configuration.apiKey("x-ultracart-simple-key")
45856
+ : configuration.apiKey;
45857
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
45858
+ }
45859
+
45860
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
45861
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
45862
+ delete localVarUrlObj.search;
45863
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
45864
+
45865
+ return {
45866
+ url: url.format(localVarUrlObj),
45867
+ options: localVarRequestOptions,
45868
+ };
45869
+ },
45732
45870
  /**
45733
45871
  * Start a new conversation
45734
45872
  * @summary Start a conversation
@@ -46677,6 +46815,27 @@ export const ConversationApiFp = function(configuration?: Configuration) {
46677
46815
  });
46678
46816
  };
46679
46817
  },
46818
+ /**
46819
+ * Unsubscribe any SMS participants in this conversation
46820
+ * @summary Unsubscribe any SMS participants in this conversation
46821
+ * @param {string} conversation_uuid
46822
+ * @param {*} [options] Override http request option.
46823
+ * @throws {RequiredError}
46824
+ */
46825
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
46826
+ const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).smsUnsubscribeConversation(conversation_uuid, options);
46827
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
46828
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
46829
+
46830
+ if (response.status >= 200 && response.status < 300) {
46831
+ return response;
46832
+
46833
+ } else {
46834
+ throw response;
46835
+ }
46836
+ });
46837
+ };
46838
+ },
46680
46839
  /**
46681
46840
  * Start a new conversation
46682
46841
  * @summary Start a conversation
@@ -47093,6 +47252,16 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
47093
47252
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any) {
47094
47253
  return ConversationApiFp(configuration).searchConversationCannedMessages(search_request, options)(fetch, basePath);
47095
47254
  },
47255
+ /**
47256
+ * Unsubscribe any SMS participants in this conversation
47257
+ * @summary Unsubscribe any SMS participants in this conversation
47258
+ * @param {string} conversation_uuid
47259
+ * @param {*} [options] Override http request option.
47260
+ * @throws {RequiredError}
47261
+ */
47262
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any) {
47263
+ return ConversationApiFp(configuration).smsUnsubscribeConversation(conversation_uuid, options)(fetch, basePath);
47264
+ },
47096
47265
  /**
47097
47266
  * Start a new conversation
47098
47267
  * @summary Start a conversation
@@ -47443,6 +47612,16 @@ export interface ConversationApiInterface {
47443
47612
  */
47444
47613
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): Promise<ConversationCannedMessagesResponse>;
47445
47614
 
47615
+ /**
47616
+ * Unsubscribe any SMS participants in this conversation
47617
+ * @summary Unsubscribe any SMS participants in this conversation
47618
+ * @param {string} conversation_uuid
47619
+ * @param {*} [options] Override http request option.
47620
+ * @throws {RequiredError}
47621
+ * @memberof ConversationApiInterface
47622
+ */
47623
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): Promise<{}>;
47624
+
47446
47625
  /**
47447
47626
  * Start a new conversation
47448
47627
  * @summary Start a conversation
@@ -47849,6 +48028,18 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
47849
48028
  return ConversationApiFp(this.configuration).searchConversationCannedMessages(search_request, options)(this.fetch, this.basePath);
47850
48029
  }
47851
48030
 
48031
+ /**
48032
+ * Unsubscribe any SMS participants in this conversation
48033
+ * @summary Unsubscribe any SMS participants in this conversation
48034
+ * @param {string} conversation_uuid
48035
+ * @param {*} [options] Override http request option.
48036
+ * @throws {RequiredError}
48037
+ * @memberof ConversationApi
48038
+ */
48039
+ public smsUnsubscribeConversation(conversation_uuid: string, options?: any) {
48040
+ return ConversationApiFp(this.configuration).smsUnsubscribeConversation(conversation_uuid, options)(this.fetch, this.basePath);
48041
+ }
48042
+
47852
48043
  /**
47853
48044
  * Start a new conversation
47854
48045
  * @summary Start a conversation
package/dist/api.d.ts CHANGED
@@ -27705,12 +27705,24 @@ export interface Order {
27705
27705
  * @memberof Order
27706
27706
  */
27707
27707
  refund_dts?: string;
27708
+ /**
27709
+ * Refund reason code. This can only be written during a refund operation otherwise this field is read only.
27710
+ * @type {string}
27711
+ * @memberof Order
27712
+ */
27713
+ refund_reason?: string;
27708
27714
  /**
27709
27715
  * If the order was rejected, the date/time that the rejection occurred
27710
27716
  * @type {string}
27711
27717
  * @memberof Order
27712
27718
  */
27713
27719
  reject_dts?: string;
27720
+ /**
27721
+ * Reject reason code. This can only be written during a reject operation otherwise this field is read only.
27722
+ * @type {string}
27723
+ * @memberof Order
27724
+ */
27725
+ reject_reason?: string;
27714
27726
  /**
27715
27727
  *
27716
27728
  * @type {OrderSalesforce}
@@ -29248,6 +29260,18 @@ export interface OrderItem {
29248
29260
  * @memberof OrderItem
29249
29261
  */
29250
29262
  quickbooks_class?: string;
29263
+ /**
29264
+ * Refund reason code. This can only be written during a refund operation otherwise this field is read only.
29265
+ * @type {string}
29266
+ * @memberof OrderItem
29267
+ */
29268
+ refund_reason?: string;
29269
+ /**
29270
+ * Return reason code. This can only be written during a refund operation otherwise this field is read only.
29271
+ * @type {string}
29272
+ * @memberof OrderItem
29273
+ */
29274
+ return_reason?: string;
29251
29275
  /**
29252
29276
  * True if this item ships in a separate box
29253
29277
  * @type {boolean}
@@ -30580,6 +30604,31 @@ export interface OrderQuote {
30580
30604
  */
30581
30605
  quoted_dts?: string;
30582
30606
  }
30607
+ /**
30608
+ *
30609
+ * @export
30610
+ * @interface OrderReason
30611
+ */
30612
+ export interface OrderReason {
30613
+ /**
30614
+ * Default reason
30615
+ * @type {boolean}
30616
+ * @memberof OrderReason
30617
+ */
30618
+ default_reason?: boolean;
30619
+ /**
30620
+ * Reason description. This is the friendly description of the reason that should be displayed to the user.
30621
+ * @type {string}
30622
+ * @memberof OrderReason
30623
+ */
30624
+ description?: string;
30625
+ /**
30626
+ * Reason value. This is what should be submitted with a refund operation.
30627
+ * @type {string}
30628
+ * @memberof OrderReason
30629
+ */
30630
+ value?: string;
30631
+ }
30583
30632
  /**
30584
30633
  *
30585
30634
  * @export
@@ -30592,12 +30641,48 @@ export interface OrderRefundableResponse {
30592
30641
  * @memberof OrderRefundableResponse
30593
30642
  */
30594
30643
  error?: ModelError;
30644
+ /**
30645
+ * True if the item level refund reason is required
30646
+ * @type {boolean}
30647
+ * @memberof OrderRefundableResponse
30648
+ */
30649
+ item_level_refund_reason_required?: boolean;
30650
+ /**
30651
+ * Reason codes available at the item level.
30652
+ * @type {Array<OrderReason>}
30653
+ * @memberof OrderRefundableResponse
30654
+ */
30655
+ item_level_refund_reasons?: Array<OrderReason>;
30656
+ /**
30657
+ * Return codes available at the item level.
30658
+ * @type {Array<OrderReason>}
30659
+ * @memberof OrderRefundableResponse
30660
+ */
30661
+ item_level_return_reasons?: Array<OrderReason>;
30595
30662
  /**
30596
30663
  *
30597
30664
  * @type {ResponseMetadata}
30598
30665
  * @memberof OrderRefundableResponse
30599
30666
  */
30600
30667
  metadata?: ResponseMetadata;
30668
+ /**
30669
+ * True if the order level refund reason is required
30670
+ * @type {boolean}
30671
+ * @memberof OrderRefundableResponse
30672
+ */
30673
+ order_level_refund_reason_required?: boolean;
30674
+ /**
30675
+ * Reason codes available at the order level.
30676
+ * @type {Array<OrderReason>}
30677
+ * @memberof OrderRefundableResponse
30678
+ */
30679
+ order_level_refund_reasons?: Array<OrderReason>;
30680
+ /**
30681
+ * Reject codes available at the order level.
30682
+ * @type {Array<OrderReason>}
30683
+ * @memberof OrderRefundableResponse
30684
+ */
30685
+ order_level_reject_reasons?: Array<OrderReason>;
30601
30686
  /**
30602
30687
  * Whether the order is refundable or not. Null should be interpreted as false.
30603
30688
  * @type {boolean}
@@ -40297,6 +40382,14 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
40297
40382
  * @throws {RequiredError}
40298
40383
  */
40299
40384
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): FetchArgs;
40385
+ /**
40386
+ * Unsubscribe any SMS participants in this conversation
40387
+ * @summary Unsubscribe any SMS participants in this conversation
40388
+ * @param {string} conversation_uuid
40389
+ * @param {*} [options] Override http request option.
40390
+ * @throws {RequiredError}
40391
+ */
40392
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): FetchArgs;
40300
40393
  /**
40301
40394
  * Start a new conversation
40302
40395
  * @summary Start a conversation
@@ -40576,6 +40669,14 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
40576
40669
  * @throws {RequiredError}
40577
40670
  */
40578
40671
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationCannedMessagesResponse>;
40672
+ /**
40673
+ * Unsubscribe any SMS participants in this conversation
40674
+ * @summary Unsubscribe any SMS participants in this conversation
40675
+ * @param {string} conversation_uuid
40676
+ * @param {*} [options] Override http request option.
40677
+ * @throws {RequiredError}
40678
+ */
40679
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
40579
40680
  /**
40580
40681
  * Start a new conversation
40581
40682
  * @summary Start a conversation
@@ -40855,6 +40956,14 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
40855
40956
  * @throws {RequiredError}
40856
40957
  */
40857
40958
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): Promise<ConversationCannedMessagesResponse>;
40959
+ /**
40960
+ * Unsubscribe any SMS participants in this conversation
40961
+ * @summary Unsubscribe any SMS participants in this conversation
40962
+ * @param {string} conversation_uuid
40963
+ * @param {*} [options] Override http request option.
40964
+ * @throws {RequiredError}
40965
+ */
40966
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): Promise<Response>;
40858
40967
  /**
40859
40968
  * Start a new conversation
40860
40969
  * @summary Start a conversation
@@ -41163,6 +41272,15 @@ export interface ConversationApiInterface {
41163
41272
  * @memberof ConversationApiInterface
41164
41273
  */
41165
41274
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): Promise<ConversationCannedMessagesResponse>;
41275
+ /**
41276
+ * Unsubscribe any SMS participants in this conversation
41277
+ * @summary Unsubscribe any SMS participants in this conversation
41278
+ * @param {string} conversation_uuid
41279
+ * @param {*} [options] Override http request option.
41280
+ * @throws {RequiredError}
41281
+ * @memberof ConversationApiInterface
41282
+ */
41283
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): Promise<{}>;
41166
41284
  /**
41167
41285
  * Start a new conversation
41168
41286
  * @summary Start a conversation
@@ -41478,6 +41596,15 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
41478
41596
  * @memberof ConversationApi
41479
41597
  */
41480
41598
  searchConversationCannedMessages(search_request: ConversationCannedMessagesSearch, options?: any): Promise<ConversationCannedMessagesResponse>;
41599
+ /**
41600
+ * Unsubscribe any SMS participants in this conversation
41601
+ * @summary Unsubscribe any SMS participants in this conversation
41602
+ * @param {string} conversation_uuid
41603
+ * @param {*} [options] Override http request option.
41604
+ * @throws {RequiredError}
41605
+ * @memberof ConversationApi
41606
+ */
41607
+ smsUnsubscribeConversation(conversation_uuid: string, options?: any): Promise<Response>;
41481
41608
  /**
41482
41609
  * Start a new conversation
41483
41610
  * @summary Start a conversation
package/dist/api.js CHANGED
@@ -7441,6 +7441,52 @@ var ConversationApiFetchParamCreator = function (configuration) {
7441
7441
  options: localVarRequestOptions,
7442
7442
  };
7443
7443
  },
7444
+ /**
7445
+ * Unsubscribe any SMS participants in this conversation
7446
+ * @summary Unsubscribe any SMS participants in this conversation
7447
+ * @param {string} conversation_uuid
7448
+ * @param {*} [options] Override http request option.
7449
+ * @throws {RequiredError}
7450
+ */
7451
+ smsUnsubscribeConversation: function (conversation_uuid, options) {
7452
+ if (options === void 0) { options = {}; }
7453
+ // verify required parameter 'conversation_uuid' is not null or undefined
7454
+ if (conversation_uuid === null || conversation_uuid === undefined) {
7455
+ throw new RequiredError('conversation_uuid', 'Required parameter conversation_uuid was null or undefined when calling smsUnsubscribeConversation.');
7456
+ }
7457
+ var localVarPath = "/conversation/conversations/{conversation_uuid}/sms_unsubscribe"
7458
+ .replace("{".concat("conversation_uuid", "}"), encodeURIComponent(String(conversation_uuid)));
7459
+ var localVarUrlObj = url.parse(localVarPath, true);
7460
+ var localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
7461
+ var localVarHeaderParameter = {};
7462
+ var localVarQueryParameter = {};
7463
+ if (configuration && configuration.apiVersion) {
7464
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
7465
+ }
7466
+ // authentication ultraCartOauth required
7467
+ // oauth required
7468
+ if (configuration && configuration.accessToken) {
7469
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
7470
+ ? configuration.accessToken("ultraCartOauth", ["conversation_write"])
7471
+ : configuration.accessToken;
7472
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
7473
+ }
7474
+ // authentication ultraCartSimpleApiKey required
7475
+ if (configuration && configuration.apiKey) {
7476
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
7477
+ ? configuration.apiKey("x-ultracart-simple-key")
7478
+ : configuration.apiKey;
7479
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
7480
+ }
7481
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
7482
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
7483
+ delete localVarUrlObj.search;
7484
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
7485
+ return {
7486
+ url: url.format(localVarUrlObj),
7487
+ options: localVarRequestOptions,
7488
+ };
7489
+ },
7444
7490
  /**
7445
7491
  * Start a new conversation
7446
7492
  * @summary Start a conversation
@@ -8375,6 +8421,28 @@ var ConversationApiFp = function (configuration) {
8375
8421
  });
8376
8422
  };
8377
8423
  },
8424
+ /**
8425
+ * Unsubscribe any SMS participants in this conversation
8426
+ * @summary Unsubscribe any SMS participants in this conversation
8427
+ * @param {string} conversation_uuid
8428
+ * @param {*} [options] Override http request option.
8429
+ * @throws {RequiredError}
8430
+ */
8431
+ smsUnsubscribeConversation: function (conversation_uuid, options) {
8432
+ var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).smsUnsubscribeConversation(conversation_uuid, options);
8433
+ return function (fetch, basePath) {
8434
+ if (fetch === void 0) { fetch = portableFetch; }
8435
+ if (basePath === void 0) { basePath = BASE_PATH; }
8436
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
8437
+ if (response.status >= 200 && response.status < 300) {
8438
+ return response;
8439
+ }
8440
+ else {
8441
+ throw response;
8442
+ }
8443
+ });
8444
+ };
8445
+ },
8378
8446
  /**
8379
8447
  * Start a new conversation
8380
8448
  * @summary Start a conversation
@@ -8797,6 +8865,16 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
8797
8865
  searchConversationCannedMessages: function (search_request, options) {
8798
8866
  return (0, exports.ConversationApiFp)(configuration).searchConversationCannedMessages(search_request, options)(fetch, basePath);
8799
8867
  },
8868
+ /**
8869
+ * Unsubscribe any SMS participants in this conversation
8870
+ * @summary Unsubscribe any SMS participants in this conversation
8871
+ * @param {string} conversation_uuid
8872
+ * @param {*} [options] Override http request option.
8873
+ * @throws {RequiredError}
8874
+ */
8875
+ smsUnsubscribeConversation: function (conversation_uuid, options) {
8876
+ return (0, exports.ConversationApiFp)(configuration).smsUnsubscribeConversation(conversation_uuid, options)(fetch, basePath);
8877
+ },
8800
8878
  /**
8801
8879
  * Start a new conversation
8802
8880
  * @summary Start a conversation
@@ -9180,6 +9258,17 @@ var ConversationApi = /** @class */ (function (_super) {
9180
9258
  ConversationApi.prototype.searchConversationCannedMessages = function (search_request, options) {
9181
9259
  return (0, exports.ConversationApiFp)(this.configuration).searchConversationCannedMessages(search_request, options)(this.fetch, this.basePath);
9182
9260
  };
9261
+ /**
9262
+ * Unsubscribe any SMS participants in this conversation
9263
+ * @summary Unsubscribe any SMS participants in this conversation
9264
+ * @param {string} conversation_uuid
9265
+ * @param {*} [options] Override http request option.
9266
+ * @throws {RequiredError}
9267
+ * @memberof ConversationApi
9268
+ */
9269
+ ConversationApi.prototype.smsUnsubscribeConversation = function (conversation_uuid, options) {
9270
+ return (0, exports.ConversationApiFp)(this.configuration).smsUnsubscribeConversation(conversation_uuid, options)(this.fetch, this.basePath);
9271
+ };
9183
9272
  /**
9184
9273
  * Start a new conversation
9185
9274
  * @summary Start a conversation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.117",
3
+ "version": "3.10.119",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [