ultracart_rest_api_v2_typescript 3.10.103 → 3.10.104

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.103
1
+ ## ultracart_rest_api_v2_typescript@3.10.104
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.103 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.104 --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.104 | 01/23/2023 | conversation - method to fetch single engagement record |
57
58
  | 3.10.103 | 01/19/2023 | added skip_on_rebill field to coupon object |
58
59
  | 3.10.102 | 01/19/2023 | convo - getConversationPermissions added |
59
60
  | 3.10.101 | 01/18/2023 | conversation get dept member list method added |
package/api.ts CHANGED
@@ -29263,7 +29263,7 @@ export interface OrderInternal {
29263
29263
  */
29264
29264
  exported_to_accounting?: boolean;
29265
29265
  /**
29266
- * Merchant notes
29266
+ * Merchant notes. Full notes in non-transactional mode. Just used to write a new merchant note when transaction merchant notes enabled.
29267
29267
  * @type {string}
29268
29268
  * @memberof OrderInternal
29269
29269
  */
@@ -29286,6 +29286,12 @@ export interface OrderInternal {
29286
29286
  * @memberof OrderInternal
29287
29287
  */
29288
29288
  sales_rep_code?: string;
29289
+ /**
29290
+ * Transactional merchant notes
29291
+ * @type {Array<OrderTransactionalMerchantNote>}
29292
+ * @memberof OrderInternal
29293
+ */
29294
+ transactional_merchant_notes?: Array<OrderTransactionalMerchantNote>;
29289
29295
  }
29290
29296
 
29291
29297
  /**
@@ -31848,6 +31854,38 @@ export interface OrderTrackingNumberDetails {
31848
31854
  tracking_url?: string;
31849
31855
  }
31850
31856
 
31857
+ /**
31858
+ *
31859
+ * @export
31860
+ * @interface OrderTransactionalMerchantNote
31861
+ */
31862
+ export interface OrderTransactionalMerchantNote {
31863
+ /**
31864
+ * IP Address
31865
+ * @type {string}
31866
+ * @memberof OrderTransactionalMerchantNote
31867
+ */
31868
+ ip_address?: string;
31869
+ /**
31870
+ * note
31871
+ * @type {string}
31872
+ * @memberof OrderTransactionalMerchantNote
31873
+ */
31874
+ note?: string;
31875
+ /**
31876
+ * Timestamp when the note was added
31877
+ * @type {string}
31878
+ * @memberof OrderTransactionalMerchantNote
31879
+ */
31880
+ note_dts?: string;
31881
+ /**
31882
+ * User that wrote the merchant note
31883
+ * @type {string}
31884
+ * @memberof OrderTransactionalMerchantNote
31885
+ */
31886
+ user?: string;
31887
+ }
31888
+
31851
31889
  /**
31852
31890
  *
31853
31891
  * @export
@@ -44227,6 +44265,58 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
44227
44265
 
44228
44266
 
44229
44267
 
44268
+ // authentication ultraCartOauth required
44269
+ // oauth required
44270
+ if (configuration && configuration.accessToken) {
44271
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
44272
+ ? configuration.accessToken("ultraCartOauth", ["conversation_read"])
44273
+ : configuration.accessToken;
44274
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
44275
+ }
44276
+
44277
+ // authentication ultraCartSimpleApiKey required
44278
+ if (configuration && configuration.apiKey) {
44279
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
44280
+ ? configuration.apiKey("x-ultracart-simple-key")
44281
+ : configuration.apiKey;
44282
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
44283
+ }
44284
+
44285
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
44286
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
44287
+ delete localVarUrlObj.search;
44288
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
44289
+
44290
+ return {
44291
+ url: url.format(localVarUrlObj),
44292
+ options: localVarRequestOptions,
44293
+ };
44294
+ },
44295
+ /**
44296
+ * Retrieve an engagement
44297
+ * @summary Retrieve an engagement
44298
+ * @param {number} conversation_engagement_oid
44299
+ * @param {*} [options] Override http request option.
44300
+ * @throws {RequiredError}
44301
+ */
44302
+ getConversationEngagement(conversation_engagement_oid: number, options: any = {}): FetchArgs {
44303
+ // verify required parameter 'conversation_engagement_oid' is not null or undefined
44304
+ if (conversation_engagement_oid === null || conversation_engagement_oid === undefined) {
44305
+ throw new RequiredError('conversation_engagement_oid','Required parameter conversation_engagement_oid was null or undefined when calling getConversationEngagement.');
44306
+ }
44307
+ const localVarPath = `/conversation/engagements/{conversation_engagement_oid}`
44308
+ .replace(`{${"conversation_engagement_oid"}}`, encodeURIComponent(String(conversation_engagement_oid)));
44309
+ const localVarUrlObj = url.parse(localVarPath, true);
44310
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
44311
+ const localVarHeaderParameter = {} as any;
44312
+ const localVarQueryParameter = {} as any;
44313
+
44314
+ if(configuration && configuration.apiVersion) {
44315
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
44316
+ }
44317
+
44318
+
44319
+
44230
44320
  // authentication ultraCartOauth required
44231
44321
  // oauth required
44232
44322
  if (configuration && configuration.accessToken) {
@@ -45578,6 +45668,27 @@ export const ConversationApiFp = function(configuration?: Configuration) {
45578
45668
  });
45579
45669
  };
45580
45670
  },
