ultracart_rest_api_v2_typescript 3.10.155 → 3.10.156

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.155
1
+ ## ultracart_rest_api_v2_typescript@3.10.156
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.155 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.156 --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.156 | 08/31/2023 | new coupon - free item and free shipping with purchase |
57
58
  | 3.10.155 | 08/16/2023 | added validate_original_order query param to auto order update method |
58
59
  | 3.10.154 | 08/14/2023 | esp - add require_order_within_last to the settings object |
59
60
  | 3.10.153 | 08/14/2023 | esp - expose rate limiter values in settings object |
package/api.ts CHANGED
@@ -9625,6 +9625,12 @@ export interface Coupon {
9625
9625
  * @memberof Coupon
9626
9626
  */
9627
9627
  free_item_with_item_purchase?: CouponFreeItemWithItemPurchase;
9628
+ /**
9629
+ *
9630
+ * @type {CouponFreeItemWithItemPurchaseAndFreeShipping}
9631
+ * @memberof Coupon
9632
+ */
9633
+ free_item_with_item_purchase_and_free_shipping?: CouponFreeItemWithItemPurchaseAndFreeShipping;
9628
9634
  /**
9629
9635
  *
9630
9636
  * @type {CouponFreeItemWithSubtotal}
@@ -10651,6 +10657,38 @@ export interface CouponFreeItemWithItemPurchase {
10651
10657
  required_purchase_items?: Array<string>;
10652
10658
  }
10653
10659
 
10660
+ /**
10661
+ *
10662
+ * @export
10663
+ * @interface CouponFreeItemWithItemPurchaseAndFreeShipping
10664
+ */
10665
+ export interface CouponFreeItemWithItemPurchaseAndFreeShipping {
10666
+ /**
10667
+ * A list of free items which will receive a discount if one of the required purchase items is purchased.
10668
+ * @type {Array<string>}
10669
+ * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
10670
+ */
10671
+ items?: Array<string>;
10672
+ /**
10673
+ * The (optional) maximum quantity of discounted items. Free shipping will apply to all units of the free item ids though.
10674
+ * @type {number}
10675
+ * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
10676
+ */
10677
+ limit?: number;
10678
+ /**
10679
+ * If true then the free item is matched 1:1 with the free item in the list.
10680
+ * @type {boolean}
10681
+ * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
10682
+ */
10683
+ match_required_purchase_item_to_free_item?: boolean;
10684
+ /**
10685
+ * Required items (at least one from the list) that must be purchased for coupon to be valid
10686
+ * @type {Array<string>}
10687
+ * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
10688
+ */
10689
+ required_purchase_items?: Array<string>;
10690
+ }
10691
+
10654
10692
  /**
10655
10693
  *
10656
10694
  * @export
@@ -12109,6 +12147,12 @@ export interface Customer {
12109
12147
  * @memberof Customer
12110
12148
  */
12111
12149
  privacy?: CustomerPrivacy;
12150
+ /**
12151
+ * Properties for this customer
12152
+ * @type {Array<CustomerProperty>}
12153
+ * @memberof Customer
12154
+ */
12155
+ properties?: Array<CustomerProperty>;
12112
12156
  /**
12113
12157
  * QuickBooks class to import this customer as
12114
12158
  * @type {string}
@@ -13081,6 +13125,32 @@ export interface CustomerPrivacy {
13081
13125
  statistics?: boolean;
13082
13126
  }
13083
13127
 
13128
+ /**
13129
+ *
13130
+ * @export
13131
+ * @interface CustomerProperty
13132
+ */
13133
+ export interface CustomerProperty {
13134
+ /**
13135
+ * The date/time that the property expires and is deleted
13136
+ * @type {string}
13137
+ * @memberof CustomerProperty
13138
+ */
13139
+ expiration_dts?: string;
13140
+ /**
13141
+ * Name
13142
+ * @type {string}
13143
+ * @memberof CustomerProperty
13144
+ */
13145
+ name?: string;
13146
+ /**
13147
+ * Value
13148
+ * @type {string}
13149
+ * @memberof CustomerProperty
13150
+ */
13151
+ value?: string;
13152
+ }
13153
+
13084
13154
  /**
13085
13155
  *
13086
13156
  * @export
package/dist/api.d.ts CHANGED
@@ -9395,6 +9395,12 @@ export interface Coupon {
9395
9395
  * @memberof Coupon
9396
9396
  */
9397
9397
  free_item_with_item_purchase?: CouponFreeItemWithItemPurchase;
9398
+ /**
9399
+ *
9400
+ * @type {CouponFreeItemWithItemPurchaseAndFreeShipping}
9401
+ * @memberof Coupon
9402
+ */
9403
+ free_item_with_item_purchase_and_free_shipping?: CouponFreeItemWithItemPurchaseAndFreeShipping;
9398
9404
  /**
9399
9405
  *
9400
9406
  * @type {CouponFreeItemWithSubtotal}
@@ -10396,6 +10402,37 @@ export interface CouponFreeItemWithItemPurchase {
10396
10402
  */
10397
10403
  required_purchase_items?: Array<string>;
10398
10404
  }
10405
+ /**
10406
+ *
10407
+ * @export
10408
+ * @interface CouponFreeItemWithItemPurchaseAndFreeShipping
10409
+ */
10410
+ export interface CouponFreeItemWithItemPurchaseAndFreeShipping {
10411
+ /**
10412
+ * A list of free items which will receive a discount if one of the required purchase items is purchased.
10413
+ * @type {Array<string>}
10414
+ * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
10415
+ */
10416
+ items?: Array<string>;
10417
+ /**
10418
+ * The (optional) maximum quantity of discounted items. Free shipping will apply to all units of the free item ids though.
10419
+ * @type {number}
10420
+ * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
10421
+ */
10422
+ limit?: number;
10423
+ /**
10424
+ * If true then the free item is matched 1:1 with the free item in the list.
10425
+ * @type {boolean}
10426
+ * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
10427
+ */
10428
+ match_required_purchase_item_to_free_item?: boolean;
10429
+ /**
10430
+ * Required items (at least one from the list) that must be purchased for coupon to be valid
10431
+ * @type {Array<string>}
10432
+ * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
10433
+ */
10434
+ required_purchase_items?: Array<string>;
10435
+ }
10399
10436
  /**
10400
10437
  *
10401
10438
  * @export
@@ -11809,6 +11846,12 @@ export interface Customer {
11809
11846
  * @memberof Customer
11810
11847
  */
11811
11848
  privacy?: CustomerPrivacy;
11849
+ /**
11850
+ * Properties for this customer
11851
+ * @type {Array<CustomerProperty>}
11852
+ * @memberof Customer
11853
+ */
11854
+ properties?: Array<CustomerProperty>;
11812
11855
  /**
11813
11856
  * QuickBooks class to import this customer as
11814
11857
  * @type {string}
@@ -12763,6 +12806,31 @@ export interface CustomerPrivacy {
12763
12806
  */
12764
12807
  statistics?: boolean;
12765
12808
  }
12809
+ /**
12810
+ *
12811
+ * @export
12812
+ * @interface CustomerProperty
12813
+ */
12814
+ export interface CustomerProperty {
12815
+ /**
12816
+ * The date/time that the property expires and is deleted
12817
+ * @type {string}
12818
+ * @memberof CustomerProperty
12819
+ */
12820
+ expiration_dts?: string;
12821
+ /**
12822
+ * Name
12823
+ * @type {string}
12824
+ * @memberof CustomerProperty
12825
+ */
12826
+ name?: string;
12827
+ /**
12828
+ * Value
12829
+ * @type {string}
12830
+ * @memberof CustomerProperty
12831
+ */
12832
+ value?: string;
12833
+ }
12766
12834
  /**
12767
12835
  *
12768
12836
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.155",
3
+ "version": "3.10.156",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [