Search Results for

    Show / Hide Table of Contents

    Class AmountType

    Indicates if the discount should be a fixed amount or a percentage.

    Inheritance
    System.Object
    AmountType
    Namespace: DirectScale.Disco.Extension
    Assembly: DirectScale.Disco.Extension.Abstractions.dll
    Syntax
    public sealed class AmountType : Enum
    Examples

    A 15% discount would need to be AmountType.Percent. A free standard $5.95 shipping discount would be AmountType.Amount.

    Fields

    Amount

    Discount will be interpreted as an absolute quantity.

    Declaration
    public const AmountType Amount
    Field Value
    Type Description
    AmountType
    Remarks

    A Discount of 25.0 will be interpreted as $25 (or whichever currency is used)

    Percent

    Discount will be interpreted as a percent.

    Declaration
    public const AmountType Percent
    Field Value
    Type Description
    AmountType
    Remarks

    A Discount of 25.0 will be interpreted as 25% A Discount of 0.25 will be interpreted as 0.25%

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    In This Article
    Back to top Copyright © 2022 DirectScale
    Generated by DocFX