@gradientedge/commercetools-utils
    Preparing search index...

    Interface ProductDiscount

    interface ProductDiscount {
        createdAt: string;
        createdBy?: CreatedBy;
        description?: LocalizedString;
        id: string;
        isActive: boolean;
        key?: string;
        lastModifiedAt: string;
        lastModifiedBy?: LastModifiedBy;
        name: LocalizedString;
        predicate: string;
        references: Reference[];
        sortOrder: string;
        validFrom?: string;
        validUntil?: string;
        value: ProductDiscountValue;
        version: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    createdAt: string

    Date and time (UTC) the ProductDiscount was initially created.

    createdBy?: CreatedBy

    IDs and references that created the ProductDiscount.

    description?: LocalizedString

    Description of the ProductDiscount.

    id: string

    Unique identifier of the ProductDiscount.

    isActive: boolean

    If true the Product Discount is applied to Products matching the predicate.

    key?: string

    User-defined unique identifier of the ProductDiscount.

    lastModifiedAt: string

    Date and time (UTC) the ProductDiscount was last updated.

    lastModifiedBy?: LastModifiedBy

    IDs and references that last modified the ProductDiscount.

    Name of the ProductDiscount.

    predicate: string
    references: Reference[]

    References of all the resources that are addressed in the predicate.

    sortOrder: string

    Unique decimal value between 0 and 1 (stored as String literal) defining the order of Product Discounts to apply in case more than one is applicable and active. A Product Discount with a higher value is prioritized.

    validFrom?: string

    Date and time (UTC) from which the Discount is effective. Take Eventual Consistency into account for calculated discount values.

    validUntil?: string

    Date and time (UTC) until which the Discount is effective. Take Eventual Consistency into account for calculated undiscounted values.

    Type of Discount and its corresponding value.

    version: number

    Current version of the ProductDiscount.