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

Properties

createdAt: string

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

createdBy?: CreatedBy

Present on resources created after 1 February 2019 except for events not tracked.

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

Present on resources created after 1 February 2019 except for events not tracked.

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.

Generated using TypeDoc