ultracart_rest_api_v2_typescript 3.10.192 → 3.10.194

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.192
1
+ ## ultracart_rest_api_v2_typescript@3.10.194
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.192 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.194 --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.194 | 04/24/2024 | esp - add fields for external generation on email |
58
+ | 3.10.193 | 04/04/2024 | AutoOrder.calculated_next_shipment_dts |
57
59
  | 3.10.192 | 04/01/2024 | added merchant_id as read-only top level property of AutoOrder object |
58
60
  | 3.10.191 | 03/26/2024 | WorkflowTask - added assigned_to_user_or_group field |
59
61
  | 3.10.190 | 03/25/2024 | workflowtask - add global_task_number and object_task_number |
package/api.ts CHANGED
@@ -1620,6 +1620,12 @@ export interface AutoOrderItem {
1620
1620
  * @memberof AutoOrderItem
1621
1621
  */
1622
1622
  auto_order_item_oid?: number;
1623
+ /**
1624
+ * Calculated Date/time that this item is scheduled to rebill. Will be null if no more shipments are going to occur on this item
1625
+ * @type {string}
1626
+ * @memberof AutoOrderItem
1627
+ */
1628
+ calculated_next_shipment_dts?: string;
1623
1629
  /**
1624
1630
  * Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
1625
1631
  * @type {string}
@@ -6947,12 +6953,30 @@ export interface ConversationAgentAuth {
6947
6953
  * @memberof ConversationAgentAuth
6948
6954
  */
6949
6955
  merchant_id?: string;
6956
+ /**
6957
+ *
6958
+ * @type {boolean}
6959
+ * @memberof ConversationAgentAuth
6960
+ */
6961
+ pbx_admin?: boolean;
6950
6962
  /**
6951
6963
  *
6952
6964
  * @type {string}
6953
6965
  * @memberof ConversationAgentAuth
6954
6966
  */
6955
6967
  pbx_jwt?: string;
6968
+ /**
6969
+ *
6970
+ * @type {boolean}
6971
+ * @memberof ConversationAgentAuth
6972
+ */
6973
+ pbx_supervisor?: boolean;
6974
+ /**
6975
+ *
6976
+ * @type {boolean}
6977
+ * @memberof ConversationAgentAuth
6978
+ */
6979
+ pbx_user?: boolean;
6956
6980
  /**
6957
6981
  *
6958
6982
  * @type {string}
@@ -9353,6 +9377,12 @@ export interface ConversationPbxQueue {
9353
9377
  * @memberof ConversationPbxQueue
9354
9378
  */
9355
9379
  wait_warning_seconds?: number;
9380
+ /**
9381
+ * Wrap up time in seconds
9382
+ * @type {number}
9383
+ * @memberof ConversationPbxQueue
9384
+ */
9385
+ wrap_up_seconds?: number;
9356
9386
  }
9357
9387
 
9358
9388
  /**
@@ -16806,6 +16836,54 @@ export interface EmailCommseqEmail {
16806
16836
  * @memberof EmailCommseqEmail
16807
16837
  */
16808
16838
  email_template_vm_path?: string;
16839
+ /**
16840
+ *
16841
+ * @type {boolean}
16842
+ * @memberof EmailCommseqEmail
16843
+ */
16844
+ external_generation?: boolean;
16845
+ /**
16846
+ *
16847
+ * @type {string}
16848
+ * @memberof EmailCommseqEmail
16849
+ */
16850
+ external_generation_authentication?: string;
16851
+ /**
16852
+ *
16853
+ * @type {string}
16854
+ * @memberof EmailCommseqEmail
16855
+ */
16856
+ external_generation_basic_password?: string;
16857
+ /**
16858
+ *
16859
+ * @type {string}
16860
+ * @memberof EmailCommseqEmail
16861
+ */
16862
+ external_generation_basic_username?: string;
16863
+ /**
16864
+ *
16865
+ * @type {string}
16866
+ * @memberof EmailCommseqEmail
16867
+ */
16868
+ external_generation_header_name?: string;
16869
+ /**
16870
+ *
16871
+ * @type {string}
16872
+ * @memberof EmailCommseqEmail
16873
+ */
16874
+ external_generation_header_value?: string;
16875
+ /**
16876
+ *
16877
+ * @type {string}
16878
+ * @memberof EmailCommseqEmail
16879
+ */
16880
+ external_generation_id?: string;
16881
+ /**
16882
+ *
16883
+ * @type {string}
16884
+ * @memberof EmailCommseqEmail
16885
+ */
16886
+ external_generation_url?: string;
16809
16887
  /**
16810
16888
  * Filter profile equation json
16811
16889
  * @type {string}
@@ -25847,13 +25925,13 @@ export interface ItemChannelPartnerMapping {
25847
25925
  */
