private static void IntrashipSetItemSetReceiver(StreamWriter writer, Int32 index, Mailing mailing)
        {
            Int32  recepientLength = mailing.RecepientName.Length > 30 ? 30 : mailing.RecepientName.Length;
            String recepientName   = mailing.RecepientName.Substring(0, recepientLength);
            String streetNumber    = CsvExporter.IntrashipGetStreetNumber(mailing.RecepientStreet1);

            streetNumber = String.IsNullOrWhiteSpace(streetNumber) ? "_" : streetNumber;

            writer.Write(index + "|");                                                                                                       //1
            writer.Write("DPEE-RECEIVER" + "|");                                                                                             //2
            writer.Write(recepientName + "|");                                                                                               //3
            writer.Write("|");                                                                                                               //4
            writer.Write("|");                                                                                                               //5
            writer.Write("|");                                                                                                               //6
            writer.Write(recepientName + "|");                                                                                               //7
            writer.Write((mailing.IsDeliveredToPackstation ? "" : CsvExporter.IntrashipGetStreetNameOnly(mailing.RecepientStreet1)) + "|");  //8
            writer.Write((mailing.IsDeliveredToPackstation ? "" : streetNumber + "|"));                                                      //9
            writer.Write((mailing.IsDeliveredToPackstation ? "" : mailing.RecepientStreet2) + "|");                                          //10
            writer.Write(mailing.RecepientPostcode + "|");                                                                                   //11
            writer.Write(mailing.RecepientCity + "|");                                                                                       //12
            writer.Write(mailing.RecepientCountry + "|");                                                                                    //13
            writer.Write(mailing.Sales.First().Invoice.InvoiceNumber + "|");                                                                 //14
            writer.Write(mailing.RecepientEmail + "|");                                                                                      //15
            writer.Write(mailing.RecepientPhone + "|");                                                                                      //16
            writer.Write(mailing.Sales.First().Invoice.UstIdNr + "|");                                                                       //17
            writer.Write("|");                                                                                                               //18
            writer.Write("|");                                                                                                               //19
            writer.Write("|");                                                                                                               //20
            writer.Write("|");                                                                                                               //21
            writer.Write("|");                                                                                                               //22
            writer.Write("|");                                                                                                               //23
            writer.Write("|");                                                                                                               //24
            writer.Write("|");                                                                                                               //25
            writer.Write("|");                                                                                                               //26
            writer.Write("|");                                                                                                               //27
            writer.Write("|");                                                                                                               //28
            writer.Write("|");                                                                                                               //29
            writer.Write("|");                                                                                                               //30
            writer.Write((mailing.IsDeliveredToPackstation ? "1" : "0") + "|");                                                              //31
            writer.Write((mailing.IsDeliveredToPackstation ? mailing.GetPackstationUser() : "") + "|");                                      //32
            writer.Write((mailing.IsDeliveredToPackstation ? mailing.GetPackstationNo() : "") + "|");                                        //33
            writer.Write(Environment.NewLine);
        }
        private static void IntrashipSetShipment(StreamWriter writer, Int32 index, MailingCostCountry country, Mailing mailing)
        {
            String contactName   = mailing.ProtocoleNumbers.Replace(Environment.NewLine, " - ");
            Int32  contactLength = contactName.Length > 30 ? 30 : contactName.Length;

            contactName = contactName.Substring(0, contactLength);

            writer.Write(index + "|");                                                 //1
            writer.Write("DPEE-SHIPMENT" + "|");                                       //2
            writer.Write(country.DhlProductCode + "|");                                //3
            writer.Write(DateTime.Now.ToString("yyyyMMdd") + "|");                     //4
            writer.Write("|");                                                         //5
            writer.Write("|");                                                         //6
            writer.Write("|");                                                         //7
            writer.Write("|");                                                         //8
            writer.Write(contactName + "|");                                           //9
            writer.Write("|");                                                         //10
            writer.Write("|");                                                         //11
            writer.Write("|");                                                         //12
            writer.Write("|");                                                         //13
            writer.Write("|");                                                         //14
            writer.Write("|");                                                         //15
            writer.Write("|");                                                         //16
            writer.Write("|");                                                         //17
            writer.Write("|");                                                         //18
            writer.Write("|");                                                         //19
            writer.Write("|");                                                         //20
            writer.Write("|");                                                         //21
            writer.Write("|");                                                         //22
            writer.Write("|");                                                         //23
            writer.Write("|");                                                         //24
            writer.Write("|");                                                         //25
            writer.Write("|");                                                         //26
            writer.Write("|");                                                         //27
            writer.Write("|");                                                         //28
            writer.Write("|");                                                         //29
            writer.Write("|");                                                         //30
            writer.Write("|");                                                         //31
            writer.Write("|");                                                         //32
            writer.Write("|");                                                         //33
            writer.Write("01" + "|");                                                  //34
            writer.Write("|");                                                         //35
            writer.Write("|");                                                         //36
            writer.Write("|");                                                         //37
            writer.Write("|");                                                         //38
            writer.Write("|");                                                         //39
            writer.Write("|");                                                         //40
            writer.Write("|");                                                         //41
            writer.Write("|");                                                         //42
            writer.Write("|");                                                         //43
            writer.Write("|");                                                         //44
            writer.Write("|");                                                         //45
            writer.Write("|");                                                         //46
            writer.Write("|");                                                         //47
            writer.Write("|");                                                         //48
            writer.Write("|");                                                         //49
            writer.Write("|");                                                         //50
            writer.Write("|");                                                         //51
            writer.Write("|");                                                         //52
            writer.Write("|");                                                         //53
            writer.Write("|");                                                         //54
            writer.Write("|");                                                         //55
            writer.Write("|");                                                         //56
            writer.Write("|");                                                         //57
            writer.Write("|");                                                         //58
            writer.Write("|");                                                         //59
            writer.Write("|");                                                         //60
            writer.Write("|");                                                         //61
            writer.Write("|");                                                         //62
            writer.Write("|");                                                         //63
            writer.Write("|");                                                         //64
            writer.Write("|");                                                         //65
            writer.Write("|");                                                         //66
            writer.Write("|");                                                         //67
            writer.Write("|");                                                         //68
            writer.Write("|");                                                         //69
            writer.Write("|");                                                         //70
            writer.Write("|");                                                         //71
            writer.Write("|");                                                         //72
            writer.Write("|");                                                         //73
            writer.Write("|");                                                         //74
            writer.Write("|");                                                         //75
            writer.Write("|");                                                         //76
            writer.Write("|");                                                         //77
            writer.Write("|");                                                         //78
            writer.Write("|");                                                         //79
            writer.Write("|");                                                         //80
            writer.Write("|");                                                         //81
            writer.Write("|");                                                         //82
            writer.Write("|");                                                         //83
            writer.Write("|");                                                         //84
            writer.Write("|");                                                         //85
            writer.Write("|");                                                         //86
            writer.Write("|");                                                         //87
            writer.Write("|");                                                         //88
            writer.Write("|");                                                         //89
            writer.Write("|");                                                         //90
            writer.Write("|");                                                         //91
            writer.Write("|");                                                         //92
            writer.Write("|");                                                         //93
            writer.Write(Environment.NewLine);
        }
 private static void IntrashipDhlSetNotification(StreamWriter writer, Int32 index, Mailing mailing)
 {
     writer.Write(index + "|");                                              //1
     writer.Write("DPEE-NOTIFICATION" + "|");                                //2
     writer.Write(mailing.RecepientName + "|");                              //3
     writer.Write(mailing.RecepientEmail + "|");                             //4
     writer.Write("|");                                                      //5
     writer.Write("|");                                                      //6
     writer.Write("|");                                                      //7
     writer.Write(Environment.NewLine);
 }