xero

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnector

func NewConnector() (*sdk.ConnectorPlugin, error)

func NewCreateInvoiceOperation

func NewCreateInvoiceOperation() sdk.IOperation

func NewEmailInvoiceOperation

func NewEmailInvoiceOperation() sdk.IOperation

func NewGetInvoiceListOperation

func NewGetInvoiceListOperation() sdk.IOperation

func NewGetInvoiceOperation

func NewGetInvoiceOperation() sdk.IOperation

Types

type Address added in v0.5.2

type Address struct {
	AddressType  string `json:"AddressType"`
	AddressLine1 string `json:"AddressLine1,omitempty"`
	AddressLine2 string `json:"AddressLine2,omitempty"`
	City         string `json:"City,omitempty"`
	PostalCode   string `json:"PostalCode,omitempty"`
}

type Contact added in v0.5.2

type Contact struct {
	ContactID      string    `json:"ContactID"`
	ContactStatus  string    `json:"ContactStatus"`
	Name           string    `json:"Name"`
	Addresses      []Address `json:"Addresses"`
	Phones         []Phone   `json:"Phones"`
	UpdatedDateUTC string    `json:"UpdatedDateUTC"`
	IsSupplier     string    `json:"IsSupplier"`
	IsCustomer     string    `json:"IsCustomer"`
}

type CreateInvoiceOperation

type CreateInvoiceOperation struct {
	// contains filtered or unexported fields
}

func (*CreateInvoiceOperation) GetInfo

func (*CreateInvoiceOperation) Run

func (*CreateInvoiceOperation) Test

type EmailInvoiceOperation

type EmailInvoiceOperation struct {
	// contains filtered or unexported fields
}

func (*EmailInvoiceOperation) GetInfo

func (c *EmailInvoiceOperation) GetInfo() *sdk.OperationInfo

func (*EmailInvoiceOperation) Run

func (*EmailInvoiceOperation) Test

func (c *EmailInvoiceOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type GetInvoiceListOperation

type GetInvoiceListOperation struct {
	// contains filtered or unexported fields
}

func (*GetInvoiceListOperation) GetInfo

func (*GetInvoiceListOperation) Run

func (*GetInvoiceListOperation) Test

type GetInvoiceOperation

type GetInvoiceOperation struct {
	// contains filtered or unexported fields
}

func (*GetInvoiceOperation) GetInfo

func (c *GetInvoiceOperation) GetInfo() *sdk.OperationInfo

func (*GetInvoiceOperation) Run

func (c *GetInvoiceOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*GetInvoiceOperation) Test

func (c *GetInvoiceOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type Invoice added in v0.5.2

type Invoice struct {
	Contact       Contact `json:"Contact"`
	InvoiceID     string  `json:"InvoiceID"`
	InvoiceNumber string  `json:"InvoiceNumber"`
}

type InvoicesResponse added in v0.5.2

type InvoicesResponse struct {
	Invoices []Invoice `json:"Invoices"`
}

type Item added in v0.5.2

type Item struct {
	ItemID string `json:"ItemID"`
	Name   string `json:"Name"`
	Code   string `json:"Code"`
}

type LineItem added in v0.5.2

type LineItem struct {
	ItemCode    string     `json:"ItemCode"`
	Description string     `json:"Description"`
	Quantity    string     `json:"Quantity"`
	UnitAmount  string     `json:"UnitAmount"`
	TaxType     string     `json:"TaxType"`
	TaxAmount   string     `json:"TaxAmount"`
	LineAmount  string     `json:"LineAmount"`
	AccountCode string     `json:"AccountCode"`
	AccountID   string     `json:"AccountId"`
	Item        Item       `json:"Item"`
	Tracking    []Tracking `json:"Tracking"`
	LineItemID  string     `json:"LineItemID"`
}

type Payment added in v0.5.2

type Payment struct {
	Date      string `json:"Date"`
	Amount    string `json:"Amount"`
	PaymentID string `json:"PaymentID"`
}

type Phone added in v0.5.2

type Phone struct {
	PhoneType string `json:"PhoneType"`
}

type Tenant added in v0.5.2

type Tenant struct {
	ID             string  `json:"id"`
	AuthEventID    string  `json:"authEventId"`
	TenantID       string  `json:"tenantId"`
	TenantType     string  `json:"tenantType"`
	TenantName     *string `json:"tenantName"` // Using a pointer to handle null values
	CreatedDateUtc string  `json:"createdDateUtc"`
	UpdatedDateUtc string  `json:"updatedDateUtc"`
}

type TenantsResponse added in v0.5.2

type TenantsResponse []Tenant

type Tracking added in v0.5.2

type Tracking struct {
	TrackingCategoryID string `json:"TrackingCategoryID"`
	Name               string `json:"Name"`
	Option             string `json:"Option"`
}

type TriggerNewInvoice

type TriggerNewInvoice struct {
	// contains filtered or unexported fields
}

func NewTriggerNewInvoice

func NewTriggerNewInvoice() *TriggerNewInvoice

func (*TriggerNewInvoice) GetInfo

func (t *TriggerNewInvoice) GetInfo() *sdk.TriggerInfo

func (*TriggerNewInvoice) OnDisabled

func (t *TriggerNewInvoice) OnDisabled(ctx *sdk.RunContext) error

func (*TriggerNewInvoice) OnEnabled

func (t *TriggerNewInvoice) OnEnabled(ctx *sdk.RunContext) error

func (*TriggerNewInvoice) Run

func (t *TriggerNewInvoice) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*TriggerNewInvoice) Test

func (t *TriggerNewInvoice) Test(ctx *sdk.RunContext) (sdk.JSON, error)

Jump to

Keyboard shortcuts

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