92 lines
2.8 KiB
C#
92 lines
2.8 KiB
C#
// Copyright (c) 2024-present schick Informatik
|
|
// Description: Collection of classes for the customs XML upload app
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace bsmd.database.EasyPeasy
|
|
{
|
|
// Root: <proofRequest>
|
|
[XmlRoot("proofRequest")]
|
|
public class ProofRequest
|
|
{
|
|
public string DelegateIdentificationType { get; set; }
|
|
public string TraderIdentificationType { get; set; }
|
|
public string LRN { get; set; }
|
|
public string TraderIdentificationNumber { get; set; }
|
|
public string Country { get; set; }
|
|
|
|
public ProofInformationT2LT2LF ProofInformationT2LT2LF { get; set; }
|
|
|
|
public string DelegateIdentificationNumber { get; set; }
|
|
}
|
|
|
|
public class ProofInformationT2LT2LF
|
|
{
|
|
public string CompetentCustomsOffice { get; set; }
|
|
public string DeclarationType { get; set; }
|
|
public DateTime DeclarationDate { get; set; }
|
|
public decimal TotalGrossMassKg { get; set; }
|
|
public RequestedValidityOfTheProof RequestedValidityOfTheProof { get; set; }
|
|
public GoodsShipmentForT2LT2LF GoodsShipmentForT2LT2LF { get; set; }
|
|
public string RequestType { get; set; }
|
|
}
|
|
|
|
public class RequestedValidityOfTheProof
|
|
{
|
|
public int NumberOfDays { get; set; }
|
|
}
|
|
|
|
public class GoodsShipmentForT2LT2LF
|
|
{
|
|
public bool ContainerIndication { get; set; }
|
|
public LocationOfGoods LocationOfGoods { get; set; }
|
|
|
|
[XmlElement("GoodsItemsForT2LT2LF")]
|
|
public List<GoodsItemForT2LT2LF> GoodsItemsForT2LT2LF { get; set; } = new List<GoodsItemForT2LT2LF>();
|
|
|
|
public TransportDocuments TransportDocuments { get; set; }
|
|
}
|
|
|
|
public class LocationOfGoods
|
|
{
|
|
public string TypeOfLocation { get; set; }
|
|
public string QualifierOfIdentification { get; set; }
|
|
public string UNLocode { get; set; }
|
|
}
|
|
|
|
public class GoodsItemForT2LT2LF
|
|
{
|
|
public Commodity Commodity { get; set; } = new Commodity();
|
|
public int GoodsItemNumber { get; set; }
|
|
public string DescriptionOfGoods { get; set; }
|
|
public GoodsMeasure GoodsMeasure { get; set; } = new GoodsMeasure();
|
|
public Packaging Packaging { get; set; } = new Packaging();
|
|
}
|
|
|
|
public class Commodity
|
|
{
|
|
public string HarmonizedSystemSubHeadingCode { get; set; }
|
|
}
|
|
|
|
public class GoodsMeasure
|
|
{
|
|
public decimal GrossMass { get; set; }
|
|
public decimal NetMass { get; set; }
|
|
}
|
|
|
|
public class Packaging
|
|
{
|
|
public string ShippingMarks { get; set; }
|
|
public int NumberOfPackages { get; set; }
|
|
public string TypeOfPackages { get; set; }
|
|
}
|
|
|
|
public class TransportDocuments
|
|
{
|
|
public string Type { get; set; }
|
|
public string ReferenceNumber { get; set; }
|
|
}
|
|
}
|