ultracart_rest_api_v2_typescript 4.0.234 → 4.0.236
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 +4 -2
- package/dist/models/AutoOrderItem.d.ts +1 -0
- package/dist/models/AutoOrderItem.js +1 -0
- package/dist/models/AutoOrderItemSimpleSchedule.d.ts +1 -0
- package/dist/models/AutoOrderItemSimpleSchedule.js +1 -0
- package/dist/models/ChannelPartnerOrderItem.d.ts +1 -0
- package/dist/models/ChannelPartnerOrderItem.js +1 -0
- package/dist/models/CouponPercentOffItemWithItemsQuantityPurchase.d.ts +12 -0
- package/dist/models/CouponPercentOffItemWithItemsQuantityPurchase.js +4 -0
- package/dist/models/WebhookLog.d.ts +6 -0
- package/dist/models/WebhookLog.js +2 -0
- package/package.json +1 -1
- package/src/models/AutoOrderItem.ts +1 -0
- package/src/models/AutoOrderItemSimpleSchedule.ts +1 -0
- package/src/models/ChannelPartnerOrderItem.ts +1 -0
- package/src/models/CouponPercentOffItemWithItemsQuantityPurchase.ts +16 -0
- package/src/models/WebhookLog.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.236
|
|
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.236 --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
|
+
| 4.0.236 | 11/07/2024 | Coupon - PercentOffWithItemsQuantityPurchase - added support for tags |
|
|
58
|
+
| 4.0.235 | 11/04/2024 | item - new constant for auto order schedule of every 5 months |
|
|
57
59
|
| 4.0.234 | 10/24/2024 | storefront page attribute edit method |
|
|
58
60
|
| 4.0.233 | 09/18/2024 | order payment constant for PayPal Fastlane |
|
|
59
61
|
| 4.0.232 | 08/29/2024 | add hold_for_transmission to item shipping object |
|
|
@@ -202,6 +202,7 @@ export declare const AutoOrderItemFrequencyEnum: {
|
|
|
202
202
|
readonly Every2Months: "Every 2 Months";
|
|
203
203
|
readonly Every3Months: "Every 3 Months";
|
|
204
204
|
readonly Every4Months: "Every 4 Months";
|
|
205
|
+
readonly Every5Months: "Every 5 Months";
|
|
205
206
|
readonly Every6Months: "Every 6 Months";
|
|
206
207
|
readonly Yearly: "Yearly";
|
|
207
208
|
readonly Every4Weeks: "Every 4 Weeks";
|
|
@@ -33,6 +33,7 @@ exports.AutoOrderItemFrequencyEnum = {
|
|
|
33
33
|
Every2Months: 'Every 2 Months',
|
|
34
34
|
Every3Months: 'Every 3 Months',
|
|
35
35
|
Every4Months: 'Every 4 Months',
|
|
36
|
+
Every5Months: 'Every 5 Months',
|
|
36
37
|
Every6Months: 'Every 6 Months',
|
|
37
38
|
Yearly: 'Yearly',
|
|
38
39
|
Every4Weeks: 'Every 4 Weeks',
|
|
@@ -49,6 +49,7 @@ export declare const AutoOrderItemSimpleScheduleFrequencyEnum: {
|
|
|
49
49
|
readonly Every2Months: "Every 2 Months";
|
|
50
50
|
readonly Every3Months: "Every 3 Months";
|
|
51
51
|
readonly Every4Months: "Every 4 Months";
|
|
52
|
+
readonly Every5Months: "Every 5 Months";
|
|
52
53
|
readonly Every6Months: "Every 6 Months";
|
|
53
54
|
readonly Yearly: "Yearly";
|
|
54
55
|
readonly Every4Weeks: "Every 4 Weeks";
|
|
@@ -30,6 +30,7 @@ exports.AutoOrderItemSimpleScheduleFrequencyEnum = {
|
|
|
30
30
|
Every2Months: 'Every 2 Months',
|
|
31
31
|
Every3Months: 'Every 3 Months',
|
|
32
32
|
Every4Months: 'Every 4 Months',
|
|
33
|
+
Every5Months: 'Every 5 Months',
|
|
33
34
|
Every6Months: 'Every 6 Months',
|
|
34
35
|
Yearly: 'Yearly',
|
|
35
36
|
Every4Weeks: 'Every 4 Weeks',
|
|
@@ -73,6 +73,7 @@ export declare const ChannelPartnerOrderItemAutoOrderScheduleEnum: {
|
|
|
73
73
|
readonly Every2Months: "Every 2 Months";
|
|
74
74
|
readonly Every3Months: "Every 3 Months";
|
|
75
75
|
readonly Every4Months: "Every 4 Months";
|
|
76
|
+
readonly Every5Months: "Every 5 Months";
|
|
76
77
|
readonly Every6Months: "Every 6 Months";
|
|
77
78
|
readonly Yearly: "Yearly";
|
|
78
79
|
readonly Every4Weeks: "Every 4 Weeks";
|
|
@@ -30,6 +30,7 @@ exports.ChannelPartnerOrderItemAutoOrderScheduleEnum = {
|
|
|
30
30
|
Every2Months: 'Every 2 Months',
|
|
31
31
|
Every3Months: 'Every 3 Months',
|
|
32
32
|
Every4Months: 'Every 4 Months',
|
|
33
|
+
Every5Months: 'Every 5 Months',
|
|
33
34
|
Every6Months: 'Every 6 Months',
|
|
34
35
|
Yearly: 'Yearly',
|
|
35
36
|
Every4Weeks: 'Every 4 Weeks',
|
|
@@ -21,6 +21,12 @@ export interface CouponPercentOffItemWithItemsQuantityPurchase {
|
|
|
21
21
|
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
22
22
|
*/
|
|
23
23
|
discount_percent?: number;
|
|
24
|
+
/**
|
|
25
|
+
* An optional list of item tags which will receive a discount if one of the required purchased items is purchased.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
28
|
+
*/
|
|
29
|
+
item_tags?: Array<string>;
|
|
24
30
|
/**
|
|
25
31
|
* A list of items which will receive a discount if one of the required purchase items is purchased.
|
|
26
32
|
* @type {Array<string>}
|
|
@@ -39,6 +45,12 @@ export interface CouponPercentOffItemWithItemsQuantityPurchase {
|
|
|
39
45
|
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
40
46
|
*/
|
|
41
47
|
required_purchase_items?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Required item tags (at least one from the list) that must be purchase for coupon to be valid.
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
52
|
+
*/
|
|
53
|
+
required_purchase_items_tags?: Array<string>;
|
|
42
54
|
/**
|
|
43
55
|
* The quantity of items that must be purchased for the discount to be applied.
|
|
44
56
|
* @type {number}
|
|
@@ -25,9 +25,11 @@ function CouponPercentOffItemWithItemsQuantityPurchaseFromJSONTyped(json, ignore
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'discount_percent': !(0, runtime_1.exists)(json, 'discount_percent') ? undefined : json['discount_percent'],
|
|
28
|
+
'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
|
|
28
29
|
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
|
|
29
30
|
'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
|
|
30
31
|
'required_purchase_items': !(0, runtime_1.exists)(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
|
|
32
|
+
'required_purchase_items_tags': !(0, runtime_1.exists)(json, 'required_purchase_items_tags') ? undefined : json['required_purchase_items_tags'],
|
|
31
33
|
'required_purchase_quantity': !(0, runtime_1.exists)(json, 'required_purchase_quantity') ? undefined : json['required_purchase_quantity'],
|
|
32
34
|
};
|
|
33
35
|
}
|
|
@@ -41,9 +43,11 @@ function CouponPercentOffItemWithItemsQuantityPurchaseToJSON(value) {
|
|
|
41
43
|
}
|
|
42
44
|
return {
|
|
43
45
|
'discount_percent': value.discount_percent,
|
|
46
|
+
'item_tags': value.item_tags,
|
|
44
47
|
'items': value.items,
|
|
45
48
|
'limit': value.limit,
|
|
46
49
|
'required_purchase_items': value.required_purchase_items,
|
|
50
|
+
'required_purchase_items_tags': value.required_purchase_items_tags,
|
|
47
51
|
'required_purchase_quantity': value.required_purchase_quantity,
|
|
48
52
|
};
|
|
49
53
|
}
|
|
@@ -82,6 +82,12 @@ export interface WebhookLog {
|
|
|
82
82
|
* @memberof WebhookLog
|
|
83
83
|
*/
|
|
84
84
|
uri?: string;
|
|
85
|
+
/**
|
|
86
|
+
* webhook oid
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof WebhookLog
|
|
89
|
+
*/
|
|
90
|
+
webhook_oid?: number;
|
|
85
91
|
}
|
|
86
92
|
export declare function WebhookLogFromJSON(json: any): WebhookLog;
|
|
87
93
|
export declare function WebhookLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookLog;
|
|
@@ -36,6 +36,7 @@ function WebhookLogFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'status_code': !(0, runtime_1.exists)(json, 'status_code') ? undefined : json['status_code'],
|
|
37
37
|
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
38
38
|
'uri': !(0, runtime_1.exists)(json, 'uri') ? undefined : json['uri'],
|
|
39
|
+
'webhook_oid': !(0, runtime_1.exists)(json, 'webhook_oid') ? undefined : json['webhook_oid'],
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
exports.WebhookLogFromJSONTyped = WebhookLogFromJSONTyped;
|
|
@@ -58,6 +59,7 @@ function WebhookLogToJSON(value) {
|
|
|
58
59
|
'status_code': value.status_code,
|
|
59
60
|
'success': value.success,
|
|
60
61
|
'uri': value.uri,
|
|
62
|
+
'webhook_oid': value.webhook_oid,
|
|
61
63
|
};
|
|
62
64
|
}
|
|
63
65
|
exports.WebhookLogToJSON = WebhookLogToJSON;
|
package/package.json
CHANGED
|
@@ -224,6 +224,7 @@ export const AutoOrderItemFrequencyEnum = {
|
|
|
224
224
|
Every2Months: 'Every 2 Months',
|
|
225
225
|
Every3Months: 'Every 3 Months',
|
|
226
226
|
Every4Months: 'Every 4 Months',
|
|
227
|
+
Every5Months: 'Every 5 Months',
|
|
227
228
|
Every6Months: 'Every 6 Months',
|
|
228
229
|
Yearly: 'Yearly',
|
|
229
230
|
Every4Weeks: 'Every 4 Weeks',
|
|
@@ -55,6 +55,7 @@ export const AutoOrderItemSimpleScheduleFrequencyEnum = {
|
|
|
55
55
|
Every2Months: 'Every 2 Months',
|
|
56
56
|
Every3Months: 'Every 3 Months',
|
|
57
57
|
Every4Months: 'Every 4 Months',
|
|
58
|
+
Every5Months: 'Every 5 Months',
|
|
58
59
|
Every6Months: 'Every 6 Months',
|
|
59
60
|
Yearly: 'Yearly',
|
|
60
61
|
Every4Weeks: 'Every 4 Weeks',
|
|
@@ -85,6 +85,7 @@ export const ChannelPartnerOrderItemAutoOrderScheduleEnum = {
|
|
|
85
85
|
Every2Months: 'Every 2 Months',
|
|
86
86
|
Every3Months: 'Every 3 Months',
|
|
87
87
|
Every4Months: 'Every 4 Months',
|
|
88
|
+
Every5Months: 'Every 5 Months',
|
|
88
89
|
Every6Months: 'Every 6 Months',
|
|
89
90
|
Yearly: 'Yearly',
|
|
90
91
|
Every4Weeks: 'Every 4 Weeks',
|
|
@@ -25,6 +25,12 @@ export interface CouponPercentOffItemWithItemsQuantityPurchase {
|
|
|
25
25
|
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
26
26
|
*/
|
|
27
27
|
discount_percent?: number;
|
|
28
|
+
/**
|
|
29
|
+
* An optional list of item tags which will receive a discount if one of the required purchased items is purchased.
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
32
|
+
*/
|
|
33
|
+
item_tags?: Array<string>;
|
|
28
34
|
/**
|
|
29
35
|
* A list of items which will receive a discount if one of the required purchase items is purchased.
|
|
30
36
|
* @type {Array<string>}
|
|
@@ -43,6 +49,12 @@ export interface CouponPercentOffItemWithItemsQuantityPurchase {
|
|
|
43
49
|
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
44
50
|
*/
|
|
45
51
|
required_purchase_items?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Required item tags (at least one from the list) that must be purchase for coupon to be valid.
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
56
|
+
*/
|
|
57
|
+
required_purchase_items_tags?: Array<string>;
|
|
46
58
|
/**
|
|
47
59
|
* The quantity of items that must be purchased for the discount to be applied.
|
|
48
60
|
* @type {number}
|
|
@@ -62,9 +74,11 @@ export function CouponPercentOffItemWithItemsQuantityPurchaseFromJSONTyped(json:
|
|
|
62
74
|
return {
|
|
63
75
|
|
|
64
76
|
'discount_percent': !exists(json, 'discount_percent') ? undefined : json['discount_percent'],
|
|
77
|
+
'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
|
|
65
78
|
'items': !exists(json, 'items') ? undefined : json['items'],
|
|
66
79
|
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
67
80
|
'required_purchase_items': !exists(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
|
|
81
|
+
'required_purchase_items_tags': !exists(json, 'required_purchase_items_tags') ? undefined : json['required_purchase_items_tags'],
|
|
68
82
|
'required_purchase_quantity': !exists(json, 'required_purchase_quantity') ? undefined : json['required_purchase_quantity'],
|
|
69
83
|
};
|
|
70
84
|
}
|
|
@@ -79,9 +93,11 @@ export function CouponPercentOffItemWithItemsQuantityPurchaseToJSON(value?: Coup
|
|
|
79
93
|
return {
|
|
80
94
|
|
|
81
95
|
'discount_percent': value.discount_percent,
|
|
96
|
+
'item_tags': value.item_tags,
|
|
82
97
|
'items': value.items,
|
|
83
98
|
'limit': value.limit,
|
|
84
99
|
'required_purchase_items': value.required_purchase_items,
|
|
100
|
+
'required_purchase_items_tags': value.required_purchase_items_tags,
|
|
85
101
|
'required_purchase_quantity': value.required_purchase_quantity,
|
|
86
102
|
};
|
|
87
103
|
}
|
package/src/models/WebhookLog.ts
CHANGED
|
@@ -92,6 +92,12 @@ export interface WebhookLog {
|
|
|
92
92
|
* @memberof WebhookLog
|
|
93
93
|
*/
|
|
94
94
|
uri?: string;
|
|
95
|
+
/**
|
|
96
|
+
* webhook oid
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof WebhookLog
|
|
99
|
+
*/
|
|
100
|
+
webhook_oid?: number;
|
|
95
101
|
}
|
|
96
102
|
|
|
97
103
|
export function WebhookLogFromJSON(json: any): WebhookLog {
|
|
@@ -115,6 +121,7 @@ export function WebhookLogFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
115
121
|
'status_code': !exists(json, 'status_code') ? undefined : json['status_code'],
|
|
116
122
|
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
117
123
|
'uri': !exists(json, 'uri') ? undefined : json['uri'],
|
|
124
|
+
'webhook_oid': !exists(json, 'webhook_oid') ? undefined : json['webhook_oid'],
|
|
118
125
|
};
|
|
119
126
|
}
|
|
120
127
|
|
|
@@ -138,6 +145,7 @@ export function WebhookLogToJSON(value?: WebhookLog | null): any {
|
|
|
138
145
|
'status_code': value.status_code,
|
|
139
146
|
'success': value.success,
|
|
140
147
|
'uri': value.uri,
|
|
148
|
+
'webhook_oid': value.webhook_oid,
|
|
141
149
|
};
|
|
142
150
|
}
|
|
143
151
|
|