Documentation ¶
Index ¶
- type APIException
- type Options
- type Xoauth
- func (client Xoauth) GetAllInvoices() (allInvoices invoice.Invoices, err error)
- func (client Xoauth) NewInvoice(inv []invoice.Invoice) (resp string, err error)
- func (client Xoauth) NewManualJournal(journ manualjournal.Journal) (resp string, err error)
- func (client Xoauth) NewPayment(paym []payment.Payment) ([]string, error)
- func (client Xoauth) PostRequest(path string, payload string) (response string, err error)
- func (client Xoauth) Request(method string, path string, otherOptions *Options) (response string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIException ¶
type APIException struct { XMLName xml.Name `xml:"ApiException"` Type string ErrorNumber int Message string }
APIException model for error response
type Xoauth ¶
Xoauth is a wrapper around oauth.Client
func (Xoauth) GetAllInvoices ¶
GetAllInvoices gives you all the invoices of the org
func (Xoauth) NewInvoice ¶
NewInvoice creates one or more invoices
func (Xoauth) NewManualJournal ¶
NewManualJournal creates one Journal
func (Xoauth) NewPayment ¶
NewPayment creates one or more payments for the given Invoices
func (Xoauth) PostRequest ¶
PostRequest sends POST requests to xero APIs with a form as payload
Click to show internal directories.
Click to hide internal directories.