public Association(short id, string code, string name, Country country, Language language, IEnumerable<string> address) : base(id, name) { this.Code = code; this.Country = country; this.Language = language; this.Address = new List<string>(address); }
public CXFFileBuilder BeginFile(Country senderCountry, string senderID) { if (currentSegments != null) throw new InvalidOperationException("Already building a file."); currentSegments = new List<PayloadSegment>(); this.senderCountry = Contract.Required(senderCountry, "senderCountry"); this.senderID = senderID ?? senderCountry.Code; return this; }
private static PayloadSegment ConvertRecord(CIFRecord record, CIFFile file, Country country, string id) { return segmentBuilder .BeginSegment() .AddCarnetNumber(record.CarnetNumber) .AddUpdateFlag("N") .AddProcessingDate(record.CreationDate) .AddCIFFilename(file.Name) .AddDateInCustomsLedger(record.DateInLedger) .AddReferenceInCustomsLedger(record.ReferenceInLedger) .AddCustomsOfficeReference(record.CustomsOfficeReference) .AddDischargeDate(record.DateOfDischarge) .AddDischargeReference(record.DischargeReference) .AddDischargeType(record.DischargeType) .AddVPN(record.VoletPageNumber) .AddDischargeStatus(record.DischargeStatus) .AddNumberOfPackages(record.NumberOfPackages) .AddComment(record.Comments) .AddInvoicedAssociationId(record.InvoicedAssociation.ID) .AddCountryCode(record.CountryISO) .AddSeriesType(record.SeriesType) .AddCarnetIndex(record.CarnetIndex) .EndSegment(country, id); }
public EmptyHeaderSegment(Country senderCountry) : base(senderCountry) { }
public EmptyHeaderSegment(Country senderCountry, string senderIdentification) : base(senderCountry, senderIdentification) { }
public FooterSegment(Country senderCountry) : base(senderCountry) { }
public FooterSegment(Country senderCountry, string senderIdentification) : base(senderCountry, senderIdentification) { }
protected BaseSegment(Country senderCountry) : this(senderCountry, senderCountry.Code) { }
protected BaseSegment(Country senderCountry, string senderIdentification) { this.SenderCountry = Contract.Required(senderCountry, "senderCountry"); this.SenderIdentification = Contract.Required(senderIdentification, "senderIdentification"); }