Skip to content

Commit f629433

Browse files
authored
Merge pull request #374 from nafberger/fix-carton-content-request-feed
fix carton centect feed
2 parents 5cf03da + 205a85a commit f629433

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Source/FikaAmazonAPI/ConstructFeed/Messages/CartonContentsRequest.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public int NumCartons
1717
[Obsolete("Only used for xml serialization", error: true)]
1818
set { throw new NotSupportedException(); }
1919
}
20-
2120
[XmlElement(ElementName = "Carton")]
2221
public List<Carton> Carton { get; set; } = new List<Carton>();
2322
}
@@ -40,11 +39,18 @@ public class CartonItem
4039
public int QuantityShipped { get; set; }
4140
[XmlElement(ElementName = "QuantityInCase")]
4241
public int QuantityInCase { get; set; }
43-
[XmlElement(ElementName = "ExpirationDate")]
42+
43+
[XmlIgnore]
4444
public Nullable<DateTime> ExpirationDate { get; set; }
4545

46+
[XmlElement(ElementName = "ExpirationDate")]
47+
public string ExpirationDateFormatted
48+
{
49+
get { return this.ExpirationDate.Value.ToString("yyyy-MM-dd"); }
50+
set { this.ExpirationDate = DateTime.Parse(value); }
51+
}
52+
4653
[XmlIgnore]
4754
public bool ExpirationDateSpecified { get { return ExpirationDate != null; } }
48-
4955
}
5056
}

0 commit comments

Comments
 (0)