C# Класс Foretagsplatsen.Api2.Resources.CompanyChartOfAccountsResource

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetUrl ( System.DateTime startDate, System.DateTime endDate ) : string
GetUrl ( string chartOfAccountsId = "" ) : string

Описание методов

CompanyChartOfAccountsResource() публичный Метод

public CompanyChartOfAccountsResource ( ApiClient client, CompanyInfo company ) : System
client ApiClient
company Foretagsplatsen.Api2.Entities.Company.CompanyInfo
Результат System

CompanyChartOfAccountsResource() публичный Метод

public CompanyChartOfAccountsResource ( ApiClient client, string companyId ) : System
client ApiClient
companyId string
Результат System

Create() публичный Метод

public Create ( ChartOfAccounts chartOfAccounts ) : ChartOfAccounts
chartOfAccounts Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts
Результат Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts

Delete() публичный Метод

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
Результат void

Delete() публичный Метод

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
Результат void

Get() публичный Метод

Get the chart of account by id
public Get ( string chartOfAccountsId ) : ChartOfAccounts
chartOfAccountsId string The id of the chart of account
Результат Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts

List() публичный Метод

Lists all chart of accounts for the company
public List ( ) : List
Результат List

List() публичный Метод

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
Результат List

List() публичный Метод

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
Результат List

Update() публичный Метод

public Update ( ChartOfAccounts chartOfAccounts ) : ChartOfAccounts
chartOfAccounts Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts
Результат Foretagsplatsen.Api2.Entities.Accounts.ChartOfAccounts