Documentation
¶
Index ¶
- type Account
- type AccountResponse
- type AccountingPeriod
- type CRUDJournalLine
- type CRUDJournalLineDetails
- type CRUDJournalRequest
- type CRUDJournalRequestJournal
- type CRUDJournalResponse
- type ConnectedAccount
- type ConnectedAccountsResponse
- type DeleteVouchersRequest
- type Department
- type DepartmentResponse
- type ErrorDetail
- type ErrorResponse
- type GetJournalsResponse
- type JournalItem
- type JournalLine
- type JournalLineDetails
- type Metadata
- type Office
- type PostTradePartnerItem
- type PostTradePartnersRequest
- type PostTransactionsRequest
- type PostTransactionsResponse
- type PostVouchersRequest
- type PostVouchersResponse
- type SubAccount
- type SubAccountResponse
- type TBResponse
- type TBRow
- type Tax
- type TaxResponse
- type TradePartner
- type TradePartnersResponse
- type TransactionItem
- type TransactionResponseItem
- type TransitionResponse
- type TransitionRow
- type VoucherFile
- type VoucherFileID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
ID string `json:"id"`
FinancialStatementType string `json:"financial_statement_type"`
Name string `json:"name"`
Available bool `json:"available"`
TaxID string `json:"tax_id"`
SearchKey *string `json:"search_key"`
SubAccounts []SubAccount `json:"sub_accounts"`
AccountGroup string `json:"account_group"`
Category string `json:"category"`
}
type AccountResponse ¶
type AccountResponse struct {
Accounts []Account `json:"accounts"`
}
type AccountingPeriod ¶
type CRUDJournalLine ¶
type CRUDJournalLine struct {
Remark *string `json:"remark"`
Creditor *CRUDJournalLineDetails `json:"creditor"`
Debitor *CRUDJournalLineDetails `json:"debitor"`
}
type CRUDJournalLineDetails ¶
type CRUDJournalLineDetails struct {
Value int64 `json:"value"`
AccountID string `json:"account_id"`
TaxID *string `json:"tax_id"`
SubAccountID *string `json:"sub_account_id"`
DepartmentID *string `json:"department_id"`
TradePartnerCode *string `json:"trade_partner_code"`
InvoiceKind *string `json:"invoice_kind"`
}
type CRUDJournalRequest ¶
type CRUDJournalRequest struct {
Journal CRUDJournalRequestJournal `json:"journal"`
}
type CRUDJournalRequestJournal ¶
type CRUDJournalRequestJournal struct {
TransactionDate string `json:"transaction_date"`
JournalType string `json:"journal_type"`
Branches []CRUDJournalLine `json:"branches"`
Memo *string `json:"memo"`
Tags []string `json:"tags"`
}
type CRUDJournalResponse ¶
type CRUDJournalResponse struct {
Journal JournalItem `json:"journal"`
}
type ConnectedAccount ¶
type ConnectedAccountsResponse ¶
type ConnectedAccountsResponse struct {
ConnectedAccounts []ConnectedAccount `json:"connected_accounts"`
}
type DeleteVouchersRequest ¶
type Department ¶
type DepartmentResponse ¶
type DepartmentResponse struct {
Departments []Department `json:"departments"`
}
type ErrorDetail ¶
type ErrorResponse ¶
type ErrorResponse struct {
Errors []ErrorDetail `json:"errors"`
}
type GetJournalsResponse ¶
type GetJournalsResponse struct {
Metadata Metadata `json:"metadata"`
Journals []JournalItem `json:"journals"`
}
type JournalItem ¶
type JournalItem struct {
ID string `json:"id"`
Number uint64 `json:"number"`
TermPeriod uint64 `json:"term_period"`
TransactionDate string `json:"transaction_date"`
IsRealized bool `json:"is_realized"`
JournalType string `json:"journal_type"`
CreateTime string `json:"create_time"`
UpdateTime string `json:"update_time"`
Branches []JournalLine `json:"branches"`
Tags []string `json:"tags"`
Memo *string `json:"memo"`
VoucherFileIDs []string `json:"voucher_file_ids"`
EnteredBy string `json:"entered_by"`
}
type JournalLine ¶
type JournalLine struct {
Remark *string `json:"remark"`
Creditor *JournalLineDetails `json:"creditor"`
Debitor *JournalLineDetails `json:"debitor"`
}
type JournalLineDetails ¶
type JournalLineDetails struct {
Value int64 `json:"value"`
TaxValue *int64 `json:"tax_value"`
AccountID string `json:"account_id"`
AccountName string `json:"account_name"`
SubAccountID *string `json:"sub_account_id"`
SubAccountName *string `json:"sub_account_name"`
TaxLongName *string `json:"tax_long_name"`
TaxID *string `json:"tax_id"`
TaxName *string `json:"tax_name"`
DepartmentID *string `json:"department_id"`
DepartmentName *string `json:"department_name"`
TradePartnerName *string `json:"trade_partner_name"`
TradePartnerCode *string `json:"trade_partner_code"`
InvoiceKind *string `json:"invoice_kind"`
}
type Office ¶
type Office struct {
Name string `json:"name"`
Code string `json:"code"`
Type string `json:"type"`
AccountingPeriods []AccountingPeriod `json:"accounting_periods"`
}
type PostTradePartnerItem ¶
type PostTradePartnersRequest ¶
type PostTradePartnersRequest struct {
TradePartners []PostTradePartnerItem `json:"trade_partners"`
}
type PostTransactionsRequest ¶
type PostTransactionsRequest struct {
ConnectedAccountID string `json:"connected_account_id"`
Transactions []TransactionItem `json:"transactions"`
}
type PostTransactionsResponse ¶
type PostTransactionsResponse struct {
ConnectedAccountID string `json:"connected_account_id"`
Transactions []TransactionResponseItem `json:"transactions"`
}
type PostVouchersRequest ¶
type PostVouchersRequest struct {
JournalID *string `json:"journal_id"`
VoucherFiles []VoucherFile `json:"voucher_files"`
}
type PostVouchersResponse ¶
type PostVouchersResponse struct {
VoucherFileIDs []VoucherFileID `json:"voucher_file_ids"`
}
type SubAccount ¶
type SubAccountResponse ¶
type SubAccountResponse struct {
SubAccounts []SubAccount `json:"sub_accounts"`
}
type TBResponse ¶
type TBResponse struct {
ReportType string `json:"report_type"`
StartDate string `json:"start_date"`
EndDate string `json:"end_date"`
CreatedAt string `json:"created_at"`
Columns []string `json:"columns"`
Rows []TBRow `json:"rows"`
FiscalYear *int `json:"fiscal_year"`
StartMonth *int `json:"start_month"`
EndMonth *int `json:"end_month"`
}
type TaxResponse ¶
type TaxResponse struct {
Taxes []Tax `json:"taxes"`
}
type TradePartner ¶
type TradePartnersResponse ¶
type TradePartnersResponse struct {
TradePartners []TradePartner `json:"trade_partners"`
}
type TransactionItem ¶
type TransactionResponseItem ¶
type TransitionResponse ¶
type TransitionResponse struct {
ReportType int `json:"report_type"`
FiscalYear int `json:"fiscal_year"`
StartMonth int `json:"start_month"`
EndMonth int `json:"end_month"`
StartDate string `json:"start_date"`
EndDate string `json:"end_date"`
CreatedAt string `json:"created_at"`
Columns []string `json:"columns"`
Rows []TransitionRow `json:"rows"`
}
type TransitionRow ¶
type TransitionRow struct {
Type string `json:"type"`
Name string `json:"name"`
Values []*int64 `json:"values"`
Rows []TransitionRow `json:"rows"`
}
type VoucherFile ¶
type VoucherFileID ¶
Click to show internal directories.
Click to hide internal directories.