public static Shipment CloneAddressesFromInterface(IShipment source)
        {
            var result = new Shipment
            {
                DestinationAddress = SimpleAddress.CloneAddress(source.DestinationAddress),
                SourceAddress      = SimpleAddress.CloneAddress(source.SourceAddress)
            };

            return(result);
        }
Beispiel #2
0
        public static SimpleAddress CloneAddress(IAddress source)
        {
            var result = new SimpleAddress
            {
                City        = source.City,
                CountryBvin = source.CountryBvin,
                CountryData = source.CountryData,
                PostalCode  = source.PostalCode,
                RegionBvin  = source.RegionBvin,
                RegionData  = source.RegionData,
                Street      = source.Street,
                Street2     = source.Street2
            };

            return(result);
        }
 public Shipment()
 {
     SourceAddress      = new SimpleAddress();
     DestinationAddress = new SimpleAddress();
     Items = new List <IShippable>();
 }