/// <summary> /// Returns true if CreateHostedCheckoutResponse instances are equal /// </summary> /// <param name="other">Instance of CreateHostedCheckoutResponse to be compared</param> /// <returns>Boolean</returns> public bool Equals(CreateHostedCheckoutResponse other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Returnmac == other.Returnmac || Returnmac != null && Returnmac.Equals(other.Returnmac) ) && ( HostedCheckoutId == other.HostedCheckoutId || HostedCheckoutId != null && HostedCheckoutId.Equals(other.HostedCheckoutId) ) && ( InvalidTokens == other.InvalidTokens || InvalidTokens != null && InvalidTokens.SequenceEqual(other.InvalidTokens) ) && ( MerchantReference == other.MerchantReference || MerchantReference != null && MerchantReference.Equals(other.MerchantReference) ) && ( PartialRedirectUrl == other.PartialRedirectUrl || PartialRedirectUrl != null && PartialRedirectUrl.Equals(other.PartialRedirectUrl) )); }
/// <summary> /// Returns true if HostedCheckoutSpecificOutput instances are equal /// </summary> /// <param name="other">Instance of HostedCheckoutSpecificOutput to be compared</param> /// <returns>Boolean</returns> public bool Equals(HostedCheckoutSpecificOutput other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( HostedCheckoutId == other.HostedCheckoutId || HostedCheckoutId != null && HostedCheckoutId.Equals(other.HostedCheckoutId) ) && ( Variant == other.Variant || Variant != null && Variant.Equals(other.Variant) )); }