C# 클래스 Foretagsplatsen.Api.Resources.ChartOfAccountsResource

파일 보기 프로젝트 열기: foretagsplatsen/Foretagsplatsen-DotNet-API

공개 메소드들

메소드 설명
ChartOfAccountsResource ( ApiClient client, CompanyInfo company ) : System.Collections.Generic

Instantiates a new KeyFigureDataResource object.

ChartOfAccountsResource ( ApiClient client, string businessIdentityCode ) : System.Collections.Generic

Instantiates a new KeyFigureDataResource object.

Connect ( string fiscalYearId, string chartOfAccountsId ) : void

Connects a chart of account to a fiscal year

Create ( ChartOfAccounts chartOfAccounts ) : void

Creates a chart of account for the company. If the chart of account id already exists, an exception will be thrown.

Create ( string id, string json ) : void

Creates a chart of account for the company. If the chart of account id already exists, an exception will be thrown.

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.

Disconnect ( string fiscalYearId ) : void

Disconnects the custom chart of account from a fiscal year and restore the default one.

Get ( string id ) : ChartOfAccounts

Get the chart of account by id

GetByFiscalYearId ( string fiscalYearId ) : ChartOfAccounts

Get the chart of account for a particular fiscal year

GetUrl ( ) : string

Url for the key figure data resource.

GetUrlWithChartOfAccountsId ( string chartOfAccountsId ) : string

Url for the key figure data resource.

GetUrlWithFiscalYearId ( string fiscalYearId ) : string

Url for the key figure data resource.

GetUrlWithFiscalYearIdAndChartOfAccountsId ( string fiscalYearId, string chartOfAccountsId ) : string

Url for the key figure data resource.

List ( ) : List

Lists all chart of accounts for the company

Update ( ChartOfAccounts chartOfAccounts ) : void

Updates a chart of account. If the chart of account doesn't exists it will be created.

Update ( string id, string json ) : void

Updates a chart of account. If the chart of account doesn't exists it will be created.

메소드 상세

ChartOfAccountsResource() 공개 메소드

Instantiates a new KeyFigureDataResource object.
public ChartOfAccountsResource ( ApiClient client, CompanyInfo company ) : System.Collections.Generic
client ApiClient REST client
company Foretagsplatsen.Api.Entities.CompanyInfo Company
리턴 System.Collections.Generic

ChartOfAccountsResource() 공개 메소드

Instantiates a new KeyFigureDataResource object.
public ChartOfAccountsResource ( ApiClient client, string businessIdentityCode ) : System.Collections.Generic
client ApiClient REST client
businessIdentityCode string Business identity code for company.
리턴 System.Collections.Generic

Connect() 공개 메소드

Connects a chart of account to a fiscal year
public Connect ( string fiscalYearId, string chartOfAccountsId ) : void
fiscalYearId string The id of the fiscal year
chartOfAccountsId string The id of the chart of account
리턴 void

Create() 공개 메소드

Creates a chart of account for the company. If the chart of account id already exists, an exception will be thrown.
public Create ( ChartOfAccounts chartOfAccounts ) : void
chartOfAccounts Foretagsplatsen.Api.Entities.Accounts.ChartOfAccounts The chart of account to upload
리턴 void

Create() 공개 메소드

Creates a chart of account for the company. If the chart of account id already exists, an exception will be thrown.
public Create ( string id, string json ) : void
id string The id of the chart of account, must match the id in the json data
json string JSON representation of the chart of account
리턴 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 id of the chart of account to be deleted
리턴 void

Disconnect() 공개 메소드

Disconnects the custom chart of account from a fiscal year and restore the default one.
public Disconnect ( string fiscalYearId ) : void
fiscalYearId string The id of the fiscal year
리턴 void

Get() 공개 메소드

Get the chart of account by id
public Get ( string id ) : ChartOfAccounts
id string The id of the chart of account
리턴 Foretagsplatsen.Api.Entities.Accounts.ChartOfAccounts

GetByFiscalYearId() 공개 메소드

Get the chart of account for a particular fiscal year
public GetByFiscalYearId ( string fiscalYearId ) : ChartOfAccounts
fiscalYearId string The id of the fiscal year
리턴 Foretagsplatsen.Api.Entities.Accounts.ChartOfAccounts

GetUrl() 공개 메소드

Url for the key figure data resource.
public GetUrl ( ) : string
리턴 string

GetUrlWithChartOfAccountsId() 공개 메소드

Url for the key figure data resource.
public GetUrlWithChartOfAccountsId ( string chartOfAccountsId ) : string
chartOfAccountsId string
리턴 string

GetUrlWithFiscalYearId() 공개 메소드

Url for the key figure data resource.
public GetUrlWithFiscalYearId ( string fiscalYearId ) : string
fiscalYearId string
리턴 string

GetUrlWithFiscalYearIdAndChartOfAccountsId() 공개 메소드

Url for the key figure data resource.
public GetUrlWithFiscalYearIdAndChartOfAccountsId ( string fiscalYearId, string chartOfAccountsId ) : string
fiscalYearId string
chartOfAccountsId string
리턴 string

List() 공개 메소드

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

Update() 공개 메소드

Updates a chart of account. If the chart of account doesn't exists it will be created.
public Update ( ChartOfAccounts chartOfAccounts ) : void
chartOfAccounts Foretagsplatsen.Api.Entities.Accounts.ChartOfAccounts The chart of account to upload
리턴 void

Update() 공개 메소드

Updates a chart of account. If the chart of account doesn't exists it will be created.
public Update ( string id, string json ) : void
id string The id of the chart of account, must match the id in the json data
json string JSON representation of the chart of account
리턴 void