@gradientedge/commercetools-utils 4.19.0 → 4.21.1
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/dist/ge-commercetools-utils-browser.cjs.js +1 -1
- package/dist/ge-commercetools-utils-browser.cjs.js.map +1 -1
- package/dist/ge-commercetools-utils-browser.esm.js +1 -1
- package/dist/ge-commercetools-utils-browser.esm.js.map +1 -1
- package/dist/ge-commercetools-utils-node.cjs.js +1 -1
- package/dist/ge-commercetools-utils-node.cjs.js.map +1 -1
- package/dist/ge-commercetools-utils-node.esm.js +1 -1
- package/dist/typings/models/cart.d.ts +7 -1
- package/dist/typings/utils/get-attribute-value.d.ts +6 -0
- package/dist/typings/utils/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CartDiscountReference, CartDiscountTarget, CartDiscountValueDraft } from './cart-discount';
|
|
1
|
+
import { CartDiscountReference, CartDiscountTarget, CartDiscountValue, CartDiscountValueDraft } from './cart-discount';
|
|
2
2
|
import { ChannelReference, ChannelResourceIdentifier } from './channel';
|
|
3
3
|
import { Address, BaseAddress, BaseResource, CreatedBy, LastModifiedBy, LocalizedString, Money, Price, TypedMoney } from './common';
|
|
4
4
|
import { CustomerGroupReference, CustomerGroupResourceIdentifier } from './customer-group';
|
|
@@ -38,6 +38,7 @@ export interface Cart extends BaseResource {
|
|
|
38
38
|
readonly customerGroup?: CustomerGroupReference;
|
|
39
39
|
readonly country?: string;
|
|
40
40
|
readonly shippingInfo?: ShippingInfo;
|
|
41
|
+
readonly directDiscounts?: DirectDiscount[];
|
|
41
42
|
readonly discountCodes?: DiscountCodeInfo[];
|
|
42
43
|
readonly custom?: CustomFields;
|
|
43
44
|
readonly paymentInfo?: PaymentInfo;
|
|
@@ -125,6 +126,11 @@ export interface CustomLineItemDraft {
|
|
|
125
126
|
readonly custom?: CustomFieldsDraft;
|
|
126
127
|
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
127
128
|
}
|
|
129
|
+
export interface DirectDiscount {
|
|
130
|
+
id: string;
|
|
131
|
+
value: CartDiscountValue;
|
|
132
|
+
target?: CartDiscountTarget;
|
|
133
|
+
}
|
|
128
134
|
export interface DirectDiscountDraft {
|
|
129
135
|
value: CartDiscountValueDraft;
|
|
130
136
|
target?: CartDiscountTarget;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/commercetools-utils",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.21.1",
|
|
4
4
|
"description": "Provide utility classes and functions for interacting with the commercetools API",
|
|
5
5
|
"main": "./dist/ge-commercetools-utils-node.cjs.js",
|
|
6
6
|
"module": "./dist/ge-commercetools-utils-node.esm.js",
|