Load |
This topic describes the ShipExec Server Load Business Rule
A business rule hook that returns a ShipmentRequest object that can be used by shipping clients. This method is typically used to retreive and populate shipment information from an external source using the string value as the identifier
public ShipmentRequest Load(string value, ShipmentRequest shipmentRequest, SerializableDictionary userParams) { Logger.Log(this, LogLevel.Info, "Begin Load Method"); shipmentRequest = new ShipmentRequest() { PackageDefaults = new Package() { Shipper = "TEX", Terms = "SHIPPER", Consignee = new NameAddress() { Company = "Testco", Address1 = "123 main", City = "Anaheim", StateProvince = "CA", PostalCode = "92805", Country = "US", Residential = false }, Service = new Service() { CarrierId = 1, Code = 0, Id = 54, Symbol = "UPSAPI.UPS.GND" } } }; Logger.Log(this, LogLevel.Info, "End Load Method"); return shipmentRequest; }