@@ -241,10 +241,11 @@ public Order() { }
241
241
/// <param name="sellerDisplayName">The sellers friendly name registered in the marketplace..</param>
242
242
/// <param name="shippingAddress">shippingAddress.</param>
243
243
/// <param name="buyerInfo">buyerInfo.</param>
244
- public Order ( string amazonOrderId = default ( string ) , string sellerOrderId = default ( string ) , string purchaseDate = default ( string ) , string lastUpdateDate = default ( string ) , OrderStatusEnum orderStatus = default ( OrderStatusEnum ) , FulfillmentChannelEnum ? fulfillmentChannel = default ( FulfillmentChannelEnum ? ) , string salesChannel = default ( string ) , string orderChannel = default ( string ) , string shipServiceLevel = default ( string ) , Money orderTotal = default ( Money ) , int ? numberOfItemsShipped = default ( int ? ) , int ? numberOfItemsUnshipped = default ( int ? ) , PaymentExecutionDetailItemList paymentExecutionDetail = default ( PaymentExecutionDetailItemList ) , PaymentMethodEnum ? paymentMethod = default ( PaymentMethodEnum ? ) , PaymentMethodDetailItemList paymentMethodDetails = default ( PaymentMethodDetailItemList ) , string marketplaceId = default ( string ) , string shipmentServiceLevelCategory = default ( string ) , string easyShipShipmentStatus = default ( string ) , string cbaDisplayableShippingLabel = default ( string ) , OrderTypeEnum ? orderType = default ( OrderTypeEnum ? ) , string earliestShipDate = default ( string ) , string latestShipDate = default ( string ) , string earliestDeliveryDate = default ( string ) , string latestDeliveryDate = default ( string ) , bool ? isBusinessOrder = default ( bool ? ) , bool ? isPrime = default ( bool ? ) , bool ? isPremiumOrder = default ( bool ? ) , bool ? isGlobalExpressEnabled = default ( bool ? ) , string replacedOrderId = default ( string ) , bool ? isReplacementOrder = default ( bool ? ) , string promiseResponseDueDate = default ( string ) , bool ? isEstimatedShipDateSet = default ( bool ? ) , bool ? isSoldByAB = default ( bool ? ) , bool ? isIBA = default ( bool ? ) , Address defaultShipFromLocationAddress = default ( Address ) , FulfillmentInstruction fulfillmentInstruction = default ( FulfillmentInstruction ) , bool ? isISPU = default ( bool ? ) , MarketplaceTaxInfo marketplaceTaxInfo = default ( MarketplaceTaxInfo ) , string sellerDisplayName = default ( string ) , Address shippingAddress = default ( Address ) , BuyerInfo buyerInfo = default ( BuyerInfo ) )
244
+ public Order ( string amazonOrderId = default ( string ) , string sellerOrderId = default ( string ) , string purchaseDate = default ( string ) , string lastUpdateDate = default ( string ) , OrderStatusEnum ? orderStatus = default ( OrderStatusEnum ? ) , FulfillmentChannelEnum ? fulfillmentChannel = default ( FulfillmentChannelEnum ? ) , string salesChannel = default ( string ) , string orderChannel = default ( string ) , string shipServiceLevel = default ( string ) , Money orderTotal = default ( Money ) , int ? numberOfItemsShipped = default ( int ? ) , int ? numberOfItemsUnshipped = default ( int ? ) , PaymentExecutionDetailItemList paymentExecutionDetail = default ( PaymentExecutionDetailItemList ) , PaymentMethodEnum ? paymentMethod = default ( PaymentMethodEnum ? ) , PaymentMethodDetailItemList paymentMethodDetails = default ( PaymentMethodDetailItemList ) , string marketplaceId = default ( string ) , string shipmentServiceLevelCategory = default ( string ) , string easyShipShipmentStatus = default ( string ) , string cbaDisplayableShippingLabel = default ( string ) , OrderTypeEnum ? orderType = default ( OrderTypeEnum ? ) , string earliestShipDate = default ( string ) , string latestShipDate = default ( string ) , string earliestDeliveryDate = default ( string ) , string latestDeliveryDate = default ( string ) , bool ? isBusinessOrder = default ( bool ? ) , bool ? isPrime = default ( bool ? ) , bool ? isPremiumOrder = default ( bool ? ) , bool ? isGlobalExpressEnabled = default ( bool ? ) , string replacedOrderId = default ( string ) , bool ? isReplacementOrder = default ( bool ? ) , string promiseResponseDueDate = default ( string ) , bool ? isEstimatedShipDateSet = default ( bool ? ) , bool ? isSoldByAB = default ( bool ? ) , bool ? isIBA = default ( bool ? ) , Address defaultShipFromLocationAddress = default ( Address ) , FulfillmentInstruction fulfillmentInstruction = default ( FulfillmentInstruction ) , bool ? isISPU = default ( bool ? ) , MarketplaceTaxInfo marketplaceTaxInfo = default ( MarketplaceTaxInfo ) , string sellerDisplayName = default ( string ) , Address shippingAddress = default ( Address ) , BuyerInfo buyerInfo = default ( BuyerInfo ) )
245
245
{
246
- // to ensure "amazonOrderId" is required (not null)
247
- if ( amazonOrderId == null )
246
+ #pragma warning disable 0618
247
+ // to ensure "amazonOrderId" is required (not null)
248
+ if ( amazonOrderId == null )
248
249
{
249
250
throw new InvalidDataException ( "amazonOrderId is a required property for Order and cannot be null" ) ;
250
251
}
@@ -277,7 +278,7 @@ public Order() { }
277
278
}
278
279
else
279
280
{
280
- this . OrderStatus = orderStatus ;
281
+ this . OrderStatus = orderStatus . Value ;
281
282
}
282
283
this . SellerOrderId = sellerOrderId ;
283
284
this . FulfillmentChannel = fulfillmentChannel ;
@@ -316,13 +317,14 @@ public Order() { }
316
317
this . SellerDisplayName = sellerDisplayName ;
317
318
this . ShippingAddress = shippingAddress ;
318
319
this . BuyerInfo = buyerInfo ;
319
- }
320
+ #pragma warning restore 0618
321
+ }
320
322
321
- /// <summary>
322
- /// An Amazon-defined order identifier, in 3-7-7 format.
323
- /// </summary>
324
- /// <value>An Amazon-defined order identifier, in 3-7-7 format.</value>
325
- [ DataMember ( Name = "AmazonOrderId" , EmitDefaultValue = false ) ]
323
+ /// <summary>
324
+ /// An Amazon-defined order identifier, in 3-7-7 format.
325
+ /// </summary>
326
+ /// <value>An Amazon-defined order identifier, in 3-7-7 format.</value>
327
+ [ DataMember ( Name = "AmazonOrderId" , EmitDefaultValue = false ) ]
326
328
public string AmazonOrderId { get ; set ; }
327
329
328
330
/// <summary>
@@ -634,7 +636,8 @@ public DateTime? PromiseResponseDueDateTime {
634
636
/// <returns>String presentation of the object</returns>
635
637
public override string ToString ( )
636
638
{
637
- var sb = new StringBuilder ( ) ;
639
+ #pragma warning disable 0618
640
+ var sb = new StringBuilder ( ) ;
638
641
sb . Append ( "class Order {\n " ) ;
639
642
sb . Append ( " AmazonOrderId: " ) . Append ( AmazonOrderId ) . Append ( "\n " ) ;
640
643
sb . Append ( " SellerOrderId: " ) . Append ( SellerOrderId ) . Append ( "\n " ) ;
@@ -679,13 +682,14 @@ public override string ToString()
679
682
sb . Append ( " BuyerInfo: " ) . Append ( BuyerInfo ) . Append ( "\n " ) ;
680
683
sb . Append ( "}\n " ) ;
681
684
return sb . ToString ( ) ;
682
- }
685
+ #pragma warning restore 0618
686
+ }
683
687
684
- /// <summary>
685
- /// Returns the JSON string presentation of the object
686
- /// </summary>
687
- /// <returns>JSON string presentation of the object</returns>
688
- public virtual string ToJson ( )
688
+ /// <summary>
689
+ /// Returns the JSON string presentation of the object
690
+ /// </summary>
691
+ /// <returns>JSON string presentation of the object</returns>
692
+ public virtual string ToJson ( )
689
693
{
690
694
return JsonConvert . SerializeObject ( this , Formatting . Indented ) ;
691
695
}
@@ -707,7 +711,8 @@ public override bool Equals(object input)
707
711
/// <returns>Boolean</returns>
708
712
public bool Equals ( Order input )
709
713
{
710
- if ( input == null )
714
+ #pragma warning disable 0618
715
+ if ( input == null )
711
716
return false ;
712
717
713
718
return
@@ -733,8 +738,7 @@ public bool Equals(Order input)
733
738
) &&
734
739
(
735
740
this . OrderStatus == input . OrderStatus ||
736
- ( this . OrderStatus != null &&
737
- this . OrderStatus . Equals ( input . OrderStatus ) )
741
+ this . OrderStatus . Equals ( input . OrderStatus )
738
742
) &&
739
743
(
740
744
this . FulfillmentChannel == input . FulfillmentChannel ||
@@ -916,16 +920,18 @@ public bool Equals(Order input)
916
920
( this . BuyerInfo != null &&
917
921
this . BuyerInfo . Equals ( input . BuyerInfo ) )
918
922
) ;
919
- }
923
+ #pragma warning restore 0618
924
+ }
920
925
921
- /// <summary>
922
- /// Gets the hash code
923
- /// </summary>
924
- /// <returns>Hash code</returns>
925
- public override int GetHashCode ( )
926
+ /// <summary>
927
+ /// Gets the hash code
928
+ /// </summary>
929
+ /// <returns>Hash code</returns>
930
+ public override int GetHashCode ( )
926
931
{
927
- unchecked // Overflow is fine, just wrap
928
- {
932
+ #pragma warning disable 0618
933
+ unchecked // Overflow is fine, just wrap
934
+ {
929
935
int hashCode = 41 ;
930
936
if ( this . AmazonOrderId != null )
931
937
hashCode = hashCode * 59 + this . AmazonOrderId . GetHashCode ( ) ;
@@ -935,8 +941,7 @@ public override int GetHashCode()
935
941
hashCode = hashCode * 59 + this . PurchaseDate . GetHashCode ( ) ;
936
942
if ( this . LastUpdateDate != null )
937
943
hashCode = hashCode * 59 + this . LastUpdateDate . GetHashCode ( ) ;
938
- if ( this . OrderStatus != null )
939
- hashCode = hashCode * 59 + this . OrderStatus . GetHashCode ( ) ;
944
+ hashCode = hashCode * 59 + this . OrderStatus . GetHashCode ( ) ;
940
945
if ( this . FulfillmentChannel != null )
941
946
hashCode = hashCode * 59 + this . FulfillmentChannel . GetHashCode ( ) ;
942
947
if ( this . SalesChannel != null )
@@ -1011,14 +1016,15 @@ public override int GetHashCode()
1011
1016
hashCode = hashCode * 59 + this . BuyerInfo . GetHashCode ( ) ;
1012
1017
return hashCode ;
1013
1018
}
1014
- }
1019
+ #pragma warning restore 0618
1020
+ }
1015
1021
1016
- /// <summary>
1017
- /// To validate all properties of the instance
1018
- /// </summary>
1019
- /// <param name="validationContext">Validation context</param>
1020
- /// <returns>Validation Result</returns>
1021
- IEnumerable < System . ComponentModel . DataAnnotations . ValidationResult > IValidatableObject . Validate ( ValidationContext validationContext )
1022
+ /// <summary>
1023
+ /// To validate all properties of the instance
1024
+ /// </summary>
1025
+ /// <param name="validationContext">Validation context</param>
1026
+ /// <returns>Validation Result</returns>
1027
+ IEnumerable < System . ComponentModel . DataAnnotations . ValidationResult > IValidatableObject . Validate ( ValidationContext validationContext )
1022
1028
{
1023
1029
yield break ;
1024
1030
}
0 commit comments