Search Results for

    Show / Hide Table of Contents

    Class OrderCoupon

    This is a specific time a coupon was used on an order, which order it was used on, and how much of a discount it gave.

    Inheritance
    System.Object
    OrderCoupon
    Namespace: DirectScale.Disco.Extension
    Assembly: DirectScale.Disco.Extension.Abstractions.dll
    Syntax
    public class OrderCoupon : Object

    Constructors

    OrderCoupon(Coupon)

    Create coupon order. Coupon is required.

    Declaration
    public OrderCoupon(Coupon info)
    Parameters
    Type Name Description
    Coupon info

    Properties

    DateUsed

    The date this coupon was applied.

    Declaration
    public DateTime DateUsed { get; set; }
    Property Value
    Type Description
    System.DateTime

    DiscountAmount

    The total dollar* amount that is discounted on this order via coupons.

    Declaration
    public double DiscountAmount { get; set; }
    Property Value
    Type Description
    System.Double
    Remarks

    *Dollar is just an example, this is the discount total for whatever currency the order is in.

    Info

    Get the coupon details.

    Declaration
    public Coupon Info { get; set; }
    Property Value
    Type Description
    Coupon

    OrderId

    The order DB Id that this coupon was applied to.

    Declaration
    public int OrderId { get; set; }
    Property Value
    Type Description
    System.Int32

    See Also

    OrderCoupons
    In This Article
    Back to top Copyright © 2022 DirectScale
    Generated by DocFX