Documentation ¶
Index ¶
- Constants
- func ExtractFreeeErrorMessage(errorString string) ([]string, error)
- func SetCompanyID(v *url.Values, companyID int32)
- type AccountCategory
- type AccountGroup
- type AccountItem
- type AccountItems
- type ApprovalFlowRoute
- type ApprovalFlowRoutes
- type ApprovalRequest
- type ApprovalRequests
- type ApprovalRequestsForm
- type ApprovalRequestsForms
- type Approver
- type Balance
- type BalanceBreakdown
- type Banks
- type Client
- func (c *Client) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
- func (c *Client) CreateDeal(ctx context.Context, reuseTokenSource oauth2.TokenSource, ...) (*Deal, error)
- func (c *Client) CreateItem(ctx context.Context, reuseTokenSource oauth2.TokenSource, params ItemParams) (*Item, error)
- func (c *Client) CreateManualJournal(ctx context.Context, reuseTokenSource oauth2.TokenSource, ...) (*ManualJournalResponse, error)
- func (c *Client) CreatePartner(ctx context.Context, reuseTokenSource oauth2.TokenSource, params interface{}) (*Partner, error)
- func (c *Client) CreateReceipt(ctx context.Context, reuseTokenSource oauth2.TokenSource, ...) (*ReceiptResponse, error)
- func (c *Client) CreateSection(ctx context.Context, reuseTokenSource oauth2.TokenSource, params SectionParams) (*Section, error)
- func (c *Client) CreateSegmentTag(ctx context.Context, reuseTokenSource oauth2.TokenSource, segmentID int32, ...) (*SegmentTag, error)
- func (c *Client) CreateTag(ctx context.Context, reuseTokenSource oauth2.TokenSource, params TagParams) (*Tag, error)
- func (c *Client) DestroyDeal(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) error
- func (c *Client) DestroyItem(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) error
- func (c *Client) DestroyManualJournal(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) error
- func (c *Client) DestroyPartner(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) error
- func (c *Client) DestroySection(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) error
- func (c *Client) DestroySegmentTag(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) error
- func (c *Client) DestroyTag(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) error
- func (c *Client) Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)
- func (s *Client) GetAccountItemOrderList() []string
- func (c *Client) GetAccountItems(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*AccountItems, error)
- func (s *Client) GetApprovalFlowRouteOrderList() []string
- func (c *Client) GetApprovalFlowRoutes(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*ApprovalFlowRoutes, error)
- func (c *Client) GetApprovalRequests(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*ApprovalRequests, error)
- func (s *Client) GetApprovalRequestsFormOrderList() []string
- func (c *Client) GetApprovalRequestsForms(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*ApprovalRequestsForms, error)
- func (s *Client) GetBankOrderList() []string
- func (c *Client) GetBanks(ctx context.Context, reuseTokenSource oauth2.TokenSource, opts interface{}) (*Banks, error)
- func (c *Client) GetCompanies(ctx context.Context, reuseTokenSource oauth2.TokenSource) (*Companies, error)
- func (c *Client) GetCompany(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*CompanyResponse, error)
- func (s *Client) GetCompanyOrderList() []string
- func (c *Client) GetDeal(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Deal, error)
- func (s *Client) GetDealOrderList() []string
- func (c *Client) GetDeals(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*DealsResponse, error)
- func (s *Client) GetExpenseApplicationLineTemplateOrderList() []string
- func (c *Client) GetExpenseApplicationLineTemplates(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*ExpenseApplicationLineTemplates, error)
- func (s *Client) GetExpenseApplicationOrderList() []string
- func (c *Client) GetExpenseApplications(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*ExpenseApplications, error)
- func (s *Client) GetInvoiceOrderList() []string
- func (c *Client) GetInvoices(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Invoices, error)
- func (s *Client) GetItemOrderList() []string
- func (c *Client) GetItems(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Items, error)
- func (s *Client) GetJournalOrderList() []string
- func (c *Client) GetJournals(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Journals, error)
- func (s *Client) GetManualJournalOrderList() []string
- func (c *Client) GetManualJournals(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*ManualJournalsResponse, error)
- func (s *Client) GetPartnerOrderList() []string
- func (c *Client) GetPartners(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Partners, error)
- func (s *Client) GetPaymentRequestOrderList() []string
- func (c *Client) GetPaymentRequests(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*PaymentRequests, error)
- func (s *Client) GetQuotationOrderList() []string
- func (c *Client) GetQuotations(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Quotations, error)
- func (c *Client) GetReceipt(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*ReceiptResponse, error)
- func (s *Client) GetReceiptOrderList() []string
- func (c *Client) GetReceipts(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Recipts, error)
- func (s *Client) GetReportOrderList() []string
- func (s *Client) GetSectionOrderList() []string
- func (c *Client) GetSections(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*Sections, error)
- func (s *Client) GetSegmentTagOrderList() []string
- func (c *Client) GetSegmentTags(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*SegmentTags, error)
- func (c *Client) GetSelectables(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Selectables, error)
- func (s *Client) GetSelectablesOrderList() []string
- func (c *Client) GetTag(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Tags, error)
- func (s *Client) GetTagOrderList() []string
- func (c *Client) GetTags(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Tags, error)
- func (s *Client) GetTaxCodeOrderList() []string
- func (c *Client) GetTaxCodes(ctx context.Context, reuseTokenSource oauth2.TokenSource) (*TaxCodes, error)
- func (c *Client) GetTaxCompanies(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TaxCompanies, error)
- func (s *Client) GetTaxCompanyOrderList() []string
- func (s *Client) GetTransferOrderList() []string
- func (c *Client) GetTransfers(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Transfers, error)
- func (c *Client) GetTrialBS(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialBSResponse, error)
- func (c *Client) GetTrialBSThreeYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialBSThreeYearsResponse, error)
- func (c *Client) GetTrialBSTwoYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialBSTwoYearsResponse, error)
- func (c *Client) GetTrialCR(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialCRResponse, error)
- func (c *Client) GetTrialCRThreeYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialCRThreeYearsResponse, error)
- func (c *Client) GetTrialCRTwoYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialCRTwoYearsResponse, error)
- func (c *Client) GetTrialPL(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialPLResponse, error)
- func (c *Client) GetTrialPLThreeYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialPLThreeYearsResponse, error)
- func (c *Client) GetTrialPLTwoYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialPLTwoYearsResponse, error)
- func (s *Client) GetUserOrderList() []string
- func (c *Client) GetUsers(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Users, error)
- func (c *Client) GetUsersMe(ctx context.Context, reuseTokenSource oauth2.TokenSource, opts interface{}) (*Me, error)
- func (c *Client) GetWalletTransaction(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*WalletTxn, error)
- func (s *Client) GetWalletTxnOrderList() []string
- func (c *Client) GetWalletTxns(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*WalletTxnsResponse, error)
- func (c *Client) GetWalletable(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*Walletable, error)
- func (s *Client) GetWalletableOrderList() []string
- func (c *Client) GetWalletables(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, ...) (*WalletablesResponse, error)
- func (c *Client) UpdateDeal(ctx context.Context, reuseTokenSource oauth2.TokenSource, dealID int32, ...) (*Deal, error)
- func (c *Client) UpdateItem(ctx context.Context, reuseTokenSource oauth2.TokenSource, params ItemParams, ...) (*Item, error)
- func (c *Client) UpdateManualJournal(ctx context.Context, reuseTokenSource oauth2.TokenSource, journalID int32, ...) (*ManualJournalResponse, error)
- func (c *Client) UpdatePartner(ctx context.Context, reuseTokenSource oauth2.TokenSource, partnerID int32, ...) (*Partner, error)
- func (c *Client) UpdateSection(ctx context.Context, reuseTokenSource oauth2.TokenSource, sectionID int32, ...) (*Section, error)
- func (c *Client) UpdateSegmentTag(ctx context.Context, reuseTokenSource oauth2.TokenSource, segmentID int32, ...) (*SegmentTag, error)
- func (c *Client) UpdateTag(ctx context.Context, reuseTokenSource oauth2.TokenSource, tagID int32, ...) (*Tag, error)
- type Companies
- type Company
- type CompanyResponse
- type Config
- type CreateManualJournalParams
- type CreateManualJournalParamsDetail
- type CreatePartnerParams
- type CreatePartnerParamsAddressAttributes
- type CreatePartnerParamsPartnerBankAccountAttributes
- type CreatePartnerParamsPartnerDocSettingAttributes
- type CreatePartnerParamsPaymentTermAttributes
- type CreateReceiptParams
- type Deal
- type DealCreateParams
- type DealCreateParamsDetails
- type DealCreateParamsPayments
- type DealDetails
- type DealPayments
- type DealReceipts
- type DealRenews
- type DealResponse
- type DealUpdateParams
- type DealUpdateParamsDetails
- type DealUser
- type DealsResponse
- type DealsResponseMeta
- type DefaultTax
- type Error
- type ExpenseApplication
- type ExpenseApplicationLine
- type ExpenseApplicationLineTemplate
- type ExpenseApplicationLineTemplates
- type ExpenseApplications
- type FiscalYears
- type FreeErrorMessageDetail
- type FreeeErrorMessage
- type GetAccountItemsOpts
- type GetApprovalFlowRoutesOpts
- type GetApprovalRequestsOpts
- type GetBanksOpts
- type GetCompanyOpts
- type GetDealOpts
- type GetExpenseApplicationLineTemplatesOpts
- type GetExpenseApplicationsOpts
- type GetInvoicesOpts
- type GetItemsOpts
- type GetJournalsOpts
- type GetManualJournalsOpts
- type GetPartnersOpts
- type GetPaymentRequestsOpts
- type GetQuotationsOpts
- type GetReceiptOpts
- type GetReportsOpts
- type GetSegmentTagsOpts
- type GetSelectablesOpts
- type GetTagsOpts
- type GetTransfersOpts
- type GetUsersMeOpts
- type GetUsersOpts
- type GetWalletTxnOpts
- type GetWalletablesOpts
- type Invoice
- type InvoiceContent
- type Invoices
- type Item
- type ItemParams
- type ItemResponse
- type Items
- type Journal
- type Journals
- type Logger
- type ManualJournal
- type ManualJournalDetails
- type ManualJournalResponse
- type ManualJournalsResponse
- type Me
- type Meta
- type Partner
- type PartnerAddressAttributes
- type PartnerBankAccountAttributes
- type PartnerDocSettingAttributes
- type PartnerResponse
- type Partners
- type PaymentRequest
- type PaymentRequests
- type Quotation
- type QuotationContent
- type Quotations
- type Receipt
- type ReceiptResponse
- type Receipts
- type Recipts
- type Report
- type RequestItem
- type Section
- type SectionParams
- type SectionResponse
- type Sections
- type SegmentTag
- type SegmentTagParams
- type SegmentTagResponse
- type SegmentTags
- type SelectableAccountItem
- type Selectables
- type Tag
- type TagParams
- type TagResponse
- type Tags
- type TaxCode
- type TaxCodes
- type TaxCompanies
- type TaxCompany
- type TaxRate
- type TotalAmountPerVatRate
- type TotalAmountPerVatRatetotalAmountPerVatRate
- type Transfer
- type Transfers
- type TrialBSResponse
- type TrialBSThreeYearsResponse
- type TrialBSTwoYearsResponse
- type TrialCRResponse
- type TrialCRThreeYearsResponse
- type TrialCRTwoYearsResponse
- type TrialPLResponse
- type TrialPLThreeYearsResponse
- type TrialPLTwoYearsResponse
- type UnauthorizedError
- type UpToDateReason
- type UpdateManualJournalParams
- type UpdateManualJournalParamsDetails
- type UpdatePartnerParams
- type User
- type UserCompany
- type UserCreatedReceipt
- type Users
- type WalletTxn
- type WalletTxnResponse
- type WalletTxnsResponse
- type Walletable
- type WalletableResponse
- type WalletablesResponse
Constants ¶
View Source
const ( HeaderXAPIVersion = "X-Api-Version" HeaderXFreeeRequestID = "X-Freee-Request-ID" APIEndpoint = "https://api.freee.co.jp" APIPath1 = "/api/1" XAPIVersion20200615 = "2020-06-15" )
View Source
const ( APIPathDeals = "deals" DealTypeIncome = "income" DealTypeExpense = "expense" DealStatusSettled = "settled" DealStatusUnsettled = "unsettled" DealDetailEntrySideCredit = "credit" DealDetailEntrySideDebit = "debit" )
View Source
const ()
View Source
const ( APIPathManualJournals = "manual_journals" ManualJournalEntrySideCredit = "credit" ManualJournalEntrySideDebit = "debit" )
View Source
const ( Oauth2TokenURL = "https://accounts.secure.freee.co.jp/public_api/token" Oauth2AuthURL = "https://accounts.secure.freee.co.jp/public_api/authorize" )
View Source
const ( APIPathPartners = "partners" // 口座種別 // ordinary:普通 BankAccountAccountTypeOrdinary = "ordinary" // checking:当座 BankAccountAccountTypeChecking = "checking" // earmarked:納税準備預金 BankAccountAccountTypeEarmarked = "earmarked" // savings:貯蓄 BankAccountAccountTypeSavings = "savings" // other:その他 BankAccountAccountTypeOther = "other" )
View Source
const ( APIPathSegments = "segments" SegmentID1 = uint32(1) SegmentID2 = uint32(2) SegmentID3 = uint32(3) )
View Source
const ( APIPathTaxes = "taxes" // tax_5: 5%表示の税区分 TaxRate5 = "tax_5" // tax_8: 8%表示の税区分 TaxRate8 = "tax_8" // tax_r8: 軽減税率8%表示の税区分 TaxRateR8 = "tax_r8" // tax_10: 10%表示の税区分 TaxRate10 = "tax_10" )
View Source
const ( APIPathTxns = "wallet_txns" WalletTypeBankAccount = "bank_account" WalletTypeCreditCard = "credit_card" WalletTypeWallet = "wallet" // 現金 TxnsTypeIncome = "income" TxnsTypeExpense = "expense" )
View Source
const (
APIPathAccountItems = "account_items"
)
View Source
const (
APIPathApprovalFlowRoutes = "approval_flow_routes"
)
View Source
const (
APIPathApprovalRequests = "approval_requests"
)
View Source
const (
APIPathBanks = "banks"
)
View Source
const (
APIPathCompanies = "companies"
)
View Source
const (
APIPathExpenseApplicationLineTemplates = "expense_application_line_templates"
)
View Source
const (
APIPathExpenseApplications = "expense_applications"
)
View Source
const (
APIPathInvoices = "invoices"
)
View Source
const (
APIPathItems = "items"
)
View Source
const (
APIPathJournals = "journals"
)
View Source
const (
APIPathPaymentRequests = "payment_requests"
)
View Source
const (
APIPathQuotations = "quotations"
)
View Source
const (
APIPathReceipts = "receipts"
)
View Source
const (
APIPathReports = "reports"
)
View Source
const (
APIPathSections = "sections"
)
View Source
const (
APIPathSelectables = "selectables"
)
View Source
const (
APIPathTags = "tags"
)
View Source
const (
APIPathTransfers = "transfers"
)
View Source
const (
APIPathUsers = "users"
)
View Source
const (
APIPathWalletables = "walletables"
)
Variables ¶
This section is empty.
Functions ¶
func SetCompanyID ¶
Types ¶
type AccountCategory ¶
type AccountCategory struct { // 収支 Balance string `json:"balance"` // 事業形態(個人事業主: personal、法人: corporate) OrgCode string `json:"org_code"` // カテゴリーコード Role string `json:"role"` // カテゴリー名 Title string `json:"title"` // カテゴリーの説明 Desc *string `json:"desc,omitempty"` // 勘定科目の一覧 AccountItems []SelectableAccountItem `json:"account_items"` }
type AccountGroup ¶
type AccountGroup struct { // 決算書表示名(小カテゴリー)ID ID int32 `json:"id"` // 決算書表示名 Name string `json:"name"` // 年度ID AccountStructureID int32 `json:"account_structure_id"` // 勘定科目カテゴリーID AccountCategoryID int32 `json:"account_category_id"` // 詳細パラメータの種類 DetailType *int32 `json:"detail_type,omitempty"` // 並び順 Index int32 `json:"index"` // 作成日時 CreatedAt *string `json:"created_at,omitempty"` // 更新日時 UpdatedAt *string `json:"updated_at,omitempty"` }
type AccountItem ¶
type AccountItem struct { // 勘定科目ID ID int32 `json:"id"` // 勘定科目名 (30文字以内) Name string `json:"name"` // 税区分コード TaxCode int32 `json:"tax_code"` // ショートカット1 (20文字以内) Shortcut *string `json:"shortcut,omitempty"` // ショートカット2(勘定科目コード) (20文字以内) ShortcutNum *string `json:"shortcut_num,omitempty"` // デフォルト設定がされている税区分ID DefaultTaxID *int32 `json:"default_tax_id,omitempty"` // デフォルト設定がされている税区分コード DefaultTaxCode int32 `json:"default_tax_code"` // 勘定科目カテゴリー AccountCategory string `json:"account_category"` // 勘定科目のカテゴリーID AccountCategoryID int32 `json:"account_category_id"` Categories []string `json:"categories"` // 勘定科目の使用設定(true: 使用する、false: 使用しない) Available bool `json:"available"` // 口座ID WalletableID int32 `json:"walletable_id"` // 決算書表示名(小カテゴリー) GroupName *string `json:"group_name,omitempty"` // 収入取引相手勘定科目名 CorrespondingIncomeName *string `json:"corresponding_income_name,omitempty"` // 収入取引相手勘定科目ID CorrespondingIncomeID *int32 `json:"corresponding_income_id,omitempty"` // 支出取引相手勘定科目名 CorrespondingExpenseName *string `json:"corresponding_expense_name,omitempty"` // 支出取引相手勘定科目ID CorrespondingExpenseID *int32 `json:"corresponding_expense_id,omitempty"` }
type AccountItems ¶
type AccountItems struct {
AccountItems []AccountItem `json:"account_items"`
}
type ApprovalFlowRoute ¶
type ApprovalFlowRoute struct { // 申請経路ID ID int32 `json:"id"` // 申請経路名 Name *string `json:"name,omitempty"` // 申請経路の説明 Description *string `json:"description,omitempty"` // 更新したユーザーのユーザーID UserID *int32 `json:"user_id,omitempty"` // システム作成の申請経路かどうか DefinitionSystem *bool `json:"definition_system,omitempty"` // 最初の承認ステップのID FirstStepID *int32 `json:"first_step_id,omitempty"` // 申請種別(申請経路を使用できる申請種別を示します。例えば、ApprovalRequest の場合は、各種申請で使用できる申請経路です。) Usages *[]string `json:"usages,omitempty"` // 申請経路で利用できる申請フォームID配列 RequestFormIDs *[]int32 `json:"request_form_ids,omitempty"` // 基本経路として設定されているかどうか DefaultRoute bool `json:"default_route"` }
type ApprovalFlowRoutes ¶
type ApprovalFlowRoutes struct {
ApprovalFlowRoutes []ApprovalFlowRoute `json:"approval_flow_routes"`
}
type ApprovalRequest ¶
type ApprovalRequest struct { // 各種申請ID ID int32 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 申請日 (yyyy-mm-dd) ApplicationDate string `json:"application_date"` // 申請タイトル Title string `json:"title"` // 申請者のユーザーID ApplicantID int32 `json:"applicant_id"` // 申請No. ApplicationNumber string `json:"application_number"` // 申請ステータス(draft:下書き, in_progress:申請中, approved:承認済, rejected:却下, feedback:差戻し) Status string `json:"status"` // 各種申請の項目一覧(配列) RequestItems []RequestItem `json:"request_items"` // 申請フォームID FormID int32 `json:"form_id"` // 現在承認ステップID CurrentStepID int32 `json:"current_step_id"` // 現在のround。差し戻し等により申請がstepの最初からやり直しになるとroundの値が増えます。 CurrentRound int32 `json:"current_round"` // 取引ID (申請ステータス:statusがapprovedで、取引が存在する時のみdeal_idが表示されます) DealID int32 `json:"deal_id"` // 振替伝票のID (申請ステータス:statusがapprovedで、関連する振替伝票が存在する時のみmanual_journal_idが表示されます) ManualJournalID int32 `json:"manual_journal_id"` // 取引ステータス (申請ステータス:statusがapprovedで、取引が存在する時のみdeal_statusが表示されます settled:決済済み, unsettled:未決済) DealStatus string `json:"deal_status"` }
type ApprovalRequests ¶
type ApprovalRequests struct {
ApprovalRequests []ApprovalRequest `json:"approval_requests"`
}
type ApprovalRequestsForm ¶
type ApprovalRequestsForm struct { // 申請フォームID ID int32 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 申請フォームの名前 Name string `json:"name"` // 申請フォームの説明 Description string `json:"description"` // ステータス(draft: 申請で使用しない、active: 申請で使用する、deleted: 削除済み) Status string `json:"status"` // 作成日時 CreatedDate string `json:"created_date"` // 表示順(申請者が選択する申請フォームの表示順を設定できます。小さい数ほど上位に表示されます。(0を除く整数のみ。マイナス不可)未入力の場合、表示順が後ろになります。同じ数字が入力された場合、登録順で表示されます。) FormOrder int32 `json:"form_order"` // 適用された経路数 RouteSettingCount int32 `json:"route_setting_count"` }
type ApprovalRequestsForms ¶
type ApprovalRequestsForms struct {
ApprovalRequestsForms []ApprovalRequestsForm `json:"approval_request_forms"`
}
type Balance ¶
type Balance struct { // 勘定科目ID(勘定科目の時のみ含まれる) AccountItemID *int32 `json:"account_item_id,omitempty"` // 勘定科目名(勘定科目の時のみ含まれる) AccountItemName *string `json:"account_item_name,omitempty"` // 決算書表示名(account_item_display_type:group指定時に決算書表示名の時のみ含まれる) AccountGroupName *string `json:"account_group_name,omitempty"` // breakdown_display_type:partner, account_item_display_type:account_item指定時のみ含まれる Partners *[]BalanceBreakdown `json:"partners,omitempty"` // breakdown_display_type:item, account_item_display_type:account_item指定時のみ含まれる Items *[]BalanceBreakdown `json:"items,omitempty"` // breakdown_display_type:section, account_item_display_type:account_item指定時のみ含まれる Sections *[]BalanceBreakdown `json:"sections,omitempty"` // breakdown_display_type:segment_1_tag, account_item_display_type:account_item指定時のみ含まれる Segment1Tags *[]BalanceBreakdown `json:"segment_1_tags,omitempty"` // breakdown_display_type:segment_2_tag, account_item_display_type:account_item指定時のみ含まれる Segment2Tags *[]BalanceBreakdown `json:"segment_2_tags,omitempty"` // breakdown_display_type:segment_3_tag, account_item_display_type:account_item指定時のみ含まれる Segment3Tags *[]BalanceBreakdown `json:"segment_3_tags,omitempty"` // 勘定科目カテゴリー名 AccountCategoryName *string `json:"account_category_name,omitempty"` // 合計行(勘定科目カテゴリーの時のみ含まれる) TotalLine *bool `json:"total_line,omitempty"` // 階層レベル HierarchyLevel *int32 `json:"hierarchy_level,omitempty"` // 上位勘定科目カテゴリー名(勘定科目カテゴリーの時のみ、上層が存在する場合含まれる) ParentAccountCategoryName *string `json:"parent_account_category_name,omitempty"` // 期首残高 OpeningBalance *int32 `json:"opening_balance,omitempty"` // 借方金額 DebitAmount *int32 `json:"debit_amount,omitempty"` // 貸方金額 CReditAmount *int32 `json:"credit_amount,omitempty"` // 期末残高 ClosingBalance *int32 `json:"closing_balance,omitempty"` // 構成比 CompositionRatio *float64 `json:"composition_ratio,omitempty"` // 前年度期末残高 LastYearClosingBalance *int32 `json:"last_year_closing_balance,omitempty"` // 前年比 YearOnYear *float64 `json:"year_on_year,omitempty"` // 前々年度期末残高 TwoYearsBeforeClosingBalance *int32 `json:"two_years_before_closing_balance,omitempty"` }
type BalanceBreakdown ¶
type BalanceBreakdown struct { ID int32 `json:"id"` Name *string `json:"name,omitempty"` // 期首残高 OpeningBalance *int32 `json:"opening_balance,omitempty"` // 借方金額 DebitAmount *int32 `json:"debit_amount,omitempty"` // 貸方金額 CReditAmount *int32 `json:"credit_amount,omitempty"` // 期末残高 ClosingBalance *int32 `json:"closing_balance,omitempty"` // 構成比 CompositionRatio *float64 `json:"composition_ratio,omitempty"` // 前年度期末残高 LastYearClosingBalance *int32 `json:"last_year_closing_balance,omitempty"` // 前年比 YearOnYear *float64 `json:"year_on_year,omitempty"` // 前々年度期末残高 TwoYearsBeforeClosingBalance *int32 `json:"two_years_before_closing_balance,omitempty"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an API client for freee.
func (*Client) AuthCodeURL ¶
func (c *Client) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
func (*Client) CreateDeal ¶
func (c *Client) CreateDeal(ctx context.Context, reuseTokenSource oauth2.TokenSource, params DealCreateParams) (*Deal, error)
func (*Client) CreateItem ¶
func (c *Client) CreateItem(ctx context.Context, reuseTokenSource oauth2.TokenSource, params ItemParams) (*Item, error)
func (*Client) CreateManualJournal ¶
func (c *Client) CreateManualJournal(ctx context.Context, reuseTokenSource oauth2.TokenSource, params CreateManualJournalParams) (*ManualJournalResponse, error)
func (*Client) CreatePartner ¶
func (*Client) CreateReceipt ¶
func (c *Client) CreateReceipt(ctx context.Context, reuseTokenSource oauth2.TokenSource, params CreateReceiptParams, receiptName string) (*ReceiptResponse, error)
func (*Client) CreateSection ¶
func (c *Client) CreateSection(ctx context.Context, reuseTokenSource oauth2.TokenSource, params SectionParams) (*Section, error)
func (*Client) CreateSegmentTag ¶
func (c *Client) CreateSegmentTag(ctx context.Context, reuseTokenSource oauth2.TokenSource, segmentID int32, params SegmentTagParams) (*SegmentTag, error)
func (*Client) DestroyDeal ¶
func (*Client) DestroyItem ¶
func (*Client) DestroyManualJournal ¶
func (*Client) DestroyPartner ¶
func (*Client) DestroySection ¶
func (*Client) DestroySegmentTag ¶
func (*Client) DestroyTag ¶
func (*Client) GetAccountItemOrderList ¶
func (*Client) GetAccountItems ¶
func (c *Client) GetAccountItems(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*AccountItems, error)
func (*Client) GetApprovalFlowRouteOrderList ¶
func (*Client) GetApprovalFlowRoutes ¶
func (c *Client) GetApprovalFlowRoutes(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*ApprovalFlowRoutes, error)
func (*Client) GetApprovalRequests ¶
func (c *Client) GetApprovalRequests(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*ApprovalRequests, error)
func (*Client) GetApprovalRequestsFormOrderList ¶
func (*Client) GetApprovalRequestsForms ¶
func (c *Client) GetApprovalRequestsForms(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*ApprovalRequestsForms, error)
func (*Client) GetBankOrderList ¶
func (*Client) GetCompanies ¶
func (*Client) GetCompany ¶
func (c *Client) GetCompany(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*CompanyResponse, error)
func (*Client) GetCompanyOrderList ¶
func (*Client) GetDealOrderList ¶
func (*Client) GetDeals ¶
func (c *Client) GetDeals(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*DealsResponse, error)
func (*Client) GetExpenseApplicationLineTemplateOrderList ¶
func (*Client) GetExpenseApplicationLineTemplates ¶
func (c *Client) GetExpenseApplicationLineTemplates(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*ExpenseApplicationLineTemplates, error)
func (*Client) GetExpenseApplicationOrderList ¶
func (*Client) GetExpenseApplications ¶
func (c *Client) GetExpenseApplications(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*ExpenseApplications, error)
func (*Client) GetInvoiceOrderList ¶
func (*Client) GetInvoices ¶
func (*Client) GetItemOrderList ¶
func (*Client) GetJournalOrderList ¶
func (*Client) GetJournals ¶
func (*Client) GetManualJournalOrderList ¶
func (*Client) GetManualJournals ¶
func (c *Client) GetManualJournals(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*ManualJournalsResponse, error)
func (*Client) GetPartnerOrderList ¶
func (*Client) GetPartners ¶
func (*Client) GetPaymentRequestOrderList ¶
func (*Client) GetPaymentRequests ¶
func (c *Client) GetPaymentRequests(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*PaymentRequests, error)
func (*Client) GetQuotationOrderList ¶
func (*Client) GetQuotations ¶
func (c *Client) GetQuotations(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*Quotations, error)
func (*Client) GetReceipt ¶
func (c *Client) GetReceipt(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, receiptID int32) (*ReceiptResponse, error)
func (*Client) GetReceiptOrderList ¶
func (*Client) GetReceipts ¶
func (*Client) GetReportOrderList ¶
func (*Client) GetSectionOrderList ¶
func (*Client) GetSections ¶
func (*Client) GetSegmentTagOrderList ¶
func (*Client) GetSegmentTags ¶
func (c *Client) GetSegmentTags(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, segmentID int32, opts interface{}) (*SegmentTags, error)
func (*Client) GetSelectables ¶
func (c *Client) GetSelectables(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*Selectables, error)
func (*Client) GetSelectablesOrderList ¶
func (*Client) GetTagOrderList ¶
func (*Client) GetTaxCodeOrderList ¶
func (*Client) GetTaxCodes ¶
func (*Client) GetTaxCompanies ¶
func (c *Client) GetTaxCompanies(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TaxCompanies, error)
func (*Client) GetTaxCompanyOrderList ¶
func (*Client) GetTransferOrderList ¶
func (*Client) GetTransfers ¶
func (c *Client) GetTransfers(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts GetTransfersOpts) (*Transfers, error)
func (*Client) GetTrialBS ¶
func (c *Client) GetTrialBS(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialBSResponse, error)
func (*Client) GetTrialBSThreeYears ¶
func (c *Client) GetTrialBSThreeYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialBSThreeYearsResponse, error)
func (*Client) GetTrialBSTwoYears ¶
func (c *Client) GetTrialBSTwoYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialBSTwoYearsResponse, error)
func (*Client) GetTrialCR ¶
func (c *Client) GetTrialCR(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialCRResponse, error)
func (*Client) GetTrialCRThreeYears ¶
func (c *Client) GetTrialCRThreeYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialCRThreeYearsResponse, error)
func (*Client) GetTrialCRTwoYears ¶
func (c *Client) GetTrialCRTwoYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialCRTwoYearsResponse, error)
func (*Client) GetTrialPL ¶
func (c *Client) GetTrialPL(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialPLResponse, error)
func (*Client) GetTrialPLThreeYears ¶
func (c *Client) GetTrialPLThreeYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialPLThreeYearsResponse, error)
func (*Client) GetTrialPLTwoYears ¶
func (c *Client) GetTrialPLTwoYears(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32) (*TrialPLTwoYearsResponse, error)
func (*Client) GetUserOrderList ¶
func (*Client) GetUsersMe ¶
func (*Client) GetWalletTransaction ¶
func (c *Client) GetWalletTransaction(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, txnID int64, opts GetWalletTxnOpts) (*WalletTxn, error)
func (*Client) GetWalletTxnOrderList ¶
func (*Client) GetWalletTxns ¶
func (c *Client) GetWalletTxns(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts GetWalletTxnOpts) (*WalletTxnsResponse, error)
func (*Client) GetWalletable ¶
func (c *Client) GetWalletable(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, walletableID int32, opts interface{}) (*Walletable, error)
func (*Client) GetWalletableOrderList ¶
func (*Client) GetWalletables ¶
func (c *Client) GetWalletables(ctx context.Context, reuseTokenSource oauth2.TokenSource, companyID int32, opts interface{}) (*WalletablesResponse, error)
func (*Client) UpdateDeal ¶
func (c *Client) UpdateDeal(ctx context.Context, reuseTokenSource oauth2.TokenSource, dealID int32, params DealUpdateParams) (*Deal, error)
func (*Client) UpdateItem ¶
func (c *Client) UpdateItem(ctx context.Context, reuseTokenSource oauth2.TokenSource, params ItemParams, itemID int32) (*Item, error)
func (*Client) UpdateManualJournal ¶
func (c *Client) UpdateManualJournal(ctx context.Context, reuseTokenSource oauth2.TokenSource, journalID int32, params UpdateManualJournalParams) (*ManualJournalResponse, error)
func (*Client) UpdatePartner ¶
func (*Client) UpdateSection ¶
func (c *Client) UpdateSection(ctx context.Context, reuseTokenSource oauth2.TokenSource, sectionID int32, params SectionParams) (*Section, error)
func (*Client) UpdateSegmentTag ¶
func (c *Client) UpdateSegmentTag(ctx context.Context, reuseTokenSource oauth2.TokenSource, segmentID int32, id int32, params SegmentTagParams) (*SegmentTag, error)
type Company ¶
type Company struct { // 事業所ID ID int32 `json:"id"` // 事業所の正式名称 (100文字以内) Name string `json:"name"` // 正式名称フリガナ (100文字以内) NameKana string `json:"name_kana"` // 事業所名 DisplayName string `json:"display_name"` // ユーザーの権限 Role string `json:"role"` // 源泉徴収税計算(0: 消費税を含める、1: 消費税を含めない) TaxAtSourceCalcType *int32 `json:"tax_at_source_calc_type,omitempty"` // 担当者名 (50文字以内) ContactName *string `json:"contact_name,omitempty"` // 従業員数(0: 経営者のみ、1: 2~5人、2: 6~10人、3: 11~20人、4: 21~30人、5: 31~40人、6: 41~100人、7: 100人以上 HeadCount *int32 `json:"head_count,omitempty"` // 法人番号 (半角数字13桁、法人のみ) CorporateNumber *string `json:"corporate_number,omitempty"` // 仕訳番号形式(not_used: 使用しない、digits: 数字(例:5091824)、alnum: 英数字(例:59J0P)) TxnNumberFormat *string `json:"txn_number_format,omitempty"` // 決済口座のデフォルト DefaultWalletAccountId *int32 `json:"default_wallet_account_id,omitempty"` // プライベート資金/役員資金(false: 使用しない、true: 使用する) PrivateSettlement *bool `json:"private_settlement,omitempty"` // マイナスの表示方法(0: -、 1: △) MinusFormat *int32 `json:"minus_format,omitempty"` // 電話番号1 Phone1 *string `json:"phone1,omitempty"` // 電話番号2 Phone2 *string `json:"phone2,omitempty"` // FAX Fax *string `json:"fax,omitempty"` // 郵便番号 Zipcode *string `json:"zipcode,omitempty"` // 都道府県コード(-1: 設定しない、0: 北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄 PrefectureCode *int32 `json:"prefecture_code,omitempty"` // 市区町村・番地 StreetName1 *string `json:"street_name1,omitempty"` // 建物名・部屋番号など StreetName2 *string `json:"street_name2,omitempty"` // 請求書レイアウト * `default_classic` - レイアウト1/クラシック (デフォルト) * `standard_classic` - レイアウト2/クラシック * `envelope_classic` - 封筒1/クラシック * `carried_forward_standard_classic` - レイアウト3(繰越金額欄あり)/クラシック * `carried_forward_envelope_classic` - 封筒2(繰越金額欄あり)/クラシック * `default_modern` - レイアウト1/モダン * `standard_modern` - レイアウト2/モダン * `envelope_modern` - 封筒/モダン InvoiceLayout *string `json:"invoice_layout,omitempty"` // 金額端数処理方法(0: 切り捨て、1: 切り上げ、2: 四捨五入) AmountFraction *int32 `json:"amount_fraction,omitempty"` // 種別(agriculture_forestry_fisheries_ore: 農林水産業/鉱業、construction: 建設、manufacturing_processing: 製造/加工、it: IT、transportation_logistics: 運輸/物流、retail_wholesale: 小売/卸売、finance_insurance: 金融/保険、real_estate_rental: 不動産/レンタル、profession: 士業/学術/専門技術サービス、design_production: デザイン/制作、food: 飲食、leisure_entertainment: レジャー/娯楽、lifestyle: 生活関連サービス、education: 教育/学習支援、medical_welfare: 医療/福祉、other_services: その他サービス、other: その他) IndustryClass *string `json:"industry_class,omitempty"` // 業種(agriculture: 農業, forestry: 林業, fishing_industry: 漁業、水産養殖業, mining: 鉱業、採石業、砂利採取業, civil_contractors: 土木工事業, pavement: 舗装工事業, carpenter: とび、大工、左官等の建設工事業, renovation: リフォーム工事業, electrical_plumbing: 電気、管工事等の設備工事業, grocery: 食料品の製造加工業, machinery_manufacturing: 機械器具の製造加工業, printing: 印刷業, other_manufacturing: その他の製造加工業, software_development: 受託:ソフトウェア、アプリ開発業, system_development: 受託:システム開発業, survey_analysis: 受託:調査、分析等の情報処理業, server_management: 受託:サーバー運営管理, website_production: 受託:ウェブサイト制作, online_service_management: オンラインサービス運営業, online_advertising_agency: オンライン広告代理店業, online_advertising_planning_production: オンライン広告企画・制作業, online_media_management: オンラインメディア運営業, portal_site_management: ポータルサイト運営業, other_it_services: その他、IT サービス業, transport_delivery: 輸送業、配送業, delivery: バイク便等の配達業, other_transportation_logistics: その他の運輸業、物流業, other_wholesale: 卸売業:その他, clothing_wholesale_fiber: 卸売業:衣類卸売/繊維, food_wholesale: 卸売業:飲食料品, entrusted_development_wholesale: 卸売業:機械器具, online_shop: 小売業:無店舗 オンラインショップ, fashion_grocery_store: 小売業:店舗あり ファッション、雑貨, food_store: 小売業:店舗あり 生鮮食品、飲食料品, entrusted_store: 小売業:店舗あり 機械、器具, other_store: 小売業:店舗あり その他, financial_instruments_exchange: 金融業:金融商品取引, commodity_futures_investment_advisor: 金融業:商品先物取引、商品投資顧問, other_financial: 金融業:その他, brokerage_insurance: 保険業:仲介、代理, other_insurance: 保険業:その他, real_estate_developer: 不動産業:ディベロッパー, real_estate_brokerage: 不動産業:売買、仲介, rent_coin_parking_management: 不動産業:賃貸、コインパーキング、管理, rental_office_co_working_space: 不動産業:レンタルオフィス、コワーキングスペース, rental_lease: レンタル業、リース業, cpa_tax_accountant: 士業:公認会計士事務所、税理士事務所, law_office: 士業:法律事務所, judicial_and_administrative_scrivener: 士業:司法書士事務所/行政書士事務所, labor_consultant: 士業:社会保険労務士事務所, other_profession: 士業:その他, business_consultant: 経営コンサルタント, academic_research_development: 学術・開発研究機関, advertising_agency: 広告代理店, advertising_planning_production: 広告企画/制作, design_development: ソフトウェア、アプリ開発業(受託), apparel_industry_design: 服飾デザイン業、工業デザイン業, website_design: ウェブサイト制作(受託), advertising_planning_design: 広告企画/制作業, other_design: その他、デザイン/制作, restaurants_coffee_shops: レストラン、喫茶店等の飲食店業, sale_of_lunch: 弁当の販売業, bread_confectionery_manufacture_sale: パン、菓子等の製造販売業, delivery_catering_mobile_catering: デリバリー業、ケータリング業、移動販売業, hotel_inn: 宿泊業:ホテル、旅館, homestay: 宿泊業:民泊, travel_agency: 旅行代理店業, leisure_sports_facility_management: レジャー、スポーツ等の施設運営業, show_event_management: ショー、イベント等の興行、イベント運営業, barber: ビューティ、ヘルスケア業:床屋、理容室, beauty_salon: ビューティ、ヘルスケア業:美容室, spa_sand_bath_sauna: ビューティ、ヘルスケア業:スパ、砂風呂、サウナ等, este_ail_salon: ビューティ、ヘルスケア業:その他、エステサロン、ネイルサロン等, bridal_planning_introduce_wedding: 冠婚葬祭業:ブライダルプランニング、結婚式場紹介等, memorial_ceremony_funeral: 冠婚葬祭業:メモリアルセレモニー、葬儀等, moving: 引っ越し業, courier_industry: 宅配業, house_maid_cleaning_agency: 家事代行サービス業:無店舗 ハウスメイド、掃除代行等, re_tailoring_clothes: 家事代行サービス業:店舗あり 衣類修理、衣類仕立て直し等, training_institute_management: 研修所等の施設運営業, tutoring_school: 学習塾、進学塾等の教育・学習支援業, music_calligraphy_abacus_classroom: 音楽教室、書道教室、そろばん教室等のの教育・学習支援業, english_school: 英会話スクール等の語学学習支援業, tennis_yoga_judo_school: テニススクール、ヨガ教室、柔道場等のスポーツ指導、支援業, culture_school: その他、カルチャースクール等の教育・学習支援業, seminar_planning_management: セミナー等の企画、運営業, hospital_clinic: 医療業:病院、一般診療所、クリニック等, dental_clinic: 医療業:歯科診療所, other_medical_services: 医療業:その他、医療サービス等, nursery: 福祉業:保育所等、児童向け施設型サービス, nursing_home: 福祉業:老人ホーム等、老人向け施設型サービス, rehabilitation_support_services: 福祉業:療育支援サービス等、障害者等向け施設型サービス, other_welfare: 福祉業:その他、施設型福祉サービス, visit_welfare_service: 福祉業:訪問型福祉サービス, recruitment_temporary_staffing: 人材紹介業、人材派遣業, life_related_recruitment_temporary_staffing: 生活関連サービスの人材紹介業、人材派遣業, car_maintenance_car_repair: 自動車整備業、自動車修理業, machinery_equipment_maintenance_repair: 機械機器類の整備業、修理業, cleaning_maintenance_building_management: 清掃業、メンテナンス業、建物管理業, security: 警備業, other_services: その他のサービス業, npo: NPO, general_incorporated_association: 一般社団法人, general_incorporated_foundation: 一般財団法人, other_association: その他組織) IndustryCode *string `json:"industry_code,omitempty"` // 仕訳承認フロー(enable: 有効、 disable: 無効) WorkflowSetting *string `json:"workflow_setting,omitempty"` // 取引先コードの利用設定(true: 有効、 false: 無効) UsePartnerCode *bool `json:"use_partner_code,omitempty"` FiscalYears *[]FiscalYears `json:"fiscal_years,omitempty"` }
type CompanyResponse ¶
type CompanyResponse struct {
Company Company `json:"company"`
}
type CreateManualJournalParams ¶
type CreateManualJournalParams struct { // 事業所ID CompanyID int32 `json:"company_id"` // 発生日 (yyyy-mm-dd) IssueDate string `json:"issue_date"` // 仕訳番号 TxnNumber string `json:"txn_number,omitempty"` // 決算整理仕訳フラグ(falseまたは未指定の場合: 日常仕訳) Adjustment bool `json:"adjustment,omitempty"` CreateManualJournalParamsDetails []CreateManualJournalParamsDetail `json:"details"` }
type CreateManualJournalParamsDetail ¶
type CreateManualJournalParamsDetail struct { // 貸借(貸方: credit, 借方: debit) EntrySide string `json:"entry_side"` // 税区分コード TaxCode int32 `json:"tax_code"` // 勘定科目ID AccountItemID int32 `json:"account_item_id"` // 取引金額(税込で指定してください) Amount int64 `json:"amount"` // 消費税額(指定しない場合は自動で計算されます) Vat *int32 `json:"vat,omitempty"` // 取引先ID PartnerID int32 `json:"partner_id,omitempty"` // 取引先コード PartnerCode string `json:"partner_code,omitempty"` // 品目ID ItemID int32 `json:"item_id,omitempty"` // 部門ID SectionID int32 `json:"section_id,omitempty"` // メモタグID TagIDs []int32 `json:"tag_ids,omitempty"` // セグメント1ID Segment1TagID uint64 `json:"segment_1_tag_id,omitempty"` // セグメント2ID Segment2TagID uint64 `json:"segment_2_tag_id,omitempty"` // セグメント3ID Segment3TagID uint64 `json:"segment_3_tag_id,omitempty"` // 備考 Description string `json:"description,omitempty"` }
type CreatePartnerParams ¶
type CreatePartnerParams struct { // 事業所ID CompanyID int32 `json:"company_id"` // 取引先名 (255文字以内) Name string `json:"name"` // 取引先コード(取引先コードの利用を有効にしている場合は、codeの指定は必須です。) Code string `json:"code,omitempty"` // ショートカット1 (255文字以内) Shortcut1 string `json:"shortcut1,omitempty"` // ショートカット2 (255文字以内) Shortcut2 string `json:"shortcut2,omitempty"` // 事業所種別(null: 未設定、1: 法人、2: 個人) OrgCode *int32 `json:"org_code,omitempty"` // 地域(JP: 国内、ZZ:国外) CountryCode string `json:"country_code,omitempty"` // 正式名称(255文字以内) LongName string `json:"long_name,omitempty"` // カナ名称(255文字以内) NameKana string `json:"name_kana,omitempty"` // 敬称(御中、様、(空白)の3つから選択) DefaultTitle string `json:"default_title,omitempty"` // 電話番号 Phone string `json:"phone,omitempty"` // 担当者 氏名 (255文字以内) ContactName string `json:"contact_name,omitempty"` // 担当者 メールアドレス (255文字以内) Email string `json:"email,omitempty"` // 振込元口座ID(一括振込ファイル用):(walletableのtypeが'bank_account'のidのみ指定できます。また、未設定にする場合は、nullを指定してください。) PayerWalletableID *int32 `json:"payer_walletable_id,omitempty"` // 振込手数料負担(一括振込ファイル用): (振込元(当方): payer, 振込先(先方): payee) TransferFeeHandlingSide string `json:"transfer_fee_handling_side,omitempty"` AddressAttributes CreatePartnerParamsAddressAttributes `json:"address_attributes,omitempty"` PartnerDocSettingAttributes CreatePartnerParamsPartnerDocSettingAttributes `json:"partner_doc_setting_attributes,omitempty"` PartnerBankAccountAttributes CreatePartnerParamsPartnerBankAccountAttributes `json:"partner_bank_account_attributes,omitempty"` PaymentTermAttributes CreatePartnerParamsPaymentTermAttributes `json:"payment_term_attributes,omitempty"` InvoicePaymentTermAttributes CreatePartnerParamsPaymentTermAttributes `json:"invoice_payment_term_attributes,omitempty"` }
type CreatePartnerParamsAddressAttributes ¶
type CreatePartnerParamsAddressAttributes struct { // 郵便番号(8文字以内) Zipcode string `json:"zipcode,omitempty"` // 都道府県コード(0: 北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄 PrefectureCode int32 `json:"prefecture_code,omitempty"` // 市区町村・番地(255文字以内) StreetName1 string `json:"street_name1,omitempty"` // 建物名・部屋番号など(255文字以内) StreetName2 string `json:"street_name2,omitempty"` }
type CreatePartnerParamsPartnerBankAccountAttributes ¶
type CreatePartnerParamsPartnerBankAccountAttributes struct { // 銀行名 BankName string `json:"bank_name,omitempty"` // 銀行名(カナ) BankNameKana string `json:"bank_name_kana,omitempty"` // 銀行番号 BankCode string `json:"bank_code,omitempty"` // 支店名 BranchName string `json:"branch_name,omitempty"` // 支店名(カナ) BranchKana string `json:"branch_kana,omitempty"` // 支店番号 BranchCode string `json:"branch_code,omitempty"` // 口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他) AccountType string `json:"account_type,omitempty"` // 口座番号 AccountNumber string `json:"account_number,omitempty"` // 受取人名 LongAccountName string `json:"long_account_name,omitempty"` // 受取人名(カナ) AccountName string `json:"account_name,omitempty"` }
type CreatePartnerParamsPartnerDocSettingAttributes ¶
type CreatePartnerParamsPartnerDocSettingAttributes struct { // 請求書送付方法(email:メール、posting:郵送、email_and_posting:メールと郵送) SendingMethod string `json:"sending_method,omitempty"` }
type CreatePartnerParamsPaymentTermAttributes ¶
type CreatePartnerParamsPaymentTermAttributes struct { // 締め日(29, 30, 31日の末日を指定する場合は、32を指定してください。) CutoffDay int32 `json:"cutoff_day,omitempty"` // 支払月 AdditionalMonths int32 `json:"additional_months,omitempty"` // 支払日(29, 30, 31日の末日を指定する場合は、32を指定してください。) FixedDay int32 `json:"fixed_day,omitempty"` }
type CreateReceiptParams ¶
type Deal ¶
type Deal struct { // 取引ID ID uint64 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 発生日 (yyyy-mm-dd) IssueDate string `json:"issue_date"` // 支払期日 (yyyy-mm-dd) DueDate *string `json:"due_date,omitempty"` // 金額 Amount int32 `json:"amount"` // 支払金額 DueAmount *int32 `json:"due_amount,omitempty"` // 収支区分 (収入: income, 支出: expense) Type *string `json:"type,omitempty"` // 取引先ID PartnerID int32 `json:"partner_id"` // 取引先コード PartnerCode *string `json:"partner_code,omitempty"` // 管理番号 RefNumber *string `json:"ref_number,omitempty"` // 決済状況 (未決済: unsettled, 完了: settled) Status string `json:"status"` // 取引の明細行 Details *[]DealDetails `json:"details,omitempty"` // 取引の+更新行 Renews *[]DealRenews `json:"renews,omitempty"` // 取引の支払行 Payments *[]DealPayments `json:"payments,omitempty"` // 証憑ファイル Receipts *[]DealReceipts `json:"receipts,omitempty"` }
type DealCreateParams ¶
type DealCreateParams struct { // 発生日 (yyyy-mm-dd) IssueDate string `json:"issue_date"` // 収支区分 (収入: income, 支出: expense) Type string `json:"type"` // 事業所ID CompanyID int32 `json:"company_id"` // 支払期日(yyyy-mm-dd) DueDate *string `json:"due_date,omitempty"` // 取引先ID PartnerID *int32 `json:"partner_id,omitempty"` // 取引先コード PartnerCode *string `json:"partner_code,omitempty"` // 管理番号 RefNumber *string `json:"ref_number,omitempty"` Details []DealCreateParamsDetails `json:"details"` // 支払行一覧(配列):未指定の場合、未決済の取引を作成します。 Payments *[]DealCreateParamsPayments `json:"payments,omitempty"` // 証憑ファイルID(配列) ReceiptIDs *[]int32 `json:"receipt_ids,omitempty"` }
type DealCreateParamsDetails ¶
type DealCreateParamsDetails struct { // 税区分コード TaxCode int32 `json:"tax_code"` // 勘定科目ID AccountItemID int32 `json:"account_item_id"` // 取引金額(税込で指定してください) Amount int32 `json:"amount"` // 品目ID ItemID *int32 `json:"item_id,omitempty"` // 部門ID SectionID *int32 `json:"section_id,omitempty"` // メモタグID TagIDs *[]int32 `json:"tag_ids,omitempty"` // セグメント1ID Segment1TagID *int32 `json:"segment_1_tag_id,omitempty"` // セグメント2ID Segment2TagID *int32 `json:"segment_2_tag_id,omitempty"` // セグメント3ID Segment3TagID *int32 `json:"segment_3_tag_id,omitempty"` // 備考 Description *string `json:"description,omitempty"` // 消費税額(指定しない場合は自動で計算されます) Vat *int32 `json:"vat,omitempty"` }
type DealCreateParamsPayments ¶
type DealCreateParamsPayments struct { // 支払金額:payments指定時は必須 Amount int32 `json:"amount"` // 口座ID(from_walletable_typeがprivate_account_itemの場合は勘定科目ID):payments指定時は必須 FromWalletableID int32 `json:"from_walletable_id"` // 口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet, プライベート資金(法人の場合は役員借入金もしくは役員借入金、個人の場合は事業主貸もしくは事業主借): private_account_item):payments指定時は必須 FromWalletableType string `json:"from_walletable_type"` // 支払日:payments指定時は必須 Date string `json:"date"` }
type DealDetails ¶
type DealDetails struct { ID uint64 `json:"id"` // 勘定科目ID AccountItemID int32 `json:"account_item_id"` // 税区分コード TaxCode int32 `json:"tax_code"` // 品目ID ItemID *int32 `json:"item_id,omitempty"` // 部門ID SectionID *int32 `json:"section_id,omitempty"` // メモタグID TagIDs *[]int32 `json:"tag_ids,omitempty"` // セグメント1ID Segment1TagID *int32 `json:"segment_1_tag_id,omitempty"` // セグメント2ID Segment2TagID *int32 `json:"segment_2_tag_id,omitempty"` // セグメント3ID Segment3TagID *int32 `json:"segment_3_tag_id,omitempty"` // 取引金額(税込で指定してください) Amount int32 `json:"amount"` // 消費税額(指定しない場合は自動で計算されます) Vat int32 `json:"vat"` // 備考 Description *string `json:"description,omitempty"` // 貸借(貸方: credit, 借方: debit) EntrySide string `json:"entry_side"` }
type DealPayments ¶
type DealPayments struct { // 取引行ID ID uint64 `json:"id"` // 支払日 Date string `json:"date"` // 口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet, プライベート資金(法人の場合は役員借入金もしくは役員借入金、個人の場合は事業主貸もしくは事業主借): private_account_item) FromWalletableType *string `json:"from_walletable_type,omitempty"` // 口座ID(from_walletable_typeがprivate_account_itemの場合は勘定科目ID) FromWalletableID *int32 `json:"from_walletable_id,omitempty"` // 支払金額 Amount int32 `json:"amount"` }
type DealReceipts ¶
type DealReceipts struct { // 証憑ID ID int32 `json:"id"` // ステータス(unconfirmed:確認待ち、confirmed:確認済み、deleted:削除済み、ignored:無視) Status string `json:"status"` // メモ Description *string `json:"description,omitempty"` // MIMEタイプ MimeType string `json:"mime_type"` // 発生日 IssueDate *string `json:"issue_date,omitempty"` // アップロード元種別 Origin string `json:"origin"` // 作成日時(ISO8601形式) CreatedAt string `json:"created_at"` User DealUser `json:"user"` }
type DealRenews ¶
type DealRenews struct { // +更新行ID ID uint64 `json:"id"` // 更新日 (yyyy-mm-dd) UpdateDate string `json:"update_date"` // +更新の対象行ID RenewTargetId int64 `json:"renew_target_id"` // +更新の対象行タイプ RenewTargetType string `json:"renew_target_type"` // +更新の明細行一覧(配列) Details []DealDetails `json:"details"` }
type DealResponse ¶
type DealResponse struct {
Deal Deal `json:"deal"`
}
type DealUpdateParams ¶
type DealUpdateParams struct { // 発生日 (yyyy-mm-dd) IssueDate string `json:"issue_date"` // 収支区分 (収入: income, 支出: expense) Type string `json:"type"` // 事業所ID CompanyID int32 `json:"company_id"` // 支払期日(yyyy-mm-dd) DueDate *string `json:"due_date,omitempty"` // 取引先ID PartnerID *int32 `json:"partner_id,omitempty"` // 取引先コード PartnerCode *string `json:"partner_code,omitempty"` // 管理番号 RefNumber *string `json:"ref_number,omitempty"` Details []DealUpdateParamsDetails `json:"details"` // 証憑ファイルID(配列) ReceiptIDs []int32 `json:"receipt_ids,omitempty"` }
type DealUpdateParamsDetails ¶
type DealUpdateParamsDetails struct { // 取引行ID: 既存取引行を更新する場合に指定します。IDを指定しない取引行は、新規行として扱われ追加されます。また、detailsに含まれない既存の取引行は削除されます。更新後も残したい行は、必ず取引行IDを指定してdetailsに含めてください。 ID *uint64 `json:"id,omitempty"` // 税区分コード TaxCode int32 `json:"tax_code"` // 勘定科目ID AccountItemID int32 `json:"account_item_id"` // 取引金額(税込で指定してください) Amount int32 `json:"amount"` // 品目ID ItemID *int32 `json:"item_id,omitempty"` // 部門ID SectionID *int32 `json:"section_id,omitempty"` // メモタグID TagIDs *[]int32 `json:"tag_ids,omitempty"` // セグメント1ID Segment1TagID *int32 `json:"segment_1_tag_id,omitempty"` // セグメント2ID Segment2TagID *int32 `json:"segment_2_tag_id,omitempty"` // セグメント3ID Segment3TagID *int32 `json:"segment_3_tag_id,omitempty"` // 備考 Description *string `json:"description,omitempty"` // 消費税額(指定しない場合は自動で計算されます) Vat *int32 `json:"vat,omitempty"` }
type DealsResponse ¶
type DealsResponse struct { Deals []Deal `json:"deals"` Meta DealsResponseMeta `json:"meta"` }
type DealsResponseMeta ¶
type DealsResponseMeta struct {
TotalCount int32 `json:"total_count"`
}
type DefaultTax ¶
type ExpenseApplication ¶
type ExpenseApplication struct { // 経費申請ID ID int32 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 申請タイトル Title string `json:"title"` // 申請日 (yyyy-mm-dd) IssueDate string `json:"issue_date"` // 備考 Description *string `json:"description,omitempty"` // 合計金額 TotalAmount *int32 `json:"total_amount,omitempty"` // 申請ステータス(draft:下書き, in_progress:申請中, approved:承認済, rejected:却下, feedback:差戻し) Status string `json:"status"` // 部門ID SectionID *int32 `json:"section_id,omitempty"` // メモタグID TagIDs *[]int32 `json:"tag_ids,omitempty"` // 経費申請の項目行一覧(配列) ExpenseApplicationLines []ExpenseApplicationLine `json:"expense_application_lines"` // 取引ID (申請ステータス:statusがapprovedで、取引が存在する時のみdeal_idが表示されます) DealID int32 `json:"deal_id"` // 取引ステータス (申請ステータス:statusがapprovedで、取引が存在する時のみdeal_statusが表示されます settled:精算済み, unsettled:清算待ち) DealStatus string `json:"deal_status"` // 申請者のユーザーID ApplicantID int32 `json:"applicant_id"` // 申請No. ApplicationNumber string `json:"application_number"` // 現在承認ステップID CurrentStepID *int32 `json:"current_step_id,omitempty"` // 現在のround。差し戻し等により申請がstepの最初からやり直しになるとroundの値が増えます。 CurrentRound *int32 `json:"current_round,omitempty"` // セグメント1ID Segment1TagID *int32 `json:"segment_1_tag_id,omitempty"` // セグメント2ID Segment2TagID *int32 `json:"segment_2_tag_id,omitempty"` // セグメント3ID Segment3TagID *int32 `json:"segment_3_tag_id,omitempty"` }
type ExpenseApplicationLine ¶
type ExpenseApplicationLine struct { // 経費申請の項目行ID ID int32 `json:"id"` // 日付 (yyyy-mm-dd) TransactionDate *string `json:"transaction_date,omitempty"` // 内容 Description *string `json:"description,omitempty"` // 金額 Amount *int32 `json:"amount,omitempty"` // 経費科目ID ExpenseApplicationLineTemplateID *int32 `json:"expense_application_line_template_id,omitempty"` // 証憑ファイルID(ファイルボックスのファイルID) ReceiptID *int32 `json:"receipt_id,omitempty"` }
type ExpenseApplicationLineTemplate ¶
type ExpenseApplicationLineTemplate struct { // 経費科目ID ID int32 `json:"id"` // 経費科目名 Name string `json:"name"` // 勘定科目ID AccountItemID *int32 `json:"account_item_id,omitempty"` // 勘定科目名 AccountItemName string `json:"account_item_name"` // 税区分コード TaxCode *int32 `json:"tax_code,omitempty"` // 税区分名 TaxName string `json:"tax_name"` // 経費科目の説明 Description *string `json:"description,omitempty"` // 内容の補足 LineDescription *string `json:"line_description,omitempty"` // 添付ファイルの必須/任意 RequiredReceipt *bool `json:"required_receipt,omitempty"` }
type ExpenseApplicationLineTemplates ¶
type ExpenseApplicationLineTemplates struct {
ExpenseApplicationLineTemplates []ExpenseApplicationLineTemplate `json:"expense_application_line_templates"`
}
type ExpenseApplications ¶
type ExpenseApplications struct {
ExpenseApplications []ExpenseApplication `json:"expense_applications"`
}
type FiscalYears ¶
type FiscalYears struct { // 製造業向け機能(true: 使用する、false: 使用しない) UseIndustryTemplate bool `json:"use_industry_template"` // 固定資産の控除法(true: 間接控除法、false: 直接控除法) IndirectWriteOffMethod bool `json:"indirect_write_off_method"` // 期首日 StartDate *string `json:"start_date,omitempty"` // 期末日 EndDate *string `json:"end_date,omitempty"` // 月次償却(0: しない、1: する) DepreciationRecordMethod int32 `json:"depreciation_record_method"` // 課税区分(0: 免税、1: 簡易課税、2: 本則課税(個別対応方式)、3: 本則課税(一括比例配分方式)、4: 本則課税(全額控除)) TaxMethod int32 `json:"tax_method"` // 簡易課税用事業区分(0: 第一種:卸売業、1: 第二種:小売業、2: 第三種:農林水産業、工業、建設業、製造業など、3: 第四種:飲食店業など、4: 第五種:金融・保険業、運輸通信業、サービス業など、5: 第六種:不動産業など SalesTaxBusinessCode int32 `json:"sales_tax_business_code"` // 消費税端数処理方法(0: 切り捨て、1: 切り上げ、2: 四捨五入) TaxFraction int32 `json:"tax_fraction"` // 消費税経理処理方法(0: 税込経理、1: 旧税抜経理、2: 税抜経理) TaxAccountMethod int32 `json:"tax_account_method"` // 不動産所得使用区分(0: 一般、3: 一般/不動産) ※個人事業主のみ設定可能 ReturnCode int32 `json:"return_code"` }
FiscalYears struct for FiscalYears
type FreeErrorMessageDetail ¶
type FreeErrorMessageDetail struct {
Messages []string `json:"messages"`
}
type FreeeErrorMessage ¶
type FreeeErrorMessage struct { ErrorDescription string `json:"error_description"` Message string `json:"message"` Messages []string `json:"messages"` ErrorDetails []FreeErrorMessageDetail `json:"errors"` }
type GetAccountItemsOpts ¶
type GetAccountItemsOpts struct {
BaseDate string `url:"base_date,omitempty"`
}
type GetApprovalRequestsOpts ¶
type GetApprovalRequestsOpts struct { Status string `url:"status,omitempty"` ApplicationNumber int32 `url:"application_number,omitempty"` Title string `url:"title,omitempty"` FormID int32 `url:"form_id,omitempty"` StartApplicationDate string `url:"start_application_date,omitempty"` EndApplicationDate string `url:"end_application_date,omitempty"` ApplicantID int32 `url:"applicant_id,omitempty"` MinAmount int32 `url:"min_amount,omitempty"` MaxAmount int32 `url:"max_amount,omitempty"` ApproverID int32 `url:"approver_id,omitempty"` Offset int32 `url:"offset,omitempty"` Limit int32 `url:"limit,omitempty"` }
type GetBanksOpts ¶
type GetCompanyOpts ¶
type GetCompanyOpts struct { Details *bool `json:"details,omitempty"` AccountItems *bool `json:"account_items,omitempty"` Taxes *bool `json:"taxes,omitempty"` Items *bool `json:"items,omitempty"` Partners *bool `json:"partners,omitempty"` Sections *bool `json:"sections,omitempty"` Tags *bool `json:"tags,omitempty"` Walletables *bool `json:"walletables,omitempty"` }
type GetDealOpts ¶
type GetDealOpts struct { // 取引先ID PartnerID int32 `url:"partner_id,omitempty"` // 勘定科目IDで絞込 AccountItemID int32 `url:"account_item_id,omitempty"` // 取引先コードで絞込 PartnerCode string `url:"partner_code,omitempty"` // 決済状況 (未決済: unsettled, 完了: settled) Status string `url:"status,omitempty"` // 収支区分 (収入: income, 支出: expense) Type string `url:"type,omitempty"` // 発生日で絞込:開始日(yyyy-mm-dd) StartIssueDate string `url:"start_issue_date,omitempty"` // 発生日で絞込:終了日(yyyy-mm-dd) EndIssueDate string `url:"end_issue_date,omitempty"` // 支払期日で絞込:開始日(yyyy-mm-dd) StartDueDate string `url:"start_due_date,omitempty"` // 支払期日で絞込:終了日(yyyy-mm-dd) EndDueDate string `url:"end_due_date,omitempty"` // +更新日で絞込:開始日(yyyy-mm-dd) StartRenewDate string `url:"start_renew_date,omitempty"` // +更新日で絞込:終了日(yyyy-mm-dd) EndRenewDate string `url:"end_renew_date,omitempty"` Offset int32 `url:"offset,omitempty"` Limit int32 `url:"limit,omitempty"` // 取引登録元アプリで絞込(me: 本APIを叩くアプリ自身から登録した取引のみ) RegisteredFrom string `url:"registered_from,omitempty"` // 取引の債権債務行の表示(without: 表示しない(デフォルト), with: 表示する) Accruals string `url:"accruals,omitempty"` }
type GetExpenseApplicationsOpts ¶
type GetExpenseApplicationsOpts struct { Status string `url:"status,omitempty"` PayrollAttached bool `url:"payroll_attached,omitempty"` StartTransactionDate string `url:"start_transaction_date,omitempty"` EndTransactionDate string `url:"end_transaction_date,omitempty"` ApplicationNumber int32 `url:"application_number,omitempty"` Title string `url:"title,omitempty"` StartIssueDate string `url:"start_issue_date,omitempty"` EndIssueDate string `url:"end_issue_date,omitempty"` ApplicantID int32 `url:"applicant_id,omitempty"` ApproverID int32 `url:"approver_id,omitempty"` MinAmount int32 `url:"min_amount,omitempty"` MaxAmount int32 `url:"max_amount,omitempty"` Offset int32 `url:"offset,omitempty"` Limit int32 `url:"limit,omitempty"` }
type GetInvoicesOpts ¶
type GetInvoicesOpts struct { PartnerID int32 `url:"partner_id,omitempty"` PartnerCode string `url:"partner_code,omitempty"` StartIssueDate string `url:"start_issue_date,omitempty"` EndIssueDate string `url:"end_issue_date,omitempty"` StartDueDate string `url:"start_due_date,omitempty"` EndDueDate string `url:"end_due_date,omitempty"` InvoiceNumber string `url:"invoice_number,omitempty"` Description string `url:"description,omitempty"` InvoiceStatus string `url:"invoice_status,omitempty"` PaymentStatus string `url:"payment_status,omitempty"` Offset int32 `url:"offset,omitempty"` Limit int32 `url:"limit,omitempty"` }
type GetItemsOpts ¶
type GetJournalsOpts ¶
type GetManualJournalsOpts ¶
type GetManualJournalsOpts struct { // 発生日で絞込:開始日(yyyy-mm-dd) StartIssueDate string `url:"start_issue_date,omitempty"` // 発生日で絞込:終了日(yyyy-mm-dd) EndIssueDate string `url:"end_issue_date,omitempty"` // 貸借で絞込 (貸方: credit, 借方: debit) EntrySide string `url:"entry_side,omitempty"` AccountItemID int32 `url:"account_item_id,omitempty"` MinAmount int32 `url:"min_amount,omitempty"` MaxAmount int32 `url:"max_amount,omitempty"` PartnerID int32 `url:"partner_id,omitempty"` PartnerCode string `url:"partner_code,omitempty"` ItemID int32 `url:"item_id,omitempty"` SectionID int32 `url:"section_id,omitempty"` Segment1TagID int32 `url:"segment_1_tag_id,omitempty"` Segment2TagID int32 `url:"segment_2_tag_id,omitempty"` Segment3TagID int32 `url:"segment_3_tag_id,omitempty"` CommentStatus string `url:"comment_status,omitempty"` CommentImportant bool `url:"comment_important,omitempty"` Adjustment string `url:"adjustment,omitempty"` TxnNumber string `url:"txn_number,omitempty"` Offset int32 `url:"offset,omitempty"` Limit int32 `url:"limit,omitempty"` }
type GetPartnersOpts ¶
type GetPaymentRequestsOpts ¶
type GetPaymentRequestsOpts struct { Status string `url:"status,omitempty"` StartApplicationDate string `url:"start_application_date,omitempty"` EndApplicationDate string `url:"end_application_date,omitempty"` StartIssueDate string `url:"start_issue_date,omitempty"` EndIssueDate string `url:"end_issue_date,omitempty"` ApplicationNumber int32 `url:"application_number,omitempty"` Title string `url:"title,omitempty"` ApplicantID int32 `url:"applicant_id,omitempty"` ApproverID int32 `url:"approver_id,omitempty"` MinAmount int32 `url:"min_amount,omitempty"` MaxAmount int32 `url:"max_amount,omitempty"` PartnerID int32 `url:"partner_id,omitempty"` PartnerCode string `url:"partner_code,omitempty"` PaymentMethod string `url:"payment_method,omitempty"` StartPaymentDate string `url:"start_payment_date,omitempty"` EndPaymentDate string `url:"end_payment_date,omitempty"` DocumentCode string `url:"document_code,omitempty"` Offset int32 `url:"offset,omitempty"` Limit int32 `url:"limit,omitempty"` }
type GetQuotationsOpts ¶
type GetQuotationsOpts struct { PartnerID int32 `url:"partner_id,omitempty"` PartnerCode string `url:"partner_code,omitempty"` StartIssueDate string `url:"start_issue_date,omitempty"` EndIssueDate string `url:"end_issue_date,omitempty"` QuotationNumber int32 `url:"quotation_number,omitempty"` Description string `url:"description,omitempty"` QuotationStatus string `url:"quotation_status,omitempty"` Offset int32 `url:"offset,omitempty"` Limit int32 `url:"limit,omitempty"` }
type GetReceiptOpts ¶
type GetReceiptOpts struct { StartDate string `url:"start_date"` EndDate string `url:"end_date"` UserName string `url:"user_name,omitempty"` Number int32 `url:"number,omitempty"` CommentType string `url:"comment_type,omitempty"` CommentImportant bool `url:"comment_important,omitempty"` Category string `url:"category,omitempty"` Offset int32 `url:"offset,omitempty"` Limit int32 `url:"limit,omitempty"` }
type GetReportsOpts ¶
type GetReportsOpts struct { // 会計年度 FiscalYear int32 `url:"fiscal_year,omitempty"` // 発生月で絞込:開始会計月(1-12)。指定されない場合、現在の会計年度の期首月が指定されます。 StartMonth int32 `url:"start_month,omitempty"` // 発生月で絞込:終了会計月(1-12)(会計年度が10月始まりでstart_monthが11なら11, 12, 1, ... 9のいずれかを指定する)。指定されない場合、現在の会計年度の期末月が指定されます。 EndMonth int32 `url:"end_month,omitempty"` // 発生日で絞込:開始日(yyyy-mm-dd) StartDate string `url:"start_date,omitempty"` // 発生日で絞込:終了日(yyyy-mm-dd) EndDate string `url:"end_date,omitempty"` // 勘定科目の表示(勘定科目: account_item, 決算書表示:group)。指定されない場合、勘定科目: account_itemが指定されます。 AccountItemDisplayType string `url:"account_item_display_type,omitempty"` // 内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item, セグメント1(法人向けプロフェッショナル, 法人向けエンタープライズプラン): segment_1_tag, セグメント2(法人向け エンタープライズプラン):segment_2_tag, セグメント3(法人向け エンタープライズプラン): segment_3_tag) ※勘定科目はaccount_item_display_typeが「group」の時のみ指定できます BreakdownDisplayType string `url:"breakdown_display_type,omitempty"` // 取引先IDで絞込(0を指定すると、取引先が未選択で絞り込めます) PartnerID int32 `url:"partner_id,omitempty"` // 取引先コードで絞込(事業所設定で取引先コードの利用を有効にしている場合のみ利用可能です) PartnerCode string `url:"partner_code,omitempty"` // 品目IDで絞込(0を指定すると、品目が未選択で絞り込めます) ItemID int32 `url:"item_id,omitempty"` // 部門IDで絞込(0を指定すると、部門が未選択で絞り込めます) SectionID int32 `url:"section_id,omitempty"` // 決算整理仕訳で絞込(決算整理仕訳のみ: only, 決算整理仕訳以外: without)。指定されない場合、決算整理仕訳以外: withoutが指定されます。 Adjustment string `url:"adjustment,omitempty"` // 配賦仕訳で絞込(配賦仕訳のみ:only,配賦仕訳以外:without)。指定されない場合、配賦仕訳を含む金額が返却されます。 CostAllocation string `url:"cost_allocation,omitempty"` // 承認ステータスで絞込 (未承認を除く: without_in_progress (デフォルト)、全てのステータス: all) // 個人: プレミアムプラン、法人: プロフェッショナルプラン以上で指定可能です。 // 事業所の設定から仕訳承認フローの利用を有効にした場合に指定可能です。 ApprovalFlowStatus string `url:"approval_flow_status,omitempty"` }
type GetSegmentTagsOpts ¶
type GetSelectablesOpts ¶
type GetSelectablesOpts struct {
Includes string `url:"includes"`
}
type GetTagsOpts ¶
type GetTransfersOpts ¶
type GetTransfersOpts struct { // walletable_type、walletable_idは同時に指定が必要です。 // 口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet) WalletableType string `url:"walletable_type,omitempty"` // 口座ID WalletableID int32 `url:"walletable_id,omitempty"` // 取引日で絞込:開始日 (yyyy-mm-dd) StartDate string `url:"start_date,omitempty"` // 取引日で絞込:終了日 (yyyy-mm-dd) EndDate string `url:"end_date,omitempty"` // 入金/出金 (入金: income, 出金: expense) EntrySide string `url:"entry_side,omitempty"` // 取得レコードのオフセット (デフォルト: 0) Offset int32 `url:"offset,omitempty"` // 取得レコードの件数 (デフォルト: 20, 最小: 1, 最大: 100) Limit int32 `url:"limit,omitempty"` }
type GetUsersMeOpts ¶
type GetUsersMeOpts struct {
Companies bool `url:"companies,omitempty"`
}
type GetUsersOpts ¶
type GetUsersOpts struct {
Limit int32 `url:"limit,omitempty"`
}
type GetWalletTxnOpts ¶
type GetWalletTxnOpts struct { // walletable_type、walletable_idは同時に指定が必要です。 // 口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet) WalletableType string `url:"walletable_type,omitempty"` // 口座ID WalletableID int32 `url:"walletable_id,omitempty"` // 取引日で絞込:開始日 (yyyy-mm-dd) StartDate string `url:"start_date,omitempty"` // 取引日で絞込:終了日 (yyyy-mm-dd) EndDate string `url:"end_date,omitempty"` // 入金/出金 (入金: income, 出金: expense) EntrySide string `url:"entry_side,omitempty"` // 取得レコードのオフセット (デフォルト: 0) Offset int32 `url:"offset,omitempty"` // 取得レコードの件数 (デフォルト: 20, 最小: 1, 最大: 100) Limit int32 `url:"limit,omitempty"` }
type GetWalletablesOpts ¶
type Invoice ¶
type Invoice struct { // 請求書ID ID int32 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 請求日 (yyyy-mm-dd) IssueDate string `json:"issue_date"` // 取引先ID PartnerID int32 `json:"partner_id"` // 取引先コード PartnerCode *string `json:"partner_code,omitempty"` // 請求書番号 InvoiceNumber string `json:"invoice_number"` // 申請タイトル Title *string `json:"title,omitempty"` // 期日 (yyyy-mm-dd) DueDate *string `json:"due_date,omitempty"` // 合計金額 TotalAmount int32 `json:"total_amount"` // 合計金額 TotalVat *int32 `json:"total_vat,omitempty"` // 小計 SubTotal *int32 `json:"sub_total,omitempty"` // 売上計上日 BookingDate *string `json:"booking_date,omitempty"` // 概要 Description *string `json:"description,omitempty"` // 請求書ステータス (draft: 下書き, applying: 申請中, remanded: 差し戻し, rejected: 却下, approved: 承認済み, submitted: 送付済み, unsubmitted: 請求書の承認フローが無効の場合のみ、unsubmitted(送付待ち)の値をとります) InvoiceStatus string `json:"invoice_status"` // 入金ステータス (unsettled: 入金待ち, settled: 入金済み) PaymentStatus *string `json:"payment_status,omitempty"` // 入金日 PaymentDate *string `json:"payment_date,omitempty"` // Web共有日時(最新) WebPublishedAt *string `json:"web_published_at,omitempty"` // Web共有ダウンロード日時(最新) WebDownloadedAt *string `json:"web_downloaded_at,omitempty"` // Web共有取引先確認日時(最新) WebConfirmedAt *string `json:"web_confirmed_at,omitempty"` // メール送信日時(最新) MailSentAt *string `json:"mail_sent_at,omitempty"` // 郵送ステータス(unrequested: リクエスト前, preview_registered: プレビュー登録, preview_failed: プレビュー登録失敗, ordered: 注文中, order_failed: 注文失敗, printing: 印刷中, canceled: キャンセル, posted: 投函済み) PostingStatus string `json:"posting_status"` // 取引先名 PartnerName *string `json:"partner_name,omitempty"` // 請求書に表示する取引先名 PartnerDisplayName *string `json:"partner_display_name,omitempty"` // 敬称(御中、様、(空白)の3つから選択) PartnerTitle *string `json:"partner_title,omitempty"` // 郵便番号 PartnerZipcode *string `json:"partner_zipcode,omitempty"` // 都道府県コード(-1: 設定しない、0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄 PartnerPrefectureCode *int32 `json:"partner_prefecture_code,omitempty"` // 都道府県 PartnerPrefectureName *string `json:"partner_prefecture_name,omitempty"` // 市区町村・番地 PartnerAddress1 *string `json:"partner_address1,omitempty"` // 建物名・部屋番号など PartnerAddress2 *string `json:"partner_address2,omitempty"` // 取引先担当者名 PartnerContactInfo *string `json:"partner_contact_info,omitempty"` // 事業所名 CompanyName string `json:"company_name"` // 郵便番号 CompanyZipcode *string `json:"company_zipcode,omitempty"` // 都道府県コード(-1: 設定しない、0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄 CompanyPrefectureCode *int32 `json:"company_prefecture_code,omitempty"` // 都道府県 CompanyPrefectureName *string `json:"company_prefecture_name,omitempty"` // 市区町村・番地 CompanyAddress1 *string `json:"company_address1,omitempty"` // 建物名・部屋番号など CompanyAddress2 *string `json:"company_address2,omitempty"` // 事業所担当者名 CompanyContactInfo *string `json:"company_contact_info,omitempty"` // 支払方法 (振込: transfer, 引き落とし: direct_debit) PaymentType string `json:"payment_type"` // 支払口座 PaymentBankInfo *string `json:"payment_bank_info,omitempty"` // メッセージ Message *string `json:"message,omitempty"` // 備考 Notes *string `json:"notes,omitempty"` // 請求書レイアウト InvoiceLayout string `json:"invoice_layout"` // 請求書の消費税計算方法(inclusive: 内税, exclusive: 外税) TaxEntryMethod string `json:"tax_entry_method"` // 取引ID (invoice_statusがsubmitted, unsubmittedの時IDが表示されます) DealID *int32 `json:"deal_id,omitempty"` // 請求内容 InvoiceContents *[]InvoiceContent `json:"invoice_contents,omitempty"` TotalAmountPerVatRate TotalAmountPerVatRate `json:"total_amount_per_vat_rate"` }
type InvoiceContent ¶
type InvoiceContent struct { // 請求内容ID ID int32 `json:"id"` // 順序 Order int32 `json:"order"` // 行の種類 Type string `json:"type"` // 数量 Qty float64 `json:"qty"` // 単位 Unit string `json:"unit"` // 単価 UnitPrice float64 `json:"unit_price"` // 内税/外税の判別とamountの税込み、税抜きについて Amount int32 `json:"amount"` // 消費税額 Vat int32 `json:"vat"` // 軽減税率税区分(true: 対象、false: 対象外) ReducedVat bool `json:"reduced_vat"` // 備考 Description string `json:"description"` // 勘定科目ID AccountItemID int32 `json:"account_item_id"` // 勘定科目名 AccountItemName string `json:"account_item_name"` // 税区分コード TaxCode int32 `json:"tax_code"` // 品目ID ItemID int32 `json:"item_id"` // 品目 ItemName string `json:"item_name"` // 部門ID SectionID int32 `json:"section_id"` // 部門 SectionName string `json:"section_name"` // メモタグID TagIDs []int32 `json:"tag_ids"` // メモタグ TagNames []string `json:"tag_names"` // セグメント1ID Segment1TagID *string `json:"segment_1_tag_id,omitempty"` // セグメント1 Segment1TagName *string `json:"segment_1_tag_name,omitempty"` // セグメント2ID Segment2TagID *string `json:"segment_2_tag_id,omitempty"` // セグメント2 Segment2TagName *string `json:"segment_2_tag_name,omitempty"` // セグメント3ID Segment3TagID *string `json:"segment_3_tag_id,omitempty"` // セグメント3 Segment3TagName *string `json:"segment_3_tag_name,omitempty"` }
type Item ¶
type Item struct { // 品目ID ID int32 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 品目名 (30文字以内) Name string `json:"name"` // 更新日(yyyy-mm-dd) UpdateDate string `json:"update_date"` // 品目の使用設定(true: 使用する、false: 使用しない) Available bool `json:"available"` // ショートカット1 (20文字以内) Shortcut1 *string `json:"shortcut1,omitempty"` // ショートカット2 (20文字以内) Shortcut2 *string `json:"shortcut2,omitempty"` }
type ItemParams ¶
type ItemResponse ¶
type ItemResponse struct {
Item Item `json:"item"`
}
type Journal ¶
type Journal struct { // 受け付けID ID int32 `json:"id"` // 受け付けメッセージ Messages *[]string `json:"messages,omitempty"` // 事業所ID CompanyID int32 `json:"company_id"` // ダウンロード形式 DownloadType *string `json:"download_type,omitempty"` // 取得開始日 (yyyy-mm-dd) StartDate *string `json:"start_date,omitempty"` // 取得終了日 (yyyy-mm-dd) EndDate *string `json:"end_date,omitempty"` // 補助科目やコメントとして出力する項目 VisibleTags *[]string `json:"visible_tags,omitempty"` // 追加出力するID項目 VisibleIDs *[]string `json:"visible_ids,omitempty"` // ステータス確認用URL StatusURL *string `json:"status_url,omitempty"` // 集計結果が最新かどうか UpToDate *bool `json:"up_to_date,omitempty"` // 集計結果が最新かどうか UpToDateReasons *[]UpToDateReason `json:"up_to_date_reasons,omitempty"` }
type Logger ¶
type Logger interface {
Printf(string, ...interface{})
}
Logger generic interface for logger
type ManualJournal ¶
type ManualJournal struct { // 振替伝票ID ID int32 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 発生日 (yyyy-mm-dd) IssueDate string `json:"issue_date"` // 決算整理仕訳フラグ(falseまたは未指定の場合: 日常仕訳) Adjustment bool `json:"adjustment"` // 仕訳番号 TxnNumber *string `json:"txn_number"` // 貸借行一覧(配列): 貸借合わせて100行まで登録できます。 Details []ManualJournalDetails `json:"details"` }
type ManualJournalDetails ¶
type ManualJournalDetails struct { // 貸借行ID ID int64 `json:"id"` // 貸借(貸方: credit, 借方: debit) EntrySide string `json:"entry_side"` // 勘定科目ID AccountItemID int32 `json:"account_item_id"` // 税区分コード TaxCode int32 `json:"tax_code"` // 取引先ID PartnerID int32 `json:"partner_id"` // 取引先名 PartnerName string `json:"partner_name"` // 取引先コード PartnerCode string `json:"partner_code,omitempty"` // 正式名称(255文字以内) PartnerLongName string `json:"partner_long_name"` // 品目ID ItemID int32 `json:"item_id"` // 品目 ItemName string `json:"item_name"` // 部門ID SectionID int32 `json:"section_id"` // 部門 SectionName string `json:"section_name"` TagIDs []int32 `json:"tag_ids"` TagNames []string `json:"tag_names"` // セグメント1ID Segment1TagID *int32 `json:"segment_1_tag_id,omitempty"` // セグメント1ID Segment1TagName *string `json:"segment_1_tag_name,omitempty"` // セグメント2ID Segment2TagID *int32 `json:"segment_2_tag_id,omitempty"` // セグメント2 Segment2TagName *string `json:"segment_2_tag_name,omitempty"` // セグメント3ID Segment3TagID *int32 `json:"segment_3_tag_id,omitempty"` // セグメント3 Segment3TagName *string `json:"segment_3_tag_name,omitempty"` // 金額(税込で指定してください) Amount int32 `json:"amount"` // 消費税額(指定しない場合は自動で計算されます) Vat int32 `json:"vat"` // 備考 Description string `json:"description"` }
type ManualJournalResponse ¶
type ManualJournalResponse struct {
ManualJournal ManualJournal `json:"manual_journal"`
}
type ManualJournalsResponse ¶
type ManualJournalsResponse struct {
ManualJournals []ManualJournal `json:"manual_journals"`
}
type Partner ¶
type Partner struct { // 取引先ID ID int32 `json:"id"` // 取引先コード Code string `json:"code"` // 事業所ID CompanyID int32 `json:"company_id"` // 取引先名 Name string `json:"name"` // 更新日 (yyyy-mm-dd) UpdateDate string `json:"update_date"` // 取引先の使用設定(true: 使用する、false: 使用しない) Available bool `json:"available"` // ショートカット1 (20文字以内) Shortcut1 *string `json:"shortcut1,omitempty"` // ショートカット2 (20文字以内) Shortcut2 *string `json:"shortcut2,omitempty"` // 事業所種別(null: 未設定、1: 法人、2: 個人) OrgCode *int32 `json:"org_code,omitempty"` // 地域(JP: 国内、ZZ:国外) CountryCode string `json:"country_code,omitempty"` // 正式名称(255文字以内) LongName *string `json:"long_name,omitempty"` // カナ名称(255文字以内) NameKana *string `json:"name_kana,omitempty"` // 敬称(御中、様、(空白)の3つから選択) DefaultTitle *string `json:"default_title,omitempty"` // 電話番号 Phone *string `json:"phone,omitempty"` // 担当者 氏名 ContactName *string `json:"contact_name,omitempty"` // 担当者 メールアドレス Email *string `json:"email,omitempty"` // 振込元口座ID(一括振込ファイル用):(未設定の場合は、nullです。) PayerWalletableID *int32 `json:"payer_walletable_id,omitempty"` // 振込手数料負担(一括振込ファイル用): (振込元(当方): payer, 振込先(先方): payee) TransferFeeHandlingSide *string `json:"transfer_fee_handling_side,omitempty"` // AddressAttributes *PartnerAddressAttributes `json:"address_attributes,omitempty"` // DocSettingAttributes *PartnerDocSettingAttributes `json:"partner_doc_setting_attributes,omitempty"` // BankAccountAttributes *PartnerBankAccountAttributes `json:"partner_bank_account_attributes,omitempty"` }
type PartnerAddressAttributes ¶
type PartnerAddressAttributes struct { // 郵便番号 Zipcode *string `json:"zipcode,omitempty"` // 都道府県コード(0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄 PrefectureCode int32 `json:"prefecture_code,omitempty"` // 市区町村・番地 StreetName1 *string `json:"street_name1,omitempty"` // 建物名・部屋番号など StreetName2 *string `json:"street_name2,omitempty"` }
type PartnerBankAccountAttributes ¶
type PartnerBankAccountAttributes struct { // 銀行名 BankName *string `json:"bank_name,omitempty"` // 銀行名(カナ) BankNameKana *string `json:"bank_name_kana,omitempty"` // 銀行番号 BankCode *string `json:"bank_code,omitempty"` // 支店名 BranchName *string `json:"branch_name,omitempty"` // 支店名(カナ) BranchKana *string `json:"branch_kana,omitempty"` // 支店番号 BranchCode *string `json:"branch_code,omitempty"` // 口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他) AccountType *string `json:"account_type,omitempty"` // 口座番号 AccountNumber *string `json:"account_number,omitempty"` // 受取人名(カナ) AccountName *string `json:"account_name,omitempty"` // 受取人名 LongAccountName *string `json:"long_account_name,omitempty"` }
type PartnerDocSettingAttributes ¶
type PartnerDocSettingAttributes struct { // 請求書送付方法(mail:メール、posting:郵送、mail_and_posting:メールと郵送) SendingMethod *string `json:"sending_method,omitempty"` }
type PartnerResponse ¶
type PartnerResponse struct {
Partner Partner `json:"partner"`
}
type PaymentRequest ¶
type PaymentRequest struct { // 支払依頼ID ID int32 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 申請タイトル Title string `json:"title"` // 申請日 (yyyy-mm-dd) ApplicationDate string `json:"application_date"` // 合計金額 TotalAmount int32 `json:"total_amount"` // 申請ステータス(draft:下書き, in_progress:申請中, approved:承認済, rejected:却下, feedback:差戻し) Status string `json:"status"` // 取引ID (申請ステータス:statusがapprovedで、取引が存在する時のみdeal_idが表示されます) DealID *int32 `json:"deal_id,omitempty"` // 取引ステータス (申請ステータス:statusがapprovedで、取引が存在する時のみdeal_statusが表示されます settled:支払済み, unsettled:支払待ち) DealStatus *string `json:"deal_status,omitempty"` // 申請者のユーザーID ApplicantID int32 `json:"applicant_id"` // 承認者(配列) 承認ステップのresource_typeがunspecified (指定なし)の場合はapproversはレスポンスに含まれません。 しかし、resource_typeがunspecifiedの承認ステップにおいて誰かが承認・却下・差し戻しのいずれかのアクションを取った後は、 approversはレスポンスに含まれるようになります。 その場合approversにはアクションを行ったステップのIDとアクションを行ったユーザーのIDが含まれます。 Approvers Approver `json:"approvers"` // 申請No. ApplicationNumber string `json:"application_number"` // 現在承認ステップID CurrentStepID int32 `json:"current_step_id"` // 現在のround。差し戻し等により申請がstepの最初からやり直しになるとroundの値が増えます。 CurrentRound int32 `json:"current_round"` // 請求書番号 DocumentCode string `json:"document_code"` // 発生日 (yyyy-mm-dd) IssueDate string `json:"issue_date"` // 支払期限 (yyyy-mm-dd) PaymentDate string `json:"payment_date"` // 支払方法(none: 指定なし, domestic_bank_transfer: 国内振込, abroad_bank_transfer: 国外振込, account_transfer: 口座振替, credit_card: クレジットカード) PaymentMethod string `json:"payment_method"` // 取引先ID PartnerID int32 `json:"partner_id"` // 取引先コード PartnerCode string `json:"partner_code"` // 取引先名 PartnerName string `json:"partner_name"` }
type PaymentRequests ¶
type PaymentRequests struct {
PaymentRequests []PaymentRequest `json:"payment_requests"`
}
type Quotation ¶
type Quotation struct { // 見積書ID ID int32 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 見積日 (yyyy-mm-dd) IssueDate string `json:"issue_date"` // 取引先ID PartnerID int32 `json:"partner_id"` // 取引先コード PartnerCode *string `json:"partner_code,omitempty"` // 見積書番号 QuotationNumber string `json:"quotation_number"` // タイトル Title *string `json:"title,omitempty"` // 合計金額 TotalAmount int32 `json:"total_amount"` // 消費税 TotalVat *int32 `json:"total_vat,omitempty"` // 小計 SubTotal *int32 `json:"sub_total,omitempty"` // 概要 Description *string `json:"description,omitempty"` // 見積書ステータス (unsubmitted: 送付待ち, submitted: 送付済み, all: 全て) QuotationStatus string `json:"quotation_status"` // Web共有日時(最新) WebPublishedAt *string `json:"web_published_at,omitempty"` // Web共有ダウンロード日時(最新) WebDownloadedAt *string `json:"web_downloaded_at,omitempty"` // Web共有取引先確認日時(最新) WebConfirmedAt *string `json:"web_confirmed_at,omitempty"` // メール送信日時(最新) MailSentAt *string `json:"mail_sent_at,omitempty"` // 取引先名 PartnerName *string `json:"partner_name,omitempty"` // 見積書に表示する取引先名 PartnerDisplayName *string `json:"partner_display_name,omitempty"` // 敬称(御中、様、(空白)の3つから選択) PartnerTitle string `json:"partner_title"` // 郵便番号 PartnerZipcode *string `json:"partner_zipcode,omitempty"` // 都道府県コード(-1: 設定しない、0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄 PartnerPrefectureCode *int32 `json:"partner_prefecture_code,omitempty"` // 都道府県 PartnerPrefectureName *string `json:"partner_prefecture_name,omitempty"` // 市区町村・番地 PartnerAddress1 *string `json:"partner_address1,omitempty"` // 建物名・部屋番号など PartnerAddress2 *string `json:"partner_address2,omitempty"` // 取引先担当者名 PartnerContactInfo *string `json:"partner_contact_info,omitempty"` // 事業所名 CompanyName string `json:"company_name"` // 郵便番号 CompanyZipcode *string `json:"company_zipcode,omitempty"` // 都道府県コード(-1: 設定しない、0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄 CompanyPrefectureCode *int32 `json:"company_prefecture_code,omitempty"` // 都道府県 CompanyPrefectureName *string `json:"company_prefecture_name,omitempty"` // 市区町村・番地 CompanyAddress1 *string `json:"company_address1,omitempty"` // 建物名・部屋番号など CompanyAddress2 *string `json:"company_address2,omitempty"` // 事業所担当者名 CompanyContactInfo *string `json:"company_contact_info,omitempty"` // メッセージ Message *string `json:"message,omitempty"` // 備考 Notes *string `json:"notes,omitempty"` // 見積書レイアウト QuotationLayout string `json:"quotation_layout"` // 見積書の消費税計算方法(inclusive: 内税, exclusive: 外税) TaxEntryMethod string `json:"tax_entry_method"` // 見積内容 QuotationContents *[]QuotationContent `json:"quotation_contents,omitempty"` // 見積内容 TotalAmountPerVatRatetotalAmountPerVatRate *TotalAmountPerVatRatetotalAmountPerVatRate `json:"total_amount_per_vat_rate,omitempty"` }
type QuotationContent ¶
type QuotationContent struct { // 見積内容ID ID int32 `json:"id"` // 順序 Order int32 `json:"order"` // 行の種類 Type string `json:"type"` // 数量 Qty float64 `json:"qty"` // 単位 Unit string `json:"unit"` // 単価 UnitPrice float64 `json:"unit_price"` // 内税/外税の判別とamountの税込み、税抜きについて Amount int32 `json:"amount"` // 消費税額 Vat int32 `json:"vat"` // 軽減税率税区分(true: 対象、false: 対象外) ReducedVat bool `json:"reduced_vat"` // 備考 Description string `json:"description"` // 勘定科目ID AccountItemID int32 `json:"account_item_id"` // 勘定科目名 AccountItemName string `json:"account_item_name"` // 税区分コード TaxCode int32 `json:"tax_code"` // 品目ID ItemID int32 `json:"item_id"` // 品目 ItemName string `json:"item_name"` // 部門ID SectionID int32 `json:"section_id"` // 部門 SectionName string `json:"section_name"` // メモタグID TagIDs []int32 `json:"tag_ids"` // メモタグ TagNames []string `json:"tag_names"` // セグメント1ID Segment1TagID *string `json:"segment_1_tag_id,omitempty"` // セグメント1 Segment1TagName *string `json:"segment_1_tag_name,omitempty"` // セグメント2ID Segment2TagID *string `json:"segment_2_tag_id,omitempty"` // セグメント2 Segment2TagName *string `json:"segment_2_tag_name,omitempty"` // セグメント3ID Segment3TagID *string `json:"segment_3_tag_id,omitempty"` // セグメント3 Segment3TagName *string `json:"segment_3_tag_name,omitempty"` }
type Quotations ¶
type Quotations struct {
Quotations []Quotation `json:"quotations"`
}
type Receipt ¶
type Receipt struct { // 証憑ID ID int32 `json:"id"` // ステータス(unconfirmed:確認待ち、confirmed:確認済み、deleted:削除済み、ignored:無視) Status string `json:"status"` // メモ Description *string `json:"description,omitempty"` // MIMEタイプ MimeType string `json:"mime_type"` // 発生日 IssueDate *string `json:"issue_date,omitempty"` // アップロード元種別 Origin string `json:"origin"` // 作成日時(ISO8601形式) CreatedAt string `json:"created_at"` User UserCreatedReceipt `json:"user"` }
type ReceiptResponse ¶
type ReceiptResponse struct {
Receipt Receipt `json:"receipt"`
}
type Report ¶
type Report struct { // 事業所ID CompanyID int32 `json:"company_id"` // 会計年度(条件に指定した時、または条件に月、日条件がない時のみ含まれる) FiscalYear *int32 `json:"fiscal_year,omitempty"` // 発生月で絞込:開始会計月(1-12)(条件に指定した時のみ含まれる) StartMonth *int32 `json:"start_month,omitempty"` // 発生月で絞込:終了会計月(1-12)(条件に指定した時のみ含まれる) EndMonth *int32 `json:"end_month,omitempty"` // 発生日で絞込:開始日(yyyy-mm-dd)(条件に指定した時のみ含まれる) StartDate *string `json:"start_date,omitempty"` // 発生日で絞込:開始日(yyyy-mm-dd)(条件に指定した時のみ含まれる) EndDate *string `json:"end_date,omitempty"` // 勘定科目の表示(勘定科目: account_item, 決算書表示:group)(条件に指定した時のみ含まれる) AccountItemDisplayType *string `json:"account_item_display_type,omitempty"` // 内訳の表示(取引先: partner, 品目: item, 部門: section, 勘定科目: account_item, セグメント1(法人向けプロフェッショナル, 法人向けエンタープライズプラン): segment_1_tag, セグメント2(法人向け エンタープライズプラン):segment_2_tag, セグメント3(法人向け エンタープライズプラン): segment_3_tag)(条件に指定した時のみ含まれる) BreakdownDisplayType *string `json:"breakdown_display_type,omitempty"` // 取引先ID(条件に指定した時のみ含まれる) PartnerID *int32 `json:"partner_id,omitempty"` // 取引先コード(条件に指定した時のみ含まれる) PartnerCode *string `json:"partner_code,omitempty"` // 品目ID(条件に指定した時のみ含まれる) ItemID *int32 `json:"item_id,omitempty"` // 部門ID(条件に指定した時のみ含まれる) SectionID *int32 `json:"section_id,omitempty"` // 決算整理仕訳のみ: only, 決算整理仕訳以外: without(条件に指定した時のみ含まれる) Adjustment *string `json:"adjustment,omitempty"` // 未承認を除く: without_in_progress (デフォルト), 全てのステータス: all(条件に指定した時のみ含まれる) ApprovalFlowStatus *string `json:"approval_flow_status,omitempty"` // 作成日時 CReatedAt *string `json:"created_at,omitempty"` Balances []Balance `json:"balances,omitempty"` // 集計結果が最新かどうか UpToDate bool `json:"up_to_date"` // 作成日時 UpToDateReasons *[]UpToDateReason `json:"up_to_date_reasons,omitempty"` // 配賦仕訳のみ:only,配賦仕訳以外:without(条件に指定した時のみ含まれる) CostAllocation *string `json:"cost_allocation,omitempty"` }
type RequestItem ¶
type RequestItem struct { // 項目ID ID int32 `json:"id"` // 項目タイプ(title: 申請タイトル, single_line: 自由記述形式 1行, multi_line: 自由記述形式 複数行, select: プルダウン, date: 日付, amount: 金額, receipt: 添付ファイル, section: 部門ID, partner: 取引先ID, ninja_sign_document: 契約書(freeeサイン連携)) Type string `json:"type"` // 項目の値 Value string `json:"value"` }
type Section ¶
type Section struct { // 品目ID ID int32 `json:"id"` // 品目名 (30文字以内) Name string `json:"name"` // 部門の使用設定(true: 使用する、false: 使用しない) Available bool `json:"available"` // 正式名称(255文字以内) LongName *string `json:"long_name,omitempty"` // 事業所ID CompanyID int32 `json:"company_id"` // ショートカット1 (20文字以内) Shortcut1 *string `json:"shortcut1,omitempty"` // ショートカット2 (20文字以内) Shortcut2 *string `json:"shortcut2,omitempty"` // 部門階層 IndentCount *int32 `json:"indent_count,omitempty"` // 親部門ID ParentID *int32 `json:"parent_id,omitempty"` }
type SectionParams ¶
type SectionParams struct { // 事業所ID CompanyID int32 `json:"company_id"` // 部門名 (30文字以内) Name string `json:"name"` // 正式名称 (255文字以内) LongName *string `json:"long_name,omitempty"` // ショートカット1 (20文字以内) Shortcut1 *string `json:"shortcut1,omitempty"` // ショートカット2 (20文字以内) Shortcut2 *string `json:"shortcut2,omitempty"` // 親部門ID (ビジネスプラン以上) ParentID *int32 `json:"parent_id,omitempty"` }
type SectionResponse ¶
type SectionResponse struct {
Section Section `json:"section"`
}
type SegmentTag ¶
type SegmentTagParams ¶
type SegmentTagParams struct { // 事業所ID CompanyID int32 `json:"company_id"` // セグメントタグ名 (30文字以内) Name string `json:"name"` // 備考 (30文字以内) Description *string `json:"description,omitempty"` // ショートカット1 (20文字以内) Shortcut1 *string `json:"shortcut1,omitempty"` // ショートカット2 (20文字以内) Shortcut2 *string `json:"shortcut2,omitempty"` }
type SegmentTagResponse ¶
type SegmentTagResponse struct {
SegmentTag SegmentTag `json:"segment_tag"`
}
type SegmentTags ¶
type SegmentTags struct {
SegmentTags []SegmentTag `json:"segment_tags"`
}
type SelectableAccountItem ¶
type SelectableAccountItem struct { // 勘定科目ID ID int32 `json:"id"` // 勘定科目 Name *string `json:"name,omitempty"` // 勘定科目の説明 Desc *string `json:"desc,omitempty"` // 勘定科目の説明(詳細) Help *string `json:"help,omitempty"` // ショートカット Shortcut *string `json:"shortcut,omitempty"` DefaultTax *DefaultTax `json:"default_tax,omitempty"` }
type Selectables ¶
type Selectables struct { AccountCategories []AccountCategory `json:"account_categories"` AccountGroups []AccountGroup `json:"account_groups"` }
type Tag ¶
type Tag struct { // タグID ID int32 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 名前(30文字以内) Name string `json:"name"` // 更新日(yyyy-mm-dd) UpdateDate string `json:"update_date"` // ショートカット1 (255文字以内) Shortcut1 *string `json:"shortcut1,omitempty"` // ショートカット2 (255文字以内) Shortcut2 *string `json:"shortcut2,omitempty"` }
type TagResponse ¶
type TagResponse struct {
Tag Tag `json:"tag"`
}
type TaxCompanies ¶
type TaxCompanies struct {
TaxCompanies []TaxCompany `json:"taxes"`
}
type TaxCompany ¶
type TaxCompany struct { // 税区分コード Code int32 `json:"code"` // 税区分名 Name string `json:"name"` // 税区分名(日本語表示用) NameJa string `json:"name_ja"` // 税区分の表示カテゴリ(tax_5: 5%表示の税区分、tax_8: 8%表示の税区分、tax_r8: 軽減税率8%表示の税区分、tax_10: 10%表示の税区分、null: 税率未設定税区分) DisplayCategory string `json:"display_category"` // true: 使用する、false: 使用しない Available bool `json:"available"` }
type TotalAmountPerVatRate ¶
type Transfer ¶
type Transfer struct { // 明細ID ID int32 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 取引日(yyyy-mm-dd) Date string `json:"date"` // 取引金額 Amount int32 `json:"amount"` // 未決済金額 DueAmount int32 `json:"due_amount"` // 残高 Balance int32 `json:"balance"` // 入金/出勤(入金: income, 出勤: expense) EntrySide string `json:"entry_side"` // 口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet) WalletableType string `json:"walletable_type"` // 口座ID WalletableID int32 `json:"walletable_id"` // 取引内容 Description string `json:"description"` // 明細のステータス(消込待ち: 1, 消込済み: 2, 無視: 3, 消込中: 4) Status uint `json:"status"` // 登録時に自動登録ルールの設定が適用され、登録処理が実行された場合、 trueになります。〜を推測する、〜の消込をするの条件の場合は一致してもfalseになります。 RuleMatched bool `json:"rule_matched"` }
type TrialBSResponse ¶
type TrialBSResponse struct {
TrialBS Report `json:"trial_bs"`
}
type TrialBSThreeYearsResponse ¶
type TrialBSThreeYearsResponse struct {
TrialBSThreeYears Report `json:"trial_bs_three_years"`
}
type TrialBSTwoYearsResponse ¶
type TrialBSTwoYearsResponse struct {
TrialBSTwoYears Report `json:"trial_bs_two_years"`
}
type TrialCRResponse ¶
type TrialCRResponse struct {
TrialCR Report `json:"trial_cr"`
}
type TrialCRThreeYearsResponse ¶
type TrialCRThreeYearsResponse struct {
TrialCRThreeYears Report `json:"trial_cr_three_years"`
}
type TrialCRTwoYearsResponse ¶
type TrialCRTwoYearsResponse struct {
TrialCRTwoYears Report `json:"trial_cr_two_years"`
}
type TrialPLResponse ¶
type TrialPLResponse struct {
TrialPL Report `json:"trial_pl"`
}
type TrialPLThreeYearsResponse ¶
type TrialPLThreeYearsResponse struct {
TrialPLThreeYears Report `json:"trial_pl_three_years"`
}
type TrialPLTwoYearsResponse ¶
type TrialPLTwoYearsResponse struct {
TrialPLTwoYears Report `json:"trial_pl_two_years"`
}
type UnauthorizedError ¶
type UnauthorizedError struct {}
type UpToDateReason ¶
type UpdateManualJournalParams ¶
type UpdateManualJournalParams struct { // 事業所ID CompanyID int32 `json:"company_id"` // 発生日 (yyyy-mm-dd) IssueDate string `json:"issue_date"` // 決算整理仕訳フラグ(falseまたは未指定の場合: 日常仕訳) Adjustment bool `json:"adjustment,omitempty"` Details []UpdateManualJournalParamsDetails `json:"details"` }
type UpdateManualJournalParamsDetails ¶
type UpdateManualJournalParamsDetails struct { // 貸借行ID: 既存貸借行を更新または削除する場合に指定します。IDを指定しない貸借行は、新規行として扱われ追加されます。 ID uint64 `json:"id,omitempty"` // 貸借(貸方: credit, 借方: debit) EntrySide string `json:"entry_side"` // 税区分コード TaxCode int32 `json:"tax_code"` // 勘定科目ID AccountItemID int32 `json:"account_item_id"` // 取引金額(税込で指定してください) Amount int32 `json:"amount"` // 消費税額(指定しない場合は自動で計算されます) Vat *int32 `json:"vat,omitempty"` // 取引先ID PartnerID int32 `json:"partner_id,omitempty"` // 取引先コード PartnerCode string `json:"partner_code,omitempty"` // 品目ID ItemID int32 `json:"item_id,omitempty"` // 部門ID SectionID int32 `json:"section_id,omitempty"` // メモタグID TagIDs []int32 `json:"tag_ids,omitempty"` // セグメント1ID Segment1TagID int32 `json:"segment_1_tag_id,omitempty"` // セグメント2ID Segment2TagID int32 `json:"segment_2_tag_id,omitempty"` // セグメント3ID Segment3TagID int32 `json:"segment_3_tag_id,omitempty"` // 備考 Description string `json:"description,omitempty"` }
ManualJournalUpdateParamsDetails 貸借行一覧(配列): 貸借合わせて100行まで登録できます。
type UpdatePartnerParams ¶
type UpdatePartnerParams struct { // 事業所ID CompanyID int32 `json:"company_id"` // 取引先名 (255文字以内) Name string `json:"name"` // ショートカット1 (255文字以内) Shortcut1 string `json:"shortcut1,omitempty"` // ショートカット2 (255文字以内) Shortcut2 string `json:"shortcut2,omitempty"` // 事業所種別(null: 未設定、1: 法人、2: 個人) OrgCode *int32 `json:"org_code,omitempty"` // 地域(JP: 国内、ZZ:国外) CountryCode string `json:"country_code,omitempty"` // 正式名称(255文字以内) LongName string `json:"long_name,omitempty"` // カナ名称(255文字以内) NameKana string `json:"name_kana,omitempty"` // 敬称(御中、様、(空白)の3つから選択) DefaultTitle string `json:"default_title,omitempty"` // 電話番号 Phone string `json:"phone,omitempty"` // 担当者 氏名 (255文字以内) ContactName string `json:"contact_name,omitempty"` // 担当者 メールアドレス (255文字以内) Email string `json:"email,omitempty"` // 振込元口座ID(一括振込ファイル用):(walletableのtypeが'bank_account'のidのみ指定できます。また、未設定にする場合は、nullを指定してください。) PayerWalletableID *int32 `json:"payer_walletable_id,omitempty"` // 振込手数料負担(一括振込ファイル用): (振込元(当方): payer, 振込先(先方): payee) TransferFeeHandlingSide string `json:"transfer_fee_handling_side,omitempty"` AddressAttributes CreatePartnerParamsAddressAttributes `json:"address_attributes,omitempty"` PartnerDocSettingAttributes CreatePartnerParamsPartnerDocSettingAttributes `json:"partner_doc_setting_attributes,omitempty"` PartnerBankAccountAttributes CreatePartnerParamsPartnerBankAccountAttributes `json:"partner_bank_account_attributes,omitempty"` PaymentTermAttributes CreatePartnerParamsPaymentTermAttributes `json:"payment_term_attributes,omitempty"` InvoicePaymentTermAttributes CreatePartnerParamsPaymentTermAttributes `json:"invoice_payment_term_attributes,omitempty"` }
type User ¶
type User struct { // ユーザーID ID int32 `json:"id"` // メールアドレス Email string `json:"email"` // 表示ユーザー名 DisplayName *string `json:"display_name,omitempty"` // 名 FirstName *string `json:"first_name,omitempty"` // 姓 LastName *string `json:"last_name,omitempty"` // 名(カナ) FirstNameKana *string `json:"first_name_kana,omitempty"` // 姓(カナ) LastNameKana *string `json:"last_name_kana,omitempty"` Companies *[]UserCompany `json:"companies,omitempty"` }
type UserCompany ¶
type UserCreatedReceipt ¶
type WalletTxn ¶
type WalletTxn struct { // 明細ID ID int32 `json:"id"` // 事業所ID CompanyID int32 `json:"company_id"` // 取引日(yyyy-mm-dd) Date string `json:"date"` // 取引金額 Amount int32 `json:"amount"` // 未決済金額 DueAmount int32 `json:"due_amount"` // 残高 Balance int32 `json:"balance"` // 入金/出勤(入金: income, 出勤: expense) EntrySide string `json:"entry_side"` // 口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet) WalletableType string `json:"walletable_type"` // 口座ID WalletableID int32 `json:"walletable_id"` // 取引内容 Description string `json:"description"` // 明細のステータス(消込待ち: 1, 消込済み: 2, 無視: 3, 消込中: 4) Status uint `json:"status"` // 登録時に自動登録ルールの設定が適用され、登録処理が実行された場合、 trueになります。〜を推測する、〜の消込をするの条件の場合は一致してもfalseになります。 RuleMatched bool `json:"rule_matched"` }
type WalletTxnResponse ¶
type WalletTxnResponse struct {
WalletTxn WalletTxn `json:"wallet_txn"`
}
type WalletTxnsResponse ¶
type WalletTxnsResponse struct {
WalletTxns []WalletTxn `json:"wallet_txns"`
}
type Walletable ¶
type Walletable struct { // 口座ID ID int32 `json:"id"` // 口座名 (255文字以内) Name string `json:"name"` // サービスID BankID int32 `json:"bank_id"` // 口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet) Type string `json:"type"` // 同期残高 LastBalance *int32 `json:"last_balance,omitempty"` // 登録残高 WalletableBalance *int32 `json:"walletable_balance,omitempty"` }
type WalletableResponse ¶
type WalletableResponse struct { Walletable Walletable `json:"walletable"` Meta Meta `json:"meta"` }
type WalletablesResponse ¶
type WalletablesResponse struct { Walletables []Walletable `json:"walletables"` Meta Meta `json:"meta"` }
Source Files ¶
- account_items.go
- approval_flow_routes.go
- approval_requests.go
- banks.go
- client.go
- companies.go
- deals.go
- errors.go
- expense_application_line_templates.go
- expense_applications.go
- invoices.go
- items.go
- journals.go
- logger.go
- manual_journals.go
- oauth2.go
- partners.go
- payment_requests.go
- quotations.go
- receipts.go
- sections.go
- segment_tags.go
- selectables.go
- tags.go
- taxes.go
- transfers.go
- trial_balance.go
- users.go
- util.go
- wallet_txns.go
- walletabales.go
Click to show internal directories.
Click to hide internal directories.