UFN_SALESORDERBBPAYTRANSACTION_PROCESSINGRESULTCODE_GETID

Return

Return Type
tinyint

Parameters

Parameter Parameter Type Mode Description
@Description nvarchar(17) IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  4/26/2019 6:01:20 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=4.0.2006.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_SALESORDERBBPAYTRANSACTION_PROCESSINGRESULTCODE_GETID(@Description nvarchar(17))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Approved' then 0
        when 'ValidationError' then 1
        when 'GatewayDecline' then 2
        when 'ProcessingError' then 3
        when 'NotProcessed' then 4
        when 'OfflineProcessing' then 5
        when 'GatewayProcessing' then 6
        when 'GatewayPending' then 7
        when 'Pending' then 8
        when 'CheckoutPending' then 9
        else -1
        end 

end