10.9.0 • Published 9 months ago

@commercetools-test-data/cart-discount v10.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@commercetools-test-data/cart-discount

This package provides the data models for the commercetools platform CartDiscount representations.

https://docs.commercetools.com/api/projects/cartDiscounts#representations

Install

$ pnpm add -D @commercetools-test-data/cart-discount

CartDiscount

import {
  CartDiscount,
  CartDiscountDraft,
  type TCartDiscount,
  type TCartDiscountDraft,
} from '@commercetools-test-data/cart-discount';

const cartDiscount = CartDiscount.random().build<TCartDiscount>();
const cartDiscountDraft =
  CartDiscountDraft.random().build<TCartDiscountDraft>();

CartDiscountLineItemsTarget

import {
  CartDiscountLineItemsTarget,
  CartDiscountLineItemsTargetDraft,
  type TCartDiscountLineItemsTarget,
  type TCartDiscountLineItemsTargetDraft,
} from '@commercetools-test-data/cart-discount';

const target =
  CartDiscountLineItemsTarget.random().build<TCartDiscountLineItemsTarget>();
const targetDraft =
  CartDiscountLineItemsTargetDraft.random().build<TCartDiscountLineItemsTargetDraft>();

CartDiscountMultiBuyLineItemsTarget

import {
  CartDiscountMultiBuyLineItemsTarget,
  CartDiscountMultiBuyLineItemsTargetDraft,
  type TCartDiscountMultiBuyLineItemsTarget,
  type TCartDiscountMultiBuyLineItemsTargetDraft,
} from '@commercetools-test-data/cart-discount';

const target =
  CartDiscountMultiBuyLineItemsTarget.random().build<TCartDiscountMultiBuyLineItemsTarget>();
const targetDraft =
  CartDiscountMultiBuyLineItemsTargetDraft.random().build<TCartDiscountMultiBuyLineItemsTargetDraft>();

CartDiscountShippingCostTarget

import {
  CartDiscountShippingCostTarget,
  CartDiscountShippingCostTargetDraft,
  type TCartDiscountShippingCostTarget,
  type TCartDiscountShippingCostTargetDraft,
} from '@commercetools-test-data/cart-discount';

const target =
  CartDiscountShippingCostTarget.random().build<TCartDiscountShippingCostTarget>();
const targetDraft =
  CartDiscountShippingCostTargetDraft.random().build<TCartDiscountShippingCostTargetDraft>();

CartDiscountValueAbsolute

import {
  CartDiscountValueAbsolute,
  CartDiscountValueAbsoluteDraft,
  type TCartDiscountValueAbsolute,
  type TCartDiscountValueAbsoluteDraft,
} from '@commercetools-test-data/cart-discount';

const cartDiscountValueAbsolute =
  CartDiscountValueAbsolute.random().build<TCartDiscountValueAbsolute>();
const cartDiscountValueAbsoluteDraft =
  CartDiscountValueAbsoluteDraft.random().build<TCartDiscountValueAbsoluteDraft>();

CartDiscountValueFixed

import {
  CartDiscountValueFixed,
  CartDiscountValueFixedDraft,
  type TCartDiscountValueFixed,
  type TCartDiscountValueFixedDraft,
} from '@commercetools-test-data/cart-discount';

const cartDiscountValueFixed =
  CartDiscountValueFixed.random().build<TCartDiscountValueFixed>();
const cartDiscountValueFixedDraft = CartDiscountValueFixedDraft.random().buil;

CartDiscountValueGiftLineItem

import {
  CartDiscountValueGiftLineItem,
  CartDiscountValueGiftLineItemDraft,
  type TCartDiscountValueGiftLineItem,
  type TCartDiscountValueGiftLineItemDraft,
} from '@commercetools-test-data/cart-discount';

const cartDiscountValueGiftLineItem =
  CartDiscountValueGiftLineItem.random().build<TCartDiscountValueGiftLineItem>();
const cartDiscountValueGiftLineItemDraft =
  CartDiscountValueGiftLineItemDraft.random().build<TCartDiscountValueGiftLineItemDraft>();

