Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

BookOnixDiscount

OfficeIMO.Workflows

Namespace
OfficeIMO.Workflows
Assembly
OfficeIMO.Workflows
Source revision
3b680b1b6fb1 with working tree changes
Implements
IEquatable<BookOnixDiscount>
Modifiers
sealed

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

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Accepted by parameters 5

Constructors

public BookOnixDiscount() #
Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)

Methods

public BookOnixDiscount <Clone>$() #
Equals 2 overloads
public override bool Equals(object? obj) #

Parameters

obj object? required

Returns

bool
public bool Equals(BookOnixDiscount? other) #

Parameters

other BookOnixDiscount? required

Returns

bool
public override int GetHashCode() #

Returns

int
public static bool op_Equality(BookOnixDiscount? left, BookOnixDiscount? right) #

Parameters

left BookOnixDiscount? required
right BookOnixDiscount? required

Returns

bool
public static bool op_Inequality(BookOnixDiscount? left, BookOnixDiscount? right) #

Parameters

left BookOnixDiscount? required
right BookOnixDiscount? required

Returns

bool
public override string ToString() #

Returns

string

Properties

public BookOnixDiscountKind Kind { get; init; } #

How the discount applies. Cumulative periods are defined by trading-partner agreement.

public decimal? Percent { get; init; } #

Optional percentage in the inclusive range 0–100.

public decimal? Amount { get; init; } #

Optional nonnegative discount per copy, in the price's currency, at most the price amount.

public int? MinimumQuantity { get; init; } #

Optional positive minimum number of copies. An omitted value leaves the quantity unspecified.

public int? MaximumQuantity { get; init; } #

Optional maximum copies, at least MinimumQuantity. Requires MinimumQuantity.