# BookOnixDiscount

Explicit business-to-business discount on the containing price. At least Percent or Amount is required.

Class 

`OfficeIMO.Workflows`

**Namespace**

`OfficeIMO.Workflows`

**Assembly**

`OfficeIMO.Workflows`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[BookOnixDiscount.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixDiscount.cs#L21)

**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

- Method [BookOnixDiscount.<Clone>$](/api/workflows/officeimo-workflows-bookonixdiscount/#method-clone)
- Property [BookOnixPrice.Discounts](/api/workflows/officeimo-workflows-bookonixprice/#property-discounts)

### Accepted by parameters 5

- Method [BookOnixDiscount.Equals](/api/workflows/officeimo-workflows-bookonixdiscount/#method-equals-bookonixdiscount) parameter `other`
- Method [BookOnixDiscount.op_Equality](/api/workflows/officeimo-workflows-bookonixdiscount/#method-op-equality-bookonixdiscount-bookonixdiscount) parameter `left`
- Method [BookOnixDiscount.op_Equality](/api/workflows/officeimo-workflows-bookonixdiscount/#method-op-equality-bookonixdiscount-bookonixdiscount) parameter `right`
- Method [BookOnixDiscount.op_Inequality](/api/workflows/officeimo-workflows-bookonixdiscount/#method-op-inequality-bookonixdiscount-bookonixdiscount) parameter `left`
- Method [BookOnixDiscount.op_Inequality](/api/workflows/officeimo-workflows-bookonixdiscount/#method-op-inequality-bookonixdiscount-bookonixdiscount) parameter `right`

Filter members 

Show inherited

## Constructors

`public BookOnixDiscount()` [#](#constructor-ctor)

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

## Methods

`public BookOnixDiscount <Clone>$()` [#](#method-clone)

Returns

`BookOnixDiscount`

Equals 2 overloads

`public override bool Equals(object? obj)` [#](#method-equals-object)

Parameters

**obj object? required**

Returns

`bool`

`public bool Equals(BookOnixDiscount? other)` [#](#method-equals-bookonixdiscount)

Parameters

**other BookOnixDiscount? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Returns

`int`

`public static bool op_Equality(BookOnixDiscount? left, BookOnixDiscount? right)` [#](#method-op-equality-bookonixdiscount-bookonixdiscount)

Parameters

**left BookOnixDiscount? required**

**right BookOnixDiscount? required**

Returns

`bool`

`public static bool op_Inequality(BookOnixDiscount? left, BookOnixDiscount? right)` [#](#method-op-inequality-bookonixdiscount-bookonixdiscount)

Parameters

**left BookOnixDiscount? required**

**right BookOnixDiscount? required**

Returns

`bool`

`public override string ToString()` [#](#method-tostring)

Returns

`string`

## Inherited Methods

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

## Properties

`public BookOnixDiscountKind Kind { get; init; }` [#](#property-kind)

[BookOnixDiscount.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixDiscount.cs#L21)

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

`public decimal? Percent { get; init; }` [#](#property-percent)

[BookOnixDiscount.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixDiscount.cs#L23)

Optional percentage in the inclusive range 0–100.

`public decimal? Amount { get; init; }` [#](#property-amount)

[BookOnixDiscount.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixDiscount.cs#L25)

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

`public int? MinimumQuantity { get; init; }` [#](#property-minimumquantity)

[BookOnixDiscount.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixDiscount.cs#L27)

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

`public int? MaximumQuantity { get; init; }` [#](#property-maximumquantity)

[BookOnixDiscount.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixDiscount.cs#L29)

Optional maximum copies, at least MinimumQuantity. Requires MinimumQuantity.

<!-- PowerForge markdown artifact sha256:4D28D3A8F2B9B25ED98E19BCD99FAF8F5DDAC786215E118DEB716BE5E8AD1A58 -->