45671
+ /**
45672
+ * Retrieve an engagement
45673
+ * @summary Retrieve an engagement
45674
+ * @param {number} conversation_engagement_oid
45675
+ * @param {*} [options] Override http request option.
45676
+ * @throws {RequiredError}
45677
+ */
45678
+ getConversationEngagement(conversation_engagement_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationEngagementResponse> {
45679
+ const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getConversationEngagement(conversation_engagement_oid, options);
45680
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
45681
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
45682
+
45683
+ if (response.status >= 200 && response.status < 300) {
45684
+ return response.json();
45685
+
45686
+ } else {
45687
+ throw response;
45688
+ }
45689
+ });
45690
+ };
45691
+ },
45581
45692
  /**
45582
45693
  * Retrieve a list of engagements ordered by name
45583
45694
  * @summary Retrieve a list of engagements ordered by name
@@ -46110,6 +46221,16 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
46110
46221
  getConversationDepartments(options?: any) {
46111
46222
  return ConversationApiFp(configuration).getConversationDepartments(options)(fetch, basePath);
46112
46223
  },
46224
+ /**
46225
+ * Retrieve an engagement
46226
+ * @summary Retrieve an engagement
46227
+ * @param {number} conversation_engagement_oid
46228
+ * @param {*} [options] Override http request option.
46229
+ * @throws {RequiredError}
46230
+ */
46231
+ getConversationEngagement(conversation_engagement_oid: number, options?: any) {
46232
+ return ConversationApiFp(configuration).getConversationEngagement(conversation_engagement_oid, options)(fetch, basePath);
46233
+ },
46113
46234
  /**
46114
46235
  * Retrieve a list of engagements ordered by name
46115
46236
  * @summary Retrieve a list of engagements ordered by name
@@ -46422,6 +46543,16 @@ export interface ConversationApiInterface {
46422
46543
  */
46423
46544
  getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
46424
46545
 
