Skip to content

Class FacturXTypeCodeMappingExtensions

Mapping methods for the FacturXDotNet.Models.CII.InvoiceTypeCode enumeration.

Assembly: FacturXDotNet.dll
csharp
public static class FacturXTypeCodeMappingExtensions

Methods

ToSpecificationIdentifier(InvoiceTypeCode)

Converts the FacturXDotNet.Models.CII.InvoiceTypeCode to its integer representation.

csharp
public static int ToSpecificationIdentifier(this InvoiceTypeCode value)
Returns

System.Int32

Parameters
TypeName
FacturXDotNet.Models.CII.InvoiceTypeCodevalue

ToSpecificationIdentifierOrNull(int)

Converts the integer to its FacturXDotNet.Models.CII.InvoiceTypeCode representation.

csharp
public static InvoiceTypeCode? ToSpecificationIdentifierOrNull(this int value)
Returns

System.Nullable<FacturXDotNet.Models.CII.InvoiceTypeCode>

Parameters
TypeName
System.Int32value

ToSpecificationIdentifier(int)

Converts the integer to its FacturXDotNet.Models.CII.InvoiceTypeCode representation.

csharp
public static InvoiceTypeCode ToSpecificationIdentifier(this int value)
Returns

FacturXDotNet.Models.CII.InvoiceTypeCode

Parameters
TypeName
System.Int32value
Exceptions

System.ArgumentOutOfRangeException
Thrown when the value is not a valid FacturXDotNet.Models.CII.InvoiceTypeCode.

ToDocumentName(InvoiceTypeCode)

Converts the FacturXDotNet.Models.CII.InvoiceTypeCode to its corresponding document name as a string.

csharp
public static string? ToDocumentName(this InvoiceTypeCode invoiceTypeCode)
Returns

System.String: The document name corresponding to the specified FacturXDotNet.Models.CII.InvoiceTypeCode, or null if no match is found.

Parameters
TypeNameDescription
FacturXDotNet.Models.CII.InvoiceTypeCodeinvoiceTypeCodeThe FacturXDotNet.Models.CII.InvoiceTypeCode to be converted to a document name.

The tools are open source and released under the MIT License, feel free to use, modify, and share.