25848
25926
  export interface ItemChargeback {
25849
25927
  /**
25850
- * Addendums
25928
+ * Addendums (deprecated)
25851
25929
  * @type {Array<ItemChargebackAddendum>}
25852
25930
  * @memberof ItemChargeback
25853
25931
  */
25854
25932
  addendums?: Array<ItemChargebackAddendum>;
25855
25933
  /**
25856
- * Adjustment requests
25934
+ * Adjustment requests (deprecated)
25857
25935
  * @type {Array<ItemChargebackAdjustmentRequest>}
25858
25936
  * @memberof ItemChargeback
25859
25937
  */
@@ -34567,6 +34645,12 @@ export interface OrderRefundableResponse {
34567
34645
  * @memberof OrderRefundableResponse
34568
34646
  */
34569
34647
  order_level_refund_reasons?: Array<OrderReason>;
34648
+ /**
34649
+ * True if the order level reject reason is required
34650
+ * @type {boolean}
34651
+ * @memberof OrderRefundableResponse
34652
+ */
34653
+ order_level_reject_reason_required?: boolean;
34570
34654
  /**
34571
34655
  * Reject codes available at the order level.
34572
34656
  * @type {Array<OrderReason>}
@@ -43633,7 +43717,7 @@ export interface WorkflowTask {
43633
43717
  */
43634
43718
  expiration_dts?: string;
43635
43719
  /**
43636
- * Global task numer
43720
+ * Global task number
43637
43721
  * @type {number}
43638
43722
  * @memberof WorkflowTask
43639
43723
  */
@@ -43675,7 +43759,7 @@ export interface WorkflowTask {
43675
43759
  */
43676
43760
  object_id?: string;
43677
43761
  /**
43678
- * Object specific task numer
43762
+ * Object specific task number
43679
43763
  * @type {number}
43680
43764
  * @memberof WorkflowTask
43681
43765
  */
@@ -43959,6 +44043,12 @@ export interface WorkflowTaskTagsResponse {
43959
44043
  * @interface WorkflowTasksRequest
43960
44044
  */
43961
44045
  export interface WorkflowTasksRequest {
44046
+ /**
44047
+ * Assigned to group
44048
+ * @type {string}
44049
+ * @memberof WorkflowTasksRequest
44050
+ */
44051
+ assigned_to_group?: string;
43962
44052
  /**
43963
44053
  * Assigned to group ID
43964
44054
  * @type {number}
@@ -43971,6 +44061,12 @@ export interface WorkflowTasksRequest {
43971
44061
  * @memberof WorkflowTasksRequest
43972
44062
  */
43973
44063
  assigned_to_me?: boolean;
44064
+ /**
44065
+ * Assigned to user
44066
+ * @type {string}
44067
+ * @memberof WorkflowTasksRequest
44068
+ */
44069
+ assigned_to_user?: string;
43974
44070
  /**
43975
44071
  * Assigned to user ID
43976
44072
  * @type {number}
@@ -50635,6 +50731,64 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
50635
50731
 
50636
50732
 
50637
50733
 
50734
+ // authentication ultraCartOauth required
50735
+ // oauth required
50736
+ if (configuration && configuration.accessToken) {
50737
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
50738
+ ? configuration.accessToken("ultraCartOauth", ["conversation_write"])
50739
+ : configuration.accessToken;
50740
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
50741
+ }
50742
+
50743
+ // authentication ultraCartSimpleApiKey required
50744
+ if (configuration && configuration.apiKey) {
50745
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
50746
+ ? configuration.apiKey("x-ultracart-simple-key")
50747
+ : configuration.apiKey;
50748
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
50749
+ }
50750
+
50751
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
50752
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
50753
+ delete localVarUrlObj.search;
50754
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
50755
+
50756
+ return {
50757
+ url: url.format(localVarUrlObj),
50758
+ options: localVarRequestOptions,
50759
+ };
50760
+ },
50761
+ /**
50762
+ * Delete pbx queue Voicemail
50763
+ * @summary Delete Queue Voicemail
50764
+ * @param {string} queue_uuid
50765
+ * @param {string} recording_sid
50766
+ * @param {*} [options] Override http request option.
50767
+ * @throws {RequiredError}
50768
+ */
50769
+ deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options: any = {}): FetchArgs {
50770
+ // verify required parameter 'queue_uuid' is not null or undefined
50771
+ if (queue_uuid === null || queue_uuid === undefined) {
50772
+ throw new RequiredError('queue_uuid','Required parameter queue_uuid was null or undefined when calling deletePbxQueueVoicemail.');
50773
+ }
50774
+ // verify required parameter 'recording_sid' is not null or undefined
50775
+ if (recording_sid === null || recording_sid === undefined) {
50776
+ throw new RequiredError('recording_sid','Required parameter recording_sid was null or undefined when calling deletePbxQueueVoicemail.');
50777
+ }
50778
+ const localVarPath = `/conversation/pbx/queues/{queue_uuid}/voicemails/{recording_sid}`
50779
+ .replace(`{${"queue_uuid"}}`, encodeURIComponent(String(queue_uuid)))
50780
+ .replace(`{${"recording_sid"}}`, encodeURIComponent(String(recording_sid)));
50781
+ const localVarUrlObj = url.parse(localVarPath, true);
50782
+ const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
50783
+ const localVarHeaderParameter = {} as any;
50784
+ const localVarQueryParameter = {} as any;
50785
+
50786
+ if(configuration && configuration.apiVersion) {
50787
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
50788
+ }
50789
+
50790
+
50791
+
50638
50792
  // authentication ultraCartOauth required
50639
50793
  // oauth required
50640
50794
  if (configuration && configuration.accessToken) {
@@ -53568,6 +53722,64 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
53568
53722
 
53569
53723
 
53570
53724
 
53725
+ // authentication ultraCartOauth required
53726
+ // oauth required
53727
+ if (configuration && configuration.accessToken) {
53728
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
53729
+ ? configuration.accessToken("ultraCartOauth", ["conversation_write"])
53730
+ : configuration.accessToken;
53731
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
53732
+ }
53733
+
53734
+ // authentication ultraCartSimpleApiKey required
53735
+ if (configuration && configuration.apiKey) {
53736
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
53737
+ ? configuration.apiKey("x-ultracart-simple-key")
53738
+ : configuration.apiKey;
53739
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
53740
+ }
53741
+
53742
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
53743
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
53744
+ delete localVarUrlObj.search;
53745
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
53746
+
53747
+ return {
53748
+ url: url.format(localVarUrlObj),
53749
+ options: localVarRequestOptions,
53750
+ };
53751
+ },
53752
+ /**
53753
+ * Listened pbx queue Voicemail
53754
+ * @summary Listened Queue Voicemail
53755
+ * @param {string} queue_uuid
53756
+ * @param {string} recording_sid
53757
+ * @param {*} [options] Override http request option.
53758
+ * @throws {RequiredError}
53759
+ */
53760
+ listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options: any = {}): FetchArgs {
53761
+ // verify required parameter 'queue_uuid' is not null or undefined
53762
+ if (queue_uuid === null || queue_uuid === undefined) {
53763
+ throw new RequiredError('queue_uuid','Required parameter queue_uuid was null or undefined when calling listenedPbxQueueVoicemail.');
53764
+ }
53765
+ // verify required parameter 'recording_sid' is not null or undefined
53766
+ if (recording_sid === null || recording_sid === undefined) {
53767
+ throw new RequiredError('recording_sid','Required parameter recording_sid was null or undefined when calling listenedPbxQueueVoicemail.');
53768
+ }
53769
+ const localVarPath = `/conversation/pbx/queues/{queue_uuid}/voicemails/{recording_sid}/listened`
53770
+ .replace(`{${"queue_uuid"}}`, encodeURIComponent(String(queue_uuid)))
53771
+ .replace(`{${"recording_sid"}}`, encodeURIComponent(String(recording_sid)));
53772
+ const localVarUrlObj = url.parse(localVarPath, true);
53773
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
53774
+ const localVarHeaderParameter = {} as any;
53775
+ const localVarQueryParameter = {} as any;
53776
+
53777
+ if(configuration && configuration.apiVersion) {
53778
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
53779
+ }
53780
+
53781
+
53782
+
53571
53783
  // authentication ultraCartOauth required
53572
53784
  // oauth required
53573
53785
  if (configuration && configuration.accessToken) {
@@ -54846,6 +55058,28 @@ export const ConversationApiFp = function(configuration?: Configuration) {
54846
55058
  });
54847
55059
  };
54848
55060
  },
55061
+ /**
55062
+ * Delete pbx queue Voicemail
55063
+ * @summary Delete Queue Voicemail
55064
+ * @param {string} queue_uuid
55065
+ * @param {string} recording_sid
55066
+ * @param {*} [options] Override http request option.
55067
+ * @throws {RequiredError}
55068
+ */
55069
+ deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
55070
+ const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).deletePbxQueueVoicemail(queue_uuid, recording_sid, options);
55071
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
55072
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
55073
+
55074
+ if (response.status >= 200 && response.status < 300) {
55075
+ return response;
55076
+
55077
+ } else {
55078
+ throw response;
55079
+ }
55080
+ });
55081
+ };
55082
+ },
54849
55083
  /**
54850
55084
  * Delete a pbx timeBased
54851
55085
  * @summary Delete pbx timeBased
@@ -56032,6 +56266,28 @@ export const ConversationApiFp = function(configuration?: Configuration) {
56032
56266
  });
56033
56267
  };
56034
56268
  },
56269
+ /**
56270
+ * Listened pbx queue Voicemail
56271
+ * @summary Listened Queue Voicemail
56272
+ * @param {string} queue_uuid
56273
+ * @param {string} recording_sid
56274
+ * @param {*} [options] Override http request option.
56275
+ * @throws {RequiredError}
56276
+ */
56277
+ listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
56278
+ const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).listenedPbxQueueVoicemail(queue_uuid, recording_sid, options);
56279
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
56280
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
56281
+
56282
+ if (response.status >= 200 && response.status < 300) {
56283
+ return response;
56284
+
56285
+ } else {
56286
+ throw response;
56287
+ }
56288
+ });
56289
+ };
56290
+ },
56035
56291
  /**
56036
56292
  * Mark a conversation as read
56037
56293
  * @summary Mark a conversation as read
@@ -56521,6 +56777,17 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
56521
56777
  deletePbxQueue(conversationPbxQueueUuid: string, options?: any) {
56522
56778
  return ConversationApiFp(configuration).deletePbxQueue(conversationPbxQueueUuid, options)(fetch, basePath);
56523
56779
  },
56780
+ /**
56781
+ * Delete pbx queue Voicemail
56782
+ * @summary Delete Queue Voicemail
56783
+ * @param {string} queue_uuid
56784
+ * @param {string} recording_sid
56785
+ * @param {*} [options] Override http request option.
56786
+ * @throws {RequiredError}
56787
+ */
56788
+ deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any) {
56789
+ return ConversationApiFp(configuration).deletePbxQueueVoicemail(queue_uuid, recording_sid, options)(fetch, basePath);
56790
+ },
56524
56791
  /**
56525
56792
  * Delete a pbx timeBased
56526
56793
  * @summary Delete pbx timeBased
@@ -57080,6 +57347,17 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
57080
57347
  listenedPbxAgentVoicemail(recording_sid: string, options?: any) {
57081
57348
  return ConversationApiFp(configuration).listenedPbxAgentVoicemail(recording_sid, options)(fetch, basePath);
57082
57349
  },
57350
+ /**
57351
+ * Listened pbx queue Voicemail
57352
+ * @summary Listened Queue Voicemail
57353
+ * @param {string} queue_uuid
57354
+ * @param {string} recording_sid
57355
+ * @param {*} [options] Override http request option.
57356
+ * @throws {RequiredError}
57357
+ */
57358
+ listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any) {
57359
+ return ConversationApiFp(configuration).listenedPbxQueueVoicemail(queue_uuid, recording_sid, options)(fetch, basePath);
57360
+ },
57083
57361
  /**
57084
57362
  * Mark a conversation as read
57085
57363
  * @summary Mark a conversation as read
@@ -57371,6 +57649,17 @@ export interface ConversationApiInterface {
57371
57649
  */
