@@ -91,7 +91,9 @@ public OrderItem() { }
91
91
/// <param name="IsTransparency">When true, transparency codes are required..</param>
92
92
/// <param name="IossNumber">The IOSS number of the seller. Sellers selling in the EU will be assigned a unique IOSS number that must be listed on all packages sent to the EU..</param>
93
93
/// <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>
94
- 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 ? ) )
94
+ /// <param name="BuyerInfo">The Buyer Info .</param>
95
+
96
+ 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 ) )
95
97
{
96
98
// to ensure "ASIN" is required (not null)
97
99
if ( ASIN == null )
@@ -148,6 +150,7 @@ public OrderItem() { }
148
150
this . IsTransparency = IsTransparency ;
149
151
this . IossNumber = IossNumber ;
150
152
this . DeemedResellerCategory = DeemedResellerCategory ;
153
+ this . BuyerInfo = BuyerInfo ;
151
154
}
152
155
153
156
/// <summary>
@@ -359,7 +362,14 @@ public OrderItem() { }
359
362
[ DataMember ( Name = "IossNumber" , EmitDefaultValue = false ) ]
360
363
public string IossNumber { get ; set ; }
361
364
365
+ /// <summary>
366
+ /// Gets or Sets BuyerInfo
367
+ /// </summary>
368
+ /// <value>Gets or Sets BuyerInfo</value>
369
+ [ DataMember ( Name = "BuyerInfo" , EmitDefaultValue = false ) ]
370
+ public OrderItemBuyerInfo BuyerInfo { get ; set ; }
362
371
372
+
363
373
/// <summary>
364
374
/// Returns the string presentation of the object
365
375
/// </summary>
@@ -399,6 +409,7 @@ public override string ToString()
399
409
sb . Append ( " IsTransparency: " ) . Append ( IsTransparency ) . Append ( "\n " ) ;
400
410
sb . Append ( " IossNumber: " ) . Append ( IossNumber ) . Append ( "\n " ) ;
401
411
sb . Append ( " DeemedResellerCategory: " ) . Append ( DeemedResellerCategory ) . Append ( "\n " ) ;
412
+ sb . Append ( " BuyerInfo: " ) . Append ( BuyerInfo ) . Append ( "\n " ) ;
402
413
sb . Append ( "}\n " ) ;
403
414
return sb . ToString ( ) ;
404
415
}
@@ -587,6 +598,11 @@ public bool Equals(OrderItem input)
587
598
this . DeemedResellerCategory == input . DeemedResellerCategory ||
588
599
( this . DeemedResellerCategory != null &&
589
600
this . DeemedResellerCategory . Equals ( input . DeemedResellerCategory ) )
601
+ ) &&
602
+ (
603
+ this . BuyerInfo == input . BuyerInfo ||
604
+ ( this . BuyerInfo != null &&
605
+ this . BuyerInfo . Equals ( input . BuyerInfo ) )
590
606
) ;
591
607
}
592
608
@@ -661,6 +677,8 @@ public override int GetHashCode()
661
677
hashCode = hashCode * 59 + this . IossNumber . GetHashCode ( ) ;
662
678
if ( this . DeemedResellerCategory != null )
663
679
hashCode = hashCode * 59 + this . DeemedResellerCategory . GetHashCode ( ) ;
680
+ if ( this . BuyerInfo != null )
681
+ hashCode = hashCode * 59 + this . BuyerInfo . GetHashCode ( ) ;
664
682
return hashCode ;
665
683
}
666
684
}
0 commit comments