ultracart_rest_api_v2_typescript 4.1.78 → 4.1.80
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/CustomerBilling.d.ts +12 -0
- package/dist/models/CustomerBilling.js +4 -0
- package/dist/models/CustomerShipping.d.ts +12 -0
- package/dist/models/CustomerShipping.js +4 -0
- package/dist/models/ItemShipping.d.ts +6 -0
- package/dist/models/ItemShipping.js +2 -0
- package/package.json +1 -1
- package/src/models/CustomerBilling.ts +16 -0
- package/src/models/CustomerShipping.ts +16 -0
- package/src/models/ItemShipping.ts +8 -0
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.80
|
|
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.80 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.80 | 04/22/2026 | customer - e.164 read only fields on billing/shipping child objects |
|
|
89
|
+
| 4.1.79 | 04/21/2026 | item - one line per unit flag support |
|
|
88
90
|
| 4.1.78 | 04/20/2026 | conversation pbx - objects have context_merchant_id fields to linked account configs |
|
|
89
91
|
| 4.1.77 | 04/17/2026 | conversation - embed oauth methods |
|
|
90
92
|
| 4.1.76 | 04/17/2026 | conversation - embed oauth methods |
|
|
@@ -63,6 +63,12 @@ export interface CustomerBilling {
|
|
|
63
63
|
* @memberof CustomerBilling
|
|
64
64
|
*/
|
|
65
65
|
day_phone?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Day phone in E.164 format (derived — read only)
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CustomerBilling
|
|
70
|
+
*/
|
|
71
|
+
day_phone_e164?: string;
|
|
66
72
|
/**
|
|
67
73
|
* Default billing
|
|
68
74
|
* @type {boolean}
|
|
@@ -75,6 +81,12 @@ export interface CustomerBilling {
|
|
|
75
81
|
* @memberof CustomerBilling
|
|
76
82
|
*/
|
|
77
83
|
evening_phone?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Evening phone in E.164 format (derived — read only)
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CustomerBilling
|
|
88
|
+
*/
|
|
89
|
+
evening_phone_e164?: string;
|
|
78
90
|
/**
|
|
79
91
|
* First name
|
|
80
92
|
* @type {string}
|
|
@@ -40,8 +40,10 @@ function CustomerBillingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'customer_billing_oid': !(0, runtime_1.exists)(json, 'customer_billing_oid') ? undefined : json['customer_billing_oid'],
|
|
41
41
|
'customer_profile_oid': !(0, runtime_1.exists)(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
|
|
42
42
|
'day_phone': !(0, runtime_1.exists)(json, 'day_phone') ? undefined : json['day_phone'],
|
|
43
|
+
'day_phone_e164': !(0, runtime_1.exists)(json, 'day_phone_e164') ? undefined : json['day_phone_e164'],
|
|
43
44
|
'default_billing': !(0, runtime_1.exists)(json, 'default_billing') ? undefined : json['default_billing'],
|
|
44
45
|
'evening_phone': !(0, runtime_1.exists)(json, 'evening_phone') ? undefined : json['evening_phone'],
|
|
46
|
+
'evening_phone_e164': !(0, runtime_1.exists)(json, 'evening_phone_e164') ? undefined : json['evening_phone_e164'],
|
|
45
47
|
'first_name': !(0, runtime_1.exists)(json, 'first_name') ? undefined : json['first_name'],
|
|
46
48
|
'last_name': !(0, runtime_1.exists)(json, 'last_name') ? undefined : json['last_name'],
|
|
47
49
|
'last_used_dts': !(0, runtime_1.exists)(json, 'last_used_dts') ? undefined : json['last_used_dts'],
|
|
@@ -68,8 +70,10 @@ function CustomerBillingToJSON(value) {
|
|
|
68
70
|
'customer_billing_oid': value.customer_billing_oid,
|
|
69
71
|
'customer_profile_oid': value.customer_profile_oid,
|
|
70
72
|
'day_phone': value.day_phone,
|
|
73
|
+
'day_phone_e164': value.day_phone_e164,
|
|
71
74
|
'default_billing': value.default_billing,
|
|
72
75
|
'evening_phone': value.evening_phone,
|
|
76
|
+
'evening_phone_e164': value.evening_phone_e164,
|
|
73
77
|
'first_name': value.first_name,
|
|
74
78
|
'last_name': value.last_name,
|
|
75
79
|
'last_used_dts': value.last_used_dts,
|
|
@@ -63,6 +63,12 @@ export interface CustomerShipping {
|
|
|
63
63
|
* @memberof CustomerShipping
|
|
64
64
|
*/
|
|
65
65
|
day_phone?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Day phone in E.164 format (derived — read only)
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CustomerShipping
|
|
70
|
+
*/
|
|
71
|
+
day_phone_e164?: string;
|
|
66
72
|
/**
|
|
67
73
|
* Default shipping
|
|
68
74
|
* @type {boolean}
|
|
@@ -75,6 +81,12 @@ export interface CustomerShipping {
|
|
|
75
81
|
* @memberof CustomerShipping
|
|
76
82
|
*/
|
|
77
83
|
evening_phone?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Evening phone in E.164 format (derived — read only)
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CustomerShipping
|
|
88
|
+
*/
|
|
89
|
+
evening_phone_e164?: string;
|
|
78
90
|
/**
|
|
79
91
|
* First name
|
|
80
92
|
* @type {string}
|
|
@@ -40,8 +40,10 @@ function CustomerShippingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'customer_profile_oid': !(0, runtime_1.exists)(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
|
|
41
41
|
'customer_shipping_oid': !(0, runtime_1.exists)(json, 'customer_shipping_oid') ? undefined : json['customer_shipping_oid'],
|
|
42
42
|
'day_phone': !(0, runtime_1.exists)(json, 'day_phone') ? undefined : json['day_phone'],
|
|
43
|
+
'day_phone_e164': !(0, runtime_1.exists)(json, 'day_phone_e164') ? undefined : json['day_phone_e164'],
|
|
43
44
|
'default_shipping': !(0, runtime_1.exists)(json, 'default_shipping') ? undefined : json['default_shipping'],
|
|
44
45
|
'evening_phone': !(0, runtime_1.exists)(json, 'evening_phone') ? undefined : json['evening_phone'],
|
|
46
|
+
'evening_phone_e164': !(0, runtime_1.exists)(json, 'evening_phone_e164') ? undefined : json['evening_phone_e164'],
|
|
45
47
|
'first_name': !(0, runtime_1.exists)(json, 'first_name') ? undefined : json['first_name'],
|
|
46
48
|
'last_name': !(0, runtime_1.exists)(json, 'last_name') ? undefined : json['last_name'],
|
|
47
49
|
'last_used_dts': !(0, runtime_1.exists)(json, 'last_used_dts') ? undefined : json['last_used_dts'],
|
|
@@ -68,8 +70,10 @@ function CustomerShippingToJSON(value) {
|
|
|
68
70
|
'customer_profile_oid': value.customer_profile_oid,
|
|
69
71
|
'customer_shipping_oid': value.customer_shipping_oid,
|
|
70
72
|
'day_phone': value.day_phone,
|
|
73
|
+
'day_phone_e164': value.day_phone_e164,
|
|
71
74
|
'default_shipping': value.default_shipping,
|
|
72
75
|
'evening_phone': value.evening_phone,
|
|
76
|
+
'evening_phone_e164': value.evening_phone_e164,
|
|
73
77
|
'first_name': value.first_name,
|
|
74
78
|
'last_name': value.last_name,
|
|
75
79
|
'last_used_dts': value.last_used_dts,
|
|
@@ -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
|
@@ -67,6 +67,12 @@ export interface CustomerBilling {
|
|
|
67
67
|
* @memberof CustomerBilling
|
|
68
68
|
*/
|
|
69
69
|
day_phone?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Day phone in E.164 format (derived — read only)
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof CustomerBilling
|
|
74
|
+
*/
|
|
75
|
+
day_phone_e164?: string;
|
|
70
76
|
/**
|
|
71
77
|
* Default billing
|
|
72
78
|
* @type {boolean}
|
|
@@ -79,6 +85,12 @@ export interface CustomerBilling {
|
|
|
79
85
|
* @memberof CustomerBilling
|
|
80
86
|
*/
|
|
81
87
|
evening_phone?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Evening phone in E.164 format (derived — read only)
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof CustomerBilling
|
|
92
|
+
*/
|
|
93
|
+
evening_phone_e164?: string;
|
|
82
94
|
/**
|
|
83
95
|
* First name
|
|
84
96
|
* @type {string}
|
|
@@ -152,8 +164,10 @@ export function CustomerBillingFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
152
164
|
'customer_billing_oid': !exists(json, 'customer_billing_oid') ? undefined : json['customer_billing_oid'],
|
|
153
165
|
'customer_profile_oid': !exists(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
|
|
154
166
|
'day_phone': !exists(json, 'day_phone') ? undefined : json['day_phone'],
|
|
167
|
+
'day_phone_e164': !exists(json, 'day_phone_e164') ? undefined : json['day_phone_e164'],
|
|
155
168
|
'default_billing': !exists(json, 'default_billing') ? undefined : json['default_billing'],
|
|
156
169
|
'evening_phone': !exists(json, 'evening_phone') ? undefined : json['evening_phone'],
|
|
170
|
+
'evening_phone_e164': !exists(json, 'evening_phone_e164') ? undefined : json['evening_phone_e164'],
|
|
157
171
|
'first_name': !exists(json, 'first_name') ? undefined : json['first_name'],
|
|
158
172
|
'last_name': !exists(json, 'last_name') ? undefined : json['last_name'],
|
|
159
173
|
'last_used_dts': !exists(json, 'last_used_dts') ? undefined : json['last_used_dts'],
|
|
@@ -181,8 +195,10 @@ export function CustomerBillingToJSON(value?: CustomerBilling | null): any {
|
|
|
181
195
|
'customer_billing_oid': value.customer_billing_oid,
|
|
182
196
|
'customer_profile_oid': value.customer_profile_oid,
|
|
183
197
|
'day_phone': value.day_phone,
|
|
198
|
+
'day_phone_e164': value.day_phone_e164,
|
|
184
199
|
'default_billing': value.default_billing,
|
|
185
200
|
'evening_phone': value.evening_phone,
|
|
201
|
+
'evening_phone_e164': value.evening_phone_e164,
|
|
186
202
|
'first_name': value.first_name,
|
|
187
203
|
'last_name': value.last_name,
|
|
188
204
|
'last_used_dts': value.last_used_dts,
|
|
@@ -67,6 +67,12 @@ export interface CustomerShipping {
|
|
|
67
67
|
* @memberof CustomerShipping
|
|
68
68
|
*/
|
|
69
69
|
day_phone?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Day phone in E.164 format (derived — read only)
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof CustomerShipping
|
|
74
|
+
*/
|
|
75
|
+
day_phone_e164?: string;
|
|
70
76
|
/**
|
|
71
77
|
* Default shipping
|
|
72
78
|
* @type {boolean}
|
|
@@ -79,6 +85,12 @@ export interface CustomerShipping {
|
|
|
79
85
|
* @memberof CustomerShipping
|
|
80
86
|
*/
|
|
81
87
|
evening_phone?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Evening phone in E.164 format (derived — read only)
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof CustomerShipping
|
|
92
|
+
*/
|
|
93
|
+
evening_phone_e164?: string;
|
|
82
94
|
/**
|
|
83
95
|
* First name
|
|
84
96
|
* @type {string}
|
|
@@ -152,8 +164,10 @@ export function CustomerShippingFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
152
164
|
'customer_profile_oid': !exists(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
|
|
153
165
|
'customer_shipping_oid': !exists(json, 'customer_shipping_oid') ? undefined : json['customer_shipping_oid'],
|
|
154
166
|
'day_phone': !exists(json, 'day_phone') ? undefined : json['day_phone'],
|
|
167
|
+
'day_phone_e164': !exists(json, 'day_phone_e164') ? undefined : json['day_phone_e164'],
|
|
155
168
|
'default_shipping': !exists(json, 'default_shipping') ? undefined : json['default_shipping'],
|
|
156
169
|
'evening_phone': !exists(json, 'evening_phone') ? undefined : json['evening_phone'],
|
|
170
|
+
'evening_phone_e164': !exists(json, 'evening_phone_e164') ? undefined : json['evening_phone_e164'],
|
|
157
171
|
'first_name': !exists(json, 'first_name') ? undefined : json['first_name'],
|
|
158
172
|
'last_name': !exists(json, 'last_name') ? undefined : json['last_name'],
|
|
159
173
|
'last_used_dts': !exists(json, 'last_used_dts') ? undefined : json['last_used_dts'],
|
|
@@ -181,8 +195,10 @@ export function CustomerShippingToJSON(value?: CustomerShipping | null): any {
|
|
|
181
195
|
'customer_profile_oid': value.customer_profile_oid,
|
|
182
196
|
'customer_shipping_oid': value.customer_shipping_oid,
|
|
183
197
|
'day_phone': value.day_phone,
|
|
198
|
+
'day_phone_e164': value.day_phone_e164,
|
|
184
199
|
'default_shipping': value.default_shipping,
|
|
185
200
|
'evening_phone': value.evening_phone,
|
|
201
|
+
'evening_phone_e164': value.evening_phone_e164,
|
|
186
202
|
'first_name': value.first_name,
|
|
187
203
|
'last_name': value.last_name,
|
|
188
204
|
'last_used_dts': value.last_used_dts,
|
|
@@ -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,
|