46546
+ /**
46547
+ * Retrieve an engagement
46548
+ * @summary Retrieve an engagement
46549
+ * @param {number} conversation_engagement_oid
46550
+ * @param {*} [options] Override http request option.
46551
+ * @throws {RequiredError}
46552
+ * @memberof ConversationApiInterface
46553
+ */
46554
+ getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
46555
+
46425
46556
  /**
46426
46557
  * Retrieve a list of engagements ordered by name
46427
46558
  * @summary Retrieve a list of engagements ordered by name
@@ -46754,6 +46885,18 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
46754
46885
  return ConversationApiFp(this.configuration).getConversationDepartments(options)(this.fetch, this.basePath);
46755
46886
  }
46756
46887
 
46888
+ /**
46889
+ * Retrieve an engagement
46890
+ * @summary Retrieve an engagement
46891
+ * @param {number} conversation_engagement_oid
46892
+ * @param {*} [options] Override http request option.
46893
+ * @throws {RequiredError}
46894
+ * @memberof ConversationApi
46895
+ */
46896
+ public getConversationEngagement(conversation_engagement_oid: number, options?: any) {
46897
+ return ConversationApiFp(this.configuration).getConversationEngagement(conversation_engagement_oid, options)(this.fetch, this.basePath);
46898
+ }
46899
+
46757
46900
  /**
46758
46901
  * Retrieve a list of engagements ordered by name
46759
46902
  * @summary Retrieve a list of engagements ordered by name
package/dist/api.d.ts CHANGED
@@ -28642,7 +28642,7 @@ export interface OrderInternal {
28642
28642
  */
28643
28643
  exported_to_accounting?: boolean;
28644
28644
  /**
28645
- * Merchant notes
28645
+ * Merchant notes. Full notes in non-transactional mode. Just used to write a new merchant note when transaction merchant notes enabled.
28646
28646
  * @type {string}
28647
28647
  * @memberof OrderInternal
28648
28648
  */
@@ -28665,6 +28665,12 @@ export interface OrderInternal {
28665
28665
  * @memberof OrderInternal
28666
28666
  */
28667
28667
  sales_rep_code?: string;
28668
+ /**
28669
+ * Transactional merchant notes
28670
+ * @type {Array<OrderTransactionalMerchantNote>}
28671
+ * @memberof OrderInternal
28672
+ */
28673
+ transactional_merchant_notes?: Array<OrderTransactionalMerchantNote>;
28668
28674
  }
28669
28675
  /**
28670
28676
  *
@@ -31181,6 +31187,37 @@ export interface OrderTrackingNumberDetails {
31181
31187
  */
31182
31188
  tracking_url?: string;
31183
31189
  }
31190
+ /**
31191
+ *
31192
+ * @export
31193
+ * @interface OrderTransactionalMerchantNote
31194
+ */
31195
+ export interface OrderTransactionalMerchantNote {
31196
+ /**
31197
+ * IP Address
31198
+ * @type {string}
31199
+ * @memberof OrderTransactionalMerchantNote
31200
+ */
31201
+ ip_address?: string;
31202
+ /**
31203
+ * note
31204
+ * @type {string}
31205
+ * @memberof OrderTransactionalMerchantNote
31206
+ */
31207
+ note?: string;
31208
+ /**
31209
+ * Timestamp when the note was added
31210
+ * @type {string}
31211
+ * @memberof OrderTransactionalMerchantNote
31212
+ */
31213
+ note_dts?: string;
31214
+ /**
31215
+ * User that wrote the merchant note
31216
+ * @type {string}
31217
+ * @memberof OrderTransactionalMerchantNote
31218
+ */
31219
+ user?: string;
31220
+ }
31184
31221
  /**
31185
31222
  *
31186
31223
  * @export
@@ -39640,6 +39677,14 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
39640
39677
  * @throws {RequiredError}
39641
39678
  */
39642
39679
  getConversationDepartments(options?: any): FetchArgs;
39680
+ /**
39681
+ * Retrieve an engagement
39682
+ * @summary Retrieve an engagement
39683
+ * @param {number} conversation_engagement_oid
39684
+ * @param {*} [options] Override http request option.
39685
+ * @throws {RequiredError}
39686
+ */
39687
+ getConversationEngagement(conversation_engagement_oid: number, options?: any): FetchArgs;
39643
39688
  /**
39644
39689
  * Retrieve a list of engagements ordered by name
39645
39690
  * @summary Retrieve a list of engagements ordered by name
@@ -39889,6 +39934,14 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
39889
39934
  * @throws {RequiredError}
39890
39935
  */
