/// <summary> /// Returns true if ShippingNotificationValidator instances are equal /// </summary> /// <param name="input">Instance of ShippingNotificationValidator to be compared</param> /// <returns>Boolean</returns> public bool Equals(ShippingNotificationValidator input) { if (input == null) { return(false); } return(base.Equals(input)); }
public ShippingNotificationOrderDto(ShippingNotification shippingNotification) { var body = shippingNotification.Body; var summary = body.OrderSummary; var orderDetails = summary.OrderDetail; var orerItems = new ShippingNotificationValidator(); foreach (var item in orderDetails) { var newItem = new ShippingNotificationLineItemDto(item.Carrier, item.Description, item.id, item.QuantityOrdered, item.QuantityShipped, Int32.Parse(item.SAPLineOrderNo), item.ShipDate, item.TrackingNO); orerItems.Add(newItem); } this.CcLast4 = summary.CCLast4; this.CcType = summary.CCType; this.CustomerPO = summary.CustomerPO; this.SapON = summary.SAPON; this.ShipToAttn = summary.ShipToAttn; this.WebON = summary.WebON; this.OrderItems = orerItems; }
/// <summary> /// Initializes a new instance of the <see cref="ShippingNotificationOrderDto" /> class. /// </summary> /// <param name="CcLast4">CcLast4.</param> /// <param name="CcType">CcType.</param> /// <param name="CustomerPO">CustomerPO.</param> /// <param name="SapON">SapON.</param> /// <param name="ShipToAttn">ShipToAttn.</param> /// <param name="WebON">WebON.</param> /// <param name="OrderItems">OrderItems.</param> public ShippingNotificationOrderDto(string CcLast4 = default(string), string CcType = default(string), string CustomerPO = default(string), string SapON = default(string), string ShipToAttn = default(string), string WebON = default(string), ShippingNotificationValidator OrderItems = default(ShippingNotificationValidator)) { this.CcLast4 = CcLast4; this.CcType = CcType; this.CustomerPO = CustomerPO; this.SapON = SapON; this.ShipToAttn = ShipToAttn; this.WebON = WebON; this.OrderItems = OrderItems; }