# InvoiceReadResult

Parsed editable invoice together with source identity and all unmapped business data.

Class 

`OfficeIMO.Invoicing`

**Namespace**

`OfficeIMO.Invoicing`

**Assembly**

`OfficeIMO.Invoicing`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[InvoiceReadResult.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Xml/InvoiceReadResult.cs#L18)

**Modifiers**

sealed

Parsed editable invoice together with source identity and all unmapped business data.

## Inheritance

- object
- InvoiceReadResult

## Usage

Explore 2 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 1

- Method [InvoiceParser.Read](/api/invoicing/officeimo-invoicing-invoiceparser/#method-read-byte)

### Accepted by parameters 1

- Method [InvoiceModelValidator.ValidateSource](/api/invoicing/officeimo-invoicing-invoicemodelvalidator/#method-validatesource-officeimo-invoicing-invoicereadresult) parameter `source`

Filter members 

Show inherited

## Methods

`public byte[] GetOriginalBytes()` [#](#method-getoriginalbytes)

[InvoiceReadResult.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Xml/InvoiceReadResult.cs#L18)

Returns the original bytes unchanged, regardless of subsequent model edits.

Returns

`byte[]`

`public byte[] Write(InvoiceXmlOptions options, bool allowUnmappedDataLoss = false)` [#](#method-write-officeimo-invoicing-invoicexmloptions-boolean)

[InvoiceReadResult.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Xml/InvoiceReadResult.cs#L21)

Writes the edited model. By default, any unmapped source data blocks rewriting.

Parameters

**options OfficeIMO.Invoicing.InvoiceXmlOptions required**

**allowUnmappedDataLoss bool = false optional**

Returns

`byte[]`

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

## Properties

`public Invoice Invoice { get; }` [#](#property-invoice)

[InvoiceReadResult.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Xml/InvoiceReadResult.cs#L10)

Editable semantic model. Declared source amounts remain available for comparison.

`public InvoiceProfileDeclaration Declaration { get; }` [#](#property-declaration)

[InvoiceReadResult.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Xml/InvoiceReadResult.cs#L12)

Source syntax and guideline declaration.

`public IReadOnlyList<InvoiceDiagnostic> UnmappedData { get; }` [#](#property-unmappeddata)

[InvoiceReadResult.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Xml/InvoiceReadResult.cs#L14)

Elements, attributes or semantic variations that the model could not preserve.

`public bool HasCompleteMapping { get; }` [#](#property-hascompletemapping)

[InvoiceReadResult.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Xml/InvoiceReadResult.cs#L16)

True when the supported model can represent all observed source business data.

<!-- PowerForge markdown artifact sha256:22645D89912EAAD0D44964AFCF12373AE0BBB4FEDA05406EBADF3B6B512A99D5 -->
