C# Class Foretagsplatsen.Api2.Resources.CompanyChartOfAccountsResource

Show file Open project: foretagsplatsen/Foretagsplatsen-DotNet-API

Public Methods

Method Description
CompanyChartOfAccountsResource ( ApiClient client, CompanyInfo company ) : System
CompanyChartOfAccountsResource ( ApiClient client, string companyId ) : System
Create ( ChartOfAccounts chartOfAccounts ) : ChartOfAccounts
Delete ( ChartOfAccounts chartOfAccounts ) : void

Deletes a chart of account from the company. The server will return an error if the chart of account is connect to a year.

Delete ( string chartOfAccountsId ) : void

Deletes a chart of account from the company. The server will return an error if the chart of account is connect to a year.

Get ( string chartOfAccountsId ) : ChartOfAccounts

Get the chart of account by id

List ( ) : List

Lists all chart of accounts for the company

List ( System.DateTime startDate, System.DateTime endDate ) : List

Lists all chart of accounts for the company in a specific period of time.

List ( Period period ) : List

Lists all chart of accounts for the company in a specific period of time.

Update ( ChartOfAccounts chartOfAccounts ) : ChartOfAccounts

Private Methods

Method Description
GetUrl ( System.DateTime startDate, System.DateTime endDate ) : string
GetUrl ( string chartOfAccountsId = "" ) : string

Method Details

CompanyChartOfAccountsResource() public method

public CompanyChartOfAccountsResource ( ApiClient client, CompanyInfo company ) : System
client ApiClient
company Foretagsplatsen.Api2.Entities.Company.CompanyInfo
return System

CompanyChartOfAccountsResource() public method

public CompanyChartOfAccountsResource ( ApiClient client, string companyId ) : System
client ApiClient
companyId string
return System

Create() public method

public Create ( ChartOfAccounts chartOfAccounts ) : ChartOfAccounts
chartOfAccounts Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts
return Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts

Delete() public method

Deletes a chart of account from the company. The server will return an error if the chart of account is connect to a year.
public Delete ( ChartOfAccounts chartOfAccounts ) : void
chartOfAccounts Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts The id of the chart of account to be deleted
return void

Delete() public method

Deletes a chart of account from the company. The server will return an error if the chart of account is connect to a year.
public Delete ( string chartOfAccountsId ) : void
chartOfAccountsId string The chart of account to be deleted
return void

Get() public method

Get the chart of account by id
public Get ( string chartOfAccountsId ) : ChartOfAccounts
chartOfAccountsId string The id of the chart of account
return Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts

List() public method

Lists all chart of accounts for the company
public List ( ) : List
return List

List() public method

Lists all chart of accounts for the company in a specific period of time.
public List ( System.DateTime startDate, System.DateTime endDate ) : List
startDate System.DateTime Limit the results by this start date
endDate System.DateTime Limit the results by this end date
return List

List() public method

Lists all chart of accounts for the company in a specific period of time.
public List ( Period period ) : List
period Foretagsplatsen.Api2.Entities.Period Limit the results by this period
return List

Update() public method

public Update ( ChartOfAccounts chartOfAccounts ) : ChartOfAccounts
chartOfAccounts Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts
return Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts