ultracart_rest_api_v2_typescript 4.0.183 → 4.0.185
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/CartSummary.d.ts +12 -0
- package/dist/models/CartSummary.js +4 -0
- package/dist/models/Customer.d.ts +6 -0
- package/dist/models/Customer.js +2 -0
- package/dist/models/OrderSummary.d.ts +12 -0
- package/dist/models/OrderSummary.js +4 -0
- package/package.json +1 -1
- package/src/models/CartSummary.ts +16 -0
- package/src/models/Customer.ts +8 -0
- package/src/models/OrderSummary.ts +16 -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.185
|
|
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.185 --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.185 | 11/01/2023 | customer - do_no_send_mail flag added |
|
|
58
|
+
| 4.0.184 | 10/30/2023 | cart/order fields for health benefit card values in summary expansion objects |
|
|
57
59
|
| 4.0.183 | 10/27/2023 | workflow task object model refinement |
|
|
58
60
|
| 4.0.182 | 10/23/2023 | workflow tasks api |
|
|
59
61
|
| 4.0.181 | 10/23/2023 | workflow tasks api |
|
|
@@ -40,6 +40,18 @@ export interface CartSummary {
|
|
|
40
40
|
* @memberof CartSummary
|
|
41
41
|
*/
|
|
42
42
|
arbitrary_taxable_subtotal?: Currency;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Currency}
|
|
46
|
+
* @memberof CartSummary
|
|
47
|
+
*/
|
|
48
|
+
health_benefit_card_amount?: Currency;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Currency}
|
|
52
|
+
* @memberof CartSummary
|
|
53
|
+
*/
|
|
54
|
+
internal_gift_certificate_amount?: Currency;
|
|
43
55
|
/**
|
|
44
56
|
*
|
|
45
57
|
* @type {Currency}
|
|
@@ -29,6 +29,8 @@ function CartSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'arbitrary_tax': !(0, runtime_1.exists)(json, 'arbitrary_tax') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['arbitrary_tax']),
|
|
30
30
|
'arbitrary_tax_rate': !(0, runtime_1.exists)(json, 'arbitrary_tax_rate') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['arbitrary_tax_rate']),
|
|
31
31
|
'arbitrary_taxable_subtotal': !(0, runtime_1.exists)(json, 'arbitrary_taxable_subtotal') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['arbitrary_taxable_subtotal']),
|
|
32
|
+
'health_benefit_card_amount': !(0, runtime_1.exists)(json, 'health_benefit_card_amount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['health_benefit_card_amount']),
|
|
33
|
+
'internal_gift_certificate_amount': !(0, runtime_1.exists)(json, 'internal_gift_certificate_amount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['internal_gift_certificate_amount']),
|
|
32
34
|
'shipping_handling': !(0, runtime_1.exists)(json, 'shipping_handling') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['shipping_handling']),
|
|
33
35
|
'shipping_handling_discount': !(0, runtime_1.exists)(json, 'shipping_handling_discount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['shipping_handling_discount']),
|
|
34
36
|
'shipping_handling_with_discount': !(0, runtime_1.exists)(json, 'shipping_handling_with_discount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['shipping_handling_with_discount']),
|
|
@@ -56,6 +58,8 @@ function CartSummaryToJSON(value) {
|
|
|
56
58
|
'arbitrary_tax': (0, Currency_1.CurrencyToJSON)(value.arbitrary_tax),
|
|
57
59
|
'arbitrary_tax_rate': (0, Currency_1.CurrencyToJSON)(value.arbitrary_tax_rate),
|
|
58
60
|
'arbitrary_taxable_subtotal': (0, Currency_1.CurrencyToJSON)(value.arbitrary_taxable_subtotal),
|
|
61
|
+
'health_benefit_card_amount': (0, Currency_1.CurrencyToJSON)(value.health_benefit_card_amount),
|
|
62
|
+
'internal_gift_certificate_amount': (0, Currency_1.CurrencyToJSON)(value.internal_gift_certificate_amount),
|
|
59
63
|
'shipping_handling': (0, Currency_1.CurrencyToJSON)(value.shipping_handling),
|
|
60
64
|
'shipping_handling_discount': (0, Currency_1.CurrencyToJSON)(value.shipping_handling_discount),
|
|
61
65
|
'shipping_handling_with_discount': (0, Currency_1.CurrencyToJSON)(value.shipping_handling_with_discount),
|
|
@@ -147,6 +147,12 @@ export interface Customer {
|
|
|
147
147
|
* @memberof Customer
|
|
148
148
|
*/
|
|
149
149
|
dhl_duty_account_number?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Do not send mail (null will not update)
|
|
152
|
+
* @type {boolean}
|
|
153
|
+
* @memberof Customer
|
|
154
|
+
*/
|
|
155
|
+
do_not_send_mail?: boolean;
|
|
150
156
|
/**
|
|
151
157
|
*
|
|
152
158
|
* @type {CustomerEDI}
|
package/dist/models/Customer.js
CHANGED
|
@@ -61,6 +61,7 @@ function CustomerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'customer_profile_oid': !(0, runtime_1.exists)(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
|
|
62
62
|
'dhl_account_number': !(0, runtime_1.exists)(json, 'dhl_account_number') ? undefined : json['dhl_account_number'],
|
|
63
63
|
'dhl_duty_account_number': !(0, runtime_1.exists)(json, 'dhl_duty_account_number') ? undefined : json['dhl_duty_account_number'],
|
|
64
|
+
'do_not_send_mail': !(0, runtime_1.exists)(json, 'do_not_send_mail') ? undefined : json['do_not_send_mail'],
|
|
64
65
|
'edi': !(0, runtime_1.exists)(json, 'edi') ? undefined : (0, CustomerEDI_1.CustomerEDIFromJSON)(json['edi']),
|
|
65
66
|
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
66
67
|
'exempt_shipping_handling_charge': !(0, runtime_1.exists)(json, 'exempt_shipping_handling_charge') ? undefined : json['exempt_shipping_handling_charge'],
|
|
@@ -135,6 +136,7 @@ function CustomerToJSON(value) {
|
|
|
135
136
|
'customer_profile_oid': value.customer_profile_oid,
|
|
136
137
|
'dhl_account_number': value.dhl_account_number,
|
|
137
138
|
'dhl_duty_account_number': value.dhl_duty_account_number,
|
|
139
|
+
'do_not_send_mail': value.do_not_send_mail,
|
|
138
140
|
'edi': (0, CustomerEDI_1.CustomerEDIToJSON)(value.edi),
|
|
139
141
|
'email': value.email,
|
|
140
142
|
'exempt_shipping_handling_charge': value.exempt_shipping_handling_charge,
|
|
@@ -40,6 +40,18 @@ export interface OrderSummary {
|
|
|
40
40
|
* @memberof OrderSummary
|
|
41
41
|
*/
|
|
42
42
|
arbitrary_shipping_handling_total?: Currency;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Currency}
|
|
46
|
+
* @memberof OrderSummary
|
|
47
|
+
*/
|
|
48
|
+
health_benefit_card_amount?: Currency;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Currency}
|
|
52
|
+
* @memberof OrderSummary
|
|
53
|
+
*/
|
|
54
|
+
health_benefit_card_refunded?: Currency;
|
|
43
55
|
/**
|
|
44
56
|
*
|
|
45
57
|
* @type {Currency}
|
|
@@ -29,6 +29,8 @@ function OrderSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'actual_payment_processing': !(0, runtime_1.exists)(json, 'actual_payment_processing') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['actual_payment_processing']),
|
|
30
30
|
'actual_shipping': !(0, runtime_1.exists)(json, 'actual_shipping') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['actual_shipping']),
|
|
31
31
|
'arbitrary_shipping_handling_total': !(0, runtime_1.exists)(json, 'arbitrary_shipping_handling_total') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['arbitrary_shipping_handling_total']),
|
|
32
|
+
'health_benefit_card_amount': !(0, runtime_1.exists)(json, 'health_benefit_card_amount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['health_benefit_card_amount']),
|
|
33
|
+
'health_benefit_card_refunded': !(0, runtime_1.exists)(json, 'health_benefit_card_refunded') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['health_benefit_card_refunded']),
|
|
32
34
|
'internal_gift_certificate_amount': !(0, runtime_1.exists)(json, 'internal_gift_certificate_amount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['internal_gift_certificate_amount']),
|
|
33
35
|
'internal_gift_certificate_refunded': !(0, runtime_1.exists)(json, 'internal_gift_certificate_refunded') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['internal_gift_certificate_refunded']),
|
|
34
36
|
'other_refunded': !(0, runtime_1.exists)(json, 'other_refunded') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['other_refunded']),
|
|
@@ -60,6 +62,8 @@ function OrderSummaryToJSON(value) {
|
|
|
60
62
|
'actual_payment_processing': (0, Currency_1.CurrencyToJSON)(value.actual_payment_processing),
|
|
61
63
|
'actual_shipping': (0, Currency_1.CurrencyToJSON)(value.actual_shipping),
|
|
62
64
|
'arbitrary_shipping_handling_total': (0, Currency_1.CurrencyToJSON)(value.arbitrary_shipping_handling_total),
|
|
65
|
+
'health_benefit_card_amount': (0, Currency_1.CurrencyToJSON)(value.health_benefit_card_amount),
|
|
66
|
+
'health_benefit_card_refunded': (0, Currency_1.CurrencyToJSON)(value.health_benefit_card_refunded),
|
|
63
67
|
'internal_gift_certificate_amount': (0, Currency_1.CurrencyToJSON)(value.internal_gift_certificate_amount),
|
|
64
68
|
'internal_gift_certificate_refunded': (0, Currency_1.CurrencyToJSON)(value.internal_gift_certificate_refunded),
|
|
65
69
|
'other_refunded': (0, Currency_1.CurrencyToJSON)(value.other_refunded),
|
package/package.json
CHANGED
|
@@ -50,6 +50,18 @@ export interface CartSummary {
|
|
|
50
50
|
* @memberof CartSummary
|
|
51
51
|
*/
|
|
52
52
|
arbitrary_taxable_subtotal?: Currency;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Currency}
|
|
56
|
+
* @memberof CartSummary
|
|
57
|
+
*/
|
|
58
|
+
health_benefit_card_amount?: Currency;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Currency}
|
|
62
|
+
* @memberof CartSummary
|
|
63
|
+
*/
|
|
64
|
+
internal_gift_certificate_amount?: Currency;
|
|
53
65
|
/**
|
|
54
66
|
*
|
|
55
67
|
* @type {Currency}
|
|
@@ -138,6 +150,8 @@ export function CartSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
138
150
|
'arbitrary_tax': !exists(json, 'arbitrary_tax') ? undefined : CurrencyFromJSON(json['arbitrary_tax']),
|
|
139
151
|
'arbitrary_tax_rate': !exists(json, 'arbitrary_tax_rate') ? undefined : CurrencyFromJSON(json['arbitrary_tax_rate']),
|
|
140
152
|
'arbitrary_taxable_subtotal': !exists(json, 'arbitrary_taxable_subtotal') ? undefined : CurrencyFromJSON(json['arbitrary_taxable_subtotal']),
|
|
153
|
+
'health_benefit_card_amount': !exists(json, 'health_benefit_card_amount') ? undefined : CurrencyFromJSON(json['health_benefit_card_amount']),
|
|
154
|
+
'internal_gift_certificate_amount': !exists(json, 'internal_gift_certificate_amount') ? undefined : CurrencyFromJSON(json['internal_gift_certificate_amount']),
|
|
141
155
|
'shipping_handling': !exists(json, 'shipping_handling') ? undefined : CurrencyFromJSON(json['shipping_handling']),
|
|
142
156
|
'shipping_handling_discount': !exists(json, 'shipping_handling_discount') ? undefined : CurrencyFromJSON(json['shipping_handling_discount']),
|
|
143
157
|
'shipping_handling_with_discount': !exists(json, 'shipping_handling_with_discount') ? undefined : CurrencyFromJSON(json['shipping_handling_with_discount']),
|
|
@@ -166,6 +180,8 @@ export function CartSummaryToJSON(value?: CartSummary | null): any {
|
|
|
166
180
|
'arbitrary_tax': CurrencyToJSON(value.arbitrary_tax),
|
|
167
181
|
'arbitrary_tax_rate': CurrencyToJSON(value.arbitrary_tax_rate),
|
|
168
182
|
'arbitrary_taxable_subtotal': CurrencyToJSON(value.arbitrary_taxable_subtotal),
|
|
183
|
+
'health_benefit_card_amount': CurrencyToJSON(value.health_benefit_card_amount),
|
|
184
|
+
'internal_gift_certificate_amount': CurrencyToJSON(value.internal_gift_certificate_amount),
|
|
169
185
|
'shipping_handling': CurrencyToJSON(value.shipping_handling),
|
|
170
186
|
'shipping_handling_discount': CurrencyToJSON(value.shipping_handling_discount),
|
|
171
187
|
'shipping_handling_with_discount': CurrencyToJSON(value.shipping_handling_with_discount),
|
package/src/models/Customer.ts
CHANGED
|
@@ -242,6 +242,12 @@ export interface Customer {
|
|
|
242
242
|
* @memberof Customer
|
|
243
243
|
*/
|
|
244
244
|
dhl_duty_account_number?: string;
|
|
245
|
+
/**
|
|
246
|
+
* Do not send mail (null will not update)
|
|
247
|
+
* @type {boolean}
|
|
248
|
+
* @memberof Customer
|
|
249
|
+
*/
|
|
250
|
+
do_not_send_mail?: boolean;
|
|
245
251
|
/**
|
|
246
252
|
*
|
|
247
253
|
* @type {CustomerEDI}
|
|
@@ -537,6 +543,7 @@ export function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
537
543
|
'customer_profile_oid': !exists(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
|
|
538
544
|
'dhl_account_number': !exists(json, 'dhl_account_number') ? undefined : json['dhl_account_number'],
|
|
539
545
|
'dhl_duty_account_number': !exists(json, 'dhl_duty_account_number') ? undefined : json['dhl_duty_account_number'],
|
|
546
|
+
'do_not_send_mail': !exists(json, 'do_not_send_mail') ? undefined : json['do_not_send_mail'],
|
|
540
547
|
'edi': !exists(json, 'edi') ? undefined : CustomerEDIFromJSON(json['edi']),
|
|
541
548
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
542
549
|
'exempt_shipping_handling_charge': !exists(json, 'exempt_shipping_handling_charge') ? undefined : json['exempt_shipping_handling_charge'],
|
|
@@ -612,6 +619,7 @@ export function CustomerToJSON(value?: Customer | null): any {
|
|
|
612
619
|
'customer_profile_oid': value.customer_profile_oid,
|
|
613
620
|
'dhl_account_number': value.dhl_account_number,
|
|
614
621
|
'dhl_duty_account_number': value.dhl_duty_account_number,
|
|
622
|
+
'do_not_send_mail': value.do_not_send_mail,
|
|
615
623
|
'edi': CustomerEDIToJSON(value.edi),
|
|
616
624
|
'email': value.email,
|
|
617
625
|
'exempt_shipping_handling_charge': value.exempt_shipping_handling_charge,
|
|
@@ -50,6 +50,18 @@ export interface OrderSummary {
|
|
|
50
50
|
* @memberof OrderSummary
|
|
51
51
|
*/
|
|
52
52
|
arbitrary_shipping_handling_total?: Currency;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Currency}
|
|
56
|
+
* @memberof OrderSummary
|
|
57
|
+
*/
|
|
58
|
+
health_benefit_card_amount?: Currency;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Currency}
|
|
62
|
+
* @memberof OrderSummary
|
|
63
|
+
*/
|
|
64
|
+
health_benefit_card_refunded?: Currency;
|
|
53
65
|
/**
|
|
54
66
|
*
|
|
55
67
|
* @type {Currency}
|
|
@@ -162,6 +174,8 @@ export function OrderSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
162
174
|
'actual_payment_processing': !exists(json, 'actual_payment_processing') ? undefined : CurrencyFromJSON(json['actual_payment_processing']),
|
|
163
175
|
'actual_shipping': !exists(json, 'actual_shipping') ? undefined : CurrencyFromJSON(json['actual_shipping']),
|
|
164
176
|
'arbitrary_shipping_handling_total': !exists(json, 'arbitrary_shipping_handling_total') ? undefined : CurrencyFromJSON(json['arbitrary_shipping_handling_total']),
|
|
177
|
+
'health_benefit_card_amount': !exists(json, 'health_benefit_card_amount') ? undefined : CurrencyFromJSON(json['health_benefit_card_amount']),
|
|
178
|
+
'health_benefit_card_refunded': !exists(json, 'health_benefit_card_refunded') ? undefined : CurrencyFromJSON(json['health_benefit_card_refunded']),
|
|
165
179
|
'internal_gift_certificate_amount': !exists(json, 'internal_gift_certificate_amount') ? undefined : CurrencyFromJSON(json['internal_gift_certificate_amount']),
|
|
166
180
|
'internal_gift_certificate_refunded': !exists(json, 'internal_gift_certificate_refunded') ? undefined : CurrencyFromJSON(json['internal_gift_certificate_refunded']),
|
|
167
181
|
'other_refunded': !exists(json, 'other_refunded') ? undefined : CurrencyFromJSON(json['other_refunded']),
|
|
@@ -194,6 +208,8 @@ export function OrderSummaryToJSON(value?: OrderSummary | null): any {
|
|
|
194
208
|
'actual_payment_processing': CurrencyToJSON(value.actual_payment_processing),
|
|
195
209
|
'actual_shipping': CurrencyToJSON(value.actual_shipping),
|
|
196
210
|
'arbitrary_shipping_handling_total': CurrencyToJSON(value.arbitrary_shipping_handling_total),
|
|
211
|
+
'health_benefit_card_amount': CurrencyToJSON(value.health_benefit_card_amount),
|
|
212
|
+
'health_benefit_card_refunded': CurrencyToJSON(value.health_benefit_card_refunded),
|
|
197
213
|
'internal_gift_certificate_amount': CurrencyToJSON(value.internal_gift_certificate_amount),
|
|
198
214
|
'internal_gift_certificate_refunded': CurrencyToJSON(value.internal_gift_certificate_refunded),
|
|
199
215
|
'other_refunded': CurrencyToJSON(value.other_refunded),
|