@@ -125,7 +125,7 @@ public OrderItem() { }
125
125
/// <param name="DeemedResellerCategory">The category of deemed reseller. This applies to selling partners that are not based in the EU and is used to help them meet the VAT Deemed Reseller tax laws in the EU and UK..</param>
126
126
/// <param name="BuyerInfo">The Buyer Info .</param>
127
127
128
- public OrderItem ( string ASIN = default ( string ) , string SellerSKU = default ( string ) , string OrderItemId = default ( string ) , string Title = default ( string ) , int ? QuantityOrdered = default ( int ? ) , int ? QuantityShipped = default ( int ? ) , ProductInfoDetail ProductInfo = default ( ProductInfoDetail ) , PointsGrantedDetail PointsGranted = default ( PointsGrantedDetail ) , Money ItemPrice = default ( Money ) , Money ShippingPrice = default ( Money ) , Money ItemTax = default ( Money ) , Money ShippingTax = default ( Money ) , Money ShippingDiscount = default ( Money ) , Money ShippingDiscountTax = default ( Money ) , Money PromotionDiscount = default ( Money ) , Money PromotionDiscountTax = default ( Money ) , PromotionIdList PromotionIds = default ( PromotionIdList ) , Money CODFee = default ( Money ) , Money CODFeeDiscount = default ( Money ) , bool ? IsGift = default ( bool ? ) , string ConditionNote = default ( string ) , string ConditionId = default ( string ) , string ConditionSubtypeId = default ( string ) , string ScheduledDeliveryStartDate = default ( string ) , string ScheduledDeliveryEndDate = default ( string ) , string PriceDesignation = default ( string ) , TaxCollection TaxCollection = default ( TaxCollection ) , bool ? SerialNumberRequired = default ( bool ? ) , bool ? IsTransparency = default ( bool ? ) , string IossNumber = default ( string ) , DeemedResellerCategoryEnum ? DeemedResellerCategory = default ( DeemedResellerCategoryEnum ? ) , OrderItemBuyerInfo BuyerInfo = default ( OrderItemBuyerInfo ) )
128
+ public OrderItem ( string ASIN = default ( string ) , string SellerSKU = default ( string ) , string OrderItemId = default ( string ) , string Title = default ( string ) , int ? QuantityOrdered = default ( int ? ) , int ? QuantityShipped = default ( int ? ) , ProductInfoDetail ProductInfo = default ( ProductInfoDetail ) , PointsGrantedDetail PointsGranted = default ( PointsGrantedDetail ) , Money ItemPrice = default ( Money ) , Money ShippingPrice = default ( Money ) , Money ItemTax = default ( Money ) , Money ShippingTax = default ( Money ) , Money ShippingDiscount = default ( Money ) , Money ShippingDiscountTax = default ( Money ) , Money PromotionDiscount = default ( Money ) , Money PromotionDiscountTax = default ( Money ) , PromotionIdList PromotionIds = default ( PromotionIdList ) , Money CODFee = default ( Money ) , Money CODFeeDiscount = default ( Money ) , bool ? IsGift = default ( bool ? ) , string ConditionNote = default ( string ) , string ConditionId = default ( string ) , string ConditionSubtypeId = default ( string ) , string ScheduledDeliveryStartDate = default ( string ) , string ScheduledDeliveryEndDate = default ( string ) , string PriceDesignation = default ( string ) , TaxCollection TaxCollection = default ( TaxCollection ) , bool ? SerialNumberRequired = default ( bool ? ) , bool ? IsTransparency = default ( bool ? ) , string IossNumber = default ( string ) , DeemedResellerCategoryEnum ? DeemedResellerCategory = default ( DeemedResellerCategoryEnum ? ) , OrderItemBuyerInfo BuyerInfo = default ( OrderItemBuyerInfo ) , IEnumerable < string > SerialNumbers = null )
129
129
{
130
130
// to ensure "ASIN" is required (not null)
131
131
if ( ASIN == null )
@@ -183,6 +183,7 @@ public OrderItem() { }
183
183
this . IossNumber = IossNumber ;
184
184
this . DeemedResellerCategory = DeemedResellerCategory ;
185
185
this . BuyerInfo = BuyerInfo ;
186
+ this . SerialNumbers = SerialNumbers ;
186
187
}
187
188
188
189
/// <summary>
@@ -401,12 +402,19 @@ public OrderItem() { }
401
402
[ DataMember ( Name = "BuyerInfo" , EmitDefaultValue = false ) ]
402
403
public OrderItemBuyerInfo BuyerInfo { get ; set ; }
403
404
405
+ /// <summary>
406
+ /// A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only.
407
+ /// </summary>
408
+ /// <value>A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only.</value>
409
+ [ DataMember ( Name = "SerialNumbers" , EmitDefaultValue = false ) ]
410
+ public IEnumerable < string > SerialNumbers { get ; set ; }
404
411
405
- /// <summary>
406
- /// Returns the string presentation of the object
407
- /// </summary>
408
- /// <returns>String presentation of the object</returns>
409
- public override string ToString ( )
412
+
413
+ /// <summary>
414
+ /// Returns the string presentation of the object
415
+ /// </summary>
416
+ /// <returns>String presentation of the object</returns>
417
+ public override string ToString ( )
410
418
{
411
419
var sb = new StringBuilder ( ) ;
412
420
sb . Append ( "class OrderItem {\n " ) ;
@@ -442,6 +450,7 @@ public override string ToString()
442
450
sb . Append ( " IossNumber: " ) . Append ( IossNumber ) . Append ( "\n " ) ;
443
451
sb . Append ( " DeemedResellerCategory: " ) . Append ( DeemedResellerCategory ) . Append ( "\n " ) ;
444
452
sb . Append ( " BuyerInfo: " ) . Append ( BuyerInfo ) . Append ( "\n " ) ;
453
+ sb . Append ( " SerialNumbers: " ) . Append ( SerialNumbers ) . Append ( "\n " ) ;
445
454
sb . Append ( "}\n " ) ;
446
455
return sb . ToString ( ) ;
447
456
}
@@ -635,7 +644,12 @@ public bool Equals(OrderItem input)
635
644
this . BuyerInfo == input . BuyerInfo ||
636
645
( this . BuyerInfo != null &&
637
646
this . BuyerInfo . Equals ( input . BuyerInfo ) )
638
- ) ;
647
+ ) &&
648
+ (
649
+ this . SerialNumbers == input . SerialNumbers ||
650
+ ( this . SerialNumbers != null &&
651
+ this . SerialNumbers . Equals ( input . SerialNumbers ) )
652
+ ) ;
639
653
}
640
654
641
655
/// <summary>
@@ -711,7 +725,9 @@ public override int GetHashCode()
711
725
hashCode = hashCode * 59 + this . DeemedResellerCategory . GetHashCode ( ) ;
712
726
if ( this . BuyerInfo != null )
713
727
hashCode = hashCode * 59 + this . BuyerInfo . GetHashCode ( ) ;
714
- return hashCode ;
728
+ if ( this . SerialNumbers != null )
729
+ hashCode = hashCode * 59 + this . SerialNumbers . GetHashCode ( ) ;
730
+ return hashCode ;
715
731
}
716
732
}
717
733
0 commit comments