File tree Expand file tree Collapse file tree 7 files changed +56
-52
lines changed Expand file tree Collapse file tree 7 files changed +56
-52
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,8 @@ public void CartonContentsRequestFeed()
318
318
new CartonItem ( ) {
319
319
QuantityInCase = 12 ,
320
320
QuantityShipped = 12 ,
321
- SKU = "4051"
321
+ SKU = "4051" ,
322
+ ExpirationDate = DateTime . Now ,
322
323
}
323
324
}
324
325
}
Original file line number Diff line number Diff line change @@ -58,7 +58,24 @@ public enum PrepInstruction
58
58
/// Enum HangGarment for value: HangGarment
59
59
/// </summary>
60
60
[ EnumMember ( Value = "HangGarment" ) ]
61
- HangGarment = 6
62
- }
61
+ HangGarment = 6 ,
62
+
63
+ /// <summary>
64
+ /// Enum Boxing for value: Boxing
65
+ /// </summary>
66
+ [ EnumMember ( Value = "Boxing" ) ]
67
+ Boxing = 7 ,
68
+
69
+ /// <summary>
70
+ /// Enum SuffocationStickering for value: SuffocationStickering
71
+ /// </summary>
72
+ [ EnumMember ( Value = "SuffocationStickering" ) ]
73
+ SuffocationStickering = 8 ,
63
74
75
+ /// <summary>
76
+ /// Enum SetCreation for value: SetCreation
77
+ /// </summary>
78
+ [ EnumMember ( Value = "SetCreation" ) ]
79
+ SetCreation = 9
80
+ }
64
81
}
Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ public enum UnitOfMeasurement
30
30
[ EnumMember ( Value = "inches" ) ]
31
31
Inches = 1 ,
32
32
33
+ /// <summary>
34
+ /// Enum Inches for value: inches
35
+ /// </summary>
36
+ [ EnumMember ( Value = "IN" ) ]
37
+ IN = 1 ,
38
+
33
39
/// <summary>
34
40
/// Enum Centimeters for value: centimeters
35
41
/// </summary>
Original file line number Diff line number Diff line change 4
4
using System . Collections . Generic ;
5
5
using System . Runtime . Serialization ;
6
6
using Newtonsoft . Json ;
7
+ using Newtonsoft . Json . Converters ;
7
8
8
9
namespace FikaAmazonAPI . AmazonSpApiSDK . Models . ShippingV2 {
9
10
10
- /// <summary>
11
- /// The file format of the document.
12
- /// </summary>
13
- [ DataContract ]
14
- public class DocumentFormat {
15
-
16
11
/// <summary>
17
- /// Get the string presentation of the object
12
+ /// The file format of the document.
18
13
/// </summary>
19
- /// <returns>String presentation of the object</returns>
20
- public override string ToString ( ) {
21
- var sb = new StringBuilder ( ) ;
22
- sb . Append ( "class DocumentFormat {\n " ) ;
23
- sb . Append ( "}\n " ) ;
24
- return sb . ToString ( ) ;
25
- }
14
+ [ JsonConverter ( typeof ( StringEnumConverter ) ) ]
15
+ public enum DocumentFormat {
26
16
27
- /// <summary>
28
- /// Get the JSON string presentation of the object
29
- /// </summary>
30
- /// <returns>JSON string presentation of the object</returns>
31
- public string ToJson ( ) {
32
- return JsonConvert . SerializeObject ( this , Formatting . Indented ) ;
17
+ [ EnumMember ( Value = "PDF" ) ]
18
+ PDF ,
19
+ [ EnumMember ( Value = "PNG" ) ]
20
+ PNG ,
21
+ [ EnumMember ( Value = "ZPL" ) ]
22
+ ZPL
33
23
}
34
-
35
- }
36
24
}
Original file line number Diff line number Diff line change 4
4
using System . Collections . Generic ;
5
5
using System . Runtime . Serialization ;
6
6
using Newtonsoft . Json ;
7
+ using Newtonsoft . Json . Converters ;
7
8
8
9
namespace FikaAmazonAPI . AmazonSpApiSDK . Models . ShippingV2 {
9
10
10
- /// <summary>
11
- /// The type of shipping document.
12
- /// </summary>
13
- [ DataContract ]
14
- public class DocumentType {
15
-
16
11
/// <summary>
17
- /// Get the string presentation of the object
12
+ /// The type of shipping document.
18
13
/// </summary>
19
- /// <returns>String presentation of the object</returns>
20
- public override string ToString ( ) {
21
- var sb = new StringBuilder ( ) ;
22
- sb . Append ( "class DocumentType {\n " ) ;
23
- sb . Append ( "}\n " ) ;
24
- return sb . ToString ( ) ;
14
+ [ JsonConverter ( typeof ( StringEnumConverter ) ) ]
15
+ public enum DocumentType
16
+ {
17
+ [ EnumMember ( Value = "PACKSLIP" ) ]
18
+ PACKSLIP ,
19
+ [ EnumMember ( Value = "LABEL" ) ]
20
+ LABEL ,
21
+ [ EnumMember ( Value = "RECEIPT" ) ]
22
+ RECEIPT ,
23
+ [ EnumMember ( Value = "CUSTOM_FORM" ) ]
24
+ CUSTOM_FORM
25
25
}
26
-
27
- /// <summary>
28
- /// Get the JSON string presentation of the object
29
- /// </summary>
30
- /// <returns>JSON string presentation of the object</returns>
31
- public string ToJson ( ) {
32
- return JsonConvert . SerializeObject ( this , Formatting . Indented ) ;
33
- }
34
-
35
- }
36
26
}
Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ public class CartonContentsRequest
9
9
{
10
10
[ XmlElement ( ElementName = "ShipmentId" ) ]
11
11
public string ShipmentId { get ; set ; }
12
+
12
13
[ XmlElement ( ElementName = "NumCartons" ) ]
13
14
public int NumCartons
14
15
{
15
16
get { return Carton . Count ; }
16
- set { /* required for xml serialization */ }
17
+ [ Obsolete ( "Only used for xml serialization" , error : true ) ]
18
+ set { throw new NotSupportedException ( ) ; }
17
19
}
18
20
[ XmlElement ( ElementName = "Carton" ) ]
19
21
public List < Carton > Carton { get ; set ; } = new List < Carton > ( ) ;
Original file line number Diff line number Diff line change 7
7
<Product >CSharp Amazon Sp API</Product >
8
8
<GeneratePackageOnBuild >true</GeneratePackageOnBuild >
9
9
<LangVersion >8.0</LangVersion >
10
- <Version >1.5.3 </Version >
11
- <AssemblyVersion >1.5.3 </AssemblyVersion >
12
- <FileVersion >1.5.3 </FileVersion >
10
+ <Version >1.5.5 </Version >
11
+ <AssemblyVersion >1.5.5 </AssemblyVersion >
12
+ <FileVersion >1.5.5 </FileVersion >
13
13
<PackageRequireLicenseAcceptance >true</PackageRequireLicenseAcceptance >
14
14
<PackageProjectUrl >https://github.com/abuzuhri/Amazon-SP-API-CSharp</PackageProjectUrl >
15
15
<PackageLicenseExpression >MIT</PackageLicenseExpression >
You can’t perform that action at this time.
0 commit comments