payment

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 Payments
	Path = "/api.xro/2.0/Payments"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountParam

type AccountParam struct {
	Code string
}

AccountParam is the model with the Account Code

type InvoiceParam

type InvoiceParam struct {
	InvoiceNumber string
}

InvoiceParam is the model with the Invoice Number

type Payment

type Payment struct {
	XMLName   xml.Name `xml:"Payment"`
	PaymentID string   `xml:",omitempty"`
	Invoice   InvoiceParam
	Account   AccountParam
	Date      string
	Amount    string
	Reference string
}

Payment is the Payment model

type Payments

type Payments struct {
	Payments []Payment
}

Payments is the Payments array model

type Response

type Response struct {
	ID           string `xml:"Id"`
	Status       string `xml:",omitempty"`
	ProviderName string
	DateTimeUTC  string
	Payments     []Payment `xml:"Payments>Payment"`
}

Response is the xero request response model for payments

Jump to

Keyboard shortcuts

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