C# Class Foretagsplatsen.Api2.Resources.CompanyChartOfAccountsResource

Afficher le fichier Open project: foretagsplatsen/Foretagsplatsen-DotNet-API

Méthodes publiques

Méthode 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

Méthode Description
GetUrl ( System.DateTime startDate, System.DateTime endDate ) : string
GetUrl ( string chartOfAccountsId = "" ) : string

Method Details

CompanyChartOfAccountsResource() public méthode

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

CompanyChartOfAccountsResource() public méthode

public CompanyChartOfAccountsResource ( ApiClient client, string companyId ) : System
client ApiClient
companyId string
Résultat System

Create() public méthode

public Create ( ChartOfAccounts chartOfAccounts ) : ChartOfAccounts
chartOfAccounts Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts
Résultat Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts

Delete() public méthode

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
Résultat void

Delete() public méthode

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
Résultat void

Get() public méthode

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

List() public méthode

Lists all chart of accounts for the company
public List ( ) : List
Résultat List

List() public méthode

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
Résultat List

List() public méthode

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
Résultat List

Update() public méthode

public Update ( ChartOfAccounts chartOfAccounts ) : ChartOfAccounts
chartOfAccounts Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts
Résultat Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts