ultracart_rest_api_v2_typescript 4.0.183 → 4.0.184
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/CartSummary.d.ts +12 -0
- package/dist/models/CartSummary.js +4 -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/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.184
|
|
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.184 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.184 | 10/30/2023 | cart/order fields for health benefit card values in summary expansion objects |
|
|
57
58
|
| 4.0.183 | 10/27/2023 | workflow task object model refinement |
|
|
58
59
|
| 4.0.182 | 10/23/2023 | workflow tasks api |
|
|
59
60
|
| 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),
|
|
@@ -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),
|
|
@@ -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),
|