File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
AmazonSpApiSDK/Models/Orders Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 5
5
using System . IO ;
6
6
using System . Runtime . Serialization ;
7
7
using System . Text ;
8
+ using FikaAmazonAPI . Utils ;
8
9
9
10
namespace FikaAmazonAPI . AmazonSpApiSDK . Models . Orders
10
11
{
@@ -120,6 +121,7 @@ public PackageDetail() { }
120
121
/// The shipping date for the package. Must be in ISO-8601 date/time format.
121
122
/// </summary>
122
123
/// <value>The shipping date for the package. Must be in ISO-8601 date/time format.</value>
124
+ [ JsonConverter ( typeof ( Iso8601DateTimeConverter ) ) ]
123
125
[ DataMember ( Name = "shipDate" , EmitDefaultValue = false ) ]
124
126
public DateTime ? ShipDate { get ; set ; }
125
127
Original file line number Diff line number Diff line change
1
+ namespace FikaAmazonAPI . Utils
2
+ {
3
+ class Iso8601DateTimeConverter : Newtonsoft . Json . Converters . IsoDateTimeConverter
4
+ {
5
+ public Iso8601DateTimeConverter ( )
6
+ {
7
+ base . DateTimeFormat = "yyyy-MM-ddTHH:mm:ssZ" ;
8
+ }
9
+ }
10
+ }
You can’t perform that action at this time.
0 commit comments