39891
39936
  getConversationDepartments(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationDepartmentsResponse>;
39937
+ /**
39938
+ * Retrieve an engagement
39939
+ * @summary Retrieve an engagement
39940
+ * @param {number} conversation_engagement_oid
39941
+ * @param {*} [options] Override http request option.
39942
+ * @throws {RequiredError}
39943
+ */
39944
+ getConversationEngagement(conversation_engagement_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationEngagementResponse>;
39892
39945
  /**
39893
39946
  * Retrieve a list of engagements ordered by name
39894
39947
  * @summary Retrieve a list of engagements ordered by name
@@ -40138,6 +40191,14 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
40138
40191
  * @throws {RequiredError}
40139
40192
  */
40140
40193
  getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
40194
+ /**
40195
+ * Retrieve an engagement
40196
+ * @summary Retrieve an engagement
40197
+ * @param {number} conversation_engagement_oid
40198
+ * @param {*} [options] Override http request option.
40199
+ * @throws {RequiredError}
40200
+ */
40201
+ getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
40141
40202
  /**
40142
40203
  * Retrieve a list of engagements ordered by name
40143
40204
  * @summary Retrieve a list of engagements ordered by name
@@ -40398,6 +40459,15 @@ export interface ConversationApiInterface {
40398
40459
  * @memberof ConversationApiInterface
40399
40460
  */
40400
40461
  getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
40462
+ /**
40463
+ * Retrieve an engagement
40464
+ * @summary Retrieve an engagement
40465
+ * @param {number} conversation_engagement_oid
40466
+ * @param {*} [options] Override http request option.
40467
+ * @throws {RequiredError}
40468
+ * @memberof ConversationApiInterface
40469
+ */
40470
+ getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
40401
40471
  /**
40402
40472
  * Retrieve a list of engagements ordered by name
40403
40473
  * @summary Retrieve a list of engagements ordered by name
@@ -40679,6 +40749,15 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
40679
40749
  * @memberof ConversationApi
40680
40750
  */
40681
40751
  getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
40752
+ /**
40753
+ * Retrieve an engagement
40754
+ * @summary Retrieve an engagement
40755
+ * @param {number} conversation_engagement_oid
40756
+ * @param {*} [options] Override http request option.
40757
+ * @throws {RequiredError}
40758
+ * @memberof ConversationApi
40759
+ */
40760
+ getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
40682
40761
  /**
40683
40762
  * Retrieve a list of engagements ordered by name
40684
40763
  * @summary Retrieve a list of engagements ordered by name
package/dist/api.js CHANGED
@@ -6587,6 +6587,52 @@ var ConversationApiFetchParamCreator = function (configuration) {
6587
6587
  options: localVarRequestOptions,
6588
6588
  };
6589
6589
  },
6590
+ /**
6591
+ * Retrieve an engagement
6592
+ * @summary Retrieve an engagement
6593
+ * @param {number} conversation_engagement_oid
6594
+ * @param {*} [options] Override http request option.
6595
+ * @throws {RequiredError}
6596
+ */
6597
+ getConversationEngagement: function (conversation_engagement_oid, options) {
6598
+ if (options === void 0) { options = {}; }
6599
+ // verify required parameter 'conversation_engagement_oid' is not null or undefined
6600
+ if (conversation_engagement_oid === null || conversation_engagement_oid === undefined) {
6601
+ throw new RequiredError('conversation_engagement_oid', 'Required parameter conversation_engagement_oid was null or undefined when calling getConversationEngagement.');
6602
+ }
6603
+ var localVarPath = "/conversation/engagements/{conversation_engagement_oid}"
6604
+ .replace("{".concat("conversation_engagement_oid", "}"), encodeURIComponent(String(conversation_engagement_oid)));
6605
+ var localVarUrlObj = url.parse(localVarPath, true);
6606
+ var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
6607
+ var localVarHeaderParameter = {};
6608
+ var localVarQueryParameter = {};
6609
+ if (configuration && configuration.apiVersion) {
6610
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
6611
+ }
6612
+ // authentication ultraCartOauth required
6613
+ // oauth required
6614
+ if (configuration && configuration.accessToken) {
6615
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
6616
+ ? configuration.accessToken("ultraCartOauth", ["conversation_read"])
6617
+ : configuration.accessToken;
6618
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
6619
+ }
6620
+ // authentication ultraCartSimpleApiKey required
6621
+ if (configuration && configuration.apiKey) {
6622
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
6623
+ ? configuration.apiKey("x-ultracart-simple-key")
6624
+ : configuration.apiKey;
6625
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
6626
+ }
6627
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
6628
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
6629
+ delete localVarUrlObj.search;
6630
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
6631
+ return {
6632
+ url: url.format(localVarUrlObj),
6633
+ options: localVarRequestOptions,
6634
+ };
6635
+ },
6590
6636
  /**
6591
6637
  * Retrieve a list of engagements ordered by name
6592
6638
  * @summary Retrieve a list of engagements ordered by name
@@ -7784,6 +7830,28 @@ var ConversationApiFp = function (configuration) {
7784
7830
  });
7785
7831
  };
7786
7832
  },
7833
+ /**
7834
+ * Retrieve an engagement
7835
+ * @summary Retrieve an engagement
7836
+ * @param {number} conversation_engagement_oid
7837
+ * @param {*} [options] Override http request option.
7838
+ * @throws {RequiredError}
7839
+ */
7840
+ getConversationEngagement: function (conversation_engagement_oid, options) {
7841
+ var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).getConversationEngagement(conversation_engagement_oid, options);
7842
+ return function (fetch, basePath) {
7843
+ if (fetch === void 0) { fetch = portableFetch; }
7844
+ if (basePath === void 0) { basePath = BASE_PATH; }
7845
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
7846
+ if (response.status >= 200 && response.status < 300) {
7847
+ return response.json();
7848
+ }
7849
+ else {
7850
+ throw response;
7851
+ }
7852
+ });
7853
+ };
7854
+ },
7787
7855
  /**
7788
7856
  * Retrieve a list of engagements ordered by name
7789
7857
  * @summary Retrieve a list of engagements ordered by name
@@ -8336,6 +8404,16 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
8336
8404
  getConversationDepartments: function (options) {
8337
8405
  return (0, exports.ConversationApiFp)(configuration).getConversationDepartments(options)(fetch, basePath);
8338
8406
  },
8407
+ /**
8408
+ * Retrieve an engagement
8409
+ * @summary Retrieve an engagement
8410
+ * @param {number} conversation_engagement_oid
8411
+ * @param {*} [options] Override http request option.
8412
+ * @throws {RequiredError}
8413
+ */
8414
+ getConversationEngagement: function (conversation_engagement_oid, options) {
8415
+ return (0, exports.ConversationApiFp)(configuration).getConversationEngagement(conversation_engagement_oid, options)(fetch, basePath);
8416
+ },
8339
8417
  /**
8340
8418
  * Retrieve a list of engagements ordered by name
8341
8419
  * @summary Retrieve a list of engagements ordered by name
@@ -8663,6 +8741,17 @@ var ConversationApi = /** @class */ (function (_super) {
8663
8741
  ConversationApi.prototype.getConversationDepartments = function (options) {
8664
8742
  return (0, exports.ConversationApiFp)(this.configuration).getConversationDepartments(options)(this.fetch, this.basePath);
8665
8743
  };
8744
+ /**
8745
+ * Retrieve an engagement
8746
+ * @summary Retrieve an engagement
8747
+ * @param {number} conversation_engagement_oid
8748
+ * @param {*} [options] Override http request option.
8749
+ * @throws {RequiredError}
8750
+ * @memberof ConversationApi
8751
+ */
8752
+ ConversationApi.prototype.getConversationEngagement = function (conversation_engagement_oid, options) {
8753
+ return (0, exports.ConversationApiFp)(this.configuration).getConversationEngagement(conversation_engagement_oid, options)(this.fetch, this.basePath);
8754
+ };
8666
8755
  /**
8667
8756
  * Retrieve a list of engagements ordered by name
8668
8757
  * @summary Retrieve a list of engagements ordered by name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.103",
3
+ "version": "3.10.104",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [