public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderReturnServiceCharge other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((SourceServiceChargeUid == null && other.SourceServiceChargeUid == null) || (SourceServiceChargeUid?.Equals(other.SourceServiceChargeUid) == true)) && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) && ((Percentage == null && other.Percentage == null) || (Percentage?.Equals(other.Percentage) == true)) && ((AmountMoney == null && other.AmountMoney == null) || (AmountMoney?.Equals(other.AmountMoney) == true)) && ((AppliedMoney == null && other.AppliedMoney == null) || (AppliedMoney?.Equals(other.AppliedMoney) == true)) && ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) && ((TotalTaxMoney == null && other.TotalTaxMoney == null) || (TotalTaxMoney?.Equals(other.TotalTaxMoney) == true)) && ((CalculationPhase == null && other.CalculationPhase == null) || (CalculationPhase?.Equals(other.CalculationPhase) == true)) && ((Taxable == null && other.Taxable == null) || (Taxable?.Equals(other.Taxable) == true)) && ((AppliedTaxes == null && other.AppliedTaxes == null) || (AppliedTaxes?.Equals(other.AppliedTaxes) == true))); }
public override int GetHashCode() { int hashCode = 141089450; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (BasePriceMoney != null) { hashCode += BasePriceMoney.GetHashCode(); } if (TotalPriceMoney != null) { hashCode += TotalPriceMoney.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderLineItemDiscount other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((Type == null && other.Type == null) || (Type?.Equals(other.Type) == true)) && ((Percentage == null && other.Percentage == null) || (Percentage?.Equals(other.Percentage) == true)) && ((AmountMoney == null && other.AmountMoney == null) || (AmountMoney?.Equals(other.AmountMoney) == true)) && ((AppliedMoney == null && other.AppliedMoney == null) || (AppliedMoney?.Equals(other.AppliedMoney) == true)) && ((Metadata == null && other.Metadata == null) || (Metadata?.Equals(other.Metadata) == true)) && ((Scope == null && other.Scope == null) || (Scope?.Equals(other.Scope) == true)) && ((RewardIds == null && other.RewardIds == null) || (RewardIds?.Equals(other.RewardIds) == true)) && ((PricingRuleId == null && other.PricingRuleId == null) || (PricingRuleId?.Equals(other.PricingRuleId) == true))); }
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 OrderReturnLineItem other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((SourceLineItemUid == null && other.SourceLineItemUid == null) || (SourceLineItemUid?.Equals(other.SourceLineItemUid) == true)) && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((Quantity == null && other.Quantity == null) || (Quantity?.Equals(other.Quantity) == true)) && ((QuantityUnit == null && other.QuantityUnit == null) || (QuantityUnit?.Equals(other.QuantityUnit) == true)) && ((Note == null && other.Note == null) || (Note?.Equals(other.Note) == true)) && ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) && ((VariationName == null && other.VariationName == null) || (VariationName?.Equals(other.VariationName) == true)) && ((ReturnModifiers == null && other.ReturnModifiers == null) || (ReturnModifiers?.Equals(other.ReturnModifiers) == true)) && ((AppliedTaxes == null && other.AppliedTaxes == null) || (AppliedTaxes?.Equals(other.AppliedTaxes) == true)) && ((AppliedDiscounts == null && other.AppliedDiscounts == null) || (AppliedDiscounts?.Equals(other.AppliedDiscounts) == true)) && ((BasePriceMoney == null && other.BasePriceMoney == null) || (BasePriceMoney?.Equals(other.BasePriceMoney) == true)) && ((VariationTotalPriceMoney == null && other.VariationTotalPriceMoney == null) || (VariationTotalPriceMoney?.Equals(other.VariationTotalPriceMoney) == true)) && ((GrossReturnMoney == null && other.GrossReturnMoney == null) || (GrossReturnMoney?.Equals(other.GrossReturnMoney) == true)) && ((TotalTaxMoney == null && other.TotalTaxMoney == null) || (TotalTaxMoney?.Equals(other.TotalTaxMoney) == true)) && ((TotalDiscountMoney == null && other.TotalDiscountMoney == null) || (TotalDiscountMoney?.Equals(other.TotalDiscountMoney) == true)) && ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is InventoryTransfer other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) && ((State == null && other.State == null) || (State?.Equals(other.State) == true)) && ((FromLocationId == null && other.FromLocationId == null) || (FromLocationId?.Equals(other.FromLocationId) == true)) && ((ToLocationId == null && other.ToLocationId == null) || (ToLocationId?.Equals(other.ToLocationId) == 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)) && ((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))); }
public override int GetHashCode() { int hashCode = 1132361355; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (SourceDiscountUid != null) { hashCode += SourceDiscountUid.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (Type != null) { hashCode += Type.GetHashCode(); } if (Percentage != null) { hashCode += Percentage.GetHashCode(); } if (AmountMoney != null) { hashCode += AmountMoney.GetHashCode(); } if (AppliedMoney != null) { hashCode += AppliedMoney.GetHashCode(); } if (Scope != null) { hashCode += Scope.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = -687616842; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (Type != null) { hashCode += Type.GetHashCode(); } if (Percentage != null) { hashCode += Percentage.GetHashCode(); } if (Metadata != null) { hashCode += Metadata.GetHashCode(); } if (AppliedMoney != null) { hashCode += AppliedMoney.GetHashCode(); } if (Scope != null) { hashCode += Scope.GetHashCode(); } if (AutoApplied != null) { hashCode += AutoApplied.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = -778295832; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (SourceTaxUid != null) { hashCode += SourceTaxUid.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (Type != null) { hashCode += Type.GetHashCode(); } if (Percentage != null) { hashCode += Percentage.GetHashCode(); } if (AppliedMoney != null) { hashCode += AppliedMoney.GetHashCode(); } if (Scope != null) { hashCode += Scope.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderLineItemModifier other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((BasePriceMoney == null && other.BasePriceMoney == null) || (BasePriceMoney?.Equals(other.BasePriceMoney) == true)) && ((TotalPriceMoney == null && other.TotalPriceMoney == null) || (TotalPriceMoney?.Equals(other.TotalPriceMoney) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is InventoryCount other && ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) && ((CatalogObjectType == null && other.CatalogObjectType == null) || (CatalogObjectType?.Equals(other.CatalogObjectType) == true)) && ((State == null && other.State == null) || (State?.Equals(other.State) == true)) && ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) && ((Quantity == null && other.Quantity == null) || (Quantity?.Equals(other.Quantity) == true)) && ((CalculatedAt == null && other.CalculatedAt == null) || (CalculatedAt?.Equals(other.CalculatedAt) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderReturnTax other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((SourceTaxUid == null && other.SourceTaxUid == null) || (SourceTaxUid?.Equals(other.SourceTaxUid) == true)) && ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((Type == null && other.Type == null) || (Type?.Equals(other.Type) == true)) && ((Percentage == null && other.Percentage == null) || (Percentage?.Equals(other.Percentage) == true)) && ((AppliedMoney == null && other.AppliedMoney == null) || (AppliedMoney?.Equals(other.AppliedMoney) == true)) && ((Scope == null && other.Scope == null) || (Scope?.Equals(other.Scope) == true))); }
public override int GetHashCode() { int hashCode = 151741649; if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (CatalogObjectType != null) { hashCode += CatalogObjectType.GetHashCode(); } if (State != null) { hashCode += State.GetHashCode(); } if (LocationId != null) { hashCode += LocationId.GetHashCode(); } if (Quantity != null) { hashCode += Quantity.GetHashCode(); } if (CalculatedAt != null) { hashCode += CalculatedAt.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = 909107113; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (SourceModifierUid != null) { hashCode += SourceModifierUid.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (BasePriceMoney != null) { hashCode += BasePriceMoney.GetHashCode(); } if (TotalPriceMoney != null) { hashCode += TotalPriceMoney.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = 1266271501; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (Percentage != null) { hashCode += Percentage.GetHashCode(); } if (AmountMoney != null) { hashCode += AmountMoney.GetHashCode(); } if (AppliedMoney != null) { hashCode += AppliedMoney.GetHashCode(); } if (TotalMoney != null) { hashCode += TotalMoney.GetHashCode(); } if (TotalTaxMoney != null) { hashCode += TotalTaxMoney.GetHashCode(); } if (CalculationPhase != null) { hashCode += CalculationPhase.GetHashCode(); } if (Taxable != null) { hashCode += Taxable.GetHashCode(); } if (AppliedTaxes != null) { hashCode += AppliedTaxes.GetHashCode(); } if (Metadata != null) { hashCode += Metadata.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = 1299728447; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (SourceLineItemUid != null) { hashCode += SourceLineItemUid.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (Quantity != null) { hashCode += Quantity.GetHashCode(); } if (QuantityUnit != null) { hashCode += QuantityUnit.GetHashCode(); } if (Note != null) { hashCode += Note.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (VariationName != null) { hashCode += VariationName.GetHashCode(); } if (ReturnModifiers != null) { hashCode += ReturnModifiers.GetHashCode(); } if (AppliedTaxes != null) { hashCode += AppliedTaxes.GetHashCode(); } if (AppliedDiscounts != null) { hashCode += AppliedDiscounts.GetHashCode(); } if (BasePriceMoney != null) { hashCode += BasePriceMoney.GetHashCode(); } if (VariationTotalPriceMoney != null) { hashCode += VariationTotalPriceMoney.GetHashCode(); } if (GrossReturnMoney != null) { hashCode += GrossReturnMoney.GetHashCode(); } if (TotalTaxMoney != null) { hashCode += TotalTaxMoney.GetHashCode(); } if (TotalDiscountMoney != null) { hashCode += TotalDiscountMoney.GetHashCode(); } if (TotalMoney != null) { hashCode += TotalMoney.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = 441365892; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (Quantity != null) { hashCode += Quantity.GetHashCode(); } if (QuantityUnit != null) { hashCode += QuantityUnit.GetHashCode(); } if (Note != null) { hashCode += Note.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (VariationName != null) { hashCode += VariationName.GetHashCode(); } if (Metadata != null) { hashCode += Metadata.GetHashCode(); } if (Modifiers != null) { hashCode += Modifiers.GetHashCode(); } if (AppliedTaxes != null) { hashCode += AppliedTaxes.GetHashCode(); } if (AppliedDiscounts != null) { hashCode += AppliedDiscounts.GetHashCode(); } if (BasePriceMoney != null) { hashCode += BasePriceMoney.GetHashCode(); } if (VariationTotalPriceMoney != null) { hashCode += VariationTotalPriceMoney.GetHashCode(); } if (GrossSalesMoney != null) { hashCode += GrossSalesMoney.GetHashCode(); } if (TotalTaxMoney != null) { hashCode += TotalTaxMoney.GetHashCode(); } if (TotalDiscountMoney != null) { hashCode += TotalDiscountMoney.GetHashCode(); } if (TotalMoney != null) { hashCode += TotalMoney.GetHashCode(); } if (PricingBlocklists != null) { hashCode += PricingBlocklists.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = -136136157; if (Id != null) { hashCode += Id.GetHashCode(); } if (ReferenceId != null) { hashCode += ReferenceId.GetHashCode(); } if (State != null) { hashCode += State.GetHashCode(); } if (FromLocationId != null) { hashCode += FromLocationId.GetHashCode(); } if (ToLocationId != null) { hashCode += ToLocationId.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (CatalogObjectType != null) { hashCode += CatalogObjectType.GetHashCode(); } if (Quantity != null) { hashCode += Quantity.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(); } return(hashCode); }
public override int GetHashCode() { int hashCode = 1963841269; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (Type != null) { hashCode += Type.GetHashCode(); } if (Percentage != null) { hashCode += Percentage.GetHashCode(); } if (AmountMoney != null) { hashCode += AmountMoney.GetHashCode(); } if (AppliedMoney != null) { hashCode += AppliedMoney.GetHashCode(); } if (Metadata != null) { hashCode += Metadata.GetHashCode(); } if (Scope != null) { hashCode += Scope.GetHashCode(); } if (RewardIds != null) { hashCode += RewardIds.GetHashCode(); } if (PricingRuleId != null) { hashCode += PricingRuleId.GetHashCode(); } return(hashCode); }
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); }
public override int GetHashCode() { int hashCode = -2013241171; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (SourceServiceChargeUid != null) { hashCode += SourceServiceChargeUid.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (CatalogObjectId != null) { hashCode += CatalogObjectId.GetHashCode(); } if (Percentage != null) { hashCode += Percentage.GetHashCode(); } if (AmountMoney != null) { hashCode += AmountMoney.GetHashCode(); } if (AppliedMoney != null) { hashCode += AppliedMoney.GetHashCode(); } if (TotalMoney != null) { hashCode += TotalMoney.GetHashCode(); } if (TotalTaxMoney != null) { hashCode += TotalTaxMoney.GetHashCode(); } if (CalculationPhase != null) { hashCode += CalculationPhase.GetHashCode(); } if (Taxable != null) { hashCode += Taxable.GetHashCode(); } if (AppliedTaxes != null) { hashCode += AppliedTaxes.GetHashCode(); } return(hashCode); }