C# Class SageOneApi.Requests.AccountRequest

Inheritance: RequestBase, IAccountRequest
Show file Open project: Pietervdw/sageone-api-wrapper

Public Methods

Method Description
AccountRequest ( IRestClient client, string apiKey, int companyId ) : System
Delete ( int id ) : bool
Get ( int id ) : Account
Get ( bool includeSystemAccounts = false, int skip ) : PagingResponse
GetByCategory ( int categoryId ) : PagingResponse
Save ( Account account ) : Account

Method Details

AccountRequest() public method

public AccountRequest ( IRestClient client, string apiKey, int companyId ) : System
client IRestClient
apiKey string
companyId int
return System

Delete() public method

public Delete ( int id ) : bool
id int
return bool

Get() public method

public Get ( int id ) : Account
id int
return SageOneApi.Models.Account

Get() public method

public Get ( bool includeSystemAccounts = false, int skip ) : PagingResponse
includeSystemAccounts bool
skip int
return PagingResponse

GetByCategory() public method

public GetByCategory ( int categoryId ) : PagingResponse
categoryId int
return PagingResponse

Save() public method

public Save ( Account account ) : Account
account SageOneApi.Models.Account
return SageOneApi.Models.Account