ultracart_rest_api_v2_typescript 4.0.119-RC → 4.0.120-RC
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 +3 -2
- package/dist/models/Coupon.d.ts +6 -0
- package/dist/models/Coupon.js +2 -0
- package/package.json +1 -1
- package/src/models/Coupon.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.120-RC
|
|
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@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.120-RC --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
|
+
| 4.0.120-RC | 01/19/2023 | added skip_on_rebill field to coupon object |
|
|
57
58
|
| 4.0.119-RC | 01/19/2023 | convo - getConversationPermissions added |
|
|
58
59
|
| 4.0.118-RC | 01/18/2023 | conversation get dept member list method added |
|
|
59
60
|
| 4.0.117-RC | 01/18/2023 | conversation dept members |
|
package/dist/models/Coupon.d.ts
CHANGED
|
@@ -399,6 +399,12 @@ export interface Coupon {
|
|
|
399
399
|
* @memberof Coupon
|
|
400
400
|
*/
|
|
401
401
|
restrict_by_storefronts?: Array<CouponRestriction>;
|
|
402
|
+
/**
|
|
403
|
+
* Skip this coupon when it is on a rebill of an auto order.
|
|
404
|
+
* @type {boolean}
|
|
405
|
+
* @memberof Coupon
|
|
406
|
+
*/
|
|
407
|
+
skip_on_rebill?: boolean;
|
|
402
408
|
/**
|
|
403
409
|
* Date/time when coupon is valid
|
|
404
410
|
* @type {string}
|
package/dist/models/Coupon.js
CHANGED
|
@@ -128,6 +128,7 @@ function CouponFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
128
128
|
'restrict_by_postal_codes': !(0, runtime_1.exists)(json, 'restrict_by_postal_codes') ? undefined : json['restrict_by_postal_codes'],
|
|
129
129
|
'restrict_by_screen_branding_theme_codes': !(0, runtime_1.exists)(json, 'restrict_by_screen_branding_theme_codes') ? undefined : (json['restrict_by_screen_branding_theme_codes'].map(CouponRestriction_1.CouponRestrictionFromJSON)),
|
|
130
130
|
'restrict_by_storefronts': !(0, runtime_1.exists)(json, 'restrict_by_storefronts') ? undefined : (json['restrict_by_storefronts'].map(CouponRestriction_1.CouponRestrictionFromJSON)),
|
|
131
|
+
'skip_on_rebill': !(0, runtime_1.exists)(json, 'skip_on_rebill') ? undefined : json['skip_on_rebill'],
|
|
131
132
|
'start_dts': !(0, runtime_1.exists)(json, 'start_dts') ? undefined : json['start_dts'],
|
|
132
133
|
'super_coupon': !(0, runtime_1.exists)(json, 'super_coupon') ? undefined : json['super_coupon'],
|
|
133
134
|
'tiered_amount_off_items': !(0, runtime_1.exists)(json, 'tiered_amount_off_items') ? undefined : (0, CouponTieredAmountOffItems_1.CouponTieredAmountOffItemsFromJSON)(json['tiered_amount_off_items']),
|
|
@@ -204,6 +205,7 @@ function CouponToJSON(value) {
|
|
|
204
205
|
'restrict_by_postal_codes': value.restrict_by_postal_codes,
|
|
205
206
|
'restrict_by_screen_branding_theme_codes': value.restrict_by_screen_branding_theme_codes === undefined ? undefined : (value.restrict_by_screen_branding_theme_codes.map(CouponRestriction_1.CouponRestrictionToJSON)),
|
|
206
207
|
'restrict_by_storefronts': value.restrict_by_storefronts === undefined ? undefined : (value.restrict_by_storefronts.map(CouponRestriction_1.CouponRestrictionToJSON)),
|
|
208
|
+
'skip_on_rebill': value.skip_on_rebill,
|
|
207
209
|
'start_dts': value.start_dts,
|
|
208
210
|
'super_coupon': value.super_coupon,
|
|
209
211
|
'tiered_amount_off_items': (0, CouponTieredAmountOffItems_1.CouponTieredAmountOffItemsToJSON)(value.tiered_amount_off_items),
|
package/package.json
CHANGED
package/src/models/Coupon.ts
CHANGED
|
@@ -644,6 +644,12 @@ export interface Coupon {
|
|
|
644
644
|
* @memberof Coupon
|
|
645
645
|
*/
|
|
646
646
|
restrict_by_storefronts?: Array<CouponRestriction>;
|
|
647
|
+
/**
|
|
648
|
+
* Skip this coupon when it is on a rebill of an auto order.
|
|
649
|
+
* @type {boolean}
|
|
650
|
+
* @memberof Coupon
|
|
651
|
+
*/
|
|
652
|
+
skip_on_rebill?: boolean;
|
|
647
653
|
/**
|
|
648
654
|
* Date/time when coupon is valid
|
|
649
655
|
* @type {string}
|
|
@@ -766,6 +772,7 @@ export function CouponFromJSONTyped(json: any, ignoreDiscriminator: boolean): Co
|
|
|
766
772
|
'restrict_by_postal_codes': !exists(json, 'restrict_by_postal_codes') ? undefined : json['restrict_by_postal_codes'],
|
|
767
773
|
'restrict_by_screen_branding_theme_codes': !exists(json, 'restrict_by_screen_branding_theme_codes') ? undefined : ((json['restrict_by_screen_branding_theme_codes'] as Array<any>).map(CouponRestrictionFromJSON)),
|
|
768
774
|
'restrict_by_storefronts': !exists(json, 'restrict_by_storefronts') ? undefined : ((json['restrict_by_storefronts'] as Array<any>).map(CouponRestrictionFromJSON)),
|
|
775
|
+
'skip_on_rebill': !exists(json, 'skip_on_rebill') ? undefined : json['skip_on_rebill'],
|
|
769
776
|
'start_dts': !exists(json, 'start_dts') ? undefined : json['start_dts'],
|
|
770
777
|
'super_coupon': !exists(json, 'super_coupon') ? undefined : json['super_coupon'],
|
|
771
778
|
'tiered_amount_off_items': !exists(json, 'tiered_amount_off_items') ? undefined : CouponTieredAmountOffItemsFromJSON(json['tiered_amount_off_items']),
|
|
@@ -843,6 +850,7 @@ export function CouponToJSON(value?: Coupon | null): any {
|
|
|
843
850
|
'restrict_by_postal_codes': value.restrict_by_postal_codes,
|
|
844
851
|
'restrict_by_screen_branding_theme_codes': value.restrict_by_screen_branding_theme_codes === undefined ? undefined : ((value.restrict_by_screen_branding_theme_codes as Array<any>).map(CouponRestrictionToJSON)),
|
|
845
852
|
'restrict_by_storefronts': value.restrict_by_storefronts === undefined ? undefined : ((value.restrict_by_storefronts as Array<any>).map(CouponRestrictionToJSON)),
|
|
853
|
+
'skip_on_rebill': value.skip_on_rebill,
|
|
846
854
|
'start_dts': value.start_dts,
|
|
847
855
|
'super_coupon': value.super_coupon,
|
|
848
856
|
'tiered_amount_off_items': CouponTieredAmountOffItemsToJSON(value.tiered_amount_off_items),
|