Skip to content

Commit 4723259

Browse files
committed
fix TrackingId bug
1 parent e840d79 commit 4723259

File tree

13 files changed

+30
-428
lines changed

13 files changed

+30
-428
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/Amount.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public Amount() { }
3939
/// </summary>
4040
/// <param name="CurrencyCode">CurrencyCode (required).</param>
4141
/// <param name="Value">The amount. (required).</param>
42-
public Amount(CurrencyCode CurrencyCode = default(CurrencyCode), BigDecimalType Value = default(BigDecimalType))
42+
public Amount(CurrencyCode CurrencyCode = default(CurrencyCode), double Value = default(double))
4343
{
4444
// to ensure "CurrencyCode" is required (not null)
4545
if (CurrencyCode == null)
@@ -67,7 +67,7 @@ public Amount() { }
6767
/// </summary>
6868
/// <value>The amount.</value>
6969
[DataMember(Name = "Value", EmitDefaultValue = false)]
70-
public BigDecimalType Value { get; set; }
70+
public double Value { get; set; }
7171

7272
/// <summary>
7373
/// Returns the string presentation of the object

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/BigDecimalType.cs

Lines changed: 0 additions & 102 deletions
This file was deleted.

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/Dimensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public Dimensions() { }
4242
/// <param name="Width">The width dimension. (required).</param>
4343
/// <param name="Height">The height dimension. (required).</param>
4444
/// <param name="Unit">The unit of measurement for the dimensions. (required).</param>
45-
public Dimensions(BigDecimalType Length = default(BigDecimalType), BigDecimalType Width = default(BigDecimalType), BigDecimalType Height = default(BigDecimalType), UnitOfMeasurement Unit = default(UnitOfMeasurement))
45+
public Dimensions(double Length = default(double), double Width = default(double), double Height = default(double), UnitOfMeasurement Unit = default(UnitOfMeasurement))
4646
{
4747
// to ensure "Length" is required (not null)
4848
if (Length == null)
@@ -87,21 +87,21 @@ public Dimensions() { }
8787
/// </summary>
8888
/// <value>The length dimension.</value>
8989
[DataMember(Name = "Length", EmitDefaultValue = false)]
90-
public BigDecimalType Length { get; set; }
90+
public double Length { get; set; }
9191

9292
/// <summary>
9393
/// The width dimension.
9494
/// </summary>
9595
/// <value>The width dimension.</value>
9696
[DataMember(Name = "Width", EmitDefaultValue = false)]
97-
public BigDecimalType Width { get; set; }
97+
public double Width { get; set; }
9898

9999
/// <summary>
100100
/// The height dimension.
101101
/// </summary>
102102
/// <value>The height dimension.</value>
103103
[DataMember(Name = "Height", EmitDefaultValue = false)]
104-
public BigDecimalType Height { get; set; }
104+
public double Height { get; set; }
105105

106106

107107
/// <summary>

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/NonPartneredSmallParcelPackageInput.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public NonPartneredSmallParcelPackageInput() { }
3333
/// Initializes a new instance of the <see cref="NonPartneredSmallParcelPackageInput" /> class.
3434
/// </summary>
3535
/// <param name="TrackingId">TrackingId (required).</param>
36-
public NonPartneredSmallParcelPackageInput(TrackingId TrackingId = default(TrackingId))
36+
public NonPartneredSmallParcelPackageInput(string TrackingId = default(string))
3737
{
3838
// to ensure "TrackingId" is required (not null)
3939
if (TrackingId == null)
@@ -50,7 +50,7 @@ public NonPartneredSmallParcelPackageInput() { }
5050
/// Gets or Sets TrackingId
5151
/// </summary>
5252
[DataMember(Name = "TrackingId", EmitDefaultValue = false)]
53-
public TrackingId TrackingId { get; set; }
53+
public string TrackingId { get; set; }
5454

5555
/// <summary>
5656
/// Returns the string presentation of the object

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutput.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public NonPartneredSmallParcelPackageOutput() { }
4040
/// <param name="CarrierName">The carrier that you are using for the inbound shipment. (required).</param>
4141
/// <param name="TrackingId">TrackingId (required).</param>
4242
/// <param name="PackageStatus">PackageStatus (required).</param>
43-
public NonPartneredSmallParcelPackageOutput(string CarrierName = default(string), TrackingId TrackingId = default(TrackingId), PackageStatus PackageStatus = default(PackageStatus))
43+
public NonPartneredSmallParcelPackageOutput(string CarrierName = default(string), string TrackingId = default(string), PackageStatus PackageStatus = default(PackageStatus))
4444
{
4545
// to ensure "CarrierName" is required (not null)
4646
if (CarrierName == null)
@@ -82,7 +82,7 @@ public NonPartneredSmallParcelPackageOutput() { }
8282
/// Gets or Sets TrackingId
8383
/// </summary>
8484
[DataMember(Name = "TrackingId", EmitDefaultValue = false)]
85-
public TrackingId TrackingId { get; set; }
85+
public string TrackingId { get; set; }
8686

8787

8888
/// <summary>

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/PartneredSmallParcelPackageOutput.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public PartneredSmallParcelPackageOutput() { }
4242
/// <param name="CarrierName">The carrier specified with a previous call to putTransportDetails. (required).</param>
4343
/// <param name="TrackingId">TrackingId (required).</param>
4444
/// <param name="PackageStatus">PackageStatus (required).</param>
45-
public PartneredSmallParcelPackageOutput(Dimensions Dimensions = default(Dimensions), Weight Weight = default(Weight), string CarrierName = default(string), TrackingId TrackingId = default(TrackingId), PackageStatus PackageStatus = default(PackageStatus))
45+
public PartneredSmallParcelPackageOutput(Dimensions Dimensions = default(Dimensions), Weight Weight = default(Weight), string CarrierName = default(string), string TrackingId = default(string), PackageStatus PackageStatus = default(PackageStatus))
4646
{
4747
// to ensure "Dimensions" is required (not null)
4848
if (Dimensions == null)
@@ -114,7 +114,7 @@ public PartneredSmallParcelPackageOutput() { }
114114
/// Gets or Sets TrackingId
115115
/// </summary>
116116
[DataMember(Name = "TrackingId", EmitDefaultValue = false)]
117-
public TrackingId TrackingId { get; set; }
117+
public string TrackingId { get; set; }
118118

119119

120120
/// <summary>

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/TrackingId.cs

Lines changed: 0 additions & 102 deletions
This file was deleted.

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/UnitOfMeasurement.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ public enum UnitOfMeasurement
3434
/// Enum Centimeters for value: centimeters
3535
/// </summary>
3636
[EnumMember(Value = "centimeters")]
37-
Centimeters = 2
37+
Centimeters = 2,
38+
39+
/// <summary>
40+
/// Enum Centimeters for value: centimeters
41+
/// </summary>
42+
[EnumMemberAttribute(Value = "CM")]
43+
CM = 2
3844
}
3945

4046
}

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/UnitOfWeight.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,30 @@
88
* Generated by: https://github.com/swagger-api/swagger-codegen.git
99
*/
1010

11+
using Newtonsoft.Json;
12+
using Newtonsoft.Json.Converters;
13+
using System.Runtime.Serialization;
14+
1115
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound
1216
{
1317
/// <summary>
1418
/// Indicates the unit of weight.
1519
/// </summary>
1620
/// <value>Indicates the unit of weight.</value>
17-
21+
[JsonConverter(typeof(StringEnumConverter))]
1822
public enum UnitOfWeight
1923
{
2024

2125
/// <summary>
2226
/// Enum Pounds for value: pounds
2327
/// </summary>
24-
28+
[EnumMember(Value = "pounds")]
2529
Pounds,
2630

2731
/// <summary>
2832
/// Enum Kilograms for value: kilograms
2933
/// </summary>
30-
34+
[EnumMember(Value = "kilograms")]
3135
Kilograms
3236
}
3337

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/Weight.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public Weight() { }
3939
/// </summary>
4040
/// <param name="Value">The weight value. (required).</param>
4141
/// <param name="Unit">Unit (required).</param>
42-
public Weight(BigDecimalType Value = default(BigDecimalType), UnitOfWeight Unit = default(UnitOfWeight))
42+
public Weight(double Value = default(double), UnitOfWeight Unit = default(UnitOfWeight))
4343
{
4444
// to ensure "Value" is required (not null)
4545
if (Value == null)
@@ -66,7 +66,7 @@ public Weight() { }
6666
/// </summary>
6767
/// <value>The weight value.</value>
6868
[DataMember(Name = "Value", EmitDefaultValue = false)]
69-
public BigDecimalType Value { get; set; }
69+
public double Value { get; set; }
7070

7171

7272
/// <summary>

0 commit comments

Comments
 (0)