57372
57650
  deletePbxQueue(conversationPbxQueueUuid: string, options?: any): Promise<ConversationPbxQueueResponse>;
57373
57651
 
57652
+ /**
57653
+ * Delete pbx queue Voicemail
57654
+ * @summary Delete Queue Voicemail
57655
+ * @param {string} queue_uuid
57656
+ * @param {string} recording_sid
57657
+ * @param {*} [options] Override http request option.
57658
+ * @throws {RequiredError}
57659
+ * @memberof ConversationApiInterface
57660
+ */
57661
+ deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): Promise<{}>;
57662
+
57374
57663
  /**
57375
57664
  * Delete a pbx timeBased
57376
57665
  * @summary Delete pbx timeBased
@@ -57930,6 +58219,17 @@ export interface ConversationApiInterface {
57930
58219
  */
57931
58220
  listenedPbxAgentVoicemail(recording_sid: string, options?: any): Promise<{}>;
57932
58221
 
58222
+ /**
58223
+ * Listened pbx queue Voicemail
58224
+ * @summary Listened Queue Voicemail
58225
+ * @param {string} queue_uuid
58226
+ * @param {string} recording_sid
58227
+ * @param {*} [options] Override http request option.
58228
+ * @throws {RequiredError}
58229
+ * @memberof ConversationApiInterface
58230
+ */
58231
+ listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any): Promise<{}>;
58232
+
57933
58233
  /**
57934
58234
  * Mark a conversation as read
57935
58235
  * @summary Mark a conversation as read
@@ -58239,6 +58539,19 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
58239
58539
  return ConversationApiFp(this.configuration).deletePbxQueue(conversationPbxQueueUuid, options)(this.fetch, this.basePath);
58240
58540
  }
58241
58541
 
58542
+ /**
58543
+ * Delete pbx queue Voicemail
58544
+ * @summary Delete Queue Voicemail
58545
+ * @param {string} queue_uuid
58546
+ * @param {string} recording_sid
58547
+ * @param {*} [options] Override http request option.
58548
+ * @throws {RequiredError}
58549
+ * @memberof ConversationApi
58550
+ */
58551
+ public deletePbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any) {
58552
+ return ConversationApiFp(this.configuration).deletePbxQueueVoicemail(queue_uuid, recording_sid, options)(this.fetch, this.basePath);
58553
+ }
58554
+
58242
58555
  /**
58243
58556
  * Delete a pbx timeBased
58244
58557
  * @summary Delete pbx timeBased
@@ -58912,6 +59225,19 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
58912
59225
  return ConversationApiFp(this.configuration).listenedPbxAgentVoicemail(recording_sid, options)(this.fetch, this.basePath);
58913
59226
  }
58914
59227
 
59228
+ /**
59229
+ * Listened pbx queue Voicemail
59230
+ * @summary Listened Queue Voicemail
59231
+ * @param {string} queue_uuid
59232
+ * @param {string} recording_sid
59233
+ * @param {*} [options] Override http request option.
59234
+ * @throws {RequiredError}
59235
+ * @memberof ConversationApi
59236
+ */
59237
+ public listenedPbxQueueVoicemail(queue_uuid: string, recording_sid: string, options?: any) {
59238
+ return ConversationApiFp(this.configuration).listenedPbxQueueVoicemail(queue_uuid, recording_sid, options)(this.fetch, this.basePath);
59239
+ }
59240
+
58915
59241
  /**
58916
59242
  * Mark a conversation as read
58917
59243
  * @summary Mark a conversation as read
@@ -68939,6 +69265,67 @@ export const ItemApiFetchParamCreator = function (configuration?: Configuration)
68939
69265
  options: localVarRequestOptions,
68940
69266
  };
68941
69267
  },
69268
+ /**
69269
+ * Update an item content attribute, creating it new if it does not yet exist.
69270
+ * @summary Upsert an item content attribute
69271
+ * @param {ItemContentAttribute} item_attribute Item content attribute to upsert
69272
+ * @param {number} merchant_item_oid The item oid to modify.
69273
+ * @param {*} [options] Override http request option.
69274
+ * @throws {RequiredError}
69275
+ */
69276
+ insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options: any = {}): FetchArgs {
69277
+ // verify required parameter 'item_attribute' is not null or undefined
69278
+ if (item_attribute === null || item_attribute === undefined) {
69279
+ throw new RequiredError('item_attribute','Required parameter item_attribute was null or undefined when calling insertUpdateItemContentAttribute.');
69280
+ }
69281
+ // verify required parameter 'merchant_item_oid' is not null or undefined
69282
+ if (merchant_item_oid === null || merchant_item_oid === undefined) {
69283
+ throw new RequiredError('merchant_item_oid','Required parameter merchant_item_oid was null or undefined when calling insertUpdateItemContentAttribute.');
69284
+ }
69285
+ const localVarPath = `/item/items/{merchant_item_oid}/content/attributes`
69286
+ .replace(`{${"merchant_item_oid"}}`, encodeURIComponent(String(merchant_item_oid)));
69287
+ const localVarUrlObj = url.parse(localVarPath, true);
69288
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
69289
+ const localVarHeaderParameter = {} as any;
69290
+ const localVarQueryParameter = {} as any;
69291
+
69292
+ if(configuration && configuration.apiVersion) {
69293
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
69294
+ }
69295
+
69296
+
69297
+
69298
+ // authentication ultraCartOauth required
69299
+ // oauth required
69300
+ if (configuration && configuration.accessToken) {
69301
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
69302
+ ? configuration.accessToken("ultraCartOauth", ["item_write"])
69303
+ : configuration.accessToken;
69304
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
69305
+ }
69306
+
69307
+ // authentication ultraCartSimpleApiKey required
69308
+ if (configuration && configuration.apiKey) {
69309
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
69310
+ ? configuration.apiKey("x-ultracart-simple-key")
69311
+ : configuration.apiKey;
69312
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
69313
+ }
69314
+
69315
+ localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
69316
+
69317
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
69318
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
69319
+ delete localVarUrlObj.search;
69320
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
69321
+ const needsSerialization = (<any>"ItemContentAttribute" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
69322
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(item_attribute || {}) : (item_attribute || "");
69323
+
69324
+ return {
69325
+ url: url.format(localVarUrlObj),
69326
+ options: localVarRequestOptions,
69327
+ };
69328
+ },
68942
69329
  /**
68943
69330
  * Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
68944
69331
  * @summary Updates a file within the digital library
@@ -69638,6 +70025,28 @@ export const ItemApiFp = function(configuration?: Configuration) {
69638
70025
  });
69639
70026
  };
69640
70027
  },
70028
+ /**
70029
+ * Update an item content attribute, creating it new if it does not yet exist.
70030
+ * @summary Upsert an item content attribute
70031
+ * @param {ItemContentAttribute} item_attribute Item content attribute to upsert
70032
+ * @param {number} merchant_item_oid The item oid to modify.
70033
+ * @param {*} [options] Override http request option.
70034
+ * @throws {RequiredError}
70035
+ */
70036
+ insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
70037
+ const localVarFetchArgs = ItemApiFetchParamCreator(configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options);
70038
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
70039
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
70040
+
70041
+ if (response.status >= 200 && response.status < 300) {
70042
+ return response;
70043
+
70044
+ } else {
70045
+ throw response;
70046
+ }
70047
+ });
70048
+ };
70049
+ },
69641
70050
  /**
69642
70051
  * Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
69643
70052
  * @summary Updates a file within the digital library
@@ -69947,6 +70356,17 @@ export const ItemApiFactory = function (configuration?: Configuration, fetch?: F
69947
70356
  insertReview(review: ItemReview, merchant_item_oid: number, options?: any) {
69948
70357
  return ItemApiFp(configuration).insertReview(review, merchant_item_oid, options)(fetch, basePath);
69949
70358
  },
70359
+ /**
70360
+ * Update an item content attribute, creating it new if it does not yet exist.
70361
+ * @summary Upsert an item content attribute
70362
+ * @param {ItemContentAttribute} item_attribute Item content attribute to upsert
70363
+ * @param {number} merchant_item_oid The item oid to modify.
70364
+ * @param {*} [options] Override http request option.
70365
+ * @throws {RequiredError}
70366
+ */
70367
+ insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any) {
70368
+ return ItemApiFp(configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options)(fetch, basePath);
70369
+ },
69950
70370
  /**
69951
70371
  * Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
69952
70372
  * @summary Updates a file within the digital library
@@ -70201,6 +70621,17 @@ export interface ItemApiInterface {
70201
70621
  */
