C# Class SIPSorcery.Web.Services.Accounting

Inheritance: IAccounting
Mostra file Open project: sipsorcery/sipsorcery

Public Methods

Method Description
AddCustomerAccount ( CustomerAccountJSON customerAccount ) : JSONResult
AddRate ( RateJSON rate ) : JSONResult
DeleteCustomerAccount ( string id ) : JSONResult
DeleteRate ( string id ) : JSONResult
DoesAccountNumberExist ( string accountNumber ) : bool
GetCustomerAccounts ( string where, int offset, int count ) : JSONResult>
GetCustomerAccountsCount ( string where ) : JSONResult
GetRates ( string where, int offset, int count ) : JSONResult>
GetRatesCount ( string where ) : JSONResult
IsAlive ( ) : bool
UpdateCustomerAccount ( CustomerAccountJSON customerAccount ) : JSONResult
UpdateRate ( RateJSON rate ) : JSONResult
VerifyCustomerAccount ( string accountNumber, int pin ) : bool

Private Methods

Method Description
AuthoriseRequest ( ) : Customer

Method Details

AddCustomerAccount() public method

public AddCustomerAccount ( CustomerAccountJSON customerAccount ) : JSONResult
customerAccount CustomerAccountJSON
return JSONResult

AddRate() public method

public AddRate ( RateJSON rate ) : JSONResult
rate SIPSorcery.Entities.RateJSON
return JSONResult

DeleteCustomerAccount() public method

public DeleteCustomerAccount ( string id ) : JSONResult
id string
return JSONResult

DeleteRate() public method

public DeleteRate ( string id ) : JSONResult
id string
return JSONResult

DoesAccountNumberExist() public method

public DoesAccountNumberExist ( string accountNumber ) : bool
accountNumber string
return bool

GetCustomerAccounts() public method

public GetCustomerAccounts ( string where, int offset, int count ) : JSONResult>
where string
offset int
count int
return JSONResult>

GetCustomerAccountsCount() public method

public GetCustomerAccountsCount ( string where ) : JSONResult
where string
return JSONResult

GetRates() public method

public GetRates ( string where, int offset, int count ) : JSONResult>
where string
offset int
count int
return JSONResult>

GetRatesCount() public method

public GetRatesCount ( string where ) : JSONResult
where string
return JSONResult

IsAlive() public method

public IsAlive ( ) : bool
return bool

UpdateCustomerAccount() public method

public UpdateCustomerAccount ( CustomerAccountJSON customerAccount ) : JSONResult
customerAccount CustomerAccountJSON
return JSONResult

UpdateRate() public method

public UpdateRate ( RateJSON rate ) : JSONResult
rate SIPSorcery.Entities.RateJSON
return JSONResult

VerifyCustomerAccount() public method

public VerifyCustomerAccount ( string accountNumber, int pin ) : bool
accountNumber string
pin int
return bool