ultracart_rest_api_v2_typescript 4.1.78 → 4.1.79
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,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.79
|
|
3
3
|
|
|
4
4
|
Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
|
|
5
5
|
|
|
6
6
|
Installation
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
npm install ultracart_rest_api_v2_typescript@4.1.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.79 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,7 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.79 | 04/21/2026 | item - one line per unit flag support |
|
|
88
89
|
| 4.1.78 | 04/20/2026 | conversation pbx - objects have context_merchant_id fields to linked account configs |
|
|
89
90
|
| 4.1.77 | 04/17/2026 | conversation - embed oauth methods |
|
|
90
91
|
| 4.1.76 | 04/17/2026 | conversation - embed oauth methods |
|
|
@@ -203,6 +203,12 @@ export interface ItemShipping {
|
|
|
203
203
|
* @memberof ItemShipping
|
|
204
204
|
*/
|
|
205
205
|
no_shipping_discount?: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Split cart line items with quantity greater than one into individual lines of quantity one on the order
|
|
208
|
+
* @type {boolean}
|
|
209
|
+
* @memberof ItemShipping
|
|
210
|
+
*/
|
|
211
|
+
one_line_per_unit?: boolean;
|
|
206
212
|
/**
|
|
207
213
|
* Package requirements
|
|
208
214
|
* @type {Array<ItemShippingPackageRequirement>}
|
|
@@ -70,6 +70,7 @@ function ItemShippingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
70
|
'max_days_time_in_transit': !(0, runtime_1.exists)(json, 'max_days_time_in_transit') ? undefined : json['max_days_time_in_transit'],
|
|
71
71
|
'methods': !(0, runtime_1.exists)(json, 'methods') ? undefined : (json['methods'].map(ItemShippingMethod_1.ItemShippingMethodFromJSON)),
|
|
72
72
|
'no_shipping_discount': !(0, runtime_1.exists)(json, 'no_shipping_discount') ? undefined : json['no_shipping_discount'],
|
|
73
|
+
'one_line_per_unit': !(0, runtime_1.exists)(json, 'one_line_per_unit') ? undefined : json['one_line_per_unit'],
|
|
73
74
|
'package_requirements': !(0, runtime_1.exists)(json, 'package_requirements') ? undefined : (json['package_requirements'].map(ItemShippingPackageRequirement_1.ItemShippingPackageRequirementFromJSON)),
|
|
74
75
|
'perishable_class_name': !(0, runtime_1.exists)(json, 'perishable_class_name') ? undefined : json['perishable_class_name'],
|
|
75
76
|
'perishable_class_oid': !(0, runtime_1.exists)(json, 'perishable_class_oid') ? undefined : json['perishable_class_oid'],
|
|
@@ -132,6 +133,7 @@ function ItemShippingToJSON(value) {
|
|
|
132
133
|
'max_days_time_in_transit': value.max_days_time_in_transit,
|
|
133
134
|
'methods': value.methods === undefined ? undefined : (value.methods.map(ItemShippingMethod_1.ItemShippingMethodToJSON)),
|
|
134
135
|
'no_shipping_discount': value.no_shipping_discount,
|
|
136
|
+
'one_line_per_unit': value.one_line_per_unit,
|
|
135
137
|
'package_requirements': value.package_requirements === undefined ? undefined : (value.package_requirements.map(ItemShippingPackageRequirement_1.ItemShippingPackageRequirementToJSON)),
|
|
136
138
|
'perishable_class_name': value.perishable_class_name,
|
|
137
139
|
'perishable_class_oid': value.perishable_class_oid,
|
package/package.json
CHANGED
|
@@ -248,6 +248,12 @@ export interface ItemShipping {
|
|
|
248
248
|
* @memberof ItemShipping
|
|
249
249
|
*/
|
|
250
250
|
no_shipping_discount?: boolean;
|
|
251
|
+
/**
|
|
252
|
+
* Split cart line items with quantity greater than one into individual lines of quantity one on the order
|
|
253
|
+
* @type {boolean}
|
|
254
|
+
* @memberof ItemShipping
|
|
255
|
+
*/
|
|
256
|
+
one_line_per_unit?: boolean;
|
|
251
257
|
/**
|
|
252
258
|
* Package requirements
|
|
253
259
|
* @type {Array<ItemShippingPackageRequirement>}
|
|
@@ -427,6 +433,7 @@ export function ItemShippingFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
427
433
|
'max_days_time_in_transit': !exists(json, 'max_days_time_in_transit') ? undefined : json['max_days_time_in_transit'],
|
|
428
434
|
'methods': !exists(json, 'methods') ? undefined : ((json['methods'] as Array<any>).map(ItemShippingMethodFromJSON)),
|
|
429
435
|
'no_shipping_discount': !exists(json, 'no_shipping_discount') ? undefined : json['no_shipping_discount'],
|
|
436
|
+
'one_line_per_unit': !exists(json, 'one_line_per_unit') ? undefined : json['one_line_per_unit'],
|
|
430
437
|
'package_requirements': !exists(json, 'package_requirements') ? undefined : ((json['package_requirements'] as Array<any>).map(ItemShippingPackageRequirementFromJSON)),
|
|
431
438
|
'perishable_class_name': !exists(json, 'perishable_class_name') ? undefined : json['perishable_class_name'],
|
|
432
439
|
'perishable_class_oid': !exists(json, 'perishable_class_oid') ? undefined : json['perishable_class_oid'],
|
|
@@ -490,6 +497,7 @@ export function ItemShippingToJSON(value?: ItemShipping | null): any {
|
|
|
490
497
|
'max_days_time_in_transit': value.max_days_time_in_transit,
|
|
491
498
|
'methods': value.methods === undefined ? undefined : ((value.methods as Array<any>).map(ItemShippingMethodToJSON)),
|
|
492
499
|
'no_shipping_discount': value.no_shipping_discount,
|
|
500
|
+
'one_line_per_unit': value.one_line_per_unit,
|
|
493
501
|
'package_requirements': value.package_requirements === undefined ? undefined : ((value.package_requirements as Array<any>).map(ItemShippingPackageRequirementToJSON)),
|
|
494
502
|
'perishable_class_name': value.perishable_class_name,
|
|
495
503
|
'perishable_class_oid': value.perishable_class_oid,
|