File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Source/FikaAmazonAPI/ConstructFeed/Messages Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ public int NumCartons
17
17
[ Obsolete ( "Only used for xml serialization" , error : true ) ]
18
18
set { throw new NotSupportedException ( ) ; }
19
19
}
20
-
21
20
[ XmlElement ( ElementName = "Carton" ) ]
22
21
public List < Carton > Carton { get ; set ; } = new List < Carton > ( ) ;
23
22
}
@@ -40,11 +39,18 @@ public class CartonItem
40
39
public int QuantityShipped { get ; set ; }
41
40
[ XmlElement ( ElementName = "QuantityInCase" ) ]
42
41
public int QuantityInCase { get ; set ; }
43
- [ XmlElement ( ElementName = "ExpirationDate" ) ]
42
+
43
+ [ XmlIgnore ]
44
44
public Nullable < DateTime > ExpirationDate { get ; set ; }
45
45
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
+
46
53
[ XmlIgnore ]
47
54
public bool ExpirationDateSpecified { get { return ExpirationDate != null ; } }
48
-
49
55
}
50
56
}
You can’t perform that action at this time.
0 commit comments