private void AddShipper(UPSRateService.ShipmentType shipment) { var shipper = new UPSRateService.ShipperType(); shipper.ShipperNumber = ShipperNumber; AddShipperAddress(shipper); shipment.Shipper = shipper; }
private void AddShipperAddress(UPSRateService.ShipperType shipper) { var shipperAddress = new UPSRateService.AddressType(); shipperAddress.AddressLine = new String[] { ShipperAddressLine }; shipperAddress.City = ShipperCity; shipperAddress.PostalCode = ShipperPostalCode; shipperAddress.StateProvinceCode = ShipperStateProvinceCode; shipperAddress.CountryCode = ShipperCountryCode; shipper.Address = shipperAddress; }