Interface IVatIdRepository
An interface for VatIdRepository.
Namespace: Simplic.Contact
Assembly: Simplic.Contact.dll
Syntax
public interface IVatIdRepository
Methods
| Improve this Doc View SourceCheckVatIdEuAsync(String)
Check the customer vat-id for all vat-ids from the eu.
Declaration
Task<(bool valid, string name, string address)> CheckVatIdEuAsync(string vatId)
Parameters
Type | Name | Description |
---|---|---|
System.String | vatId | The vat-id to check. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.String, System.String>> | The result from the check, the name and the address from the customer. |
DataboxEntry()
Open the selected document from the databox.
Declaration
int DataboxEntry()
Returns
Type | Description |
---|---|
System.Int32 | A returncode. |
DataboxGet()
Open the databbox and show all documents in the selected period.
Declaration
int DataboxGet()
Returns
Type | Description |
---|---|
System.Int32 | A returncode. |
RequestVatId(String)
Ask the service and check the vat-id of a customer.
Declaration
(int rc, string msg, string name, string[] adrs) RequestVatId(string vatRId)
Parameters
Type | Name | Description |
---|---|---|
System.String | vatRId | The vat-id to check. |
Returns
Type | Description |
---|---|
System.ValueTuple<System.Int32, System.String, System.String, System.String[]> | A returncode, a message, the customer name and customer adress only when true. |
SessionLogin()
Open a new session for finanzonline.
Declaration
(string session, int rc, string msg) SessionLogin()
Returns
Type | Description |
---|---|
System.ValueTuple<System.String, System.Int32, System.String> | A session-id, a returncode and a message. |
SessionLogout()
Close the open session for finanzonline.
Declaration
(int rc, string msg) SessionLogout()
Returns
Type | Description |
---|---|
System.ValueTuple<System.Int32, System.String> | A returncode and a message. |