Skip to content

Commit 76e2683

Browse files
committed
fix #341
1 parent 3bb0eb0 commit 76e2683

File tree

1 file changed

+17
-1
lines changed
  • Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Orders

1 file changed

+17
-1
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Orders/Order.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public Order() { }
241241
/// <param name="sellerDisplayName">The seller’s friendly name registered in the marketplace..</param>
242242
/// <param name="shippingAddress">shippingAddress.</param>
243243
/// <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?), 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))
245245
{
246246
// to ensure "amazonOrderId" is required (not null)
247247
if (amazonOrderId == null)
@@ -308,6 +308,7 @@ public Order() { }
308308
this.PromiseResponseDueDate = promiseResponseDueDate;
309309
this.IsEstimatedShipDateSet = isEstimatedShipDateSet;
310310
this.IsSoldByAB = isSoldByAB;
311+
this.IsIBA = isIBA;
311312
this.DefaultShipFromLocationAddress = defaultShipFromLocationAddress;
312313
this.FulfillmentInstruction = fulfillmentInstruction;
313314
this.IsISPU = isISPU;
@@ -524,6 +525,13 @@ public Order() { }
524525
[DataMember(Name = "IsSoldByAB", EmitDefaultValue = false)]
525526
public bool? IsSoldByAB { get; set; }
526527

528+
/// <summary>
529+
/// When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller.
530+
/// </summary>
531+
/// <value>When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller.</value>
532+
[DataMember(Name = "IsIBA", EmitDefaultValue = false)]
533+
public bool? IsIBA { get; set; }
534+
527535
/// <summary>
528536
/// The recommended location for the seller to ship the items from. It is calculated at checkout. The seller may or may not choose to ship from this location.
529537
/// </summary>
@@ -612,6 +620,7 @@ public override string ToString()
612620
sb.Append(" PromiseResponseDueDate: ").Append(PromiseResponseDueDate).Append("\n");
613621
sb.Append(" IsEstimatedShipDateSet: ").Append(IsEstimatedShipDateSet).Append("\n");
614622
sb.Append(" IsSoldByAB: ").Append(IsSoldByAB).Append("\n");
623+
sb.Append(" IsIBA: ").Append(IsIBA).Append("\n");
615624
sb.Append(" DefaultShipFromLocationAddress: ").Append(DefaultShipFromLocationAddress).Append("\n");
616625
sb.Append(" FulfillmentInstruction: ").Append(FulfillmentInstruction).Append("\n");
617626
sb.Append(" IsISPU: ").Append(IsISPU).Append("\n");
@@ -818,6 +827,11 @@ public bool Equals(Order input)
818827
(this.IsSoldByAB != null &&
819828
this.IsSoldByAB.Equals(input.IsSoldByAB))
820829
) &&
830+
(
831+
this.IsIBA == input.IsIBA ||
832+
(this.IsIBA != null &&
833+
this.IsIBA.Equals(input.IsIBA))
834+
) &&
821835
(
822836
this.DefaultShipFromLocationAddress == input.DefaultShipFromLocationAddress ||
823837
(this.DefaultShipFromLocationAddress != null &&
@@ -930,6 +944,8 @@ public override int GetHashCode()
930944
hashCode = hashCode * 59 + this.IsEstimatedShipDateSet.GetHashCode();
931945
if (this.IsSoldByAB != null)
932946
hashCode = hashCode * 59 + this.IsSoldByAB.GetHashCode();
947+
if (this.IsIBA != null)
948+
hashCode = hashCode * 59 + this.IsIBA.GetHashCode();
933949
if (this.DefaultShipFromLocationAddress != null)
934950
hashCode = hashCode * 59 + this.DefaultShipFromLocationAddress.GetHashCode();
935951
if (this.FulfillmentInstruction != null)

0 commit comments

Comments
 (0)