Skip to content

Commit 3f6e0ff

Browse files
committed
fixing ExpirationDate #371
1 parent b364708 commit 3f6e0ff

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Source/FikaAmazonAPI.SampleCode/FeedsSample.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ public void CartonContentsRequestFeed()
318318
new CartonItem() {
319319
QuantityInCase=12,
320320
QuantityShipped=12,
321-
SKU="4051"
321+
SKU="4051",
322+
ExpirationDate=DateTime.Now,
322323
}
323324
}
324325
}

Source/FikaAmazonAPI/ConstructFeed/Messages/CartonContentsRequest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,11 @@ public class CartonItem
4040
public int QuantityShipped { get; set; }
4141
[XmlElement(ElementName = "QuantityInCase")]
4242
public int QuantityInCase { get; set; }
43+
[XmlElement(ElementName = "ExpirationDate")]
44+
public Nullable<DateTime> ExpirationDate { get; set; }
45+
46+
[XmlIgnore]
47+
public bool ExpirationDateSpecified { get { return ExpirationDate != null; } }
48+
4349
}
4450
}

0 commit comments

Comments
 (0)