API Reference
BookOnixDiscount
Explicit business-to-business discount on the containing price. At least Percent or Amount is required. Values are serialized without calculating a payable price, tier selection, stacking, or rounding.
Inheritance
- Object
- BookOnixDiscount
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method BookOnixDiscount.<Clone>$
- Property BookOnixPrice.Discounts
Accepted by parameters
- Method BookOnixDiscount.Equals
- Method BookOnixDiscount.op_Equality
- Method BookOnixDiscount.op_Equality
- Method BookOnixDiscount.op_Inequality
- Method BookOnixDiscount.op_Inequality
Constructors
public BookOnixDiscount() #Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)Methods
public BookOnixDiscount <Clone>$() #BookOnixDiscountpublic override Int32 GetHashCode() #Int32public static Boolean op_Equality(BookOnixDiscount left, BookOnixDiscount right) #BooleanParameters
- left BookOnixDiscount
- right BookOnixDiscount
public static Boolean op_Inequality(BookOnixDiscount left, BookOnixDiscount right) #BooleanParameters
- left BookOnixDiscount
- right BookOnixDiscount
public override String ToString() #StringInherited Methods
Properties
public BookOnixDiscountKind Kind { get; init; } #How the discount applies. Cumulative periods are defined by trading-partner agreement.
public Nullable<Decimal> Percent { get; init; } #Optional percentage in the inclusive range 0–100.
public Nullable<Decimal> Amount { get; init; } #Optional nonnegative discount per copy, in the price's currency, at most the price amount.
public Nullable<Int32> MinimumQuantity { get; init; } #Optional positive minimum number of copies. An omitted value leaves the quantity unspecified.
public Nullable<Int32> MaximumQuantity { get; init; } #Optional maximum copies, at least MinimumQuantity. Requires MinimumQuantity.