70202
70622
  insertReview(review: ItemReview, merchant_item_oid: number, options?: any): Promise<ItemReviewResponse>;
70203
70623
 
70624
+ /**
70625
+ * Update an item content attribute, creating it new if it does not yet exist.
70626
+ * @summary Upsert an item content attribute
70627
+ * @param {ItemContentAttribute} item_attribute Item content attribute to upsert
70628
+ * @param {number} merchant_item_oid The item oid to modify.
70629
+ * @param {*} [options] Override http request option.
70630
+ * @throws {RequiredError}
70631
+ * @memberof ItemApiInterface
70632
+ */
70633
+ insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): Promise<{}>;
70634
+
70204
70635
  /**
70205
70636
  * Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
70206
70637
  * @summary Updates a file within the digital library
@@ -70487,6 +70918,19 @@ export class ItemApi extends BaseAPI implements ItemApiInterface {
70487
70918
  return ItemApiFp(this.configuration).insertReview(review, merchant_item_oid, options)(this.fetch, this.basePath);
70488
70919
  }
70489
70920
 
70921
+ /**
70922
+ * Update an item content attribute, creating it new if it does not yet exist.
70923
+ * @summary Upsert an item content attribute
70924
+ * @param {ItemContentAttribute} item_attribute Item content attribute to upsert
70925
+ * @param {number} merchant_item_oid The item oid to modify.
70926
+ * @param {*} [options] Override http request option.
70927
+ * @throws {RequiredError}
70928
+ * @memberof ItemApi
70929
+ */
70930
+ public insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any) {
70931
+ return ItemApiFp(this.configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options)(this.fetch, this.basePath);
70932
+ }
70933
+
70490
70934
  /**
70491
70935
  * Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
70492
70936
  * @summary Updates a file within the digital library