public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is InventoryAdjustment other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) && ((FromState == null && other.FromState == null) || (FromState?.Equals(other.FromState) == true)) && ((ToState == null && other.ToState == null) || (ToState?.Equals(other.ToState) == true)) && ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) && ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) && ((CatalogObjectType == null && other.CatalogObjectType == null) || (CatalogObjectType?.Equals(other.CatalogObjectType) == true)) && ((Quantity == null && other.Quantity == null) || (Quantity?.Equals(other.Quantity) == true)) && ((TotalPriceMoney == null && other.TotalPriceMoney == null) || (TotalPriceMoney?.Equals(other.TotalPriceMoney) == true)) && ((OccurredAt == null && other.OccurredAt == null) || (OccurredAt?.Equals(other.OccurredAt) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((Source == null && other.Source == null) || (Source?.Equals(other.Source) == true)) && ((EmployeeId == null && other.EmployeeId == null) || (EmployeeId?.Equals(other.EmployeeId) == true)) && ((TransactionId == null && other.TransactionId == null) || (TransactionId?.Equals(other.TransactionId) == true)) && ((RefundId == null && other.RefundId == null) || (RefundId?.Equals(other.RefundId) == true)) && ((PurchaseOrderId == null && other.PurchaseOrderId == null) || (PurchaseOrderId?.Equals(other.PurchaseOrderId) == true)) && ((GoodsReceiptId == null && other.GoodsReceiptId == null) || (GoodsReceiptId?.Equals(other.GoodsReceiptId) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is V1Order other && ((Context == null && other.Context == null) || (Context?.Equals(other.Context) == true)) && ((Errors == null && other.Errors == null) || (Errors?.Equals(other.Errors) == true)) && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((BuyerEmail == null && other.BuyerEmail == null) || (BuyerEmail?.Equals(other.BuyerEmail) == true)) && ((RecipientName == null && other.RecipientName == null) || (RecipientName?.Equals(other.RecipientName) == true)) && ((RecipientPhoneNumber == null && other.RecipientPhoneNumber == null) || (RecipientPhoneNumber?.Equals(other.RecipientPhoneNumber) == true)) && ((State == null && other.State == null) || (State?.Equals(other.State) == true)) && ((ShippingAddress == null && other.ShippingAddress == null) || (ShippingAddress?.Equals(other.ShippingAddress) == true)) && ((SubtotalMoney == null && other.SubtotalMoney == null) || (SubtotalMoney?.Equals(other.SubtotalMoney) == true)) && ((TotalShippingMoney == null && other.TotalShippingMoney == null) || (TotalShippingMoney?.Equals(other.TotalShippingMoney) == true)) && ((TotalTaxMoney == null && other.TotalTaxMoney == null) || (TotalTaxMoney?.Equals(other.TotalTaxMoney) == true)) && ((TotalPriceMoney == null && other.TotalPriceMoney == null) || (TotalPriceMoney?.Equals(other.TotalPriceMoney) == true)) && ((TotalDiscountMoney == null && other.TotalDiscountMoney == null) || (TotalDiscountMoney?.Equals(other.TotalDiscountMoney) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) && ((ExpiresAt == null && other.ExpiresAt == null) || (ExpiresAt?.Equals(other.ExpiresAt) == true)) && ((PaymentId == null && other.PaymentId == null) || (PaymentId?.Equals(other.PaymentId) == true)) && ((BuyerNote == null && other.BuyerNote == null) || (BuyerNote?.Equals(other.BuyerNote) == true)) && ((CompletedNote == null && other.CompletedNote == null) || (CompletedNote?.Equals(other.CompletedNote) == true)) && ((RefundedNote == null && other.RefundedNote == null) || (RefundedNote?.Equals(other.RefundedNote) == true)) && ((CanceledNote == null && other.CanceledNote == null) || (CanceledNote?.Equals(other.CanceledNote) == true)) && ((Tender == null && other.Tender == null) || (Tender?.Equals(other.Tender) == true)) && ((OrderHistory == null && other.OrderHistory == null) || (OrderHistory?.Equals(other.OrderHistory) == true)) && ((PromoCode == null && other.PromoCode == null) || (PromoCode?.Equals(other.PromoCode) == true)) && ((BtcReceiveAddress == null && other.BtcReceiveAddress == null) || (BtcReceiveAddress?.Equals(other.BtcReceiveAddress) == true)) && ((BtcPriceSatoshi == null && other.BtcPriceSatoshi == null) || (BtcPriceSatoshi?.Equals(other.BtcPriceSatoshi) == true))); }
public override int GetHashCode() { int hashCode = -855846569; if (Id != null) { hashCode += Id.GetHashCode(); } if (ReferenceId != null) { hashCode += ReferenceId.GetHashCode(); } if (FromState != null) { hashCode += FromState.GetHashCode(); } if (ToState != null) { hashCode += ToState.GetHashCode(); } if (LocationId != null) { hashCode += LocationId.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (CatalogObjectType != null) { hashCode += CatalogObjectType.GetHashCode(); } if (Quantity != null) { hashCode += Quantity.GetHashCode(); } if (TotalPriceMoney != null) { hashCode += TotalPriceMoney.GetHashCode(); } if (OccurredAt != null) { hashCode += OccurredAt.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (Source != null) { hashCode += Source.GetHashCode(); } if (EmployeeId != null) { hashCode += EmployeeId.GetHashCode(); } if (TransactionId != null) { hashCode += TransactionId.GetHashCode(); } if (RefundId != null) { hashCode += RefundId.GetHashCode(); } if (PurchaseOrderId != null) { hashCode += PurchaseOrderId.GetHashCode(); } if (GoodsReceiptId != null) { hashCode += GoodsReceiptId.GetHashCode(); } return(hashCode); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}"); toStringOutput.Add($"ReferenceId = {(ReferenceId == null ? "null" : ReferenceId == string.Empty ? "" : ReferenceId)}"); toStringOutput.Add($"FromState = {(FromState == null ? "null" : FromState.ToString())}"); toStringOutput.Add($"ToState = {(ToState == null ? "null" : ToState.ToString())}"); toStringOutput.Add($"LocationId = {(LocationId == null ? "null" : LocationId == string.Empty ? "" : LocationId)}"); toStringOutput.Add($"CatalogObjectId = {(CatalogObjectId == null ? "null" : CatalogObjectId == string.Empty ? "" : CatalogObjectId)}"); toStringOutput.Add($"CatalogObjectType = {(CatalogObjectType == null ? "null" : CatalogObjectType == string.Empty ? "" : CatalogObjectType)}"); toStringOutput.Add($"Quantity = {(Quantity == null ? "null" : Quantity == string.Empty ? "" : Quantity)}"); toStringOutput.Add($"TotalPriceMoney = {(TotalPriceMoney == null ? "null" : TotalPriceMoney.ToString())}"); toStringOutput.Add($"OccurredAt = {(OccurredAt == null ? "null" : OccurredAt == string.Empty ? "" : OccurredAt)}"); toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt == string.Empty ? "" : CreatedAt)}"); toStringOutput.Add($"Source = {(Source == null ? "null" : Source.ToString())}"); toStringOutput.Add($"EmployeeId = {(EmployeeId == null ? "null" : EmployeeId == string.Empty ? "" : EmployeeId)}"); toStringOutput.Add($"TransactionId = {(TransactionId == null ? "null" : TransactionId == string.Empty ? "" : TransactionId)}"); toStringOutput.Add($"RefundId = {(RefundId == null ? "null" : RefundId == string.Empty ? "" : RefundId)}"); toStringOutput.Add($"PurchaseOrderId = {(PurchaseOrderId == null ? "null" : PurchaseOrderId == string.Empty ? "" : PurchaseOrderId)}"); toStringOutput.Add($"GoodsReceiptId = {(GoodsReceiptId == null ? "null" : GoodsReceiptId == string.Empty ? "" : GoodsReceiptId)}"); }
public override int GetHashCode() { int hashCode = 820864276; if (Context != null) { hashCode += Context.GetHashCode(); } if (Errors != null) { hashCode += Errors.GetHashCode(); } if (Id != null) { hashCode += Id.GetHashCode(); } if (BuyerEmail != null) { hashCode += BuyerEmail.GetHashCode(); } if (RecipientName != null) { hashCode += RecipientName.GetHashCode(); } if (RecipientPhoneNumber != null) { hashCode += RecipientPhoneNumber.GetHashCode(); } if (State != null) { hashCode += State.GetHashCode(); } if (ShippingAddress != null) { hashCode += ShippingAddress.GetHashCode(); } if (SubtotalMoney != null) { hashCode += SubtotalMoney.GetHashCode(); } if (TotalShippingMoney != null) { hashCode += TotalShippingMoney.GetHashCode(); } if (TotalTaxMoney != null) { hashCode += TotalTaxMoney.GetHashCode(); } if (TotalPriceMoney != null) { hashCode += TotalPriceMoney.GetHashCode(); } if (TotalDiscountMoney != null) { hashCode += TotalDiscountMoney.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode += UpdatedAt.GetHashCode(); } if (ExpiresAt != null) { hashCode += ExpiresAt.GetHashCode(); } if (PaymentId != null) { hashCode += PaymentId.GetHashCode(); } if (BuyerNote != null) { hashCode += BuyerNote.GetHashCode(); } if (CompletedNote != null) { hashCode += CompletedNote.GetHashCode(); } if (RefundedNote != null) { hashCode += RefundedNote.GetHashCode(); } if (CanceledNote != null) { hashCode += CanceledNote.GetHashCode(); } if (Tender != null) { hashCode += Tender.GetHashCode(); } if (OrderHistory != null) { hashCode += OrderHistory.GetHashCode(); } if (PromoCode != null) { hashCode += PromoCode.GetHashCode(); } if (BtcReceiveAddress != null) { hashCode += BtcReceiveAddress.GetHashCode(); } if (BtcPriceSatoshi != null) { hashCode += BtcPriceSatoshi.GetHashCode(); } return(hashCode); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Errors = {(Errors == null ? "null" : $"[{ string.Join(", ", Errors)} ]")}"); toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}"); toStringOutput.Add($"BuyerEmail = {(BuyerEmail == null ? "null" : BuyerEmail == string.Empty ? "" : BuyerEmail)}"); toStringOutput.Add($"RecipientName = {(RecipientName == null ? "null" : RecipientName == string.Empty ? "" : RecipientName)}"); toStringOutput.Add($"RecipientPhoneNumber = {(RecipientPhoneNumber == null ? "null" : RecipientPhoneNumber == string.Empty ? "" : RecipientPhoneNumber)}"); toStringOutput.Add($"State = {(State == null ? "null" : State.ToString())}"); toStringOutput.Add($"ShippingAddress = {(ShippingAddress == null ? "null" : ShippingAddress.ToString())}"); toStringOutput.Add($"SubtotalMoney = {(SubtotalMoney == null ? "null" : SubtotalMoney.ToString())}"); toStringOutput.Add($"TotalShippingMoney = {(TotalShippingMoney == null ? "null" : TotalShippingMoney.ToString())}"); toStringOutput.Add($"TotalTaxMoney = {(TotalTaxMoney == null ? "null" : TotalTaxMoney.ToString())}"); toStringOutput.Add($"TotalPriceMoney = {(TotalPriceMoney == null ? "null" : TotalPriceMoney.ToString())}"); toStringOutput.Add($"TotalDiscountMoney = {(TotalDiscountMoney == null ? "null" : TotalDiscountMoney.ToString())}"); toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt == string.Empty ? "" : CreatedAt)}"); toStringOutput.Add($"UpdatedAt = {(UpdatedAt == null ? "null" : UpdatedAt == string.Empty ? "" : UpdatedAt)}"); toStringOutput.Add($"ExpiresAt = {(ExpiresAt == null ? "null" : ExpiresAt == string.Empty ? "" : ExpiresAt)}"); toStringOutput.Add($"PaymentId = {(PaymentId == null ? "null" : PaymentId == string.Empty ? "" : PaymentId)}"); toStringOutput.Add($"BuyerNote = {(BuyerNote == null ? "null" : BuyerNote == string.Empty ? "" : BuyerNote)}"); toStringOutput.Add($"CompletedNote = {(CompletedNote == null ? "null" : CompletedNote == string.Empty ? "" : CompletedNote)}"); toStringOutput.Add($"RefundedNote = {(RefundedNote == null ? "null" : RefundedNote == string.Empty ? "" : RefundedNote)}"); toStringOutput.Add($"CanceledNote = {(CanceledNote == null ? "null" : CanceledNote == string.Empty ? "" : CanceledNote)}"); toStringOutput.Add($"Tender = {(Tender == null ? "null" : Tender.ToString())}"); toStringOutput.Add($"OrderHistory = {(OrderHistory == null ? "null" : $"[{ string.Join(", ", OrderHistory)} ]")}"); toStringOutput.Add($"PromoCode = {(PromoCode == null ? "null" : PromoCode == string.Empty ? "" : PromoCode)}"); toStringOutput.Add($"BtcReceiveAddress = {(BtcReceiveAddress == null ? "null" : BtcReceiveAddress == string.Empty ? "" : BtcReceiveAddress)}"); toStringOutput.Add($"BtcPriceSatoshi = {(BtcPriceSatoshi == null ? "null" : BtcPriceSatoshi.ToString())}"); }