Class FacturXTypeCodeMappingExtensions
Mapping methods for the FacturXDotNet.Models.CII.InvoiceTypeCode enumeration.
Assembly: FacturXDotNet.dll
public static class FacturXTypeCodeMappingExtensions
Methods
ToSpecificationIdentifier(InvoiceTypeCode)
Converts the FacturXDotNet.Models.CII.InvoiceTypeCode to its integer representation.
public static int ToSpecificationIdentifier(this InvoiceTypeCode value)
Returns
System.Int32
Parameters
Type | Name |
---|---|
FacturXDotNet.Models.CII.InvoiceTypeCode | value |
ToSpecificationIdentifierOrNull(int)
Converts the integer to its FacturXDotNet.Models.CII.InvoiceTypeCode representation.
public static InvoiceTypeCode? ToSpecificationIdentifierOrNull(this int value)
Returns
System.Nullable<FacturXDotNet.Models.CII.InvoiceTypeCode>
Parameters
Type | Name |
---|---|
System.Int32 | value |
ToSpecificationIdentifier(int)
Converts the integer to its FacturXDotNet.Models.CII.InvoiceTypeCode representation.
public static InvoiceTypeCode ToSpecificationIdentifier(this int value)
Returns
FacturXDotNet.Models.CII.InvoiceTypeCode
Parameters
Type | Name |
---|---|
System.Int32 | value |
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.
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
Type | Name | Description |
---|---|---|
FacturXDotNet.Models.CII.InvoiceTypeCode | invoiceTypeCode | The FacturXDotNet.Models.CII.InvoiceTypeCode to be converted to a document name. |