34 lines
702 B
C#
34 lines
702 B
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BS.Shared.DataContracts.Invoicing.XRechnung
|
|
{
|
|
public class XRechnungRequest : OwnSoftRequest
|
|
{
|
|
[DataMember] public string XRechnung { get; set; }
|
|
[DataMember] public string Url { get; set; }
|
|
|
|
public void SetXRechnung(object obj)
|
|
{
|
|
XRechnung = JsonConvert.SerializeObject(obj);
|
|
}
|
|
|
|
public Dictionary<string, string> ToDict()
|
|
{
|
|
var dict = new Dictionary<string, string>();
|
|
|
|
dict.Add("json", XRechnung);
|
|
|
|
if (!string.IsNullOrEmpty(Url))
|
|
dict.Add("pdf", Url);
|
|
|
|
return dict;
|
|
}
|
|
}
|
|
}
|