Class XRechnungConversionClient
Inheritance
System.Object
XRechnungConversionClient
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Dangl.AVACloud.Client.dll
Syntax
public class XRechnungConversionClient
Constructors
|
Improve this Doc
View Source
XRechnungConversionClient(String, HttpClient)
Declaration
public XRechnungConversionClient(string baseUrl, HttpClient httpClient)
Parameters
Type |
Name |
Description |
System.String |
baseUrl |
|
System.Net.Http.HttpClient |
httpClient |
|
Properties
|
Improve this Doc
View Source
BaseUrl
Declaration
public string BaseUrl { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
JsonSerializerSettings
Declaration
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Type |
Description |
Newtonsoft.Json.JsonSerializerSettings |
|
|
Improve this Doc
View Source
ReadResponseAsString
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
ConvertAvaToXRechnungAsync(AvaProjectWrapper)
This will convert an AVA wrapper object to an XRechnung file
Declaration
public virtual Task<FileResponse> ConvertAvaToXRechnungAsync(AvaProjectWrapper avaWrapper)
Parameters
Returns
Exceptions
|
Improve this Doc
View Source
ConvertAvaToXRechnungAsync(AvaProjectWrapper, CancellationToken)
This will convert an AVA wrapper object to an XRechnung file
Declaration
public virtual async Task<FileResponse> ConvertAvaToXRechnungAsync(AvaProjectWrapper avaWrapper, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
AvaProjectWrapper |
avaWrapper |
|
System.Threading.CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Exceptions
|
Improve this Doc
View Source
ConvertInvoiceToXRechnungAsync(Invoice)
This will convert an Invoice object to an XRechnung file
Declaration
public virtual Task<FileResponse> ConvertInvoiceToXRechnungAsync(Invoice invoice)
Parameters
Type |
Name |
Description |
Invoice |
invoice |
|
Returns
Exceptions
|
Improve this Doc
View Source
ConvertInvoiceToXRechnungAsync(Invoice, CancellationToken)
This will convert an Invoice object to an XRechnung file
Declaration
public virtual async Task<FileResponse> ConvertInvoiceToXRechnungAsync(Invoice invoice, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
Invoice |
invoice |
|
System.Threading.CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Exceptions
|
Improve this Doc
View Source
ConvertXRechnungToAvaAsync(FileParameter)
This will read an XRechnung file and convert it to an AVA wrapper object
Declaration
public virtual Task<AvaProjectWrapper> ConvertXRechnungToAvaAsync(FileParameter xrechnungFile)
Parameters
Returns
Exceptions
|
Improve this Doc
View Source
ConvertXRechnungToAvaAsync(FileParameter, CancellationToken)
This will read an XRechnung file and convert it to an AVA wrapper object
Declaration
public virtual async Task<AvaProjectWrapper> ConvertXRechnungToAvaAsync(FileParameter xrechnungFile, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
FileParameter |
xrechnungFile |
|
System.Threading.CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Exceptions
|
Improve this Doc
View Source
ConvertXRechnungToInvoiceAsync(FileParameter)
This will read an XRechnung file and convert it to an Invoice object
Declaration
public virtual Task<Invoice> ConvertXRechnungToInvoiceAsync(FileParameter xrechnungFile)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<Invoice> |
|
Exceptions
|
Improve this Doc
View Source
ConvertXRechnungToInvoiceAsync(FileParameter, CancellationToken)
This will read an XRechnung file and convert it to an Invoice object
Declaration
public virtual async Task<Invoice> ConvertXRechnungToInvoiceAsync(FileParameter xrechnungFile, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
FileParameter |
xrechnungFile |
|
System.Threading.CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<Invoice> |
|
Exceptions
|
Improve this Doc
View Source
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>, CancellationToken)
Declaration
protected virtual async Task<XRechnungConversionClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Net.Http.HttpResponseMessage |
response |
|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Collections.Generic.IEnumerable<System.String>> |
headers |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type Parameters