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

            return(result);
        }
Esempio n. 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);
        }
Esempio n. 3
0
 public Shipment()
 {
     SourceAddress      = new SimpleAddress();
     DestinationAddress = new SimpleAddress();
     Items = new List <IShippable>();
 }