DataDto class

Bill data.

Inheritance

Constructors

DataDto({String? currency, required double fullAmountInclVat, List<PaymentTypeInformationDto>? paymentTypes, List<DataVatAmountDto>? vatAmounts, List<LineBaseDto>? lines, int? positionCount, List<BillDiscountDto>? discounts, List<WarrantyDto>? warranties, double? fullAmountInclVatBeforeDiscounts, double? tip, String? equivalentValueName, String? fullEquivalentValue})
DataDto.fromJson(Map<String, dynamic> json)
factory

Properties

currency String?
This field defines the currency to be used for all document data if no other currency is explicitly specified. Must be a valid ISO 4217 currency code (alphabetical code).
read / write
discounts List<BillDiscountDto>?
List of discounts applied to this bill. Can be referenced in lines via the 'Id'-property.
read / write
equivalentValueName String?
Equivalent value name, which is optionally displayed.
read / write
fullAmountInclVat double
The total gross amount of the receipt. A precision of 2 decimal places is used.
read / write
fullAmountInclVatBeforeDiscounts double?
The total gross total amount of this line. A precision of up to 5 decimal places is used.
read / write
fullEquivalentValue String?
Equivalent value of the total amount, which is optionally displayed.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
lines List<LineBaseDto>?
List of individual line items of the services / items provided.
read / write
paymentTypes List<PaymentTypeInformationDto>?
List of all payment methods used to pay this receipt.
read / write
positionCount int?
The count of positions in the bill.
read / write
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
read-onlyinherited
tip double?
The amount of the tip. A precision of up to 5 decimal places is used.
read / write
vatAmounts List<DataVatAmountDto>?
Total amounts per tax rate - this corresponds to the amounts just as they are shown on the printed receipt. Must be unique by the percentage.
read / write
warranties List<WarrantyDto>?
List of Anybill.AppApi.Models.DTO.V3.Warranty.WarrantyDto objects that are not tied to a specific line.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited