model

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID                     string       `json:"id"`
	FinancialStatementType string       `json:"financial_statement_type"`
	Name                   string       `json:"name"`
	Available              bool         `json:"available"`
	TaxID                  string       `json:"tax_id"`
	SearchKey              *string      `json:"search_key"`
	SubAccounts            []SubAccount `json:"sub_accounts"`
	AccountGroup           string       `json:"account_group"`
	Category               string       `json:"category"`
}

type AccountResponse

type AccountResponse struct {
	Accounts []Account `json:"accounts"`
}

type AccountingPeriod

type AccountingPeriod struct {
	StartDate  string `json:"start_date"`
	EndDate    string `json:"end_date"`
	FiscalYear int    `json:"fiscal_year"`
}

type CRUDJournalLine

type CRUDJournalLine struct {
	Remark   *string                 `json:"remark"`
	Creditor *CRUDJournalLineDetails `json:"creditor"`
	Debitor  *CRUDJournalLineDetails `json:"debitor"`
}

type CRUDJournalLineDetails

type CRUDJournalLineDetails struct {
	Value            int64   `json:"value"`
	AccountID        string  `json:"account_id"`
	TaxID            *string `json:"tax_id"`
	SubAccountID     *string `json:"sub_account_id"`
	DepartmentID     *string `json:"department_id"`
	TradePartnerCode *string `json:"trade_partner_code"`
	InvoiceKind      *string `json:"invoice_kind"`
}

type CRUDJournalRequest

type CRUDJournalRequest struct {
	Journal CRUDJournalRequestJournal `json:"journal"`
}

type CRUDJournalRequestJournal

type CRUDJournalRequestJournal struct {
	TransactionDate string            `json:"transaction_date"`
	JournalType     string            `json:"journal_type"`
	Branches        []CRUDJournalLine `json:"branches"`
	Memo            *string           `json:"memo"`
	Tags            []string          `json:"tags"`
}

type CRUDJournalResponse

type CRUDJournalResponse struct {
	Journal JournalItem `json:"journal"`
}

type ConnectedAccount

type ConnectedAccount struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type ConnectedAccountsResponse

type ConnectedAccountsResponse struct {
	ConnectedAccounts []ConnectedAccount `json:"connected_accounts"`
}

type DeleteVouchersRequest

type DeleteVouchersRequest struct {
	JournalID     string `json:"journal_id"`
	VoucherFileID string `json:"voucher_file_id"`
}

type Department

type Department struct {
	ID        string  `json:"id"`
	Name      string  `json:"name"`
	ParentID  *string `json:"parent_id"`
	SearchKey *string `json:"search_key"`
}

type DepartmentResponse

type DepartmentResponse struct {
	Departments []Department `json:"departments"`
}

type ErrorDetail

type ErrorDetail struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type ErrorResponse

type ErrorResponse struct {
	Errors []ErrorDetail `json:"errors"`
}

type GetJournalsResponse

type GetJournalsResponse struct {
	Metadata Metadata      `json:"metadata"`
	Journals []JournalItem `json:"journals"`
}

type JournalItem

type JournalItem struct {
	ID              string        `json:"id"`
	Number          uint64        `json:"number"`
	TermPeriod      uint64        `json:"term_period"`
	TransactionDate string        `json:"transaction_date"`
	IsRealized      bool          `json:"is_realized"`
	JournalType     string        `json:"journal_type"`
	CreateTime      string        `json:"create_time"`
	UpdateTime      string        `json:"update_time"`
	Branches        []JournalLine `json:"branches"`
	Tags            []string      `json:"tags"`
	Memo            *string       `json:"memo"`
	VoucherFileIDs  []string      `json:"voucher_file_ids"`
	EnteredBy       string        `json:"entered_by"`
}

type JournalLine

type JournalLine struct {
	Remark   *string             `json:"remark"`
	Creditor *JournalLineDetails `json:"creditor"`
	Debitor  *JournalLineDetails `json:"debitor"`
}

type JournalLineDetails

type JournalLineDetails struct {
	Value            int64   `json:"value"`
	TaxValue         *int64  `json:"tax_value"`
	AccountID        string  `json:"account_id"`
	AccountName      string  `json:"account_name"`
	SubAccountID     *string `json:"sub_account_id"`
	SubAccountName   *string `json:"sub_account_name"`
	TaxLongName      *string `json:"tax_long_name"`
	TaxID            *string `json:"tax_id"`
	TaxName          *string `json:"tax_name"`
	DepartmentID     *string `json:"department_id"`
	DepartmentName   *string `json:"department_name"`
	TradePartnerName *string `json:"trade_partner_name"`
	TradePartnerCode *string `json:"trade_partner_code"`
	InvoiceKind      *string `json:"invoice_kind"`
}

type Metadata

type Metadata struct {
	TotalPages uint64 `json:"total_pages"`
	TotalCount uint64 `json:"total_count"`
}

type Office

type Office struct {
	Name              string             `json:"name"`
	Code              string             `json:"code"`
	Type              string             `json:"type"`
	AccountingPeriods []AccountingPeriod `json:"accounting_periods"`
}

type PostTradePartnerItem

type PostTradePartnerItem struct {
	Name                      string  `json:"name"`
	SearchKey                 *string `json:"search_key,omitempty"`
	InvoiceRegistrationNumber *string `json:"invoice_registration_number,omitempty"`
	CorporateNumber           *string `json:"corporate_number,omitempty"`
	Available                 *bool   `json:"available,omitempty"`
}

type PostTradePartnersRequest

type PostTradePartnersRequest struct {
	TradePartners []PostTradePartnerItem `json:"trade_partners"`
}

type PostTransactionsRequest

type PostTransactionsRequest struct {
	ConnectedAccountID string            `json:"connected_account_id"`
	Transactions       []TransactionItem `json:"transactions"`
}

type PostTransactionsResponse

type PostTransactionsResponse struct {
	ConnectedAccountID string                    `json:"connected_account_id"`
	Transactions       []TransactionResponseItem `json:"transactions"`
}

type PostVouchersRequest

type PostVouchersRequest struct {
	JournalID    *string       `json:"journal_id"`
	VoucherFiles []VoucherFile `json:"voucher_files"`
}

type PostVouchersResponse

type PostVouchersResponse struct {
	VoucherFileIDs []VoucherFileID `json:"voucher_file_ids"`
}

type SubAccount

type SubAccount struct {
	AccountID string  `json:"account_id"`
	ID        string  `json:"id"`
	Name      string  `json:"name"`
	SearchKey *string `json:"search_key"`
	TaxID     string  `json:"tax_id"`
}

type SubAccountResponse

type SubAccountResponse struct {
	SubAccounts []SubAccount `json:"sub_accounts"`
}

type TBResponse

type TBResponse struct {
	ReportType string   `json:"report_type"`
	StartDate  string   `json:"start_date"`
	EndDate    string   `json:"end_date"`
	CreatedAt  string   `json:"created_at"`
	Columns    []string `json:"columns"`
	Rows       []TBRow  `json:"rows"`
	FiscalYear *int     `json:"fiscal_year"`
	StartMonth *int     `json:"start_month"`
	EndMonth   *int     `json:"end_month"`
}

type TBRow

type TBRow struct {
	Type   string     `json:"type"`
	Name   string     `json:"name"`
	Values []*float64 `json:"values"`
	Rows   []TBRow    `json:"rows"`
}

type Tax

type Tax struct {
	ID           string   `json:"id"`
	Name         string   `json:"name"`
	Abbreviation string   `json:"abbreviation"`
	TaxRate      *float64 `json:"tax_rate"`
	SearchKey    *string  `json:"search_key"`
	Available    bool     `json:"available"`
}

type TaxResponse

type TaxResponse struct {
	Taxes []Tax `json:"taxes"`
}

type TradePartner

type TradePartner struct {
	Name                      string `json:"name"`
	Available                 bool   `json:"available"`
	Code                      string `json:"code"`
	InvoiceRegistrationNumber string `json:"invoice_registration_number"`
	CorporateNumber           string `json:"corporate_number"`
	SearchKey                 string `json:"search_key"`
}

type TradePartnersResponse

type TradePartnersResponse struct {
	TradePartners []TradePartner `json:"trade_partners"`
}

type TransactionItem

type TransactionItem struct {
	Date    string  `json:"date"`
	Value   int     `json:"value"`
	Side    string  `json:"side"`
	Content string  `json:"content"`
	Memo    *string `json:"memo"`
}

type TransactionResponseItem

type TransactionResponseItem struct {
	ID      string  `json:"id"`
	Date    string  `json:"date"`
	Value   int     `json:"value"`
	Side    string  `json:"side"`
	Content string  `json:"content"`
	Memo    *string `json:"memo"`
}

type TransitionResponse

type TransitionResponse struct {
	ReportType int             `json:"report_type"`
	FiscalYear int             `json:"fiscal_year"`
	StartMonth int             `json:"start_month"`
	EndMonth   int             `json:"end_month"`
	StartDate  string          `json:"start_date"`
	EndDate    string          `json:"end_date"`
	CreatedAt  string          `json:"created_at"`
	Columns    []string        `json:"columns"`
	Rows       []TransitionRow `json:"rows"`
}

type TransitionRow

type TransitionRow struct {
	Type   string          `json:"type"`
	Name   string          `json:"name"`
	Values []*int64        `json:"values"`
	Rows   []TransitionRow `json:"rows"`
}

type VoucherFile

type VoucherFile struct {
	FileName string `json:"file_name"`
	FileData string `json:"file_data"`
}

type VoucherFileID

type VoucherFileID struct {
	FileName string `json:"file_name"`
	FileID   string `json:"file_id"`
}

Directories

Path Synopsis
Package invoice contains request and response models for the MoneyForward Cloud Invoice API v3.
Package invoice contains request and response models for the MoneyForward Cloud Invoice API v3.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL