ultracart_rest_api_v2_typescript 3.10.38 → 3.10.41

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.38
1
+ ## ultracart_rest_api_v2_typescript@3.10.41
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.38 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.41 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,9 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 3.10.41 | 08/26/2022 | postcard address fields for comm sequence testing |
58
+ | 3.10.40 | 08/22/2022 | exposing individual reviews within item.review object |
59
+ | 3.10.39 | 08/19/2022 | order api - added cell phone fields for sms |
57
60
  | 3.10.38 | 08/12/2022 | internal code to allow merchant login as customer |
58
61
  | 3.10.37 | 08/11/2022 | fix entry_dts type on gift certificate ledger |
59
62
  | 3.10.36 | 08/10/2022 | conversation event refactoring |
package/api.ts CHANGED
@@ -3859,6 +3859,12 @@ export interface CartMarketing {
3859
3859
  * @memberof CartMarketing
3860
3860
  */
3861
3861
  advertising_source?: string;
3862
+ /**
3863
+ * True if the customer agrees to receiving marketing SMS messages
3864
+ * @type {boolean}
3865
+ * @memberof CartMarketing
3866
+ */
3867
+ cell_phone_opt_in?: boolean;
3862
3868
  /**
3863
3869
  * True if the customer agrees to receiving marketing emails
3864
3870
  * @type {boolean}
@@ -6824,6 +6830,12 @@ export interface ConversationParticipant {
6824
6830
  * @memberof ConversationParticipant
6825
6831
  */
6826
6832
  left_dts?: string;
6833
+ /**
6834
+ *
6835
+ * @type {string}
6836
+ * @memberof ConversationParticipant
6837
+ */
6838
+ profile_image_url?: string;
6827
6839
  /**
6828
6840
  *
6829
6841
  * @type {string}
@@ -7148,11 +7160,11 @@ export interface ConversationWebchatQueueStatus {
7148
7160
  */
7149
7161
  export interface ConversationWebchatQueueStatusAgent {
7150
7162
  /**
7151
- *
7163
+ * Status of the agent
7152
7164
  * @type {string}
7153
7165
  * @memberof ConversationWebchatQueueStatusAgent
7154
7166
  */
7155
- agent_status?: string;
7167
+ agent_status?: ConversationWebchatQueueStatusAgent.AgentStatusEnum;
7156
7168
  /**
7157
7169
  *
7158
7170
  * @type {string}
@@ -7177,6 +7189,28 @@ export interface ConversationWebchatQueueStatusAgent {
7177
7189
  * @memberof ConversationWebchatQueueStatusAgent
7178
7190
  */
7179
7191
  next_round_robin?: boolean;
7192
+ /**
7193
+ * Profile image URL
7194
+ * @type {string}
7195
+ * @memberof ConversationWebchatQueueStatusAgent
7196
+ */
7197
+ profile_image_url?: string;
7198
+ }
7199
+
7200
+ /**
7201
+ * @export
7202
+ * @namespace ConversationWebchatQueueStatusAgent
7203
+ */
7204
+ export namespace ConversationWebchatQueueStatusAgent {
7205
+ /**
7206
+ * @export
7207
+ * @enum {string}
7208
+ */
7209
+ export enum AgentStatusEnum {
7210
+ Available = <any> 'available',
7211
+ Busy = <any> 'busy',
7212
+ Unavailable = <any> 'unavailable'
7213
+ }
7180
7214
  }
7181
7215
 
7182
7216
  /**
@@ -13123,6 +13157,18 @@ export interface EmailCommseqResponse {
13123
13157
  * @interface EmailCommseqSequenceTestRequest
13124
13158
  */
13125
13159
  export interface EmailCommseqSequenceTestRequest {
13160
+ /**
13161
+ *
13162
+ * @type {string}
13163
+ * @memberof EmailCommseqSequenceTestRequest
13164
+ */
13165
+ address_1?: string;
13166
+ /**
13167
+ *
13168
+ * @type {string}
13169
+ * @memberof EmailCommseqSequenceTestRequest
13170
+ */
13171
+ address_2?: string;
13126
13172
  /**
13127
13173
  *
13128
13174
  * @type {string}
@@ -13135,12 +13181,24 @@ export interface EmailCommseqSequenceTestRequest {
13135
13181
  * @memberof EmailCommseqSequenceTestRequest
13136
13182
  */
13137
13183
  cart_item_ids?: Array<string>;
13184
+ /**
13185
+ *
13186
+ * @type {string}
13187
+ * @memberof EmailCommseqSequenceTestRequest
13188
+ */
13189
+ city?: string;
13138
13190
  /**
13139
13191
  *
13140
13192
  * @type {string}
13141
13193
  * @memberof EmailCommseqSequenceTestRequest
13142
13194
  */
13143
13195
  esp_commseq_uuid?: string;
13196
+ /**
13197
+ *
13198
+ * @type {boolean}
13199
+ * @memberof EmailCommseqSequenceTestRequest
13200
+ */
13201
+ mail_card?: boolean;
13144
13202
  /**
13145
13203
  *
13146
13204
  * @type {string}
@@ -13159,6 +13217,12 @@ export interface EmailCommseqSequenceTestRequest {
13159
13217
  * @memberof EmailCommseqSequenceTestRequest
13160
13218
  */
13161
13219
  please_review?: boolean;
13220
+ /**
13221
+ *
13222
+ * @type {string}
13223
+ * @memberof EmailCommseqSequenceTestRequest
13224
+ */
13225
+ postal_code?: string;
13162
13226
  /**
13163
13227
  *
13164
13228
  * @type {string}
@@ -13171,6 +13235,12 @@ export interface EmailCommseqSequenceTestRequest {
13171
13235
  * @memberof EmailCommseqSequenceTestRequest
13172
13236
  */
13173
13237
  send_to_logged_in_user?: boolean;
13238
+ /**
13239
+ *
13240
+ * @type {string}
13241
+ * @memberof EmailCommseqSequenceTestRequest
13242
+ */
13243
+ state?: string;
13174
13244
  }
13175
13245
 
13176
13246
  /**
@@ -17790,6 +17860,12 @@ export interface ExperimentVariation {
17790
17860
  * @memberof ExperimentVariation
17791
17861
  */
17792
17862
  session_count?: number;
17863
+ /**
17864
+ * SMS Opt Ins for this variation
17865
+ * @type {number}
17866
+ * @memberof ExperimentVariation
17867
+ */
17868
+ sms_opt_ins?: number;
17793
17869
  /**
17794
17870
  * Percentage of the traffic this variation is currently receiving
17795
17871
  * @type {number}
@@ -17888,6 +17964,12 @@ export interface ExperimentVariationStat {
17888
17964
  * @memberof ExperimentVariationStat
17889
17965
  */
17890
17966
  session_count?: number;
17967
+ /**
17968
+ * Total SMS opt in count for this variation
17969
+ * @type {number}
17970
+ * @memberof ExperimentVariationStat
17971
+ */
17972
+ sms_opt_in_count?: number;
17891
17973
  /**
17892
17974
  * Date/time that the statistic was created
17893
17975
  * @type {string}
@@ -22342,6 +22424,236 @@ export interface ItemRevguard {
22342
22424
  revguard_web_prompt_group?: number;
22343
22425
  }
22344
22426
 
22427
+ /**
22428
+ *
22429
+ * @export
22430
+ * @interface ItemReview
22431
+ */
22432
+ export interface ItemReview {
22433
+ /**
22434
+ * Customer profile object identifier
22435
+ * @type {number}
22436
+ * @memberof ItemReview
22437
+ */
22438
+ customer_profile_oid?: number;
22439
+ /**
22440
+ *
22441
+ * @type {boolean}
22442
+ * @memberof ItemReview
22443
+ */
22444
+ featured?: boolean;
22445
+ /**
22446
+ *
22447
+ * @type {number}
22448
+ * @memberof ItemReview
22449
+ */
22450
+ helperful_no_votes?: number;
22451
+ /**
22452
+ *
22453
+ * @type {number}
22454
+ * @memberof ItemReview
22455
+ */
22456
+ helpful_yes_votes?: number;
22457
+ /**
22458
+ *
22459
+ * @type {string}
22460
+ * @memberof ItemReview
22461
+ */
22462
+ order_id?: string;
22463
+ /**
22464
+ *
22465
+ * @type {number}
22466
+ * @memberof ItemReview
22467
+ */
22468
+ overall?: number;
22469
+ /**
22470
+ *
22471
+ * @type {string}
22472
+ * @memberof ItemReview
22473
+ */
22474
+ rating_name1?: string;
22475
+ /**
22476
+ *
22477
+ * @type {string}
22478
+ * @memberof ItemReview
22479
+ */
22480
+ rating_name10?: string;
22481
+ /**
22482
+ *
22483
+ * @type {string}
22484
+ * @memberof ItemReview
22485
+ */
22486
+ rating_name2?: string;
22487
+ /**
22488
+ *
22489
+ * @type {string}
22490
+ * @memberof ItemReview
22491
+ */
22492
+ rating_name3?: string;
22493
+ /**
22494
+ *
22495
+ * @type {string}
22496
+ * @memberof ItemReview
22497
+ */
22498
+ rating_name4?: string;
22499
+ /**
22500
+ *
22501
+ * @type {string}
22502
+ * @memberof ItemReview
22503
+ */
22504
+ rating_name5?: string;
22505
+ /**
22506
+ *
22507
+ * @type {string}
22508
+ * @memberof ItemReview
22509
+ */
22510
+ rating_name6?: string;
22511
+ /**
22512
+ *
22513
+ * @type {string}
22514
+ * @memberof ItemReview
22515
+ */
22516
+ rating_name7?: string;
22517
+ /**
22518
+ *
22519
+ * @type {string}
22520
+ * @memberof ItemReview
22521
+ */
22522
+ rating_name8?: string;
22523
+ /**
22524
+ *
22525
+ * @type {string}
22526
+ * @memberof ItemReview
22527
+ */
22528
+ rating_name9?: string;
22529
+ /**
22530
+ *
22531
+ * @type {number}
22532
+ * @memberof ItemReview
22533
+ */
22534
+ rating_score1?: number;
22535
+ /**
22536
+ *
22537
+ * @type {number}
22538
+ * @memberof ItemReview
22539
+ */
22540
+ rating_score10?: number;
22541
+ /**
22542
+ *
22543
+ * @type {number}
22544
+ * @memberof ItemReview
22545
+ */
22546
+ rating_score2?: number;
22547
+ /**
22548
+ *
22549
+ * @type {number}
22550
+ * @memberof ItemReview
22551
+ */
22552
+ rating_score3?: number;
22553
+ /**
22554
+ *
22555
+ * @type {number}
22556
+ * @memberof ItemReview
22557
+ */
22558
+ rating_score4?: number;
22559
+ /**
22560
+ *
22561
+ * @type {number}
22562
+ * @memberof ItemReview
22563
+ */
22564
+ rating_score5?: number;
22565
+ /**
22566
+ *
22567
+ * @type {number}
22568
+ * @memberof ItemReview
22569
+ */
22570
+ rating_score6?: number;
22571
+ /**
22572
+ *
22573
+ * @type {number}
22574
+ * @memberof ItemReview
22575
+ */
22576
+ rating_score7?: number;
22577
+ /**
22578
+ *
22579
+ * @type {number}
22580
+ * @memberof ItemReview
22581
+ */
22582
+ rating_score8?: number;
22583
+ /**
22584
+ *
22585
+ * @type {number}
22586
+ * @memberof ItemReview
22587
+ */
22588
+ rating_score9?: number;
22589
+ /**
22590
+ *
22591
+ * @type {number}
22592
+ * @memberof ItemReview
22593
+ */
22594
+ recommend_store_to_friend?: number;
22595
+ /**
22596
+ *
22597
+ * @type {boolean}
22598
+ * @memberof ItemReview
22599
+ */
22600
+ recommend_to_friend?: boolean;
22601
+ /**
22602
+ *
22603
+ * @type {string}
22604
+ * @memberof ItemReview
22605
+ */
22606
+ review?: string;
22607
+ /**
22608
+ *
22609
+ * @type {number}
22610
+ * @memberof ItemReview
22611
+ */
22612
+ review_oid?: number;
22613
+ /**
22614
+ *
22615
+ * @type {string}
22616
+ * @memberof ItemReview
22617
+ */
22618
+ reviewed_nickname?: string;
22619
+ /**
22620
+ *
22621
+ * @type {string}
22622
+ * @memberof ItemReview
22623
+ */
22624
+ reviewer_email?: string;
22625
+ /**
22626
+ *
22627
+ * @type {string}
22628
+ * @memberof ItemReview
22629
+ */
22630
+ reviewer_location?: string;
22631
+ /**
22632
+ *
22633
+ * @type {string}
22634
+ * @memberof ItemReview
22635
+ */
22636
+ status?: string;
22637
+ /**
22638
+ *
22639
+ * @type {string}
22640
+ * @memberof ItemReview
22641
+ */
22642
+ store_feedback?: string;
22643
+ /**
22644
+ * Date/time of review submission
22645
+ * @type {string}
22646
+ * @memberof ItemReview
22647
+ */
22648
+ submitted_dts?: string;
22649
+ /**
22650
+ *
22651
+ * @type {string}
22652
+ * @memberof ItemReview
22653
+ */
22654
+ title?: string;
22655
+ }
22656
+
22345
22657
  /**
22346
22658
  *
22347
22659
  * @export
@@ -22360,6 +22672,12 @@ export interface ItemReviews {
22360
22672
  * @memberof ItemReviews
22361
22673
  */
22362
22674
  has_review?: boolean;
22675
+ /**
22676
+ *
22677
+ * @type {Array<ItemReview>}
22678
+ * @memberof ItemReviews
22679
+ */
22680
+ individual_reviews?: Array<ItemReview>;
22363
22681
  /**
22364
22682
  * Number of approved reviews
22365
22683
  * @type {number}
@@ -25060,6 +25378,18 @@ export interface OrderBilling {
25060
25378
  * @memberof OrderBilling
25061
25379
  */
25062
25380
  cc_emails?: Array<string>;
25381
+ /**
25382
+ * Cell phone
25383
+ * @type {string}
25384
+ * @memberof OrderBilling
25385
+ */
25386
+ cell_phone?: string;
25387
+ /**
25388
+ * Cell phone (E164 format)
25389
+ * @type {string}
25390
+ * @memberof OrderBilling
25391
+ */
25392
+ cell_phone_e164?: string;
25063
25393
  /**
25064
25394
  * City
25065
25395
  * @type {string}
@@ -26591,6 +26921,12 @@ export interface OrderMarketing {
26591
26921
  * @memberof OrderMarketing
26592
26922
  */
26593
26923
  advertising_source?: string;
26924
+ /**
26925
+ * True if the customer has opted into SMS marketing
26926
+ * @type {boolean}
26927
+ * @memberof OrderMarketing
26928
+ */
26929
+ cell_phone_opt_in?: boolean;
26594
26930
  /**
26595
26931
  * True if the customer has opted into mailing list subscription
26596
26932
  * @type {boolean}
@@ -50211,11 +50547,12 @@ export const OrderApiFetchParamCreator = function (configuration?: Configuration
50211
50547
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
50212
50548
  * @param {boolean} [manual_refund] Consider a manual refund done externally
50213
50549
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
50550
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
50214
50551
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
50215
50552
  * @param {*} [options] Override http request option.
50216
50553
  * @throws {RequiredError}
50217
50554
  */
50218
- refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options: any = {}): FetchArgs {
50555
+ refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options: any = {}): FetchArgs {
50219
50556
  // verify required parameter 'order' is not null or undefined
50220
50557
  if (order === null || order === undefined) {
50221
50558
  throw new RequiredError('order','Required parameter order was null or undefined when calling refundOrder.');
@@ -50274,6 +50611,10 @@ export const OrderApiFetchParamCreator = function (configuration?: Configuration
50274
50611
  localVarQueryParameter['reverse_affiliate_transactions'] = reverse_affiliate_transactions;
50275
50612
  }
50276
50613
 
50614
+ if (issue_store_credit !== undefined) {
50615
+ localVarQueryParameter['issue_store_credit'] = issue_store_credit;
50616
+ }
50617
+
50277
50618
  if (_expand !== undefined) {
50278
50619
  localVarQueryParameter['_expand'] = _expand;
50279
50620
  }
@@ -50997,12 +51338,13 @@ export const OrderApiFp = function(configuration?: Configuration) {
50997
51338
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
50998
51339
  * @param {boolean} [manual_refund] Consider a manual refund done externally
50999
51340
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
51341
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
51000
51342
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
51001
51343
  * @param {*} [options] Override http request option.
51002
51344
  * @throws {RequiredError}
51003
51345
  */
51004
- refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderResponse> {
51005
- const localVarFetchArgs = OrderApiFetchParamCreator(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options);
51346
+ refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderResponse> {
51347
+ const localVarFetchArgs = OrderApiFetchParamCreator(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options);
51006
51348
  return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
51007
51349
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
51008
51350
 
@@ -51355,12 +51697,13 @@ export const OrderApiFactory = function (configuration?: Configuration, fetch?:
51355
51697
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
51356
51698
  * @param {boolean} [manual_refund] Consider a manual refund done externally
51357
51699
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
51700
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
51358
51701
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
51359
51702
  * @param {*} [options] Override http request option.
51360
51703
  * @throws {RequiredError}
51361
51704
  */
51362
- refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any) {
51363
- return OrderApiFp(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options)(fetch, basePath);
51705
+ refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any) {
51706
+ return OrderApiFp(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options)(fetch, basePath);
51364
51707
  },
51365
51708
  /**
51366
51709
  * Create a replacement order based upon a previous order
@@ -51647,12 +51990,13 @@ export interface OrderApiInterface {
51647
51990
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
51648
51991
  * @param {boolean} [manual_refund] Consider a manual refund done externally
51649
51992
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
51993
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
51650
51994
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
51651
51995
  * @param {*} [options] Override http request option.
51652
51996
  * @throws {RequiredError}
51653
51997
  * @memberof OrderApiInterface
51654
51998
  */
51655
- refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
51999
+ refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
51656
52000
 
51657
52001
  /**
51658
52002
  * Create a replacement order based upon a previous order
@@ -51973,13 +52317,14 @@ export class OrderApi extends BaseAPI implements OrderApiInterface {
51973
52317
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
51974
52318
  * @param {boolean} [manual_refund] Consider a manual refund done externally
51975
52319
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
52320
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
51976
52321
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
51977
52322
  * @param {*} [options] Override http request option.
51978
52323
  * @throws {RequiredError}
51979
52324
  * @memberof OrderApi
51980
52325
  */
51981
- public refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any) {
51982
- return OrderApiFp(this.configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options)(this.fetch, this.basePath);
52326
+ public refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any) {
52327
+ return OrderApiFp(this.configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options)(this.fetch, this.basePath);
51983
52328
  }
51984
52329
 
51985
52330
  /**
@@ -59086,7 +59431,7 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
59086
59431
  * @throws {RequiredError}
59087
59432
  */
59088
59433
  getStoreFronts(options: any = {}): FetchArgs {
59089
- const localVarPath = `/storefront/`;
59434
+ const localVarPath = `/storefront`;
59090
59435
  const localVarUrlObj = url.parse(localVarPath, true);
59091
59436
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
59092
59437
  const localVarHeaderParameter = {} as any;
package/dist/api.d.ts CHANGED
@@ -3768,6 +3768,12 @@ export interface CartMarketing {
3768
3768
  * @memberof CartMarketing
3769
3769
  */
3770
3770
  advertising_source?: string;
3771
+ /**
3772
+ * True if the customer agrees to receiving marketing SMS messages
3773
+ * @type {boolean}
3774
+ * @memberof CartMarketing
3775
+ */
3776
+ cell_phone_opt_in?: boolean;
3771
3777
  /**
3772
3778
  * True if the customer agrees to receiving marketing emails
3773
3779
  * @type {boolean}
@@ -6662,6 +6668,12 @@ export interface ConversationParticipant {
6662
6668
  * @memberof ConversationParticipant
6663
6669
  */
6664
6670
  left_dts?: string;
6671
+ /**
6672
+ *
6673
+ * @type {string}
6674
+ * @memberof ConversationParticipant
6675
+ */
6676
+ profile_image_url?: string;
6665
6677
  /**
6666
6678
  *
6667
6679
  * @type {string}
@@ -6978,11 +6990,11 @@ export interface ConversationWebchatQueueStatus {
6978
6990
  */
6979
6991
  export interface ConversationWebchatQueueStatusAgent {
6980
6992
  /**
6981
- *
6993
+ * Status of the agent
6982
6994
  * @type {string}
6983
6995
  * @memberof ConversationWebchatQueueStatusAgent
6984
6996
  */
6985
- agent_status?: string;
6997
+ agent_status?: ConversationWebchatQueueStatusAgent.AgentStatusEnum;
6986
6998
  /**
6987
6999
  *
6988
7000
  * @type {string}
@@ -7007,6 +7019,27 @@ export interface ConversationWebchatQueueStatusAgent {
7007
7019
  * @memberof ConversationWebchatQueueStatusAgent
7008
7020
  */
7009
7021
  next_round_robin?: boolean;
7022
+ /**
7023
+ * Profile image URL
7024
+ * @type {string}
7025
+ * @memberof ConversationWebchatQueueStatusAgent
7026
+ */
7027
+ profile_image_url?: string;
7028
+ }
7029
+ /**
7030
+ * @export
7031
+ * @namespace ConversationWebchatQueueStatusAgent
7032
+ */
7033
+ export declare namespace ConversationWebchatQueueStatusAgent {
7034
+ /**
7035
+ * @export
7036
+ * @enum {string}
7037
+ */
7038
+ enum AgentStatusEnum {
7039
+ Available,
7040
+ Busy,
7041
+ Unavailable
7042
+ }
7010
7043
  }
7011
7044
  /**
7012
7045
  *
@@ -12822,6 +12855,18 @@ export interface EmailCommseqResponse {
12822
12855
  * @interface EmailCommseqSequenceTestRequest
12823
12856
  */
12824
12857
  export interface EmailCommseqSequenceTestRequest {
12858
+ /**
12859
+ *
12860
+ * @type {string}
12861
+ * @memberof EmailCommseqSequenceTestRequest
12862
+ */
12863
+ address_1?: string;
12864
+ /**
12865
+ *
12866
+ * @type {string}
12867
+ * @memberof EmailCommseqSequenceTestRequest
12868
+ */
12869
+ address_2?: string;
12825
12870
  /**
12826
12871
  *
12827
12872
  * @type {string}
@@ -12834,12 +12879,24 @@ export interface EmailCommseqSequenceTestRequest {
12834
12879
  * @memberof EmailCommseqSequenceTestRequest
12835
12880
  */
12836
12881
  cart_item_ids?: Array<string>;
12882
+ /**
12883
+ *
12884
+ * @type {string}
12885
+ * @memberof EmailCommseqSequenceTestRequest
12886
+ */
12887
+ city?: string;
12837
12888
  /**
12838
12889
  *
12839
12890
  * @type {string}
12840
12891
  * @memberof EmailCommseqSequenceTestRequest
12841
12892
  */
12842
12893
  esp_commseq_uuid?: string;
12894
+ /**
12895
+ *
12896
+ * @type {boolean}
12897
+ * @memberof EmailCommseqSequenceTestRequest
12898
+ */
12899
+ mail_card?: boolean;
12843
12900
  /**
12844
12901
  *
12845
12902
  * @type {string}
@@ -12858,6 +12915,12 @@ export interface EmailCommseqSequenceTestRequest {
12858
12915
  * @memberof EmailCommseqSequenceTestRequest
12859
12916
  */
12860
12917
  please_review?: boolean;
12918
+ /**
12919
+ *
12920
+ * @type {string}
12921
+ * @memberof EmailCommseqSequenceTestRequest
12922
+ */
12923
+ postal_code?: string;
12861
12924
  /**
12862
12925
  *
12863
12926
  * @type {string}
@@ -12870,6 +12933,12 @@ export interface EmailCommseqSequenceTestRequest {
12870
12933
  * @memberof EmailCommseqSequenceTestRequest
12871
12934
  */
12872
12935
  send_to_logged_in_user?: boolean;
12936
+ /**
12937
+ *
12938
+ * @type {string}
12939
+ * @memberof EmailCommseqSequenceTestRequest
12940
+ */
12941
+ state?: string;
12873
12942
  }
12874
12943
  /**
12875
12944
  *
@@ -17395,6 +17464,12 @@ export interface ExperimentVariation {
17395
17464
  * @memberof ExperimentVariation
17396
17465
  */
17397
17466
  session_count?: number;
17467
+ /**
17468
+ * SMS Opt Ins for this variation
17469
+ * @type {number}
17470
+ * @memberof ExperimentVariation
17471
+ */
17472
+ sms_opt_ins?: number;
17398
17473
  /**
17399
17474
  * Percentage of the traffic this variation is currently receiving
17400
17475
  * @type {number}
@@ -17492,6 +17567,12 @@ export interface ExperimentVariationStat {
17492
17567
  * @memberof ExperimentVariationStat
17493
17568
  */
17494
17569
  session_count?: number;
17570
+ /**
17571
+ * Total SMS opt in count for this variation
17572
+ * @type {number}
17573
+ * @memberof ExperimentVariationStat
17574
+ */
17575
+ sms_opt_in_count?: number;
17495
17576
  /**
17496
17577
  * Date/time that the statistic was created
17497
17578
  * @type {string}
@@ -21858,6 +21939,235 @@ export interface ItemRevguard {
21858
21939
  */
21859
21940
  revguard_web_prompt_group?: number;
21860
21941
  }
21942
+ /**
21943
+ *
21944
+ * @export
21945
+ * @interface ItemReview
21946
+ */
21947
+ export interface ItemReview {
21948
+ /**
21949
+ * Customer profile object identifier
21950
+ * @type {number}
21951
+ * @memberof ItemReview
21952
+ */
21953
+ customer_profile_oid?: number;
21954
+ /**
21955
+ *
21956
+ * @type {boolean}
21957
+ * @memberof ItemReview
21958
+ */
21959
+ featured?: boolean;
21960
+ /**
21961
+ *
21962
+ * @type {number}
21963
+ * @memberof ItemReview
21964
+ */
21965
+ helperful_no_votes?: number;
21966
+ /**
21967
+ *
21968
+ * @type {number}
21969
+ * @memberof ItemReview
21970
+ */
21971
+ helpful_yes_votes?: number;
21972
+ /**
21973
+ *
21974
+ * @type {string}
21975
+ * @memberof ItemReview
21976
+ */
21977
+ order_id?: string;
21978
+ /**
21979
+ *
21980
+ * @type {number}
21981
+ * @memberof ItemReview
21982
+ */
21983
+ overall?: number;
21984
+ /**
21985
+ *
21986
+ * @type {string}
21987
+ * @memberof ItemReview
21988
+ */
21989
+ rating_name1?: string;
21990
+ /**
21991
+ *
21992
+ * @type {string}
21993
+ * @memberof ItemReview
21994
+ */
21995
+ rating_name10?: string;
21996
+ /**
21997
+ *
21998
+ * @type {string}
21999
+ * @memberof ItemReview
22000
+ */
22001
+ rating_name2?: string;
22002
+ /**
22003
+ *
22004
+ * @type {string}
22005
+ * @memberof ItemReview
22006
+ */
22007
+ rating_name3?: string;
22008
+ /**
22009
+ *
22010
+ * @type {string}
22011
+ * @memberof ItemReview
22012
+ */
22013
+ rating_name4?: string;
22014
+ /**
22015
+ *
22016
+ * @type {string}
22017
+ * @memberof ItemReview
22018
+ */
22019
+ rating_name5?: string;
22020
+ /**
22021
+ *
22022
+ * @type {string}
22023
+ * @memberof ItemReview
22024
+ */
22025
+ rating_name6?: string;
22026
+ /**
22027
+ *
22028
+ * @type {string}
22029
+ * @memberof ItemReview
22030
+ */
22031
+ rating_name7?: string;
22032
+ /**
22033
+ *
22034
+ * @type {string}
22035
+ * @memberof ItemReview
22036
+ */
22037
+ rating_name8?: string;
22038
+ /**
22039
+ *
22040
+ * @type {string}
22041
+ * @memberof ItemReview
22042
+ */
22043
+ rating_name9?: string;
22044
+ /**
22045
+ *
22046
+ * @type {number}
22047
+ * @memberof ItemReview
22048
+ */
22049
+ rating_score1?: number;
22050
+ /**
22051
+ *
22052
+ * @type {number}
22053
+ * @memberof ItemReview
22054
+ */
22055
+ rating_score10?: number;
22056
+ /**
22057
+ *
22058
+ * @type {number}
22059
+ * @memberof ItemReview
22060
+ */
22061
+ rating_score2?: number;
22062
+ /**
22063
+ *
22064
+ * @type {number}
22065
+ * @memberof ItemReview
22066
+ */
22067
+ rating_score3?: number;
22068
+ /**
22069
+ *
22070
+ * @type {number}
22071
+ * @memberof ItemReview
22072
+ */
22073
+ rating_score4?: number;
22074
+ /**
22075
+ *
22076
+ * @type {number}
22077
+ * @memberof ItemReview
22078
+ */
22079
+ rating_score5?: number;
22080
+ /**
22081
+ *
22082
+ * @type {number}
22083
+ * @memberof ItemReview
22084
+ */
22085
+ rating_score6?: number;
22086
+ /**
22087
+ *
22088
+ * @type {number}
22089
+ * @memberof ItemReview
22090
+ */
22091
+ rating_score7?: number;
22092
+ /**
22093
+ *
22094
+ * @type {number}
22095
+ * @memberof ItemReview
22096
+ */
22097
+ rating_score8?: number;
22098
+ /**
22099
+ *
22100
+ * @type {number}
22101
+ * @memberof ItemReview
22102
+ */
22103
+ rating_score9?: number;
22104
+ /**
22105
+ *
22106
+ * @type {number}
22107
+ * @memberof ItemReview
22108
+ */
22109
+ recommend_store_to_friend?: number;
22110
+ /**
22111
+ *
22112
+ * @type {boolean}
22113
+ * @memberof ItemReview
22114
+ */
22115
+ recommend_to_friend?: boolean;
22116
+ /**
22117
+ *
22118
+ * @type {string}
22119
+ * @memberof ItemReview
22120
+ */
22121
+ review?: string;
22122
+ /**
22123
+ *
22124
+ * @type {number}
22125
+ * @memberof ItemReview
22126
+ */
22127
+ review_oid?: number;
22128
+ /**
22129
+ *
22130
+ * @type {string}
22131
+ * @memberof ItemReview
22132
+ */
22133
+ reviewed_nickname?: string;
22134
+ /**
22135
+ *
22136
+ * @type {string}
22137
+ * @memberof ItemReview
22138
+ */
22139
+ reviewer_email?: string;
22140
+ /**
22141
+ *
22142
+ * @type {string}
22143
+ * @memberof ItemReview
22144
+ */
22145
+ reviewer_location?: string;
22146
+ /**
22147
+ *
22148
+ * @type {string}
22149
+ * @memberof ItemReview
22150
+ */
22151
+ status?: string;
22152
+ /**
22153
+ *
22154
+ * @type {string}
22155
+ * @memberof ItemReview
22156
+ */
22157
+ store_feedback?: string;
22158
+ /**
22159
+ * Date/time of review submission
22160
+ * @type {string}
22161
+ * @memberof ItemReview
22162
+ */
22163
+ submitted_dts?: string;
22164
+ /**
22165
+ *
22166
+ * @type {string}
22167
+ * @memberof ItemReview
22168
+ */
22169
+ title?: string;
22170
+ }
21861
22171
  /**
21862
22172
  *
21863
22173
  * @export
@@ -21876,6 +22186,12 @@ export interface ItemReviews {
21876
22186
  * @memberof ItemReviews
21877
22187
  */
21878
22188
  has_review?: boolean;
22189
+ /**
22190
+ *
22191
+ * @type {Array<ItemReview>}
22192
+ * @memberof ItemReviews
22193
+ */
22194
+ individual_reviews?: Array<ItemReview>;
21879
22195
  /**
21880
22196
  * Number of approved reviews
21881
22197
  * @type {number}
@@ -24519,6 +24835,18 @@ export interface OrderBilling {
24519
24835
  * @memberof OrderBilling
24520
24836
  */
24521
24837
  cc_emails?: Array<string>;
24838
+ /**
24839
+ * Cell phone
24840
+ * @type {string}
24841
+ * @memberof OrderBilling
24842
+ */
24843
+ cell_phone?: string;
24844
+ /**
24845
+ * Cell phone (E164 format)
24846
+ * @type {string}
24847
+ * @memberof OrderBilling
24848
+ */
24849
+ cell_phone_e164?: string;
24522
24850
  /**
24523
24851
  * City
24524
24852
  * @type {string}
@@ -26022,6 +26350,12 @@ export interface OrderMarketing {
26022
26350
  * @memberof OrderMarketing
26023
26351
  */
26024
26352
  advertising_source?: string;
26353
+ /**
26354
+ * True if the customer has opted into SMS marketing
26355
+ * @type {boolean}
26356
+ * @memberof OrderMarketing
26357
+ */
26358
+ cell_phone_opt_in?: boolean;
26025
26359
  /**
26026
26360
  * True if the customer has opted into mailing list subscription
26027
26361
  * @type {boolean}
@@ -39983,11 +40317,12 @@ export declare const OrderApiFetchParamCreator: (configuration?: Configuration)
39983
40317
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
39984
40318
  * @param {boolean} [manual_refund] Consider a manual refund done externally
39985
40319
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
40320
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
39986
40321
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
39987
40322
  * @param {*} [options] Override http request option.
39988
40323
  * @throws {RequiredError}
39989
40324
  */
39990
- refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): FetchArgs;
40325
+ refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): FetchArgs;
39991
40326
  /**
39992
40327
  * Create a replacement order based upon a previous order
39993
40328
  * @summary Replacement order
@@ -40226,11 +40561,12 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
40226
40561
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
40227
40562
  * @param {boolean} [manual_refund] Consider a manual refund done externally
40228
40563
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
40564
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
40229
40565
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
40230
40566
  * @param {*} [options] Override http request option.
40231
40567
  * @throws {RequiredError}
40232
40568
  */
40233
- refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderResponse>;
40569
+ refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderResponse>;
40234
40570
  /**
40235
40571
  * Create a replacement order based upon a previous order
40236
40572
  * @summary Replacement order
@@ -40469,11 +40805,12 @@ export declare const OrderApiFactory: (configuration?: Configuration, fetch?: Fe
40469
40805
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
40470
40806
  * @param {boolean} [manual_refund] Consider a manual refund done externally
40471
40807
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
40808
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
40472
40809
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
40473
40810
  * @param {*} [options] Override http request option.
40474
40811
  * @throws {RequiredError}
40475
40812
  */
40476
- refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
40813
+ refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
40477
40814
  /**
40478
40815
  * Create a replacement order based upon a previous order
40479
40816
  * @summary Replacement order
@@ -40730,12 +41067,13 @@ export interface OrderApiInterface {
40730
41067
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
40731
41068
  * @param {boolean} [manual_refund] Consider a manual refund done externally
40732
41069
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
41070
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
40733
41071
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
40734
41072
  * @param {*} [options] Override http request option.
40735
41073
  * @throws {RequiredError}
40736
41074
  * @memberof OrderApiInterface
40737
41075
  */
40738
- refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
41076
+ refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
40739
41077
  /**
40740
41078
  * Create a replacement order based upon a previous order
40741
41079
  * @summary Replacement order
@@ -40998,12 +41336,13 @@ export declare class OrderApi extends BaseAPI implements OrderApiInterface {
40998
41336
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
40999
41337
  * @param {boolean} [manual_refund] Consider a manual refund done externally
41000
41338
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
41339
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
41001
41340
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
41002
41341
  * @param {*} [options] Override http request option.
41003
41342
  * @throws {RequiredError}
41004
41343
  * @memberof OrderApi
41005
41344
  */
41006
- refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
41345
+ refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
41007
41346
  /**
41008
41347
  * Create a replacement order based upon a previous order
41009
41348
  * @summary Replacement order
package/dist/api.js CHANGED
@@ -28,9 +28,9 @@ var __extends = (this && this.__extends) || (function () {
28
28
  };
29
29
  })();
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.Webhook = exports.TempMultimedia = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = exports.ItemShippingDestinationRestriction = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.ConversationWebsocketMessage = exports.ConversationSummary = exports.ConversationMessageTransportStatus = exports.ConversationMessage = exports.ConversationEventRRWeb = exports.Conversation = exports.CheckoutHandoffRequest = exports.ChannelPartnerOrderItem = exports.ChannelPartnerOrder = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
32
- exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConversationApi = exports.ConversationApiFactory = exports.ConversationApiFp = exports.ConversationApiFetchParamCreator = exports.CheckoutApi = exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChargebackApi = exports.ChargebackApiFactory = exports.ChargebackApiFp = exports.ChargebackApiFetchParamCreator = exports.ChannelPartnerApi = exports.ChannelPartnerApiFactory = exports.ChannelPartnerApiFp = exports.ChannelPartnerApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.Weight = void 0;
33
- exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = void 0;
31
+ exports.TempMultimedia = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = exports.ItemShippingDestinationRestriction = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.ConversationWebsocketMessage = exports.ConversationWebchatQueueStatusAgent = exports.ConversationSummary = exports.ConversationMessageTransportStatus = exports.ConversationMessage = exports.ConversationEventRRWeb = exports.Conversation = exports.CheckoutHandoffRequest = exports.ChannelPartnerOrderItem = exports.ChannelPartnerOrder = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
32
+ exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConversationApi = exports.ConversationApiFactory = exports.ConversationApiFp = exports.ConversationApiFetchParamCreator = exports.CheckoutApi = exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChargebackApi = exports.ChargebackApiFactory = exports.ChargebackApiFp = exports.ChargebackApiFetchParamCreator = exports.ChannelPartnerApi = exports.ChannelPartnerApiFactory = exports.ChannelPartnerApiFp = exports.ChannelPartnerApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.Weight = exports.Webhook = void 0;
33
+ exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = void 0;
34
34
  var url = require("url");
35
35
  var portableFetch = require("portable-fetch");
36
36
  var BASE_PATH = "https://secure.ultracart.com/rest/v2".replace(/\/+$/, "");
@@ -448,6 +448,23 @@ var ConversationSummary;
448
448
  MediumEnum[MediumEnum["Websocket"] = 'websocket'] = "Websocket";
449
449
  })(MediumEnum = ConversationSummary.MediumEnum || (ConversationSummary.MediumEnum = {}));
450
450
  })(ConversationSummary = exports.ConversationSummary || (exports.ConversationSummary = {}));
451
+ /**
452
+ * @export
453
+ * @namespace ConversationWebchatQueueStatusAgent
454
+ */
455
+ var ConversationWebchatQueueStatusAgent;
456
+ (function (ConversationWebchatQueueStatusAgent) {
457
+ /**
458
+ * @export
459
+ * @enum {string}
460
+ */
461
+ var AgentStatusEnum;
462
+ (function (AgentStatusEnum) {
463
+ AgentStatusEnum[AgentStatusEnum["Available"] = 'available'] = "Available";
464
+ AgentStatusEnum[AgentStatusEnum["Busy"] = 'busy'] = "Busy";
465
+ AgentStatusEnum[AgentStatusEnum["Unavailable"] = 'unavailable'] = "Unavailable";
466
+ })(AgentStatusEnum = ConversationWebchatQueueStatusAgent.AgentStatusEnum || (ConversationWebchatQueueStatusAgent.AgentStatusEnum = {}));
467
+ })(ConversationWebchatQueueStatusAgent = exports.ConversationWebchatQueueStatusAgent || (exports.ConversationWebchatQueueStatusAgent = {}));
451
468
  /**
452
469
  * @export
453
470
  * @namespace ConversationWebsocketMessage
@@ -14523,11 +14540,12 @@ var OrderApiFetchParamCreator = function (configuration) {
14523
14540
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
14524
14541
  * @param {boolean} [manual_refund] Consider a manual refund done externally
14525
14542
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
14543
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
14526
14544
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
14527
14545
  * @param {*} [options] Override http request option.
14528
14546
  * @throws {RequiredError}
14529
14547
  */
14530
- refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options) {
14548
+ refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options) {
14531
14549
  if (options === void 0) { options = {}; }
14532
14550
  // verify required parameter 'order' is not null or undefined
14533
14551
  if (order === null || order === undefined) {
@@ -14576,6 +14594,9 @@ var OrderApiFetchParamCreator = function (configuration) {
14576
14594
  if (reverse_affiliate_transactions !== undefined) {
14577
14595
  localVarQueryParameter['reverse_affiliate_transactions'] = reverse_affiliate_transactions;
14578
14596
  }
14597
+ if (issue_store_credit !== undefined) {
14598
+ localVarQueryParameter['issue_store_credit'] = issue_store_credit;
14599
+ }
14579
14600
  if (_expand !== undefined) {
14580
14601
  localVarQueryParameter['_expand'] = _expand;
14581
14602
  }
@@ -15279,12 +15300,13 @@ var OrderApiFp = function (configuration) {
15279
15300
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
15280
15301
  * @param {boolean} [manual_refund] Consider a manual refund done externally
15281
15302
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
15303
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
15282
15304
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
15283
15305
  * @param {*} [options] Override http request option.
15284
15306
  * @throws {RequiredError}
15285
15307
  */
15286
- refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options) {
15287
- var localVarFetchArgs = (0, exports.OrderApiFetchParamCreator)(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options);
15308
+ refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options) {
15309
+ var localVarFetchArgs = (0, exports.OrderApiFetchParamCreator)(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options);
15288
15310
  return function (fetch, basePath) {
15289
15311
  if (fetch === void 0) { fetch = portableFetch; }
15290
15312
  if (basePath === void 0) { basePath = BASE_PATH; }
@@ -15643,12 +15665,13 @@ var OrderApiFactory = function (configuration, fetch, basePath) {
15643
15665
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
15644
15666
  * @param {boolean} [manual_refund] Consider a manual refund done externally
15645
15667
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
15668
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
15646
15669
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
15647
15670
  * @param {*} [options] Override http request option.
15648
15671
  * @throws {RequiredError}
15649
15672
  */
15650
- refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options) {
15651
- return (0, exports.OrderApiFp)(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options)(fetch, basePath);
15673
+ refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options) {
15674
+ return (0, exports.OrderApiFp)(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options)(fetch, basePath);
15652
15675
  },
15653
15676
  /**
15654
15677
  * Create a replacement order based upon a previous order
@@ -15957,13 +15980,14 @@ var OrderApi = /** @class */ (function (_super) {
15957
15980
  * @param {boolean} [auto_order_cancel] Cancel associated auto orders
15958
15981
  * @param {boolean} [manual_refund] Consider a manual refund done externally
15959
15982
  * @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
15983
+ * @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
15960
15984
  * @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
15961
15985
  * @param {*} [options] Override http request option.
15962
15986
  * @throws {RequiredError}
15963
15987
  * @memberof OrderApi
15964
15988
  */
15965
- OrderApi.prototype.refundOrder = function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options) {
15966
- return (0, exports.OrderApiFp)(this.configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options)(this.fetch, this.basePath);
15989
+ OrderApi.prototype.refundOrder = function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options) {
15990
+ return (0, exports.OrderApiFp)(this.configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options)(this.fetch, this.basePath);
15967
15991
  };
15968
15992
  /**
15969
15993
  * Create a replacement order based upon a previous order
@@ -22258,7 +22282,7 @@ var StorefrontApiFetchParamCreator = function (configuration) {
22258
22282
  */
22259
22283
  getStoreFronts: function (options) {
22260
22284
  if (options === void 0) { options = {}; }
22261
- var localVarPath = "/storefront/";
22285
+ var localVarPath = "/storefront";
22262
22286
  var localVarUrlObj = url.parse(localVarPath, true);
22263
22287
  var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
22264
22288
  var localVarHeaderParameter = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.38",
3
+ "version": "3.10.41",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [