Skip to content

Commit 2028642

Browse files
committed
fix #277
1 parent f6707df commit 2028642

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentOutbound/CreateFulfillmentOrderRequest.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public CreateFulfillmentOrderRequest() { }
5151
/// <param name="MarketplaceId">The marketplace the fulfillment order is placed against..</param>
5252
/// <param name="SellerFulfillmentOrderId">A fulfillment order identifier that the seller creates to track their fulfillment order. The SellerFulfillmentOrderId must be unique for each fulfillment order that a seller creates. If the seller&#39;s system already creates unique order identifiers, then these might be good values for them to use. (required).</param>
5353
/// <param name="DisplayableOrderId">A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of DisplayableOrderId should match the order identifier that the seller provides to the recipient. The seller can use the SellerFulfillmentOrderId for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier. The value must be an alpha-numeric or ISO 8859-1 compliant string from one to 40 characters in length. Cannot contain two spaces in a row. Leading and trailing white space is removed. (required).</param>
54-
/// <param name="DisplayableOrderDateTime">The date and time of the fulfillment order. Displays as the order date in recipient-facing materials such as the outbound shipment packing slip. (required).</param>
54+
/// <param name="DisplayableOrderDate">The date and time of the fulfillment order. Displays as the order date in recipient-facing materials such as the outbound shipment packing slip. (required).</param>
5555
/// <param name="DisplayableOrderComment">Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip. (required).</param>
5656
/// <param name="ShippingSpeedCategory">The shipping method for the fulfillment order. (required).</param>
5757
/// <param name="DeliveryWindow">DeliveryWindow.</param>
@@ -63,7 +63,7 @@ public CreateFulfillmentOrderRequest() { }
6363
/// <param name="ShipFromCountryCode">The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format..</param>
6464
/// <param name="NotificationEmailList">NotificationEmailList.</param>
6565
/// <param name="Items">A list of items to include in the fulfillment order preview, including quantity. (required).</param>
66-
public CreateFulfillmentOrderRequest(string MarketplaceId = default(string), string SellerFulfillmentOrderId = default(string), string DisplayableOrderId = default(string), Timestamp DisplayableOrderDateTime = default(Timestamp), string DisplayableOrderComment = default(string), ShippingSpeedCategory ShippingSpeedCategory = default(ShippingSpeedCategory), DeliveryWindow DeliveryWindow = default(DeliveryWindow), Address DestinationAddress = default(Address), FulfillmentAction? FulfillmentAction = default(FulfillmentAction?), FulfillmentPolicy? FulfillmentPolicy = default(FulfillmentPolicy?), string FulfillmentMethod = default(string), CODSettings CODSettings = default(CODSettings), string ShipFromCountryCode = default(string), NotificationEmailList NotificationEmailList = default(NotificationEmailList), CreateFulfillmentOrderItemList Items = default(CreateFulfillmentOrderItemList))
66+
public CreateFulfillmentOrderRequest(string MarketplaceId = default(string), string SellerFulfillmentOrderId = default(string), string DisplayableOrderId = default(string), DateTime DisplayableOrderDate = default(DateTime), string DisplayableOrderComment = default(string), ShippingSpeedCategory ShippingSpeedCategory = default(ShippingSpeedCategory), DeliveryWindow DeliveryWindow = default(DeliveryWindow), Address DestinationAddress = default(Address), FulfillmentAction? FulfillmentAction = default(FulfillmentAction?), FulfillmentPolicy? FulfillmentPolicy = default(FulfillmentPolicy?), string FulfillmentMethod = default(string), CODSettings CODSettings = default(CODSettings), string ShipFromCountryCode = default(string), NotificationEmailList NotificationEmailList = default(NotificationEmailList), CreateFulfillmentOrderItemList Items = default(CreateFulfillmentOrderItemList))
6767
{
6868
// to ensure "SellerFulfillmentOrderId" is required (not null)
6969
if (SellerFulfillmentOrderId == null)
@@ -83,14 +83,14 @@ public CreateFulfillmentOrderRequest() { }
8383
{
8484
this.DisplayableOrderId = DisplayableOrderId;
8585
}
86-
// to ensure "DisplayableOrderDateTime" is required (not null)
87-
if (DisplayableOrderDateTime == null)
86+
// to ensure "DisplayableOrderDate" is required (not null)
87+
if (DisplayableOrderDate == null)
8888
{
89-
throw new InvalidDataException("DisplayableOrderDateTime is a required property for CreateFulfillmentOrderRequest and cannot be null");
89+
throw new InvalidDataException("DisplayableOrderDate is a required property for CreateFulfillmentOrderRequest and cannot be null");
9090
}
9191
else
9292
{
93-
this.DisplayableOrderDateTime = DisplayableOrderDateTime;
93+
this.DisplayableOrderDate = DisplayableOrderDate;
9494
}
9595
// to ensure "DisplayableOrderComment" is required (not null)
9696
if (DisplayableOrderComment == null)
@@ -163,8 +163,8 @@ public CreateFulfillmentOrderRequest() { }
163163
/// The date and time of the fulfillment order. Displays as the order date in recipient-facing materials such as the outbound shipment packing slip.
164164
/// </summary>
165165
/// <value>The date and time of the fulfillment order. Displays as the order date in recipient-facing materials such as the outbound shipment packing slip.</value>
166-
[DataMember(Name = "DisplayableOrderDateTime", EmitDefaultValue = false)]
167-
public Timestamp DisplayableOrderDateTime { get; set; }
166+
[DataMember(Name = "DisplayableOrderDate", EmitDefaultValue = false)]
167+
public DateTime DisplayableOrderDate { get; set; }
168168

169169
/// <summary>
170170
/// Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip.
@@ -233,7 +233,7 @@ public override string ToString()
233233
sb.Append(" MarketplaceId: ").Append(MarketplaceId).Append("\n");
234234
sb.Append(" SellerFulfillmentOrderId: ").Append(SellerFulfillmentOrderId).Append("\n");
235235
sb.Append(" DisplayableOrderId: ").Append(DisplayableOrderId).Append("\n");
236-
sb.Append(" DisplayableOrderDateTime: ").Append(DisplayableOrderDateTime).Append("\n");
236+
sb.Append(" DisplayableOrderDate: ").Append(DisplayableOrderDate).Append("\n");
237237
sb.Append(" DisplayableOrderComment: ").Append(DisplayableOrderComment).Append("\n");
238238
sb.Append(" ShippingSpeedCategory: ").Append(ShippingSpeedCategory).Append("\n");
239239
sb.Append(" DeliveryWindow: ").Append(DeliveryWindow).Append("\n");
@@ -295,9 +295,9 @@ public bool Equals(CreateFulfillmentOrderRequest input)
295295
this.DisplayableOrderId.Equals(input.DisplayableOrderId))
296296
) &&
297297
(
298-
this.DisplayableOrderDateTime == input.DisplayableOrderDateTime ||
299-
(this.DisplayableOrderDateTime != null &&
300-
this.DisplayableOrderDateTime.Equals(input.DisplayableOrderDateTime))
298+
this.DisplayableOrderDate == input.DisplayableOrderDate ||
299+
(this.DisplayableOrderDate != null &&
300+
this.DisplayableOrderDate.Equals(input.DisplayableOrderDate))
301301
) &&
302302
(
303303
this.DisplayableOrderComment == input.DisplayableOrderComment ||
@@ -371,8 +371,8 @@ public override int GetHashCode()
371371
hashCode = hashCode * 59 + this.SellerFulfillmentOrderId.GetHashCode();
372372
if (this.DisplayableOrderId != null)
373373
hashCode = hashCode * 59 + this.DisplayableOrderId.GetHashCode();
374-
if (this.DisplayableOrderDateTime != null)
375-
hashCode = hashCode * 59 + this.DisplayableOrderDateTime.GetHashCode();
374+
if (this.DisplayableOrderDate != null)
375+
hashCode = hashCode * 59 + this.DisplayableOrderDate.GetHashCode();
376376
if (this.DisplayableOrderComment != null)
377377
hashCode = hashCode * 59 + this.DisplayableOrderComment.GetHashCode();
378378
if (this.ShippingSpeedCategory != null)

0 commit comments

Comments
 (0)