ultracart_rest_api_v2_typescript 4.1.21 → 4.1.22
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/Customer.d.ts +6 -0
- package/dist/models/Customer.js +2 -0
- package/dist/models/ItemShippingMethod.d.ts +6 -0
- package/dist/models/ItemShippingMethod.js +2 -0
- package/dist/models/OrderPayment.d.ts +1 -0
- package/dist/models/OrderPayment.js +1 -0
- package/dist/models/ReplaceOrderItemIdRequest.d.ts +1 -1
- package/package.json +1 -1
- package/src/models/Customer.ts +8 -0
- package/src/models/ItemShippingMethod.ts +8 -0
- package/src/models/OrderPayment.ts +1 -0
- package/src/models/ReplaceOrderItemIdRequest.ts +1 -1
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.22
|
|
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.22 --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.22 | 10/06/2025 | added Customer.fax back into object model |
|
|
88
89
|
| 4.1.21 | 09/09/2025 | added OrderRestApi.replaceOrderItemMerchantItemId |
|
|
89
90
|
| 4.1.20 | 08/18/2025 | storefront communiations - campaign repeat flags |
|
|
90
91
|
| 4.1.19 | 08/04/2025 | conversations api - add zoho departments to getCapabilities call |
|
|
@@ -171,6 +171,12 @@ export interface Customer {
|
|
|
171
171
|
* @memberof Customer
|
|
172
172
|
*/
|
|
173
173
|
exempt_shipping_handling_charge?: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Fax Number
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof Customer
|
|
178
|
+
*/
|
|
179
|
+
fax?: string;
|
|
174
180
|
/**
|
|
175
181
|
* FedEx account number
|
|
176
182
|
* @type {string}
|
package/dist/models/Customer.js
CHANGED
|
@@ -73,6 +73,7 @@ function CustomerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
73
73
|
'edi': !(0, runtime_1.exists)(json, 'edi') ? undefined : (0, CustomerEDI_1.CustomerEDIFromJSON)(json['edi']),
|
|
74
74
|
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
75
75
|
'exempt_shipping_handling_charge': !(0, runtime_1.exists)(json, 'exempt_shipping_handling_charge') ? undefined : json['exempt_shipping_handling_charge'],
|
|
76
|
+
'fax': !(0, runtime_1.exists)(json, 'fax') ? undefined : json['fax'],
|
|
76
77
|
'fedex_account_number': !(0, runtime_1.exists)(json, 'fedex_account_number') ? undefined : json['fedex_account_number'],
|
|
77
78
|
'free_shipping': !(0, runtime_1.exists)(json, 'free_shipping') ? undefined : json['free_shipping'],
|
|
78
79
|
'free_shipping_minimum': !(0, runtime_1.exists)(json, 'free_shipping_minimum') ? undefined : json['free_shipping_minimum'],
|
|
@@ -148,6 +149,7 @@ function CustomerToJSON(value) {
|
|
|
148
149
|
'edi': (0, CustomerEDI_1.CustomerEDIToJSON)(value.edi),
|
|
149
150
|
'email': value.email,
|
|
150
151
|
'exempt_shipping_handling_charge': value.exempt_shipping_handling_charge,
|
|
152
|
+
'fax': value.fax,
|
|
151
153
|
'fedex_account_number': value.fedex_account_number,
|
|
152
154
|
'free_shipping': value.free_shipping,
|
|
153
155
|
'free_shipping_minimum': value.free_shipping_minimum,
|
|
@@ -99,6 +99,12 @@ export interface ItemShippingMethod {
|
|
|
99
99
|
* @memberof ItemShippingMethod
|
|
100
100
|
*/
|
|
101
101
|
shipping_method_validity?: ItemShippingMethodShippingMethodValidityEnum;
|
|
102
|
+
/**
|
|
103
|
+
* Ships separately
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof ItemShippingMethod
|
|
106
|
+
*/
|
|
107
|
+
ships_separately?: boolean;
|
|
102
108
|
/**
|
|
103
109
|
* Signature required
|
|
104
110
|
* @type {boolean}
|
|
@@ -54,6 +54,7 @@ function ItemShippingMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'shipping_method': !(0, runtime_1.exists)(json, 'shipping_method') ? undefined : json['shipping_method'],
|
|
55
55
|
'shipping_method_oid': !(0, runtime_1.exists)(json, 'shipping_method_oid') ? undefined : json['shipping_method_oid'],
|
|
56
56
|
'shipping_method_validity': !(0, runtime_1.exists)(json, 'shipping_method_validity') ? undefined : json['shipping_method_validity'],
|
|
57
|
+
'ships_separately': !(0, runtime_1.exists)(json, 'ships_separately') ? undefined : json['ships_separately'],
|
|
57
58
|
'signature_required': !(0, runtime_1.exists)(json, 'signature_required') ? undefined : json['signature_required'],
|
|
58
59
|
};
|
|
59
60
|
}
|
|
@@ -80,6 +81,7 @@ function ItemShippingMethodToJSON(value) {
|
|
|
80
81
|
'shipping_method': value.shipping_method,
|
|
81
82
|
'shipping_method_oid': value.shipping_method_oid,
|
|
82
83
|
'shipping_method_validity': value.shipping_method_validity,
|
|
84
|
+
'ships_separately': value.ships_separately,
|
|
83
85
|
'signature_required': value.signature_required,
|
|
84
86
|
};
|
|
85
87
|
}
|
|
@@ -157,6 +157,7 @@ export declare const OrderPaymentPaymentMethodEnum: {
|
|
|
157
157
|
readonly Check: "Check";
|
|
158
158
|
readonly Cod: "COD";
|
|
159
159
|
readonly CreditCard: "Credit Card";
|
|
160
|
+
readonly Crypto: "Crypto";
|
|
160
161
|
readonly EBay: "eBay";
|
|
161
162
|
readonly ECheck: "eCheck";
|
|
162
163
|
readonly GoogleShopping: "Google Shopping";
|
package/package.json
CHANGED
package/src/models/Customer.ts
CHANGED
|
@@ -266,6 +266,12 @@ export interface Customer {
|
|
|
266
266
|
* @memberof Customer
|
|
267
267
|
*/
|
|
268
268
|
exempt_shipping_handling_charge?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Fax Number
|
|
271
|
+
* @type {string}
|
|
272
|
+
* @memberof Customer
|
|
273
|
+
*/
|
|
274
|
+
fax?: string;
|
|
269
275
|
/**
|
|
270
276
|
* FedEx account number
|
|
271
277
|
* @type {string}
|
|
@@ -558,6 +564,7 @@ export function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
558
564
|
'edi': !exists(json, 'edi') ? undefined : CustomerEDIFromJSON(json['edi']),
|
|
559
565
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
560
566
|
'exempt_shipping_handling_charge': !exists(json, 'exempt_shipping_handling_charge') ? undefined : json['exempt_shipping_handling_charge'],
|
|
567
|
+
'fax': !exists(json, 'fax') ? undefined : json['fax'],
|
|
561
568
|
'fedex_account_number': !exists(json, 'fedex_account_number') ? undefined : json['fedex_account_number'],
|
|
562
569
|
'free_shipping': !exists(json, 'free_shipping') ? undefined : json['free_shipping'],
|
|
563
570
|
'free_shipping_minimum': !exists(json, 'free_shipping_minimum') ? undefined : json['free_shipping_minimum'],
|
|
@@ -634,6 +641,7 @@ export function CustomerToJSON(value?: Customer | null): any {
|
|
|
634
641
|
'edi': CustomerEDIToJSON(value.edi),
|
|
635
642
|
'email': value.email,
|
|
636
643
|
'exempt_shipping_handling_charge': value.exempt_shipping_handling_charge,
|
|
644
|
+
'fax': value.fax,
|
|
637
645
|
'fedex_account_number': value.fedex_account_number,
|
|
638
646
|
'free_shipping': value.free_shipping,
|
|
639
647
|
'free_shipping_minimum': value.free_shipping_minimum,
|
|
@@ -103,6 +103,12 @@ export interface ItemShippingMethod {
|
|
|
103
103
|
* @memberof ItemShippingMethod
|
|
104
104
|
*/
|
|
105
105
|
shipping_method_validity?: ItemShippingMethodShippingMethodValidityEnum;
|
|
106
|
+
/**
|
|
107
|
+
* Ships separately
|
|
108
|
+
* @type {boolean}
|
|
109
|
+
* @memberof ItemShippingMethod
|
|
110
|
+
*/
|
|
111
|
+
ships_separately?: boolean;
|
|
106
112
|
/**
|
|
107
113
|
* Signature required
|
|
108
114
|
* @type {boolean}
|
|
@@ -157,6 +163,7 @@ export function ItemShippingMethodFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
157
163
|
'shipping_method': !exists(json, 'shipping_method') ? undefined : json['shipping_method'],
|
|
158
164
|
'shipping_method_oid': !exists(json, 'shipping_method_oid') ? undefined : json['shipping_method_oid'],
|
|
159
165
|
'shipping_method_validity': !exists(json, 'shipping_method_validity') ? undefined : json['shipping_method_validity'],
|
|
166
|
+
'ships_separately': !exists(json, 'ships_separately') ? undefined : json['ships_separately'],
|
|
160
167
|
'signature_required': !exists(json, 'signature_required') ? undefined : json['signature_required'],
|
|
161
168
|
};
|
|
162
169
|
}
|
|
@@ -184,6 +191,7 @@ export function ItemShippingMethodToJSON(value?: ItemShippingMethod | null): any
|
|
|
184
191
|
'shipping_method': value.shipping_method,
|
|
185
192
|
'shipping_method_oid': value.shipping_method_oid,
|
|
186
193
|
'shipping_method_validity': value.shipping_method_validity,
|
|
194
|
+
'ships_separately': value.ships_separately,
|
|
187
195
|
'signature_required': value.signature_required,
|
|
188
196
|
};
|
|
189
197
|
}
|
|
@@ -20,7 +20,7 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface ReplaceOrderItemIdRequest {
|
|
22
22
|
/**
|
|
23
|
-
* Index of the item on the order
|
|
23
|
+
* Index of the item on the order. Must match order.items[].item_index
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReplaceOrderItemIdRequest
|
|
26
26
|
*/
|