CartDiscountValueRelative

import {
  CartDiscountValueRelative,
  CartDiscountValueRelativeDraft,
  type TCartDiscountValueRelative,
  type TCartDiscountValueRelativeDraft,
} from '@commercetools-test-data/cart-discount';

const cartDiscountValueRelative =
  CartDiscountValueRelative.random().build<TCartDiscountValueRelative>();
const cartDiscountValueRelativeDraft =
  CartDiscountValueRelativeDraft.random().build<TCartDiscountValueRelativeDraft>();
10.9.0

9 months ago

10.8.0

9 months ago

10.8.1

9 months ago

10.7.1

10 months ago

10.2.0

11 months ago

10.4.0

11 months ago

10.3.0

11 months ago

10.6.0

10 months ago

10.6.1

10 months ago

10.5.0

11 months ago

10.5.1

11 months ago

10.5.2

11 months ago

10.7.0

10 months ago

9.0.7

1 year ago

9.0.6

1 year ago

9.0.5

1 year ago

9.0.4

1 year ago

9.0.3

1 year ago

10.0.0

11 months ago

9.0.2

1 year ago

9.0.1

1 year ago

9.0.0

1 year ago

8.4.0

1 year ago

8.3.0

1 year ago

10.1.4

11 months ago

10.1.0

11 months ago

10.1.1

11 months ago

10.1.2

11 months ago

10.1.3

11 months ago

8.5.0

1 year ago

8.2.3

1 year ago

8.2.2

1 year ago

8.2.1

1 year ago

8.2.0

1 year ago

8.1.0

1 year ago

8.1.1

1 year ago

8.0.0

1 year ago

7.11.0

1 year ago

7.10.0

1 year ago

7.9.1

1 year ago

7.9.0

1 year ago

7.8.0

1 year ago

7.6.0

1 year ago

7.7.1

1 year ago

7.7.0

1 year ago

7.5.0

1 year ago

7.4.0

1 year ago

7.3.0

1 year ago

7.2.13

1 year ago

7.2.12

1 year ago

7.2.11

1 year ago

7.2.10

1 year ago

7.2.9

1 year ago

7.2.8

1 year ago

7.2.7

1 year ago

7.2.6

1 year ago

7.2.5

1 year ago

7.2.4

1 year ago

7.2.3

1 year ago

7.2.2

1 year ago

7.2.1

1 year ago

7.1.1

1 year ago

7.1.0

1 year ago

7.2.0

1 year ago

7.0.0

1 year ago

6.11.0

1 year ago

6.10.0

2 years ago

6.8.1

2 years ago

6.9.0

2 years ago

6.8.0

2 years ago

6.5.0

2 years ago

6.6.0

2 years ago

5.8.2

2 years ago

5.8.1

2 years ago

5.8.0

2 years ago

5.9.0

2 years ago

6.0.0

2 years ago

5.10.1

2 years ago

5.10.0

2 years ago

6.1.0

2 years ago

6.1.1

2 years ago

5.11.2

2 years ago

5.11.1

2 years ago

5.11.0

2 years ago

6.2.0

2 years ago

6.3.4

2 years ago

6.3.3

2 years ago

6.3.6

2 years ago

6.3.5

2 years ago

6.3.8

2 years ago

6.3.7

2 years ago

6.3.0

2 years ago

6.3.2

2 years ago

6.3.1

2 years ago

6.4.2

2 years ago

6.4.1

2 years ago

6.4.0

2 years ago

5.7.0

2 years ago

5.5.1

2 years ago

5.5.0

2 years ago

5.6.0

2 years ago

5.4.1

2 years ago

5.4.0

2 years ago

5.3.6

2 years ago

5.3.5

2 years ago

5.3.3

2 years ago

5.3.2

2 years ago

5.3.1

2 years ago

5.3.0

2 years ago

5.1.1

2 years ago

5.1.0

2 years ago

5.2.0

2 years ago

5.0.0

2 years ago

5.3.4

2 years ago

4.11.0

2 years ago

4.11.1

2 years ago

4.10.0

2 years ago

4.9.0

2 years ago