
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@commercetools-test-data/product-discount
Advanced tools
Data model for commercetools API ProductDiscount
This package provides the data models for the commercetools platform ProductDiscount
type representations
https://docs.commercetools.com/api/projects/productDiscounts#productdiscount
$ pnpm add -D @commercetools-test-data/product-discount
ProductDiscount
import {
ProductDiscount,
ProductDiscountDraft,
type TProductDiscount,
type TProductDiscountDraft,
} from '@commercetools-test-data/product-discount';
const productDiscount = ProductDiscount.random().build<TProductDiscount>();
const productDiscountDraft =
ProductDiscountDraft.random().build<TProductDiscountDraft>();
ProductDiscountValueAbsolute
import {
ProductDiscountValueAbsolute,
ProductDiscountValueAbsoluteDraft
type TProductDiscountValueAbsolute,
type TProductDiscountValueAbsoluteDraft,
} from '@commercetools-test-data/product-discount';
const productDiscountValueAbsolute =
ProductDiscountValueAbsolute.random().build<TProductDiscountValueAbsolute>();
const productDiscountValueAbsoluteDraft =
ProductDiscountValueAbsoluteDraft.random().build<TProductDiscountValueAbsoluteDraft>();
ProductDiscountValueExternal
import {
ProductDiscountValueExternal,
ProductDiscountValueExternalDraft,
type TProductDiscountValueExternal,
type TProductDiscountValueExternalDraft,
} from '@commercetools-test-data/product-discount';
const productDiscountValueExternal =
ProductDiscountValueExternal.random().build<TProductDiscountValueExternal>();
const productDiscountValueExternalDraft =
ProductDiscountValueExternalDraft.random().build<TProductDiscountValueExternalDraft>();
ProductDiscountValueRelative
import {
ProductDiscountValueRelative,
ProductDiscountValueRelativeDraft,
type TProductDiscountValueRelative,
type TProductDiscountValueRelativeDraft,
} from '@commercetools-test-data/product-discount';
const productDiscountValueRelative =
ProductDiscountValueRelative.random().build<TProductDiscountValueRelative>();
const productDiscountValueRelativeDraft =
ProductDiscountValueRelativeDraft.random().build<TProductDiscountValueRelativeDraft>();
FAQs
Data model for commercetools API ProductDiscount
The npm package @commercetools-test-data/product-discount receives a total of 5,386 weekly downloads. As such, @commercetools-test-data/product-discount popularity was classified as popular.
We found that @commercetools-test-data/product-discount demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.