C# Class com.eze.api.EzeAPI

ファイルを表示 Open project: ezetap/client-sdk-win-dotnet Class Usage Examples

Public Methods

Method Description
attachSignature ( string txnId, ImageType imageType, ByteString imageData, int height, int width, double tipAmount ) : EzeResult
cardTransaction ( double amount, PaymentMode mode, OptionalParams options ) : EzeResult
cashTransaction ( double amount, OptionalParams options ) : EzeResult
chequeTransaction ( double amount, Cheque cDetails, OptionalParams options ) : EzeResult
close ( ) : EzeResult
create ( ) : EzeAPI
getTransaction ( String txId ) : EzeResult
getTransactionHistory ( string startDate, string endDate ) : EzeResult
initialize ( EzeConfig config ) : EzeResult
prepareDevice ( ) : EzeResult

sendReceipt ( string txnId, string mobileNo, String email ) : EzeResult
setMessageHandler ( EzeNotification handler ) : void

This method provides an mechanism to set the message handler that receives notifications about the status of API transactions

setPath ( String path ) : void
voidTransaction ( String txnId ) : EzeResult

Private Methods

Method Description
CurrentTimeMillis ( ) : long
EzeAPI ( ) : System
MapEventName ( com eType ) : EventName
MapImageType ( ImageType imageType ) : SignatureInput.Types.ImageType
MapLoginMode ( LoginMode mode ) : LoginInput.Types.LoginMode
MapServerType ( ServerType type ) : ServerTypeInput.Types.ServerType
MapStatus ( ApiOutput status ) : Status
destroyInstance ( ) : void
exit ( ) : EzeResult
getEzecliFile ( ) : string
getIntegerFromByte ( byte byteArr ) : int
getResult ( ApiOutput apiOutput ) : EzeResult
initializeEzeCli ( ) : System.Boolean
intToBytes ( int intValue ) : byte[]
login ( LoginMode mode, string userName, string passkey ) : EzeResult
logout ( ) : EzeResult
readWithTimeout ( byte data, int timeoutMillis ) : int
receive ( ) : ApiOutput
reverseArray ( byte array ) : byte[]
send ( ApiInput apiInput ) : void
setServerType ( ServerType type ) : void

Method Details

attachSignature() public method

public attachSignature ( string txnId, ImageType imageType, ByteString imageData, int height, int width, double tipAmount ) : EzeResult
txnId string
imageType ImageType
imageData ByteString
height int
width int
tipAmount double
return EzeResult

cardTransaction() public method

public cardTransaction ( double amount, PaymentMode mode, OptionalParams options ) : EzeResult
amount double
mode PaymentMode
options OptionalParams
return EzeResult

cashTransaction() public method

public cashTransaction ( double amount, OptionalParams options ) : EzeResult
amount double
options OptionalParams
return EzeResult

chequeTransaction() public method

public chequeTransaction ( double amount, Cheque cDetails, OptionalParams options ) : EzeResult
amount double
cDetails Cheque
options OptionalParams
return EzeResult

close() public method

public close ( ) : EzeResult
return EzeResult

create() public static method

public static create ( ) : EzeAPI
return EzeAPI

getTransaction() public method

public getTransaction ( String txId ) : EzeResult
txId String
return EzeResult

getTransactionHistory() public method

public getTransactionHistory ( string startDate, string endDate ) : EzeResult
startDate string
endDate string
return EzeResult

initialize() public method

public initialize ( EzeConfig config ) : EzeResult
config EzeConfig
return EzeResult

prepareDevice() public method

public prepareDevice ( ) : EzeResult
return EzeResult

sendReceipt() public method

public sendReceipt ( string txnId, string mobileNo, String email ) : EzeResult
txnId string
mobileNo string
email String
return EzeResult

setMessageHandler() public method

This method provides an mechanism to set the message handler that receives notifications about the status of API transactions
public setMessageHandler ( EzeNotification handler ) : void
handler EzeNotification a delegate of EzeNotification
return void

setPath() public static method

public static setPath ( String path ) : void
path String
return void

voidTransaction() public method

public voidTransaction ( String txnId ) : EzeResult
txnId String
return EzeResult