Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

DiscountReadOnly

API reference for DiscountReadOnly in Vendr, the eCommerce solution for Umbraco v8+

DiscountReadOnly

public class DiscountReadOnly : StoreAggregateBase<DiscountReadOnly, Discount, DiscountState>, 
    IHasName

Inheritance

Namespace

Properties

Alias

public string Alias { get; }

BlockFurtherDiscounts

public bool BlockFurtherDiscounts { get; }

BlockIfPreviousDiscounts

public bool BlockIfPreviousDiscounts { get; }

Codes

public IReadOnlyCollection<DiscountCode> Codes { get; }

ExpiryDate

public DateTime? ExpiryDate { get; }

IsActive

public bool IsActive { get; }

IsDeleted

public bool IsDeleted { get; }

Name

public string Name { get; }

Rewards

public IReadOnlyCollection<DiscountRewardConfig> Rewards { get; }

Rules

public DiscountRuleConfig Rules { get; }

SortOrder

public int SortOrder { get; }

StartDate

public DateTime? StartDate { get; }

Status

public DiscountStatus Status { get; }

Type

public DiscountType Type { get; }

Methods

TryFindDiscountCodes

public bool TryFindDiscountCodes(IEnumerable<string> codesToFind, 
    out IEnumerable<DiscountCode> foundCodes)

Edit this page on GitHub

Site + logo design © 2025 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.