manualjournal

package
v0.0.0-...-4b6a049 Latest Latest
Warning

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

Go to latest
Published: May 18, 2015 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Path is the relative API path for Manual Journals
	Path = "/api.xro/2.0/ManualJournals"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Journal

type Journal struct {
	XMLName         xml.Name `xml:"ManualJournal"`
	ManualJournalID string   `xml:",omitempty"`
	Date            string
	Status          string
	Narration       string
	JournalLines    []JournalLine
}

Journal is the Manual Journal model

type JournalLine

type JournalLine struct {
	JournalLine JournalLineObj
}

JournalLine is the JournalLine model

type JournalLineObj

type JournalLineObj struct {
	LineAmount  string
	AccountCode string
}

JournalLineObj is the JournalLine single object model

type Response

type Response struct {
	ID           string `xml:"Id"`
	Status       string `xml:",omitempty"`
	ProviderName string
	DateTimeUTC  string
	Journals     []Journal `xml:"ManualJournals>ManualJournal"`
}

Response is the xero request response model for journals

Jump to

Keyboard shortcuts

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