private void AddShipperAddress(ShipperType shipper) { var shipperAddress = new ShipAddressType(); shipperAddress.AddressLine = new String[] { ShipperAddressLine }; shipperAddress.City = ShipperCity; shipperAddress.PostalCode = ShipperPostalCode; shipperAddress.StateProvinceCode = ShipperStateProvinceCode; shipperAddress.CountryCode = ShipperCountryCode; shipper.Address = shipperAddress; }
private void AddShipFromAddress(ShipmentType shipment) { var shipFrom = new ShipFromType(); var shipFromAddress = new ShipAddressType(); shipFromAddress.AddressLine = new String[] { ShipFromAddressLine }; shipFromAddress.City = ShipFromCity; shipFromAddress.PostalCode = ShipFromPostalCode; shipFromAddress.StateProvinceCode = ShipFromStateProvinceCode; shipFromAddress.CountryCode = ShipFromCountryCode; shipFrom.Address = shipFromAddress; shipFrom.Name = ShipFromName; shipment.ShipFrom = shipFrom; }