Show / Hide Table of Contents

# Class BillDiscount

Discounts applied to the bill.

##### Inheritance

System.Object
BillDiscount

###### Namespace: anybill.POS.Client.Models.Bill.Data.Extension.Discount

###### Assembly: anybill.POS.Client.Abstractions.dll

##### Syntax

    public class BillDiscount

### Properties

#### AdditionalText

Additional text to describe the discount. E.g. 'Only applies to organic bananas of type x'.

##### Declaration

    public string AdditionalText { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### Barcode

Barcode of the discount.

##### Declaration

    public string Barcode { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### BarcodeType

Type of the 'Barcode'. Must be set if 'Barcode' is set.

##### Declaration

    public BillDiscountBarcodeType? BarcodeType { get; set; }

##### Property Value

Type | Description
--- | ---
System.Nullable<BillDiscountBarcodeType> |

#### FullAmountInclVat

The total gross amount of the discount. A precision of 2 decimal places is used.

##### Declaration

    public decimal FullAmountInclVat { get; set; }

##### Property Value

Type | Description
--- | ---
System.Decimal |

#### Id

Id of the bill discount. Used to reference this discount.

##### Declaration

    public string Id { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### Name

Name of the bill discount. E.g. '20 % off bananas'.

##### Declaration

    public string Name { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### Type

Type of the discount. E.g. 'None' for a free service or 'MonetaryReplacement' if the item is reduced from 3 € to 2 €.

##### Declaration

    public BillDiscountType Type { get; set; }

##### Property Value

Type | Description
--- | ---
BillDiscountType |

#### Value

Value of the discount. E.g. '20' for 20 % off or '5' for a 5 € discount. A precision of 2 decimal places is used.

Value is required for every Type except BillDiscountTypeDto "None".

##### Declaration

    public decimal? Value { get; set; }

##### Property Value

Type | Description
--- | ---
System.Nullable<System.Decimal> |

#### VatAmounts

The total reduced amounts for this discount divided according to tax rates. Different tax rates may be applied, e.g. if a compilation of products (menu) from meals and drinks and is sold "outside the home". Must be unique by the percentage.

##### Declaration

    public List<BillDiscountVatAmount> VatAmounts { get; set; }

##### Property Value

Type | Description
--- | ---
System.Collections.Generic.List<BillDiscountVatAmount> |