Skip to content

Commit 205875d

Browse files
authored
Merge pull request #384 from RenzoF/main
ContainerReferenceId should be a string not a class fix #385
2 parents 61767ce + 0a3ca3f commit 205875d

File tree

3 files changed

+6
-108
lines changed

3 files changed

+6
-108
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Shipping/Container.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public Container() { }
6161
/// <param name="Dimensions">The length, width, height, and weight of the container. (required).</param>
6262
/// <param name="Items">A list of the items in the container. (required).</param>
6363
/// <param name="Weight">The weight of the container. (required).</param>
64-
public Container(ContainerTypeEnum? ContainerType = default(ContainerTypeEnum?), ContainerReferenceId ContainerReferenceId = default(ContainerReferenceId), Currency Value = default(Currency), Dimensions Dimensions = default(Dimensions), List<ContainerItem> Items = default(List<ContainerItem>), Weight Weight = default(Weight))
64+
public Container(ContainerTypeEnum? ContainerType = default(ContainerTypeEnum?), string ContainerReferenceId = null, Currency Value = default(Currency), Dimensions Dimensions = default(Dimensions), List<ContainerItem> Items = default(List<ContainerItem>), Weight Weight = default(Weight))
6565
{
6666
// to ensure "ContainerReferenceId" is required (not null)
6767
if (ContainerReferenceId == null)
@@ -113,10 +113,10 @@ public Container() { }
113113

114114

115115
/// <summary>
116-
/// Gets or Sets ContainerReferenceId
116+
/// An identifier for the container. This must be unique within all the containers in the same shipment.
117117
/// </summary>
118118
[DataMember(Name = "containerReferenceId", EmitDefaultValue = false)]
119-
public ContainerReferenceId ContainerReferenceId { get; set; }
119+
public string ContainerReferenceId { get; set; }
120120

121121
/// <summary>
122122
/// The total value of all items in the container.

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Shipping/ContainerReferenceId.cs

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

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Shipping/LabelResult.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ public partial class LabelResult : IEquatable<LabelResult>, IValidatableObject
2929
/// <param name="ContainerReferenceId">ContainerReferenceId.</param>
3030
/// <param name="TrackingId">The tracking identifier assigned to the container..</param>
3131
/// <param name="Label">Label.</param>
32-
public LabelResult(ContainerReferenceId ContainerReferenceId = default(ContainerReferenceId), string TrackingId = default(string), Label Label = default(Label))
32+
public LabelResult(string ContainerReferenceId = null, string TrackingId = default(string), Label Label = default(Label))
3333
{
3434
this.ContainerReferenceId = ContainerReferenceId;
3535
this.TrackingId = TrackingId;
3636
this.Label = Label;
3737
}
3838

3939
/// <summary>
40-
/// Gets or Sets ContainerReferenceId
40+
/// An identifier for the container. This must be unique within all the containers in the same shipment.
4141
/// </summary>
4242
[DataMember(Name = "containerReferenceId", EmitDefaultValue = false)]
43-
public ContainerReferenceId ContainerReferenceId { get; set; }
43+
public string ContainerReferenceId { get; set; }
4444

4545
/// <summary>
4646
/// The tracking identifier assigned to the container.

0 commit comments

Comments
 (0)