public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is Tender other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) && ((TransactionId == null && other.TransactionId == null) || (TransactionId?.Equals(other.TransactionId) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((Note == null && other.Note == null) || (Note?.Equals(other.Note) == true)) && ((AmountMoney == null && other.AmountMoney == null) || (AmountMoney?.Equals(other.AmountMoney) == true)) && ((TipMoney == null && other.TipMoney == null) || (TipMoney?.Equals(other.TipMoney) == true)) && ((ProcessingFeeMoney == null && other.ProcessingFeeMoney == null) || (ProcessingFeeMoney?.Equals(other.ProcessingFeeMoney) == true)) && ((CustomerId == null && other.CustomerId == null) || (CustomerId?.Equals(other.CustomerId) == true)) && ((Type == null && other.Type == null) || (Type?.Equals(other.Type) == true)) && ((CardDetails == null && other.CardDetails == null) || (CardDetails?.Equals(other.CardDetails) == true)) && ((CashDetails == null && other.CashDetails == null) || (CashDetails?.Equals(other.CashDetails) == true)) && ((AdditionalRecipients == null && other.AdditionalRecipients == null) || (AdditionalRecipients?.Equals(other.AdditionalRecipients) == true)) && ((PaymentId == null && other.PaymentId == null) || (PaymentId?.Equals(other.PaymentId) == 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))); }
/// <summary> /// Compares two start transaction responses for equality. /// </summary> /// <param name="StartTransactionResponse">A start transaction response to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(StartTransactionResponse StartTransactionResponse) { if (StartTransactionResponse is null) { return(false); } return(TransactionId.Equals(StartTransactionResponse.TransactionId) && IdTagInfo.Equals(StartTransactionResponse.IdTagInfo)); }
/// <summary> /// Compares two SetEVSESyntheticStatus responses for equality. /// </summary> /// <param name="SetEVSESyntheticStatusResponse">A SetEVSESyntheticStatus response to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(SetEVSESyntheticStatusResponse SetEVSESyntheticStatusResponse) { if ((Object)SetEVSESyntheticStatusResponse == null) { return(false); } return(TransactionId.Equals(SetEVSESyntheticStatusResponse.TransactionId) && RequestStatus.Equals(SetEVSESyntheticStatusResponse.RequestStatus)); }
/// <summary> /// Compares two SetSessionEventReport responses for equality. /// </summary> /// <param name="SetSessionEventReportResponse">A SetSessionEventReport response to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(SetSessionEventReportResponse SetSessionEventReportResponse) { if (SetSessionEventReportResponse is null) { return(false); } return(TransactionId.Equals(SetSessionEventReportResponse.TransactionId) && RequestStatus.Equals(SetSessionEventReportResponse.RequestStatus)); }
/// <summary> /// Compares two SetChargingConnectorAvailabilityStatus responses for equality. /// </summary> /// <param name="SetChargingConnectorAvailabilityStatusResponse">A SetChargingConnectorAvailabilityStatus response to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(SetChargingConnectorAvailabilityStatusResponse SetChargingConnectorAvailabilityStatusResponse) { if ((Object)SetChargingConnectorAvailabilityStatusResponse == null) { return(false); } return(TransactionId.Equals(SetChargingConnectorAvailabilityStatusResponse.TransactionId) && RequestStatus.Equals(SetChargingConnectorAvailabilityStatusResponse.RequestStatus)); }
/// <summary> /// Compares two SetSessionAction responses for equality. /// </summary> /// <param name="SetSessionActionResponse">A SetSessionAction response to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(SetSessionActionResponse SetSessionActionResponse) { if (SetSessionActionResponse is null) { return(false); } return(TransactionId.Equals(SetSessionActionResponse.TransactionId) && RequestStatus.Equals(SetSessionActionResponse.RequestStatus) && ServiceSessionId.Equals(SetSessionActionResponse.ServiceSessionId) && SessionActionId.Equals(SetSessionActionResponse.SessionActionId)); }
/// <summary> /// Compares two Heartbeat responses for equality. /// </summary> /// <param name="HeartbeatResponse">A Heartbeat response to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(HeartbeatResponse HeartbeatResponse) { if ((Object)HeartbeatResponse == null) { return(false); } return(HeartbeatPeriod.Equals(HeartbeatResponse.HeartbeatPeriod) && CurrentTime.Equals(HeartbeatResponse.CurrentTime) && TransactionId.Equals(HeartbeatResponse.TransactionId) && RequestStatus.Equals(HeartbeatResponse.RequestStatus)); }
/// <summary> /// Compares two SetServiceAuthorisation responses for equality. /// </summary> /// <param name="SetServiceAuthorisationResponse">A SetServiceAuthorisation response to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(SetServiceAuthorisationResponse SetServiceAuthorisationResponse) { if ((Object)SetServiceAuthorisationResponse == null) { return(false); } return(TransactionId.Equals(SetServiceAuthorisationResponse.TransactionId) && RequestStatus.Equals(SetServiceAuthorisationResponse.RequestStatus) && ((!PartnerServiceSessionId.HasValue && !SetServiceAuthorisationResponse.PartnerServiceSessionId.HasValue) || (PartnerServiceSessionId.HasValue && SetServiceAuthorisationResponse.PartnerServiceSessionId.HasValue && PartnerServiceSessionId.Value.Equals(SetServiceAuthorisationResponse.PartnerServiceSessionId.Value)))); }
/// <summary> /// Compares two SetChargeDetailRecord responses for equality. /// </summary> /// <param name="SetChargeDetailRecordResponse">A SetChargeDetailRecord response to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(SetChargeDetailRecordResponse SetChargeDetailRecordResponse) { if (SetChargeDetailRecordResponse is null) { return(false); } return(TransactionId.Equals(SetChargeDetailRecordResponse.TransactionId) && RequestStatus.Equals(SetChargeDetailRecordResponse.RequestStatus) && ((!PartnerServiceSessionId.HasValue && !SetChargeDetailRecordResponse.PartnerServiceSessionId.HasValue) || (PartnerServiceSessionId.HasValue && SetChargeDetailRecordResponse.PartnerServiceSessionId.HasValue && PartnerServiceSessionId.Value.Equals(SetChargeDetailRecordResponse.PartnerServiceSessionId.Value)))); }
/// <summary> /// Compares two SetChargeDetailRecord responses for equality. /// </summary> /// <param name="SetChargeDetailRecordResponse">A SetChargeDetailRecord response to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(SetChargeDetailRecordResponse SetChargeDetailRecordResponse) { if ((Object)SetChargeDetailRecordResponse == null) { return(false); } return(TransactionId.Equals(SetChargeDetailRecordResponse.TransactionId) && ServiceSessionId.Equals(SetChargeDetailRecordResponse.ServiceSessionId) && RequestStatus.Equals(SetChargeDetailRecordResponse.RequestStatus) && ((!SalesPartnerOperatorId.HasValue && !SetChargeDetailRecordResponse.SalesPartnerOperatorId.HasValue) || (SalesPartnerOperatorId.HasValue && SetChargeDetailRecordResponse.SalesPartnerOperatorId.HasValue && SalesPartnerOperatorId.Value.Equals(SetChargeDetailRecordResponse.SalesPartnerOperatorId.Value)))); }
/// <summary> /// Compares two SetServiceAuthorisation responses for equality. /// </summary> /// <param name="SetServiceAuthorisationResponse">A SetServiceAuthorisation response to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(SetServiceAuthorisationResponse SetServiceAuthorisationResponse) { if (SetServiceAuthorisationResponse is null) { return(false); } return(TransactionId.Equals(SetServiceAuthorisationResponse.TransactionId) && RequestStatus.Equals(SetServiceAuthorisationResponse.RequestStatus) && ServiceSessionId.Equals(SetServiceAuthorisationResponse.ServiceSessionId) && ((!ExecPartnerOperatorId.HasValue && !SetServiceAuthorisationResponse.ExecPartnerOperatorId.HasValue) || (ExecPartnerOperatorId.HasValue && SetServiceAuthorisationResponse.ExecPartnerOperatorId.HasValue && ExecPartnerOperatorId.Value.Equals(SetServiceAuthorisationResponse.ExecPartnerOperatorId.Value)))); }
/// <summary> /// Compares two GetServiceAuthorisation responses for equality. /// </summary> /// <param name="GetServiceAuthorisationResponse">A GetServiceAuthorisation response to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(GetServiceAuthorisationResponse GetServiceAuthorisationResponse) { if (GetServiceAuthorisationResponse is null) { return(false); } return(TransactionId.Equals(GetServiceAuthorisationResponse.TransactionId) && AuthorisationValue.Equals(GetServiceAuthorisationResponse.AuthorisationValue) && PartnerServiceSessionId.Equals(GetServiceAuthorisationResponse.PartnerServiceSessionId) && IntermediateCDRRequested.Equals(GetServiceAuthorisationResponse.IntermediateCDRRequested) && RequestStatus.Equals(GetServiceAuthorisationResponse.RequestStatus) && ((!UserContractIdAlias.HasValue && !GetServiceAuthorisationResponse.UserContractIdAlias.HasValue) || (UserContractIdAlias.HasValue && GetServiceAuthorisationResponse.UserContractIdAlias.HasValue && UserContractIdAlias.Value.Equals(GetServiceAuthorisationResponse.UserContractIdAlias.Value)))); // ToDo: Compare MeterLimitLists! }
/// <summary> /// Compares two stop transaction requests for equality. /// </summary> /// <param name="StopTransactionRequest">A stop transaction request to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(StopTransactionRequest StopTransactionRequest) { if ((Object)StopTransactionRequest == null) { return(false); } return(TransactionId.Equals(StopTransactionRequest.TransactionId) && Timestamp.Equals(StopTransactionRequest.Timestamp) && MeterStop.Equals(StopTransactionRequest.MeterStop) && ((!IdTag.HasValue && !StopTransactionRequest.IdTag.HasValue) || (IdTag.HasValue && StopTransactionRequest.IdTag.HasValue && IdTag.Equals(StopTransactionRequest.IdTag))) && ((!Reason.HasValue && !StopTransactionRequest.Reason.HasValue) || (Reason.HasValue && StopTransactionRequest.Reason.HasValue && Reason.Equals(StopTransactionRequest.Reason))) && TransactionData.Count().Equals(StopTransactionRequest.TransactionData.Count())); }
/// <summary> /// Compares two heartbeat requests for equality. /// </summary> /// <param name="GetServiceAuthorisationRequest">A heartbeat request to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(GetServiceAuthorisationRequest GetServiceAuthorisationRequest) { if (GetServiceAuthorisationRequest is null) { return(false); } return(TransactionId.Equals(GetServiceAuthorisationRequest.TransactionId) && PartnerId.Equals(GetServiceAuthorisationRequest.PartnerId) && OperatorId.Equals(GetServiceAuthorisationRequest.OperatorId) && TargetOperatorId.Equals(GetServiceAuthorisationRequest.TargetOperatorId) && EVSEId.Equals(GetServiceAuthorisationRequest.EVSEId) && UserId.Equals(GetServiceAuthorisationRequest.UserId) && RequestedServiceId.Equals(GetServiceAuthorisationRequest.RequestedServiceId) && ((!ServiceSessionId.HasValue && !GetServiceAuthorisationRequest.ServiceSessionId.HasValue) || (ServiceSessionId.HasValue && GetServiceAuthorisationRequest.ServiceSessionId.HasValue && ServiceSessionId.Value.Equals(GetServiceAuthorisationRequest.ServiceSessionId.Value))) && ((!BookingId.HasValue && !GetServiceAuthorisationRequest.BookingId.HasValue) || (BookingId.HasValue && GetServiceAuthorisationRequest.BookingId.HasValue && BookingId.Value.Equals(GetServiceAuthorisationRequest.BookingId.Value)))); }
public bool Equals(PartnerOfferSkuHistoryResponse input) { if (input == null) { return(false); } return (( SkuIdentifier == input.SkuIdentifier || (SkuIdentifier != null && SkuIdentifier.Equals(input.SkuIdentifier)) ) && ( LocalizedName == input.LocalizedName || (LocalizedName != null && LocalizedName.Equals(input.LocalizedName)) ) && ( LocalizedDescription == input.LocalizedDescription || (LocalizedDescription != null && LocalizedDescription.Equals(input.LocalizedDescription)) ) && ( ClaimDate == input.ClaimDate || (ClaimDate != null && ClaimDate.Equals(input.ClaimDate)) ) && ( AllOffersApplied == input.AllOffersApplied || (AllOffersApplied != null && AllOffersApplied.Equals(input.AllOffersApplied)) ) && ( TransactionId == input.TransactionId || (TransactionId != null && TransactionId.Equals(input.TransactionId)) ) && ( SkuOffers == input.SkuOffers || (SkuOffers != null && SkuOffers.SequenceEqual(input.SkuOffers)) )); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is Refund other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) && ((TransactionId == null && other.TransactionId == null) || (TransactionId?.Equals(other.TransactionId) == true)) && ((TenderId == null && other.TenderId == null) || (TenderId?.Equals(other.TenderId) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((Reason == null && other.Reason == null) || (Reason?.Equals(other.Reason) == true)) && ((AmountMoney == null && other.AmountMoney == null) || (AmountMoney?.Equals(other.AmountMoney) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((ProcessingFeeMoney == null && other.ProcessingFeeMoney == null) || (ProcessingFeeMoney?.Equals(other.ProcessingFeeMoney) == true)) && ((AdditionalRecipients == null && other.AdditionalRecipients == null) || (AdditionalRecipients?.Equals(other.AdditionalRecipients) == true))); }
/// <summary> /// Returns true if BankingTransaction instances are equal /// </summary> /// <param name="other">Instance of BankingTransaction to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankingTransaction other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( TransactionId == other.TransactionId || TransactionId != null && TransactionId.Equals(other.TransactionId) ) && ( IsDetailAvailable == other.IsDetailAvailable || IsDetailAvailable != null && IsDetailAvailable.Equals(other.IsDetailAvailable) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Status == other.Status || Status != null && Status.Equals(other.Status) ) && ( Description == other.Description || Description != null && Description.Equals(other.Description) ) && ( PostingDateTime == other.PostingDateTime || PostingDateTime != null && PostingDateTime.Equals(other.PostingDateTime) ) && ( ValueDateTime == other.ValueDateTime || ValueDateTime != null && ValueDateTime.Equals(other.ValueDateTime) ) && ( ExecutionDateTime == other.ExecutionDateTime || ExecutionDateTime != null && ExecutionDateTime.Equals(other.ExecutionDateTime) ) && ( Amount == other.Amount || Amount != null && Amount.Equals(other.Amount) ) && ( Currency == other.Currency || Currency != null && Currency.Equals(other.Currency) ) && ( Reference == other.Reference || Reference != null && Reference.Equals(other.Reference) ) && ( MerchantName == other.MerchantName || MerchantName != null && MerchantName.Equals(other.MerchantName) ) && ( MerchantCategoryCode == other.MerchantCategoryCode || MerchantCategoryCode != null && MerchantCategoryCode.Equals(other.MerchantCategoryCode) ) && ( BillerCode == other.BillerCode || BillerCode != null && BillerCode.Equals(other.BillerCode) ) && ( BillerName == other.BillerName || BillerName != null && BillerName.Equals(other.BillerName) ) && ( Crn == other.Crn || Crn != null && Crn.Equals(other.Crn) ) && ( ApcaNumber == other.ApcaNumber || ApcaNumber != null && ApcaNumber.Equals(other.ApcaNumber) )); }
// Compares booking transaction id with other transaction id public bool Equals(Booking other) { return(TransactionId.Equals(other.TransactionId)); }
public bool Equals(TransactionOutput other) => other != null && OutIndex == other.OutIndex && TransactionId.Equals(other.TransactionId);
/// <summary> /// Returns true if TransactionInfo instances are equal /// </summary> /// <param name="other">Instance of TransactionInfo to be compared</param> /// <returns>Boolean</returns> public bool Equals(TransactionInfo other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( TransactionId == other.TransactionId || TransactionId != null && TransactionId.Equals(other.TransactionId) ) && ( TransactionProcessingState == other.TransactionProcessingState || TransactionProcessingState != null && TransactionProcessingState.Equals(other.TransactionProcessingState) ) && ( InputFirstSeenTime == other.InputFirstSeenTime || InputFirstSeenTime != null && InputFirstSeenTime.Equals(other.InputFirstSeenTime) ) && ( InputFullyConfirmedTime == other.InputFullyConfirmedTime || InputFullyConfirmedTime != null && InputFullyConfirmedTime.Equals(other.InputFullyConfirmedTime) ) && ( InputNumberOfConfirmations == other.InputNumberOfConfirmations || InputNumberOfConfirmations != null && InputNumberOfConfirmations.Equals(other.InputNumberOfConfirmations) ) && ( InputAmount == other.InputAmount || InputAmount != null && InputAmount.Equals(other.InputAmount) ) && ( InputTransactionHash == other.InputTransactionHash || InputTransactionHash != null && InputTransactionHash.Equals(other.InputTransactionHash) ) && ( InputCoinType == other.InputCoinType || InputCoinType != null && InputCoinType.Equals(other.InputCoinType) ) && ( InputWalletType == other.InputWalletType || InputWalletType != null && InputWalletType.Equals(other.InputWalletType) ) && ( InputAddress == other.InputAddress || InputAddress != null && InputAddress.Equals(other.InputAddress) ) && ( PrimarySourceAddress == other.PrimarySourceAddress || PrimarySourceAddress != null && PrimarySourceAddress.Equals(other.PrimarySourceAddress) ) && ( OutputInitiationTime == other.OutputInitiationTime || OutputInitiationTime != null && OutputInitiationTime.Equals(other.OutputInitiationTime) ) && ( OutputAmount == other.OutputAmount || OutputAmount != null && OutputAmount.Equals(other.OutputAmount) ) && ( OutputTransactionHash == other.OutputTransactionHash || OutputTransactionHash != null && OutputTransactionHash.Equals(other.OutputTransactionHash) ) && ( OutputCoinType == other.OutputCoinType || OutputCoinType != null && OutputCoinType.Equals(other.OutputCoinType) ) && ( OutputWalletType == other.OutputWalletType || OutputWalletType != null && OutputWalletType.Equals(other.OutputWalletType) ) && ( OutputAddress == other.OutputAddress || OutputAddress != null && OutputAddress.Equals(other.OutputAddress) ) && ( OutputMemo == other.OutputMemo || OutputMemo != null && OutputMemo.Equals(other.OutputMemo) ) && ( OutputAddressNickname == other.OutputAddressNickname || OutputAddressNickname != null && OutputAddressNickname.Equals(other.OutputAddressNickname) ) && ( LastModifiedTime == other.LastModifiedTime || LastModifiedTime != null && LastModifiedTime.Equals(other.LastModifiedTime) ) && ( RequiredNumberOfInputConfirmations == other.RequiredNumberOfInputConfirmations || RequiredNumberOfInputConfirmations != null && RequiredNumberOfInputConfirmations.Equals(other.RequiredNumberOfInputConfirmations) ) && ( InputUsdEquivalent == other.InputUsdEquivalent || InputUsdEquivalent != null && InputUsdEquivalent.Equals(other.InputUsdEquivalent) ) && ( DelegationId == other.DelegationId || DelegationId != null && DelegationId.Equals(other.DelegationId) ) && ( VestsDelegated == other.VestsDelegated || VestsDelegated != null && VestsDelegated.Equals(other.VestsDelegated) ) && ( SteemPowerDelegated == other.SteemPowerDelegated || SteemPowerDelegated != null && SteemPowerDelegated.Equals(other.SteemPowerDelegated) ) && ( SteemPowerDelegatee == other.SteemPowerDelegatee || SteemPowerDelegatee != null && SteemPowerDelegatee.Equals(other.SteemPowerDelegatee) ) && ( DelegationExtensionDuration == other.DelegationExtensionDuration || DelegationExtensionDuration != null && DelegationExtensionDuration.Equals(other.DelegationExtensionDuration) )); }
public bool Equals(TransactionOutput other) => !other.IsNull() && OutIndex == other.OutIndex && TransactionId.Equals(other.TransactionId);