/// <summary>
        ///  Sevk irsaliyesi (Despatch Advice) UBL'inin Shipment alanını oluşturma
        /// </summary>
        /// <returns>Shipment Alanı</returns>
        private ShipmentType GetShipment(int kalemSayisi)
        {
            var shipment = new ShipmentType //Gönderi Hakkındaki Bilgiler
            {
                ID = new IDType {
                    Value = ""
                },                               // Kargo numarası girilir.
                GoodsItem = new[] { new GoodsItemType {
                                        ValueAmount = new ValueAmountType {
                                            currencyID = "TRY", Value = 20000 * kalemSayisi
                                        }
                                    } },
                ShipmentStage = new[]  // Gönderinin hangi aşamada olduğu bilgisi girilir. Ayrıca taşıyıcı (plaka, şoför) gibi detay bilgiler girilir.
                {
                    new ShipmentStageType
                    {
                        TransportMeans = new TransportMeansType {
                            RoadTransport = new RoadTransportType                                   //Taşımada kullanılan vasıta hakkında bilgi girilir
                            {
                                LicensePlateID = new LicensePlateIDType {
                                    schemeID = "PLAKA", Value = "06DR4077"
                                }                                                                        // Plaka numarası girilir.
                            }
                        },

                        DriverPerson = new[] // Şoför bilgileri girilir
                        {
                            new PersonType
                            {
                                FirstName = new FirstNameType {
                                    Value = "Mehmet"
                                },
                                FamilyName = new FamilyNameType {
                                    Value = "Öztürk"
                                },
                                Title = new TitleType {
                                    Value = "Şoför"
                                },
                                NationalityID = new NationalityIDType {
                                    Value = "14922266699"
                                }
                            },
                            new PersonType
                            {
                                FirstName = new FirstNameType {
                                    Value = "Mustafa"
                                },
                                FamilyName = new FamilyNameType {
                                    Value = "Öztürk"
                                },
                                Title = new TitleType {
                                    Value = "Şoför"
                                },
                                NationalityID = new NationalityIDType {
                                    Value = "14922266600"
                                }
                            }
                        }
                    }
                },
                Delivery = new DeliveryType
                {
                    CarrierParty = new PartyType
                    {
                        PartyIdentification = new[]
                        {
                            new PartyIdentificationType
                            {
                                ID = new IDType {
                                    schemeID = "VKN", Value = "1234567801"
                                }
                            }
                        },
                        PartyName = new PartyNameType
                        {
                            Name = new NameType1 {
                                Value = "Kurum Adı"
                            }
                        },
                        PostalAddress = new AddressType
                        {
                            CitySubdivisionName = new CitySubdivisionNameType {
                                Value = "İlçe/Semt"
                            },
                            CityName = new CityNameType {
                                Value = "Şehir"
                            },
                            Country = new CountryType {
                                Name = new NameType1 {
                                    Value = "Ülke"
                                }
                            }
                        }
                    },
                    Despatch = new DespatchType
                    {
                        ActualDespatchDate = new ActualDespatchDateType {
                            Value = DateTime.Now
                        },                                                                        //Gerçekleşen gönderim tarihi girilir. (Fiili Sevk Tarihi)
                        ActualDespatchTime = new ActualDespatchTimeType {
                            Value = DateTime.Now
                        }                                                                        //Gerçekleşen gönderim zamanı girilir. (Fiili Sevk Zamanı)
                    }
                },
                TransportHandlingUnit = new[]  //Taşıma üniteleri bilgisi girilir
                {
                    new TransportHandlingUnitType
                    {
                        TransportEquipment = new[]
                        {
                            new TransportEquipmentType
                            {
                                ID = new IDType {
                                    schemeID = "DORSEPLAKA", Value = "06DR4088"
                                }
                            },
                            new TransportEquipmentType
                            {
                                ID = new IDType {
                                    schemeID = "DORSEPLAKA", Value = "06DR4099"
                                }
                            }
                        }
                    }
                }
            };

            return(shipment);
        }
        /// <summary>
        ///  Sevk irsaliyesi (Despatch Advice) UBL'inin Shipment alanını oluşturma
        /// </summary>
        /// <returns>Shipment Alanı</returns>
        public void createShipment(decimal totalAmount, string plate, string orderId, string driverName, string driverTc, DateTime consignmentDate, DateTime consignmentTime,
                                   string partyShemeType, string carrierVknTckn)

        {
            var shipment = new ShipmentType //Gönderi Hakkındaki Bilgiler
            {
                ID = new IDType {
                    Value = orderId
                },                                    // Kargo numarası girilir.
                GoodsItem = new[] { new GoodsItemType {
                                        ValueAmount = new ValueAmountType {
                                            currencyID = "TRY", Value = totalAmount
                                        }
                                    } },
                ShipmentStage = new[]  // Gönderinin hangi aşamada olduğu bilgisi girilir. Ayrıca taşıyıcı (plaka, şoför) gibi detay bilgiler girilir.
                {
                    new ShipmentStageType
                    {
                        TransportMeans = new TransportMeansType {
                            RoadTransport = new RoadTransportType                                   //Taşımada kullanılan vasıta hakkında bilgi girilir
                            {
                                LicensePlateID = new LicensePlateIDType {
                                    schemeID = "PLAKA", Value = plate
                                }                                                                   //  Plaka numarası girilir.
                            }
                        },
                        DriverPerson = new[] // Şoför bilgileri girilir
                        {
                            new PersonType
                            {
                                FirstName = new FirstNameType {
                                    Value = driverName
                                },
                                FamilyName = new FamilyNameType {
                                    Value = ""
                                },
                                Title = new TitleType {
                                    Value = "Şoför"
                                },
                                NationalityID = new NationalityIDType {
                                    Value = driverTc
                                }
                            }
                        }
                    }
                },
                Delivery = new DeliveryType
                {
                    CarrierParty = new PartyType
                    {
                        PartyIdentification = new[]
                        {
                            new PartyIdentificationType
                            {
                                ID = new IDType {
                                    schemeID = partyShemeType, Value = carrierVknTckn
                                }
                            }
                        },
                        PartyName = new PartyNameType
                        {
                            Name = new NameType1 {
                                Value = "Kurum Adı"
                            }
                        },
                        PostalAddress = new AddressType
                        {
                            CitySubdivisionName = new CitySubdivisionNameType {
                                Value = "İlçe/Semt"
                            },
                            CityName = new CityNameType {
                                Value = "Şehir"
                            },
                            Country = new CountryType {
                                Name = new NameType1 {
                                    Value = "Ülke"
                                }
                            }
                        }
                    },
                    Despatch = new DespatchType
                    {
                        ActualDespatchDate = new ActualDespatchDateType {
                            Value = consignmentDate
                        },                                                                           //Gerçekleşen gönderim tarihi girilir. (Fiili Sevk Tarihi)
                        ActualDespatchTime = new ActualDespatchTimeType {
                            Value = consignmentTime
                        }                                                                           //Gerçekleşen gönderim zamanı girilir. (Fiili Sevk Zamanı)
                    }
                },
                TransportHandlingUnit = new[]  //Taşıma üniteleri bilgisi girilir
                {
                    new TransportHandlingUnitType
                    {
                        TransportEquipment = new[]
                        {
                            new TransportEquipmentType
                            {
                                ID = new IDType {
                                    schemeID = "DORSEPLAKA", Value = "06DR4088"
                                }
                            }
                        }
                    }
                }
            };

            baseDespatchUbl.Shipment = shipment;
        }