SendClassifications.Send (Dictionary<StringList<classifications>>, Boolean, Boolean) Method
With this method, you can send multiple Expenses or Income Classifications to myDATA at once.
Optional ByVal GreekErrors As Boolean = False , _ |
Optional ByVal perInvoice As Boolean = False _ |
This language is not supported or no code example is available.
bool GreekErrors = False, |
This language is not supported or no code example is available.
Parameters
-
classif
-
Dictionary<string, List<classifications>>
A dictionary of list of classifications
-
GreekErrors
-
bool
Determines if the error will be returned in Greek or not.
-
perInvoice
-
bool
Determines if the classification will be sent for the whole invoice, or line by line.
true is for sending classifications whole invoice
false for sending classifications line by line
Return Value
SortedDictionary<
string,
object>
Classification MARK or Validation Errors
var cls = new SendClassifications( "AADEUserID" , "OcpApimSubscriptionKey" , "ExecuteEntityVatNumber" , "Arbitrans User" , "Arbitrans Key" , false ); |
var classif = new Dictionary< string , List<SendClassifications.classifications>>(); |
for ( int i = 1; i <= 2; i++) |
var clsList = new List<classifications>(); |
classifications clsLine = cls.newClassification; |
for ( int j = 1; j <= 3; j++) |
clsLine.classificationType = "" ; |
clsLine.classificationCategory = "category2_95" ; |
clsLine.VatCategory = "VAT_361" ; |
classif.Add( "invoiceMark" , clsList); |
SortedDictionary< string , object > result = cls.Send(classif); |
This language is not supported or no code example is available.
Dim cls As SendClassifications = New SendClassifications( "AADEUserID" , "OcpApimSubscriptionKey" , "ExecuteEntityVatNumber" , "Arbitrans User" , "Arbitrans Key" , False ) |
Dim classif As New Dictionary(Of String , List(Of SendClassifications.classifications)) |
Dim clsList As New List(Of classifications) |
Dim clsLine As classifications = cls.newClassification |
clsLine.classificationType = "" |
clsLine.classificationCategory = "category2_95" |
clsLine.VatCategory = "VAT_361" |
classif.Add( "invoiceMark" , clsList) |
Dim result As SortedDictionary(Of String , Object ) = cls.Send(classif) |
This language is not supported or no code example is available.
.NET Framework
Supported in: 3.5 or newer