intacct

package module
v0.0.0-...-8b7a1f8 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseURL = url.URL{
		Scheme: "https",
		Host:   "api.intacct.com",
		Path:   "/ia/xml/xmlgw.phtml",
	}
)

Functions

func CheckResponse

func CheckResponse(r *http.Response) error

CheckResponse checks the Client response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range. Client error responses are expected to have either no response body, or a json response body that maps to ErrorResponse. Any other response body will be silently ignored.

Types

type CData

type CData string

func (CData) MarshalXML

func (n CData) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type Class

type Class struct {
	RecordNo       string `xml:"RECORDNO"`
	ClassID        string `xml:"CLASSID"`
	Name           string `xml:"NAME"`
	Description    string `xml:"DESCRIPTION"`
	Status         string `xml:"STATUS"`
	ParentKey      string `xml:"PARENTKEY"`
	ParentID       string `xml:"PARENTID"`
	ParentName     string `xml:"PARENTNAME"`
	WhenCreated    string `xml:"WHENCREATED"`
	WhenModified   string `xml:"WHENMODIFIED"`
	CreatedBy      string `xml:"CREATEDBY"`
	ModifiedBy     string `xml:"MODIFIEDBY"`
	MegaEntityKey  string `xml:"MEGAENTITYKEY"`
	MegaEntityID   string `xml:"MEGAENTITYID"`
	MegaEntityName string `xml:"MEGAENTITYNAME"`
}

type Classes

type Classes []Class

type Client

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

Client manages communication with Exact Globe Client

func NewClient

func NewClient(httpClient *http.Client, senderID, senderPassword, userID, userPassword, companyID string) *Client

NewClient returns a new Exact Globe Client client

func (Client) BaseURL

func (c Client) BaseURL() url.URL

func (Client) Charset

func (c Client) Charset() string

func (Client) CompanyID

func (c Client) CompanyID() string

func (Client) Debug

func (c Client) Debug() bool

func (*Client) Do

func (c *Client) Do(req *http.Request, responseBody *Response) (*http.Response, error)

Do sends an Client request and returns the Client response. The Client response is json decoded and stored in the value pointed to by v, or returned as an error if an Client error has occurred. If v implements the io.Writer interface, the raw response will be written to v, without attempting to decode it.

func (*Client) GenerateControlID

func (c *Client) GenerateControlID() string

func (*Client) GetEndpointURL

func (c *Client) GetEndpointURL(path string, pathParams PathParams) url.URL

func (Client) LocationID

func (c Client) LocationID() string

func (Client) MediaType

func (c Client) MediaType() string

func (*Client) NewCreateAttachmentLegacyRequest

func (c *Client) NewCreateAttachmentLegacyRequest() CreateAttachmentLegacyRequest

func (*Client) NewCreateCustomerRequest

func (c *Client) NewCreateCustomerRequest() CreateCustomerRequest

func (*Client) NewCreateInvoiceLegacyRequest

func (c *Client) NewCreateInvoiceLegacyRequest() CreateInvoiceLegacyRequest

func (*Client) NewCreateInvoiceRequest

func (c *Client) NewCreateInvoiceRequest() CreateInvoiceRequest

func (*Client) NewCreateJournalEntryRequest

func (c *Client) NewCreateJournalEntryRequest() CreateJournalEntryRequest

func (*Client) NewGetAPISessionRequest

func (c *Client) NewGetAPISessionRequest() GetAPISessionRequest

func (*Client) NewGetAccountGroupsRequest

func (c *Client) NewGetAccountGroupsRequest() GetAccountGroupsRequest

func (*Client) NewGetAccountsRequest

func (c *Client) NewGetAccountsRequest() GetAccountsRequest

func (*Client) NewGetAttachmentByIDLegacyRequest

func (c *Client) NewGetAttachmentByIDLegacyRequest() GetAttachmentByIDLegacyRequest

func (*Client) NewGetAttachmentFoldersRequest

func (c *Client) NewGetAttachmentFoldersRequest() GetAttachmentFoldersRequest

func (*Client) NewGetClassesRequest

func (c *Client) NewGetClassesRequest() GetClassesRequest

func (*Client) NewGetCustomerObjectDefinitionRequest

func (c *Client) NewGetCustomerObjectDefinitionRequest() GetCustomerObjectDefinitionRequest

func (*Client) NewGetCustomersRequest

func (c *Client) NewGetCustomersRequest() GetCustomersRequest

func (*Client) NewGetDepartmentsRequest

func (c *Client) NewGetDepartmentsRequest() GetDepartmentsRequest

func (*Client) NewGetDimensionsRequest

func (c *Client) NewGetDimensionsRequest() GetDimensionsRequest

func (*Client) NewGetInvoiceItemObjectDefinitionRequest

func (c *Client) NewGetInvoiceItemObjectDefinitionRequest() GetInvoiceItemObjectDefinitionRequest

func (*Client) NewGetInvoiceItemsRequest

func (c *Client) NewGetInvoiceItemsRequest() GetInvoiceItemsRequest

func (*Client) NewGetInvoiceObjectDefinitionRequest

func (c *Client) NewGetInvoiceObjectDefinitionRequest() GetInvoiceObjectDefinitionRequest

func (*Client) NewGetInvoicesRequest

func (c *Client) NewGetInvoicesRequest() GetInvoicesRequest

func (*Client) NewGetJournalEntriesRequest

func (c *Client) NewGetJournalEntriesRequest() GetJournalEntriesRequest

func (*Client) NewGetJournalEntryLineObjectDefinitionRequest

func (c *Client) NewGetJournalEntryLineObjectDefinitionRequest() GetJournalEntryLineObjectDefinitionRequest

func (*Client) NewGetJournalEntryLinesRequest

func (c *Client) NewGetJournalEntryLinesRequest() GetJournalEntryLinesRequest

func (*Client) NewGetLocationsRequest

func (c *Client) NewGetLocationsRequest() GetLocationsRequest

func (*Client) NewGetObjectsRequest

func (c *Client) NewGetObjectsRequest() GetObjectsRequest

func (*Client) NewGetProjectsRequest

func (c *Client) NewGetProjectsRequest() GetProjectsRequest

func (*Client) NewGetTaxDetailObjectDefinitionRequest

func (c *Client) NewGetTaxDetailObjectDefinitionRequest() GetTaxDetailObjectDefinitionRequest

func (*Client) NewGetTaxDetailsRequest

func (c *Client) NewGetTaxDetailsRequest() GetTaxDetailsRequest

func (*Client) NewRequest

func (c *Client) NewRequest(ctx context.Context, method string, URL url.URL, body Request) (*http.Request, error)

func (*Client) NewSessionID

func (c *Client) NewSessionID() (string, error)

func (Client) SenderID

func (c Client) SenderID() string

func (Client) SenderPassword

func (c Client) SenderPassword() string

func (*Client) SessionID

func (c *Client) SessionID() (string, error)

func (*Client) SetBaseURL

func (c *Client) SetBaseURL(baseURL url.URL)

func (*Client) SetCharset

func (c *Client) SetCharset(charset string)

func (*Client) SetCompanyID

func (c *Client) SetCompanyID(companyID string)

func (*Client) SetDebug

func (c *Client) SetDebug(debug bool)

func (*Client) SetHTTPClient

func (c *Client) SetHTTPClient(client *http.Client)

func (*Client) SetLocationID

func (c *Client) SetLocationID(locationID string)

func (*Client) SetMediaType

func (c *Client) SetMediaType(mediaType string)

func (*Client) SetSenderID

func (c *Client) SetSenderID(senderID string)

func (*Client) SetSenderPassword

func (c *Client) SetSenderPassword(senderPassword string)

func (*Client) SetUserAgent

func (c *Client) SetUserAgent(userAgent string)

func (*Client) SetUserID

func (c *Client) SetUserID(userID string)

func (*Client) SetUserPassword

func (c *Client) SetUserPassword(userPassword string)

func (*Client) Unmarshal

func (c *Client) Unmarshal(r io.Reader, vv ...interface{}) error

func (Client) UserAgent

func (c Client) UserAgent() string

func (Client) UserID

func (c Client) UserID() string

func (Client) UserPassword

func (c Client) UserPassword() string

type Contact

type Contact struct {
	PrintAs string `xml:"PRINTAS,omitempty"`

	Taxable       string `xml:"TAXABLE,omitempty"`
	TaxGroup      string `xml:"TAXGROUP,omitempty"`
	TaxSolutionID string `xml:"TAXSOLUTIONID,omitempty"`
	TaxSchedule   string `xml:"TAXSCHEDULE,omitempty"`

	FirstName   string `xml:"FIRSTNAME,omitempty"`
	Lastname    string `xml:"LASTNAME,omitempty"`
	Initial     string `xml:"INITIAL,omitempty"`
	Phone1      string `xml:"PHONE1,omitempty"`
	Phone2      string `xml:"PHONE2,omitempty"`
	Cellphone   string `xml:"CELLPHONE,omitempty"`
	Pager       string `xml:"PAGER,omitempty"`
	Fax         string `xml:"FAX,omitempty"`
	Email1      string `xml:"EMAIL1,omitempty"`
	Email2      string `xml:"EMAIL2,omitempty"`
	URL1        string `xml:"URL1,omitempty"`
	URL2        string `xml:"URL2,omitempty"`
	MAILADDRESS struct {
		Address1       string `xml:"ADDRESS1,omitempty"`
		Address2       string `xml:"ADDRESS2,omitempty"`
		City           string `xml:"CITY,omitempty"`
		State          string `xml:"STATE,omitempty"`
		Zip            string `xml:"ZIP,omitempty"`
		Country        string `xml:"COUNTRY,omitempty"`
		ISOCountryCode string `xml:"ISOCOUNTRYCODE,omitempty"`
	}
	// contains filtered or unexported fields
}

type CreateAttachmentLegacyPathParams

type CreateAttachmentLegacyPathParams struct {
}

func (*CreateAttachmentLegacyPathParams) Params

type CreateAttachmentLegacyQueryParams

type CreateAttachmentLegacyQueryParams struct{}

func (CreateAttachmentLegacyQueryParams) ToURLValues

type CreateAttachmentLegacyRequest

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

func (*CreateAttachmentLegacyRequest) Do

func (*CreateAttachmentLegacyRequest) Method

func (CreateAttachmentLegacyRequest) NewContent

func (CreateAttachmentLegacyRequest) NewPathParams

func (CreateAttachmentLegacyRequest) NewQueryParams

func (*CreateAttachmentLegacyRequest) NewRequestBody

func (*CreateAttachmentLegacyRequest) NewResponseBody

func (*CreateAttachmentLegacyRequest) PathParams

func (*CreateAttachmentLegacyRequest) QueryParams

func (*CreateAttachmentLegacyRequest) RequestBody

func (*CreateAttachmentLegacyRequest) SetMethod

func (r *CreateAttachmentLegacyRequest) SetMethod(method string)

func (*CreateAttachmentLegacyRequest) SetRequestBody

func (*CreateAttachmentLegacyRequest) URL

type CreateAttachmentLegacyRequestBody

type CreateAttachmentLegacyRequestBody struct {
	Request
}

func (CreateAttachmentLegacyRequestBody) Content

func (*CreateAttachmentLegacyRequestBody) SetContent

type CreateAttachmentLegacyRequestContent

type CreateAttachmentLegacyRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`

		CreateAttachment struct {
			XMLName           xml.Name `xml:"create_supdoc"`
			SupDocID          string   `xml:"supdocid"`
			SupDocFolderName  string   `xml:"supdocfoldername"`
			SupDocDescription string   `xml:"supdocdescription"`
			Attachments       []struct {
				AttachmentName string `xml:"attachmentname"`
				AttachmentType string `xml:"attachmenttype"`
				AttachmentData string `xml:"attachmentdata"`
			} `xml:"attachments>attachment"`
		} `xml:"create_supdoc"`
	} `xml:"function"`
}

type CreateAttachmentLegacyResponseBody

type CreateAttachmentLegacyResponseBody struct {
	Response
}

type CreateCustomerPathParams

type CreateCustomerPathParams struct {
}

func (*CreateCustomerPathParams) Params

func (p *CreateCustomerPathParams) Params() map[string]string

type CreateCustomerQueryParams

type CreateCustomerQueryParams struct{}

func (CreateCustomerQueryParams) ToURLValues

func (p CreateCustomerQueryParams) ToURLValues() (url.Values, error)

type CreateCustomerRequest

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

func (*CreateCustomerRequest) Do

func (*CreateCustomerRequest) Method

func (r *CreateCustomerRequest) Method() string

func (CreateCustomerRequest) NewContent

func (CreateCustomerRequest) NewPathParams

func (CreateCustomerRequest) NewQueryParams

func (*CreateCustomerRequest) NewRequestBody

func (*CreateCustomerRequest) NewResponseBody

func (r *CreateCustomerRequest) NewResponseBody() *CreateCustomerResponseBody

func (*CreateCustomerRequest) PathParams

func (*CreateCustomerRequest) QueryParams

func (*CreateCustomerRequest) RequestBody

func (*CreateCustomerRequest) SetMethod

func (r *CreateCustomerRequest) SetMethod(method string)

func (*CreateCustomerRequest) SetRequestBody

func (r *CreateCustomerRequest) SetRequestBody(body CreateCustomerRequestBody)

func (*CreateCustomerRequest) URL

func (r *CreateCustomerRequest) URL() url.URL

type CreateCustomerRequestBody

type CreateCustomerRequestBody struct {
	Request
}

func (CreateCustomerRequestBody) Content

func (*CreateCustomerRequestBody) SetContent

type CreateCustomerRequestContent

type CreateCustomerRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Create    struct {
			Customer Customer `xml:"CUSTOMER"`
		} `xml:"create"`
	} `xml:"function"`
}

type CreateCustomerResponseBody

type CreateCustomerResponseBody struct {
	Response
}

type CreateInvoiceLegacyPathParams

type CreateInvoiceLegacyPathParams struct {
}

func (*CreateInvoiceLegacyPathParams) Params

type CreateInvoiceLegacyQueryParams

type CreateInvoiceLegacyQueryParams struct{}

func (CreateInvoiceLegacyQueryParams) ToURLValues

func (p CreateInvoiceLegacyQueryParams) ToURLValues() (url.Values, error)

type CreateInvoiceLegacyRequest

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

func (*CreateInvoiceLegacyRequest) Do

func (*CreateInvoiceLegacyRequest) Method

func (r *CreateInvoiceLegacyRequest) Method() string

func (CreateInvoiceLegacyRequest) NewContent

func (CreateInvoiceLegacyRequest) NewPathParams

func (CreateInvoiceLegacyRequest) NewQueryParams

func (*CreateInvoiceLegacyRequest) NewRequestBody

func (*CreateInvoiceLegacyRequest) NewResponseBody

func (*CreateInvoiceLegacyRequest) PathParams

func (*CreateInvoiceLegacyRequest) QueryParams

func (*CreateInvoiceLegacyRequest) RequestBody

func (*CreateInvoiceLegacyRequest) SetMethod

func (r *CreateInvoiceLegacyRequest) SetMethod(method string)

func (*CreateInvoiceLegacyRequest) SetRequestBody

func (*CreateInvoiceLegacyRequest) URL

type CreateInvoiceLegacyRequestBody

type CreateInvoiceLegacyRequestBody struct {
	Request
}

func (CreateInvoiceLegacyRequestBody) Content

func (*CreateInvoiceLegacyRequestBody) SetContent

type CreateInvoiceLegacyRequestContent

type CreateInvoiceLegacyRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`

		CreateInvoice struct {
			XMLName     xml.Name `xml:"create_invoice"`
			CustomerID  string   `xml:"customerid"`
			DateCreated struct {
				Year  string `xml:"year"`
				Month string `xml:"month"`
				Day   string `xml:"day"`
			} `xml:"datecreated"`
			DatePosted struct {
				Year  string `xml:"year"`
				Month string `xml:"month"`
				Day   string `xml:"day"`
			} `xml:"dateposted"`
			DateDue struct {
				Year  string `xml:"year"`
				Month string `xml:"month"`
				Day   string `xml:"day"`
			} `xml:"datedue"`
			TermName    string `xml:"termname"`
			BatchKey    string `xml:"batchkey"`
			Action      string `xml:"action"`
			InvoiceNo   string `xml:"invoiceno"`
			PoNumber    string `xml:"ponumber"`
			Description string `xml:"description"`
			ExternalID  string `xml:"externalid"`
			BillTo      struct {
				Contactname string `xml:"contactname"`
			} `xml:"billto"`
			ShipTo struct {
				Contactname string `xml:"contactname"`
			} `xml:"shipto"`
			BaseCurr string `xml:"basecurr"`
			Currency string `xml:"currency"`
			// ExchRateDate struct {
			// 	Year  string `xml:"year"`
			// 	Month string `xml:"month"`
			// 	Day   string `xml:"day"`
			// } `xml:"exchratedate"`
			ExchRateType string `xml:"exchratetype"`
			NoGL         string `xml:"nogl"`
			SupDocID     string `xml:"supdocid"`
			// CustomFields struct {
			// 	CustomField struct {
			// 		CustomFieldName  string `xml:"customfieldname"`
			// 		CustomFieldValue string `xml:"customfieldvalue"`
			// 	} `xml:"customfield"`
			// } `xml:"customfields"`
			TaxSolutionID string `xml:"taxsolutionid,omitempty"`
			InvoiceItems  struct {
				LineItem InvoiceLineItems `xml:"lineitem,omitempty"`
			} `xml:"invoiceitems,omitempty"`
		} `xml:"create_invoice"`
	} `xml:"function"`
}

type CreateInvoiceLegacyResponseBody

type CreateInvoiceLegacyResponseBody struct {
	Response
}

type CreateInvoicePathParams

type CreateInvoicePathParams struct {
}

func (*CreateInvoicePathParams) Params

func (p *CreateInvoicePathParams) Params() map[string]string

type CreateInvoiceQueryParams

type CreateInvoiceQueryParams struct{}

func (CreateInvoiceQueryParams) ToURLValues

func (p CreateInvoiceQueryParams) ToURLValues() (url.Values, error)

type CreateInvoiceRequest

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

func (*CreateInvoiceRequest) Do

func (*CreateInvoiceRequest) Method

func (r *CreateInvoiceRequest) Method() string

func (CreateInvoiceRequest) NewContent

func (CreateInvoiceRequest) NewPathParams

func (r CreateInvoiceRequest) NewPathParams() *CreateInvoicePathParams

func (CreateInvoiceRequest) NewQueryParams

func (r CreateInvoiceRequest) NewQueryParams() *CreateInvoiceQueryParams

func (*CreateInvoiceRequest) NewRequestBody

func (r *CreateInvoiceRequest) NewRequestBody() CreateInvoiceRequestBody

func (*CreateInvoiceRequest) NewResponseBody

func (r *CreateInvoiceRequest) NewResponseBody() *CreateInvoiceResponseBody

func (*CreateInvoiceRequest) PathParams

func (*CreateInvoiceRequest) QueryParams

func (*CreateInvoiceRequest) RequestBody

func (*CreateInvoiceRequest) SetMethod

func (r *CreateInvoiceRequest) SetMethod(method string)

func (*CreateInvoiceRequest) SetRequestBody

func (r *CreateInvoiceRequest) SetRequestBody(body CreateInvoiceRequestBody)

func (*CreateInvoiceRequest) URL

func (r *CreateInvoiceRequest) URL() url.URL

type CreateInvoiceRequestBody

type CreateInvoiceRequestBody struct {
	Request
}

func (CreateInvoiceRequestBody) Content

func (*CreateInvoiceRequestBody) SetContent

type CreateInvoiceRequestContent

type CreateInvoiceRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Create    struct {
			ARInvoice Invoice `xml:"ARINVOICE"`
		} `xml:"create"`
	} `xml:"function"`
}

type CreateInvoiceResponseBody

type CreateInvoiceResponseBody struct {
	Response
}

type CreateJournalEntryPathParams

type CreateJournalEntryPathParams struct {
}

func (*CreateJournalEntryPathParams) Params

func (p *CreateJournalEntryPathParams) Params() map[string]string

type CreateJournalEntryQueryParams

type CreateJournalEntryQueryParams struct{}

func (CreateJournalEntryQueryParams) ToURLValues

func (p CreateJournalEntryQueryParams) ToURLValues() (url.Values, error)

type CreateJournalEntryRequest

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

func (*CreateJournalEntryRequest) Do

func (*CreateJournalEntryRequest) Method

func (r *CreateJournalEntryRequest) Method() string

func (CreateJournalEntryRequest) NewContent

func (CreateJournalEntryRequest) NewPathParams

func (CreateJournalEntryRequest) NewQueryParams

func (*CreateJournalEntryRequest) NewRequestBody

func (*CreateJournalEntryRequest) NewResponseBody

func (*CreateJournalEntryRequest) PathParams

func (*CreateJournalEntryRequest) QueryParams

func (*CreateJournalEntryRequest) RequestBody

func (*CreateJournalEntryRequest) SetMethod

func (r *CreateJournalEntryRequest) SetMethod(method string)

func (*CreateJournalEntryRequest) SetRequestBody

func (*CreateJournalEntryRequest) URL

type CreateJournalEntryRequestBody

type CreateJournalEntryRequestBody struct {
	Request
}

func (CreateJournalEntryRequestBody) Content

func (*CreateJournalEntryRequestBody) SetContent

type CreateJournalEntryRequestContent

type CreateJournalEntryRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Create    struct {
			GLBatch struct {
				Journal         string `xml:"JOURNAL"`
				BatchDate       string `xml:"BATCH_DATE"`
				ReverseDate     string `xml:"REVERSEDATE,omitempty"`
				BatchTitle      string `xml:"BATCH_TITLE"`
				State           string `xml:"STATE,omitempty"`
				TaxImplications string `xml:"TAXIMPLICATIONS,omitempty"`
				TaxSolutionID   string `xml:"TAXSOLUTIONID,omitempty"`
				Entries         []struct {
					AccountNo      string `xml:"ACCOUNTNO"`
					Department     string `xml:"DEPARTMENT,omitempty"`
					Location       string `xml:"LOCATION,omitempty"`
					ProjectID      string `xml:"PROJECTID"`
					ClassID        string `xml:"CLASSID"`
					Currency       string `xml:"CURRENCY"`
					TrType         int    `xml:"TR_TYPE"`
					Amount         Number `xml:"AMOUNT"`
					ExchRateTypeID string `xml:"EXCH_RATE_TYPE_ID"`
					Description    string `xml:"DESCRIPTION"`
					TaxEntries     []struct {
						TrxTax   Number `xml:"TRX_TAX"`
						DetailID string `xml:"DETAILID"`
					} `xml:"TAXENTRIES>TAXENTRY"`
				} `xml:"ENTRIES>GLENTRY"`
			} `xml:"GLBATCH"`
		} `xml:"create"`
	} `xml:"function"`
}

type CreateJournalEntryResponseBody

type CreateJournalEntryResponseBody struct {
	Response
}

type Customer

type Customer struct {
	RecordID                             string  `xml:"RECORDNO,omitempty"`
	CustomerID                           string  `xml:"CUSTOMERID,omitempty"`
	Name                                 string  `xml:"NAME,omitempty"`
	Entity                               string  `xml:"ENTITY,omitempty"`
	ParentKey                            string  `xml:"PARENTKEY,omitempty"`
	ParentID                             string  `xml:"PARENTID,omitempty"`
	ParentName                           string  `xml:"PARENTNAME,omitempty"`
	DisplayContactContactName            string  `xml:"DISPLAYCONTACT.CONTACTNAME,omitempty"`
	DisplayContactCompanyName            string  `xml:"DISPLAYCONTACT.COMPANYNAME,omitempty"`
	DisplayContactPrefix                 string  `xml:"DISPLAYCONTACT.PREFIX,omitempty"`
	DisplayContactFirstName              string  `xml:"DISPLAYCONTACT.FIRSTNAME,omitempty"`
	DisplayContactLastName               string  `xml:"DISPLAYCONTACT.LASTNAME,omitempty"`
	DisplayContactInitial                string  `xml:"DISPLAYCONTACT.INITIAL,omitempty"`
	DisplayContactPrintAs                string  `xml:"DISPLAYCONTACT.PRINTAS,omitempty"`
	DisplayContactTaxable                string  `xml:"DISPLAYCONTACT.TAXABLE,omitempty"`
	DisplayContactTaxGroup               string  `xml:"DISPLAYCONTACT.TAXGROUP,omitempty"`
	DisplayContactTaxSolutionKey         string  `xml:"DISPLAYCONTACT.TAXSOLUTIONKEY,omitempty"`
	DisplayContactTaxSolutionID          string  `xml:"DISPLAYCONTACT.TAXSOLUTIONID,omitempty"`
	DisplayContactTaxSchedule            string  `xml:"DISPLAYCONTACT.TAXSCHEDULE,omitempty"`
	DisplayContactTaxID                  string  `xml:"DISPLAYCONTACT.TAXID,omitempty"`
	DisplayContactPhone1                 string  `xml:"DISPLAYCONTACT.PHONE1,omitempty"`
	DisplayContactPhone2                 string  `xml:"DISPLAYCONTACT.PHONE2,omitempty"`
	DisplayContactCellphone              string  `xml:"DISPLAYCONTACT.CELLPHONE,omitempty"`
	DisplayContactPager                  string  `xml:"DISPLAYCONTACT.PAGER,omitempty"`
	DisplayContactFax                    string  `xml:"DISPLAYCONTACT.FAX,omitempty"`
	DisplayContactTaxIDValidationDate    string  `xml:"DISPLAYCONTACT.TAXIDVALIDATIONDATE,omitempty"`
	DisplayContactGSTRegistered          string  `xml:"DISPLAYCONTACT.GSTREGISTERED,omitempty"`
	DisplayContactTaxCompanyName         string  `xml:"DISPLAYCONTACT.TAXCOMPANYNAME,omitempty"`
	DisplayContactTaxAddress             string  `xml:"DISPLAYCONTACT.TAXADDRESS,omitempty"`
	DisplayContactEmail1                 string  `xml:"DISPLAYCONTACT.EMAIL1,omitempty"`
	DisplayContactEmail2                 string  `xml:"DISPLAYCONTACT.EMAIL2,omitempty"`
	DisplayContactURL1                   string  `xml:"DISPLAYCONTACT.URL1,omitempty"`
	DisplayContactURL2                   string  `xml:"DISPLAYCONTACT.URL2,omitempty"`
	DisplayContactVisible                string  `xml:"DISPLAYCONTACT.VISIBLE,omitempty"`
	DisplayContactMailAddressAddress1    string  `xml:"DISPLAYCONTACT.MAILADDRESS.ADDRESS1,omitempty"`
	DisplayContactMailAddressAddress2    string  `xml:"DISPLAYCONTACT.MAILADDRESS.ADDRESS2,omitempty"`
	DisplayContactMailAddresscity        string  `xml:"DISPLAYCONTACT.MAILADDRESS.CITY,omitempty"`
	DisplayContactMailAddressState       string  `xml:"DISPLAYCONTACT.MAILADDRESS.STATE,omitempty"`
	DisplayContactMailAddressZip         string  `xml:"DISPLAYCONTACT.MAILADDRESS.ZIP,omitempty"`
	DisplayContactMailAddressCountry     string  `xml:"DISPLAYCONTACT.MAILADDRESS.COUNTRY,omitempty"`
	DisplayContactMailAddressCountryCode string  `xml:"DISPLAYCONTACT.MAILADDRESS.COUNTRYCODE,omitempty"`
	DisplayContactMailAddressLatitude    string  `xml:"DISPLAYCONTACT.MAILADDRESS.LATITUDE,omitempty"`
	DisplayContactMailAddressLongitude   string  `xml:"DISPLAYCONTACT.MAILADDRESS.LONGITUDE,omitempty"`
	DisplayContactStatus                 string  `xml:"DISPLAYCONTACT.STATUS,omitempty"`
	TermName                             string  `xml:"TERMNAME,omitempty"`
	TermValue                            string  `xml:"TERMVALUE,omitempty"`
	CustRepID                            string  `xml:"CUSTREPID,omitempty"`
	CustRepName                          string  `xml:"CUSTREPNAME,omitempty"`
	ResaleNo                             string  `xml:"RESALENO,omitempty"`
	TaxID                                string  `xml:"TAXID,omitempty"`
	CreditLimit                          string  `xml:"CREDITLIMIT,omitempty"`
	TotalDue                             string  `xml:"TOTALDUE,omitempty"`
	Comments                             string  `xml:"COMMENTS,omitempty"`
	AccountLabel                         string  `xml:"ACCOUNTLABEL,omitempty"`
	ARAccount                            string  `xml:"ARACCOUNT,omitempty"`
	ARAccountTitle                       string  `xml:"ARACCOUNTTITLE,omitempty"`
	LastInvoiceDate                      string  `xml:"LAST_INVOICEDATE,omitempty"`
	LastStatementDate                    string  `xml:"LAST_STATEMENTDATE,omitempty"`
	DeliveryOption                       string  `xml:"DELIVERY_OPTIONS,omitempty"`
	TerrityoryID                         string  `xml:"TERRITORYID,omitempty"`
	TerritoryName                        string  `xml:"TERRITORYNAME,omitempty"`
	ShippingMethod                       string  `xml:"SHIPPINGMETHOD,omitempty"`
	CustType                             string  `xml:"CUSTTYPE,omitempty"`
	GLGRPKey                             string  `xml:"GLGRPKEY,omitempty"`
	GLGroup                              string  `xml:"GLGROUP,omitempty"`
	PriceSchedule                        string  `xml:"PRICESCHEDULE,omitempty"`
	Discount                             string  `xml:"DISCOUNT,omitempty"`
	PriceList                            string  `xml:"PRICELIST,omitempty"`
	VSOEPriceList                        string  `xml:"VSOEPRICELIST,omitempty"`
	Currency                             string  `xml:"CURRENCY,omitempty"`
	ContactInfoContactName               string  `xml:"CONTACTINFO.CONTACTNAME,omitempty"`
	ContactInfoPrefix                    string  `xml:"CONTACTINFO.PREFIX,omitempty"`
	ContactInfoFirstName                 string  `xml:"CONTACTINFO.FIRSTNAME,omitempty"`
	ContactInfoInitial                   string  `xml:"CONTACTINFO.INITIAL,omitempty"`
	ContactInfoLastName                  string  `xml:"CONTACTINFO.LASTNAME,omitempty"`
	ContactInfoCompanyName               string  `xml:"CONTACTINFO.COMPANYNAME,omitempty"`
	ContactinfoPrintAs                   string  `xml:"CONTACTINFO.PRINTAS,omitempty"`
	ContactInfoPhone1                    string  `xml:"CONTACTINFO.PHONE1,omitempty"`
	ContactInfoPhone2                    string  `xml:"CONTACTINFO.PHONE2,omitempty"`
	ContactInfoCellphone                 string  `xml:"CONTACTINFO.CELLPHONE,omitempty"`
	ContactInfoPager                     string  `xml:"CONTACTINFO.PAGER,omitempty"`
	ContactInfoFax                       string  `xml:"CONTACTINFO.FAX,omitempty"`
	ContactInfoEmail1                    string  `xml:"CONTACTINFO.EMAIL1,omitempty"`
	ContactInfoEmail2                    string  `xml:"CONTACTINFO.EMAIL2,omitempty"`
	ContactInfoURL1                      string  `xml:"CONTACTINFO.URL1,omitempty"`
	ContactInfoURL2                      string  `xml:"CONTACTINFO.URL2,omitempty"`
	ContactInfoVisible                   string  `xml:"CONTACTINFO.VISIBLE,omitempty"`
	ContactInfoMailAddressAddress1       string  `xml:"CONTACTINFO.MAILADDRESS.ADDRESS1,omitempty"`
	ContactInfoMailAddressAddress2       string  `xml:"CONTACTINFO.MAILADDRESS.ADDRESS2,omitempty"`
	ContactInfoMailAddressCity           string  `xml:"CONTACTINFO.MAILADDRESS.CITY,omitempty"`
	ContactInfoMailAddressState          string  `xml:"CONTACTINFO.MAILADDRESS.STATE,omitempty"`
	ContactInfoMailAddressZip            string  `xml:"CONTACTINFO.MAILADDRESS.ZIP,omitempty"`
	ContactInfoMailAddressCountry        string  `xml:"CONTACTINFO.MAILADDRESS.COUNTRY,omitempty"`
	ContactInfoMailAddressCountryCode    string  `xml:"CONTACTINFO.MAILADDRESS.COUNTRYCODE,omitempty"`
	ShipToContactName                    string  `xml:"SHIPTO.CONTACTNAME,omitempty"`
	ShipToPrefix                         string  `xml:"SHIPTO.PREFIX,omitempty"`
	ShipToFirstName                      string  `xml:"SHIPTO.FIRSTNAME,omitempty"`
	ShipToInitial                        string  `xml:"SHIPTO.INITIAL,omitempty"`
	ShipToLastName                       string  `xml:"SHIPTO.LASTNAME,omitempty"`
	ShipToCompanyName                    string  `xml:"SHIPTO.COMPANYNAME,omitempty"`
	ShipToPrintAs                        string  `xml:"SHIPTO.PRINTAS,omitempty"`
	ShipToTaxable                        string  `xml:"SHIPTO.TAXABLE,omitempty"`
	ShipToTaxGroup                       string  `xml:"SHIPTO.TAXGROUP,omitempty"`
	ShipToTaxSolutionKey                 string  `xml:"SHIPTO.TAXSOLUTIONKEY,omitempty"`
	ShipToTaxSolutionID                  string  `xml:"SHIPTO.TAXSOLUTIONID,omitempty"`
	ShipToTaxSchedule                    string  `xml:"SHIPTO.TAXSCHEDULE,omitempty"`
	ShipToTaxID                          string  `xml:"SHIPTO.TAXID,omitempty"`
	ShipToPhone1                         string  `xml:"SHIPTO.PHONE1,omitempty"`
	ShipToPhone2                         string  `xml:"SHIPTO.PHONE2,omitempty"`
	ShipToCellphone                      string  `xml:"SHIPTO.CELLPHONE,omitempty"`
	ShipToPager                          string  `xml:"SHIPTO.PAGER,omitempty"`
	ShipToFax                            string  `xml:"SHIPTO.FAX,omitempty"`
	ShipToEmail1                         string  `xml:"SHIPTO.EMAIL1,omitempty"`
	ShipToEmail2                         string  `xml:"SHIPTO.EMAIL2,omitempty"`
	ShipToURL1                           string  `xml:"SHIPTO.URL1,omitempty"`
	ShipToURL2                           string  `xml:"SHIPTO.URL2,omitempty"`
	ShipToVisible                        string  `xml:"SHIPTO.VISIBLE,omitempty"`
	ShipToMailAddressAddress1            string  `xml:"SHIPTO.MAILADDRESS.ADDRESS1,omitempty"`
	ShipToMailAddressAddress2            string  `xml:"SHIPTO.MAILADDRESS.ADDRESS2,omitempty"`
	ShipToMailAddressCity                string  `xml:"SHIPTO.MAILADDRESS.CITY,omitempty"`
	ShipToMailAddressState               string  `xml:"SHIPTO.MAILADDRESS.STATE,omitempty"`
	ShipToMailAddressZip                 string  `xml:"SHIPTO.MAILADDRESS.ZIP,omitempty"`
	ShipToMailAddressCountry             string  `xml:"SHIPTO.MAILADDRESS.COUNTRY,omitempty"`
	ShipToMailAddressCountryCode         string  `xml:"SHIPTO.MAILADDRESS.COUNTRYCODE,omitempty"`
	BillToContactName                    string  `xml:"BILLTO.CONTACTNAME,omitempty"`
	BillToPrefix                         string  `xml:"BILLTO.PREFIX,omitempty"`
	BillToFirstName                      string  `xml:"BILLTO.FIRSTNAME,omitempty"`
	BillToInitial                        string  `xml:"BILLTO.INITIAL,omitempty"`
	BillToLastName                       string  `xml:"BILLTO.LASTNAME,omitempty"`
	BillToCompanyName                    string  `xml:"BILLTO.COMPANYNAME,omitempty"`
	BillToPrintAs                        string  `xml:"BILLTO.PRINTAS,omitempty"`
	BillToTaxable                        string  `xml:"BILLTO.TAXABLE,omitempty"`
	BillToTaxGroup                       string  `xml:"BILLTO.TAXGROUP,omitempty"`
	BillToTaxSolutionKey                 string  `xml:"BILLTO.TAXSOLUTIONKEY,omitempty"`
	BillToTaxSolutionID                  string  `xml:"BILLTO.TAXSOLUTIONID,omitempty"`
	BillToTaxSchedule                    string  `xml:"BILLTO.TAXSCHEDULE,omitempty"`
	BillToPhone1                         string  `xml:"BILLTO.PHONE1,omitempty"`
	BillToPhone2                         string  `xml:"BILLTO.PHONE2,omitempty"`
	BillToCellphone                      string  `xml:"BILLTO.CELLPHONE,omitempty"`
	BillToPager                          string  `xml:"BILLTO.PAGER,omitempty"`
	BillToFax                            string  `xml:"BILLTO.FAX,omitempty"`
	BillToEmail1                         string  `xml:"BILLTO.EMAIL1,omitempty"`
	BillToEmail2                         string  `xml:"BILLTO.EMAIL2,omitempty"`
	BillToURL1                           string  `xml:"BILLTO.URL1,omitempty"`
	BillToURL2                           string  `xml:"BILLTO.URL2,omitempty"`
	BillToVisible                        string  `xml:"BILLTO.VISIBLE,omitempty"`
	BillToMailAddressAddress1            string  `xml:"BILLTO.MAILADDRESS.ADDRESS1,omitempty"`
	BillToMailAddressAddress2            string  `xml:"BILLTO.MAILADDRESS.ADDRESS2,omitempty"`
	BillToMailAddressCity                string  `xml:"BILLTO.MAILADDRESS.CITY,omitempty"`
	BillToMailAddressState               string  `xml:"BILLTO.MAILADDRESS.STATE,omitempty"`
	BillToMailAddressZip                 string  `xml:"BILLTO.MAILADDRESS.ZIP,omitempty"`
	BillToMailAddressCountry             string  `xml:"BILLTO.MAILADDRESS.COUNTRY,omitempty"`
	BillToMailAddressCountryCode         string  `xml:"BILLTO.MAILADDRESS.COUNTRYCODE,omitempty"`
	Status                               string  `xml:"STATUS,omitempty"`
	Onetime                              string  `xml:"ONETIME,omitempty"`
	CustMessageID                        string  `xml:"CUSTMESSAGEID,omitempty"`
	OnHold                               string  `xml:"ONHOLD,omitempty"`
	PRCLSTOverride                       string  `xml:"PRCLST_OVERRIDE,omitempty"`
	OEPRCLSTKey                          string  `xml:"OEPRCLSTKEY,omitempty"`
	OEPriceschedKey                      string  `xml:"OEPRICESCHEDKEY,omitempty"`
	EnableOnlineCardPayment              string  `xml:"ENABLEONLINECARDPAYMENT,omitempty"`
	EnableOnlineCHPayment                string  `xml:"ENABLEONLINEACHPAYMENT,omitempty"`
	VSOEPRCLSTKEY                        string  `xml:"VSOEPRCLSTKEY,omitempty"`
	WhenModified                         string  `xml:"WHENMODIFIED,omitempty"`
	ARInvoicePrintTemplateID             string  `xml:"ARINVOICEPRINTTEMPLATEID,omitempty"`
	OEQuotePrintTemplateID               string  `xml:"OEQUOTEPRINTTEMPLATEID,omitempty"`
	OEOrderPrintTemplateID               string  `xml:"OEORDERPRINTTEMPLATEID,omitempty"`
	OEListPrintTemplateID                string  `xml:"OELISTPRINTTEMPLATEID,omitempty"`
	OEInvoicePrintTemplateID             string  `xml:"OEINVOICEPRINTTEMPLATEID,omitempty"`
	OEAdjPrintTemplateID                 string  `xml:"OEADJPRINTTEMPLATEID,omitempty"`
	OEOtherPrintTemplateID               string  `xml:"OEOTHERPRINTTEMPLATEID,omitempty"`
	WhenCreated                          string  `xml:"WHENCREATED,omitempty"`
	CreatedBy                            string  `xml:"CREATEDBY,omitempty"`
	ModifiedBy                           string  `xml:"MODIFIEDBY,omitempty"`
	ObjectRestriction                    string  `xml:"OBJECTRESTRICTION,omitempty"`
	DisplayContactKey                    string  `xml:"DISPLAYCONTACTKEY,omitempty"`
	ContactKey                           string  `xml:"CONTACTKEY,omitempty"`
	ShipToKey                            string  `xml:"SHIPTOKEY,omitempty"`
	BillToKey                            string  `xml:"BILLTOKEY,omitempty"`
	CustRepKey                           string  `xml:"CUSTREPKEY,omitempty"`
	ShipViaKey                           string  `xml:"SHIPVIAKEY,omitempty"`
	TerritoryKey                         string  `xml:"TERRITORYKEY,omitempty"`
	TermsKey                             string  `xml:"TERMSKEY,omitempty"`
	AccountLabelKey                      string  `xml:"ACCOUNTLABELKEY,omitempty"`
	AccountKey                           string  `xml:"ACCOUNTKEY,omitempty"`
	CustTypeKey                          string  `xml:"CUSTTYPEKEY,omitempty"`
	PriceScheduleKey                     string  `xml:"PRICESCHEDULEKEY,omitempty"`
	OffsetGLAccountNo                    string  `xml:"OFFSETGLACCOUNTNO,omitempty"`
	OffsetGLAccountNoTitle               string  `xml:"OFFSETGLACCOUNTNOTITLE,omitempty"`
	AdvBillBy                            string  `xml:"ADVBILLBY,omitempty"`
	AdvBillyByType                       string  `xml:"ADVBILLBYTYPE,omitempty"`
	SupDocID                             string  `xml:"SUPDOCID,omitempty"`
	RetainagePercentage                  string  `xml:"RETAINAGEPERCENTAGE,omitempty"`
	EmailOption                          string  `xml:"EMAILOPTIN,omitempty"`
	MegaEntityKey                        string  `xml:"MEGAENTITYKEY,omitempty"`
	MegaEntityID                         string  `xml:"MEGAENTITYID,omitempty"`
	MegaEntityName                       string  `xml:"MEGAENTITYNAME,omitempty"`
	HideDisplayContact                   string  `xml:"HIDEDISPLAYCONTACT,omitempty"`
	DisplayContact                       Contact `xml:"DISPLAYCONTACT,omitempty"`
}

type Customers

type Customers []Customer

type Date

type Date struct {
	time.Time
}

func (Date) IsEmpty

func (d Date) IsEmpty() bool

func (*Date) MarshalJSON

func (d *Date) MarshalJSON() ([]byte, error)

func (Date) String

func (d Date) String() string

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(text []byte) (err error)

type DateTime

type DateTime struct {
	time.Time
}

func (DateTime) IsEmpty

func (d DateTime) IsEmpty() bool

func (*DateTime) MarshalJSON

func (d *DateTime) MarshalJSON() ([]byte, error)

func (DateTime) String

func (d DateTime) String() string

func (*DateTime) UnmarshalJSON

func (d *DateTime) UnmarshalJSON(text []byte) (err error)

type Department

type Department struct {
	DepartmentID   int    `xml:"DEPARTMENTID"`
	RecordNo       int    `xml:"RECORDNO"`
	Title          string `xml:"TITLE"`
	ParentKey      string `xml:"PARENTKEY"`
	ParentID       string `xml:"PARENTID"`
	SupervisorKey  string `xml:"SUPERVISORKEY"`
	SupervisorID   string `xml:"SUPERVISORID"`
	WhenCreated    string `xml:"WHENCREATED"`
	WhenModified   string `xml:"WHENMODIFIED"`
	SupervisorName string `xml:"SUPERVISORNAME"`
	Status         string `xml:"STATUS"`
	CustTitle      string `xml:"CUSTTITLE"`
	CreatedBy      int    `xml:"CREATEDBY"`
	ModifiedBy     int    `xml:"MODIFIEDBY"`
}

type Departments

type Departments []Department

type Dimension

type Dimension struct {
	RecordNo                          string `xml:"RECORDNO"`
	Name                              string `xml:"NAME"`
	ParentID                          string `xml:"PARENTID"`
	SupervisorName                    string `xml:"SUPERVISORNAME"`
	SupervisorID                      int    `xml:"SUPERVISORID"`
	ContactinfoContactName            string `xml:"CONTACTINFO.CONTACTNAME"`
	ContactinfoPrintAs                string `xml:"CONTACTINFO.PRINTAS"`
	ContactinfoPhone1                 string `xml:"CONTACTINFO.PHONE1"`
	ContactinfoPhon2                  string `xml:"CONTACTINFO.PHONE2"`
	ContactinfoEmail1                 string `xml:"CONTACTINFO.EMAIL1"`
	ContactinfoEmail2                 string `xml:"CONTACTINFO.EMAIL2"`
	ContactinfoFax                    string `xml:"CONTACTINFO.FAX"`
	ContactinfoMailaddressAddress1    string `xml:"CONTACTINFO.MAILADDRESS.ADDRESS1"`
	ContactinfoMailaddressAddress2    string `xml:"CONTACTINFO.MAILADDRESS.ADDRESS2"`
	ContactinfoMailaddressCity        string `xml:"CONTACTINFO.MAILADDRESS.CITY"`
	ContactinfoMailaddressState       string `xml:"CONTACTINFO.MAILADDRESS.STATE"`
	CONTACTINFOMAILADDRESSZIP         string `xml:"CONTACTINFO.MAILADDRESS.ZIP"`
	CONTACTINFOMAILADDRESSCOUNTRY     string `xml:"CONTACTINFO.MAILADDRESS.COUNTRY"`
	CONTACTINFOMAILADDRESSCOUNTRYCODE string `xml:"CONTACTINFO.MAILADDRESS.COUNTRYCODE"`
	STARTDATE                         string `xml:"STARTDATE"`
	ENDDATE                           string `xml:"ENDDATE"`
	SHIPTOCONTACTNAME                 string `xml:"SHIPTO.CONTACTNAME"`
	SHIPTOPHONE1                      string `xml:"SHIPTO.PHONE1"`
	SHIPTOPHONE2                      string `xml:"SHIPTO.PHONE2"`
	SHIPTOMAILADDRESSADDRESS1         string `xml:"SHIPTO.MAILADDRESS.ADDRESS1"`
	SHIPTOMAILADDRESSADDRESS2         string `xml:"SHIPTO.MAILADDRESS.ADDRESS2"`
	SHIPTOMAILADDRESSCITY             string `xml:"SHIPTO.MAILADDRESS.CITY"`
	SHIPTOMAILADDRESSSTATE            string `xml:"SHIPTO.MAILADDRESS.STATE"`
	SHIPTOMAILADDRESSZIP              string `xml:"SHIPTO.MAILADDRESS.ZIP"`
	SHIPTOMAILADDRESSCOUNTRY          string `xml:"SHIPTO.MAILADDRESS.COUNTRY"`
	SHIPTOMAILADDRESSCOUNTRYCODE      string `xml:"SHIPTO.MAILADDRESS.COUNTRYCODE"`
	STATUS                            string `xml:"STATUS"`
	WHENCREATED                       string `xml:"WHENCREATED"`
	WHENMODIFIED                      string `xml:"WHENMODIFIED"`
	FederalID                         string `xml:"FEDERALID"`
	FirstMonth                        string `xml:"FIRSTMONTH"`
	WeekStart                         string `xml:"WEEKSTART"`
	IEPAYABLEACCOUNT                  string `xml:"IEPAYABLE.ACCOUNT"`
	IEPAYABLENUMBER                   string `xml:"IEPAYABLE.NUMBER"`
	IERECEIVABLEACCOUNT               string `xml:"IERECEIVABLE.ACCOUNT"`
	IERECEIVABLENUMBER                string `xml:"IERECEIVABLE.NUMBER"`
	MessageText                       string `xml:"MESSAGE_TEXT"`
	MarketingText                     string `xml:"MARKETING_TEXT"`
	FOOTNOTETEXT                      string `xml:"FOOTNOTETEXT"`
	REPORTPRINTAS                     string `xml:"REPORTPRINTAS"`
	IsRoot                            string `xml:"ISROOT"`
	RESERVEAMT                        string `xml:"RESERVEAMT"`
	VendorName                        string `xml:"VENDORNAME"`
	VendorID                          int    `xml:"VENDORID"`
	CustomerID                        int    `xml:"CUSTOMERID"`
	CustomerName                      string `xml:"CUSTOMERNAME"`
	Currency                          string `xml:"CURRENCY"`
	Entity                            string `xml:"ENTITY"`
	ENTITYRECORDNO                    string `xml:"ENTITYRECORDNO"`
	HASIERELATION                     string `xml:"HAS_IE_RELATION"`
	CustTitle                         string `xml:"CUSTTITLE"`
	BusinessDays                      string `xml:"BUSINESSDAYS"`
	Weekend                           string `xml:"WEEKENDS"`
	FIRSTMONTHTAX                     string `xml:"FIRSTMONTHTAX"`
	ContactKey                        string `xml:"CONTACTKEY"`
	SUPERVISORKEY                     string `xml:"SUPERVISORKEY"`
	ParentKey                         string `xml:"PARENTKEY"`
	SHIPTOKEY                         string `xml:"SHIPTOKEY"`
	IEPAYABLEACCTKEY                  string `xml:"IEPAYABLEACCTKEY"`
	IERECEIVABLEACCTKEY               string `xml:"IERECEIVABLEACCTKEY"`
	VENDENTITY                        string `xml:"VENDENTITY"`
	CUSTENTITY                        string `xml:"CUSTENTITY"`
	TaxID                             string `xml:"TAXID"`
	CreatedBy                         string `xml:"CREATEDBY"`
	ModifiedBy                        string `xml:"MODIFIEDBY"`
	ADDRESSCOUNTRYDEFAULT             string `xml:"ADDRESSCOUNTRYDEFAULT"`
}

type EqualTo

type EqualTo struct {
	Field string `xml:"field"`
	Value string `xml:"value"`
}

func (EqualTo) IsFilter

func (et EqualTo) IsFilter() bool

func (EqualTo) MarshalXML

func (et EqualTo) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type Error

type Error struct {
	ErrorNo      string `xml:"errorno"`
	Description  string `xml:"description"`
	Description2 string `xml:"description2"`
	Correction   string `xml:"correction"`
}

func (Error) Error

func (e Error) Error() string

type ErrorMessage

type ErrorMessage struct {
	XMLName xml.Name `xml:"errormessage"`

	Errors []Error `xml:"error"`
}

func (ErrorMessage) Error

func (em ErrorMessage) Error() string

type ErrorResponse

type ErrorResponse struct {
	// HTTP response that caused this error
	Response *http.Response `json:"-"`

	XMLName      xml.Name        `xml:"response"`
	Control      ResponseControl `xml:"control"`
	ErrorMessage ErrorMessage    `xml:"errormessage"`
}

func (ErrorResponse) Error

func (r ErrorResponse) Error() string

type Filter

type Filter interface {
	IsFilter() bool
}

type Filters

type Filters []Filter

func (Filters) MarshalXML

func (f Filters) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type GLAccount

type GLAccount struct {
	RecordNo            int         `xml:"RECORDNO"`
	AccountNo           string      `xml:"ACCOUNTNO"`
	Title               string      `xml:"TITLE"`
	AccountType         string      `xml:"ACCOUNTTYPE"`
	NormalBalance       string      `xml:"NORMALBALANCE"`
	ClosingType         string      `xml:"CLOSINGTYPE"`
	ClosingAccountNo    string      `xml:"CLOSINGACCOUNTNO"`
	ClosingAccountTitle string      `xml:"CLOSINGACCOUNTTITLE"`
	Status              string      `xml:"STATUS"`
	RequireDept         bool        `xml:"REQUIREDEPT"`
	RequireLoc          bool        `xml:"REQUIRELOC"`
	Taxable             bool        `xml:"TAXABLE"`
	CategoryKey         string      `xml:"CATEGORYKEY"`
	Category            string      `xml:"CATEGORY"`
	TaxCode             string      `xml:"TAXCODE"`
	MRCCode             string      `xml:"MRCCODE"`
	CloseToAcctKey      string      `xml:"CLOSETOACCTKEY"`
	AlternativeAccount  string      `xml:"ALTERNATIVEACCOUNT"`
	WhenCreated         string      `xml:"WHENCREATED"`
	WhenModified        string      `xml:"WHENMODIFIED"`
	CreatedBy           int         `xml:"CREATEDBY"`
	ModifiedBy          int         `xml:"MODIFIEDBY"`
	SubledgerControlOn  bool        `xml:"SUBLEDGERCONTROLON"`
	MegaEntityKey       interface{} `xml:"MEGAENTITYKEY"`
	MegaEntityID        interface{} `xml:"MEGAENTITYID"`
	MegaEntityName      interface{} `xml:"MEGAENTITYNAME"`
	RequireProject      bool        `xml:"REQUIREPROJECT"`
	RequireCustomer     bool        `xml:"REQUIRECUSTOMER"`
	RequireVendor       bool        `xml:"REQUIREVENDOR"`
	RequireClass        bool        `xml:"REQUIRECLASS"`
}

type GLAccounts

type GLAccounts []GLAccount

type GetAPISessionPathParams

type GetAPISessionPathParams struct {
}

func (*GetAPISessionPathParams) Params

func (p *GetAPISessionPathParams) Params() map[string]string

type GetAPISessionQueryParams

type GetAPISessionQueryParams struct{}

func (GetAPISessionQueryParams) ToURLValues

func (p GetAPISessionQueryParams) ToURLValues() (url.Values, error)

type GetAPISessionRequest

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

func (*GetAPISessionRequest) Do

func (*GetAPISessionRequest) Method

func (r *GetAPISessionRequest) Method() string

func (GetAPISessionRequest) NewGetAPISessionPathParams

func (r GetAPISessionRequest) NewGetAPISessionPathParams() *GetAPISessionPathParams

func (GetAPISessionRequest) NewGetAPISessionQueryParams

func (r GetAPISessionRequest) NewGetAPISessionQueryParams() *GetAPISessionQueryParams

func (GetAPISessionRequest) NewGetAPISessionRequestContent

func (r GetAPISessionRequest) NewGetAPISessionRequestContent() GetAPISessionRequestContent

func (*GetAPISessionRequest) NewRequestBody

func (r *GetAPISessionRequest) NewRequestBody() GetAPISessionRequestBody

func (*GetAPISessionRequest) NewResponseBody

func (r *GetAPISessionRequest) NewResponseBody() *GetAPISessionResponseBody

func (*GetAPISessionRequest) PathParams

func (*GetAPISessionRequest) QueryParams

func (*GetAPISessionRequest) RequestBody

func (*GetAPISessionRequest) SetMethod

func (r *GetAPISessionRequest) SetMethod(method string)

func (*GetAPISessionRequest) SetRequestBody

func (r *GetAPISessionRequest) SetRequestBody(body GetAPISessionRequestBody)

func (*GetAPISessionRequest) URL

func (r *GetAPISessionRequest) URL() url.URL

type GetAPISessionRequestBody

type GetAPISessionRequestBody struct {
	Request
}

func (GetAPISessionRequestBody) Content

type GetAPISessionRequestContent

type GetAPISessionRequestContent struct {
	Function struct {
		ControlID     string `xml:"controlid,attr"`
		GetAPISession struct {
			LocationID string `xml:"locationid,omitempty"`
		} `xml:"getAPISession"`
	} `xml:"function"`
}

type GetAPISessionResponseBody

type GetAPISessionResponseBody struct {
	Response
}

type GetAccountGroupsPathParams

type GetAccountGroupsPathParams struct {
}

func (*GetAccountGroupsPathParams) Params

func (p *GetAccountGroupsPathParams) Params() map[string]string

type GetAccountGroupsQueryParams

type GetAccountGroupsQueryParams struct{}

func (GetAccountGroupsQueryParams) ToURLValues

func (p GetAccountGroupsQueryParams) ToURLValues() (url.Values, error)

type GetAccountGroupsRequest

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

func (*GetAccountGroupsRequest) Do

func (*GetAccountGroupsRequest) Method

func (r *GetAccountGroupsRequest) Method() string

func (GetAccountGroupsRequest) NewContent

func (GetAccountGroupsRequest) NewPathParams

func (GetAccountGroupsRequest) NewQueryParams

func (*GetAccountGroupsRequest) NewRequestBody

func (*GetAccountGroupsRequest) NewResponseBody

func (*GetAccountGroupsRequest) PathParams

func (*GetAccountGroupsRequest) QueryParams

func (*GetAccountGroupsRequest) RequestBody

func (*GetAccountGroupsRequest) SetMethod

func (r *GetAccountGroupsRequest) SetMethod(method string)

func (*GetAccountGroupsRequest) SetRequestBody

func (r *GetAccountGroupsRequest) SetRequestBody(body GetAccountGroupsRequestBody)

func (*GetAccountGroupsRequest) URL

func (r *GetAccountGroupsRequest) URL() url.URL

type GetAccountGroupsRequestBody

type GetAccountGroupsRequestBody struct {
	Request
}

func (GetAccountGroupsRequestBody) Content

type GetAccountGroupsRequestContent

type GetAccountGroupsRequestContent struct {
	Function struct {
		ControlID   string      `xml:"controlid,attr"`
		ReadByQuery ReadByQuery `xml:"readByQuery"`
	} `xml:"function"`
}

type GetAccountGroupsResponseBody

type GetAccountGroupsResponseBody struct {
	Response
}

type GetAccountsPathParams

type GetAccountsPathParams struct {
}

func (*GetAccountsPathParams) Params

func (p *GetAccountsPathParams) Params() map[string]string

type GetAccountsQueryParams

type GetAccountsQueryParams struct{}

func (GetAccountsQueryParams) ToURLValues

func (p GetAccountsQueryParams) ToURLValues() (url.Values, error)

type GetAccountsRequest

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

func (*GetAccountsRequest) Do

func (*GetAccountsRequest) Method

func (r *GetAccountsRequest) Method() string

func (GetAccountsRequest) NewContent

func (GetAccountsRequest) NewPathParams

func (r GetAccountsRequest) NewPathParams() *GetAccountsPathParams

func (GetAccountsRequest) NewQueryParams

func (r GetAccountsRequest) NewQueryParams() *GetAccountsQueryParams

func (*GetAccountsRequest) NewRequestBody

func (r *GetAccountsRequest) NewRequestBody() GetAccountsRequestBody

func (*GetAccountsRequest) NewResponseBody

func (r *GetAccountsRequest) NewResponseBody() *GetAccountsResponseBody

func (*GetAccountsRequest) PathParams

func (r *GetAccountsRequest) PathParams() *GetAccountsPathParams

func (*GetAccountsRequest) QueryParams

func (r *GetAccountsRequest) QueryParams() *GetAccountsQueryParams

func (*GetAccountsRequest) RequestBody

func (r *GetAccountsRequest) RequestBody() *GetAccountsRequestBody

func (*GetAccountsRequest) SetMethod

func (r *GetAccountsRequest) SetMethod(method string)

func (*GetAccountsRequest) SetRequestBody

func (r *GetAccountsRequest) SetRequestBody(body GetAccountsRequestBody)

func (*GetAccountsRequest) URL

func (r *GetAccountsRequest) URL() url.URL

type GetAccountsRequestBody

type GetAccountsRequestBody struct {
	Request
}

func (GetAccountsRequestBody) Content

type GetAccountsRequestContent

type GetAccountsRequestContent struct {
	Function struct {
		ControlID   string      `xml:"controlid,attr"`
		ReadByQuery ReadByQuery `xml:"readByQuery"`
	} `xml:"function"`
}

type GetAccountsResponseBody

type GetAccountsResponseBody struct {
	Response
}

type GetAttachmentByIDLegacyPathParams

type GetAttachmentByIDLegacyPathParams struct {
}

func (*GetAttachmentByIDLegacyPathParams) Params

type GetAttachmentByIDLegacyQueryParams

type GetAttachmentByIDLegacyQueryParams struct{}

func (GetAttachmentByIDLegacyQueryParams) ToURLValues

type GetAttachmentByIDLegacyRequest

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

func (*GetAttachmentByIDLegacyRequest) Do

func (*GetAttachmentByIDLegacyRequest) Method

func (GetAttachmentByIDLegacyRequest) NewContent

func (GetAttachmentByIDLegacyRequest) NewPathParams

func (GetAttachmentByIDLegacyRequest) NewQueryParams

func (*GetAttachmentByIDLegacyRequest) NewRequestBody

func (*GetAttachmentByIDLegacyRequest) NewResponseBody

func (*GetAttachmentByIDLegacyRequest) PathParams

func (*GetAttachmentByIDLegacyRequest) QueryParams

func (*GetAttachmentByIDLegacyRequest) RequestBody

func (*GetAttachmentByIDLegacyRequest) SetMethod

func (r *GetAttachmentByIDLegacyRequest) SetMethod(method string)

func (*GetAttachmentByIDLegacyRequest) SetRequestBody

func (*GetAttachmentByIDLegacyRequest) URL

type GetAttachmentByIDLegacyRequestBody

type GetAttachmentByIDLegacyRequestBody struct {
	Request
}

func (GetAttachmentByIDLegacyRequestBody) Content

type GetAttachmentByIDLegacyRequestContent

type GetAttachmentByIDLegacyRequestContent struct {
	// Function struct {
	// 	ControlID               string   `xml:"controlid,attr"`
	// 	GetAttachmentByIDLegacy struct{} `xml:"getDimensions"`
	// } `xml:"function"`
	Function struct {
		ControlID string `xml:"controlid,attr"`

		Get struct {
			XMLName xml.Name `xml:"get"`
			Object  string   `xml:"object,attr"`
			Key     string   `xml:"key,attr"`
		} `xml:"get"`
	} `xml:"function"`
}

type GetAttachmentByIDLegacyResponseBody

type GetAttachmentByIDLegacyResponseBody struct {
	Response
}

type GetAttachmentFoldersPathParams

type GetAttachmentFoldersPathParams struct {
}

func (*GetAttachmentFoldersPathParams) Params

type GetAttachmentFoldersQueryParams

type GetAttachmentFoldersQueryParams struct{}

func (GetAttachmentFoldersQueryParams) ToURLValues

func (p GetAttachmentFoldersQueryParams) ToURLValues() (url.Values, error)

type GetAttachmentFoldersRequest

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

func (*GetAttachmentFoldersRequest) Do

func (*GetAttachmentFoldersRequest) Method

func (r *GetAttachmentFoldersRequest) Method() string

func (GetAttachmentFoldersRequest) NewContent

func (GetAttachmentFoldersRequest) NewPathParams

func (GetAttachmentFoldersRequest) NewQueryParams

func (*GetAttachmentFoldersRequest) NewRequestBody

func (*GetAttachmentFoldersRequest) NewResponseBody

func (*GetAttachmentFoldersRequest) PathParams

func (*GetAttachmentFoldersRequest) QueryParams

func (*GetAttachmentFoldersRequest) RequestBody

func (*GetAttachmentFoldersRequest) SetMethod

func (r *GetAttachmentFoldersRequest) SetMethod(method string)

func (*GetAttachmentFoldersRequest) SetRequestBody

func (*GetAttachmentFoldersRequest) URL

type GetAttachmentFoldersRequestBody

type GetAttachmentFoldersRequestBody struct {
	Request
}

func (GetAttachmentFoldersRequestBody) Content

type GetAttachmentFoldersRequestContent

type GetAttachmentFoldersRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		GetList   struct {
			Object string `xml:"object,attr"`
		} `xml:"get_list"`
	} `xml:"function"`
}

type GetAttachmentFoldersResponseBody

type GetAttachmentFoldersResponseBody struct {
	Response
}

type GetClassesPathParams

type GetClassesPathParams struct {
}

func (*GetClassesPathParams) Params

func (p *GetClassesPathParams) Params() map[string]string

type GetClassesQueryParams

type GetClassesQueryParams struct{}

func (GetClassesQueryParams) ToURLValues

func (p GetClassesQueryParams) ToURLValues() (url.Values, error)

type GetClassesRequest

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

func (*GetClassesRequest) Do

func (*GetClassesRequest) Method

func (r *GetClassesRequest) Method() string

func (GetClassesRequest) NewContent

func (GetClassesRequest) NewPathParams

func (r GetClassesRequest) NewPathParams() *GetClassesPathParams

func (GetClassesRequest) NewQueryParams

func (r GetClassesRequest) NewQueryParams() *GetClassesQueryParams

func (*GetClassesRequest) NewRequestBody

func (r *GetClassesRequest) NewRequestBody() GetClassesRequestBody

func (*GetClassesRequest) NewResponseBody

func (r *GetClassesRequest) NewResponseBody() *GetClassesResponseBody

func (*GetClassesRequest) PathParams

func (r *GetClassesRequest) PathParams() *GetClassesPathParams

func (*GetClassesRequest) QueryParams

func (r *GetClassesRequest) QueryParams() *GetClassesQueryParams

func (*GetClassesRequest) RequestBody

func (r *GetClassesRequest) RequestBody() *GetClassesRequestBody

func (*GetClassesRequest) SetMethod

func (r *GetClassesRequest) SetMethod(method string)

func (*GetClassesRequest) SetRequestBody

func (r *GetClassesRequest) SetRequestBody(body GetClassesRequestBody)

func (*GetClassesRequest) URL

func (r *GetClassesRequest) URL() url.URL

type GetClassesRequestBody

type GetClassesRequestBody struct {
	Request
}

func (GetClassesRequestBody) Content

type GetClassesRequestContent

type GetClassesRequestContent struct {
	Function struct {
		ControlID   string      `xml:"controlid,attr"`
		ReadByQuery ReadByQuery `xml:"readByQuery"`
	} `xml:"function"`
}

type GetClassesResponseBody

type GetClassesResponseBody struct {
	Response
}

type GetCustomerObjectDefinitionPathParams

type GetCustomerObjectDefinitionPathParams struct {
}

func (*GetCustomerObjectDefinitionPathParams) Params

type GetCustomerObjectDefinitionQueryParams

type GetCustomerObjectDefinitionQueryParams struct{}

func (GetCustomerObjectDefinitionQueryParams) ToURLValues

type GetCustomerObjectDefinitionRequest

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

func (*GetCustomerObjectDefinitionRequest) Do

func (*GetCustomerObjectDefinitionRequest) Method

func (GetCustomerObjectDefinitionRequest) NewContent

func (GetCustomerObjectDefinitionRequest) NewPathParams

func (GetCustomerObjectDefinitionRequest) NewQueryParams

func (*GetCustomerObjectDefinitionRequest) NewRequestBody

func (*GetCustomerObjectDefinitionRequest) NewResponseBody

func (*GetCustomerObjectDefinitionRequest) PathParams

func (*GetCustomerObjectDefinitionRequest) QueryParams

func (*GetCustomerObjectDefinitionRequest) RequestBody

func (*GetCustomerObjectDefinitionRequest) SetMethod

func (r *GetCustomerObjectDefinitionRequest) SetMethod(method string)

func (*GetCustomerObjectDefinitionRequest) SetRequestBody

func (*GetCustomerObjectDefinitionRequest) URL

type GetCustomerObjectDefinitionRequestBody

type GetCustomerObjectDefinitionRequestBody struct {
	Request
}

func (GetCustomerObjectDefinitionRequestBody) Content

type GetCustomerObjectDefinitionRequestContent

type GetCustomerObjectDefinitionRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Lookup    struct {
			Object string `xml:"object"`
		} `xml:"lookup"`
	} `xml:"function"`
}

type GetCustomerObjectDefinitionResponseBody

type GetCustomerObjectDefinitionResponseBody struct {
	Response
}

type GetCustomersPathParams

type GetCustomersPathParams struct {
}

func (*GetCustomersPathParams) Params

func (p *GetCustomersPathParams) Params() map[string]string

type GetCustomersQueryParams

type GetCustomersQueryParams struct{}

func (GetCustomersQueryParams) ToURLValues

func (p GetCustomersQueryParams) ToURLValues() (url.Values, error)

type GetCustomersRequest

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

func (*GetCustomersRequest) Do

func (*GetCustomersRequest) Method

func (r *GetCustomersRequest) Method() string

func (GetCustomersRequest) NewContent

func (GetCustomersRequest) NewPathParams

func (r GetCustomersRequest) NewPathParams() *GetCustomersPathParams

func (GetCustomersRequest) NewQueryParams

func (r GetCustomersRequest) NewQueryParams() *GetCustomersQueryParams

func (*GetCustomersRequest) NewRequestBody

func (r *GetCustomersRequest) NewRequestBody() GetCustomersRequestBody

func (*GetCustomersRequest) NewResponseBody

func (r *GetCustomersRequest) NewResponseBody() *GetCustomersResponseBody

func (*GetCustomersRequest) PathParams

func (*GetCustomersRequest) QueryParams

func (r *GetCustomersRequest) QueryParams() *GetCustomersQueryParams

func (*GetCustomersRequest) RequestBody

func (r *GetCustomersRequest) RequestBody() *GetCustomersRequestBody

func (*GetCustomersRequest) SetMethod

func (r *GetCustomersRequest) SetMethod(method string)

func (*GetCustomersRequest) SetRequestBody

func (r *GetCustomersRequest) SetRequestBody(body GetCustomersRequestBody)

func (*GetCustomersRequest) URL

func (r *GetCustomersRequest) URL() url.URL

type GetCustomersRequestBody

type GetCustomersRequestBody struct {
	Request
}

func (GetCustomersRequestBody) Content

type GetCustomersRequestContent

type GetCustomersRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Query     struct {
			Object  string  `xml:"object"`
			Select  Select  `xml:"select"`
			Filters Filters `xml:"filter"`
		} `xml:"query"`
	} `xml:"function"`
}

type GetCustomersResponseBody

type GetCustomersResponseBody struct {
	Response
}

type GetDepartmentsPathParams

type GetDepartmentsPathParams struct {
}

func (*GetDepartmentsPathParams) Params

func (p *GetDepartmentsPathParams) Params() map[string]string

type GetDepartmentsQueryParams

type GetDepartmentsQueryParams struct{}

func (GetDepartmentsQueryParams) ToURLValues

func (p GetDepartmentsQueryParams) ToURLValues() (url.Values, error)

type GetDepartmentsRequest

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

func (*GetDepartmentsRequest) Do

func (*GetDepartmentsRequest) Method

func (r *GetDepartmentsRequest) Method() string

func (GetDepartmentsRequest) NewContent

func (GetDepartmentsRequest) NewPathParams

func (GetDepartmentsRequest) NewQueryParams

func (*GetDepartmentsRequest) NewRequestBody

func (*GetDepartmentsRequest) NewResponseBody

func (r *GetDepartmentsRequest) NewResponseBody() *GetDepartmentsResponseBody

func (*GetDepartmentsRequest) PathParams

func (*GetDepartmentsRequest) QueryParams

func (*GetDepartmentsRequest) RequestBody

func (*GetDepartmentsRequest) SetMethod

func (r *GetDepartmentsRequest) SetMethod(method string)

func (*GetDepartmentsRequest) SetRequestBody

func (r *GetDepartmentsRequest) SetRequestBody(body GetDepartmentsRequestBody)

func (*GetDepartmentsRequest) URL

func (r *GetDepartmentsRequest) URL() url.URL

type GetDepartmentsRequestBody

type GetDepartmentsRequestBody struct {
	Request
}

func (GetDepartmentsRequestBody) Content

type GetDepartmentsRequestContent

type GetDepartmentsRequestContent struct {
	Function struct {
		ControlID   string      `xml:"controlid,attr"`
		ReadByQuery ReadByQuery `xml:"readByQuery"`
	} `xml:"function"`
}

type GetDepartmentsResponseBody

type GetDepartmentsResponseBody struct {
	Response
}

type GetDimensionsPathParams

type GetDimensionsPathParams struct {
}

func (*GetDimensionsPathParams) Params

func (p *GetDimensionsPathParams) Params() map[string]string

type GetDimensionsQueryParams

type GetDimensionsQueryParams struct{}

func (GetDimensionsQueryParams) ToURLValues

func (p GetDimensionsQueryParams) ToURLValues() (url.Values, error)

type GetDimensionsRequest

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

func (*GetDimensionsRequest) Do

func (*GetDimensionsRequest) Method

func (r *GetDimensionsRequest) Method() string

func (GetDimensionsRequest) NewContent

func (GetDimensionsRequest) NewPathParams

func (r GetDimensionsRequest) NewPathParams() *GetDimensionsPathParams

func (GetDimensionsRequest) NewQueryParams

func (r GetDimensionsRequest) NewQueryParams() *GetDimensionsQueryParams

func (*GetDimensionsRequest) NewRequestBody

func (r *GetDimensionsRequest) NewRequestBody() GetDimensionsRequestBody

func (*GetDimensionsRequest) NewResponseBody

func (r *GetDimensionsRequest) NewResponseBody() *GetDimensionsResponseBody

func (*GetDimensionsRequest) PathParams

func (*GetDimensionsRequest) QueryParams

func (*GetDimensionsRequest) RequestBody

func (*GetDimensionsRequest) SetMethod

func (r *GetDimensionsRequest) SetMethod(method string)

func (*GetDimensionsRequest) SetRequestBody

func (r *GetDimensionsRequest) SetRequestBody(body GetDimensionsRequestBody)

func (*GetDimensionsRequest) URL

func (r *GetDimensionsRequest) URL() url.URL

type GetDimensionsRequestBody

type GetDimensionsRequestBody struct {
	Request
}

func (GetDimensionsRequestBody) Content

type GetDimensionsRequestContent

type GetDimensionsRequestContent struct {
	Function struct {
		ControlID     string   `xml:"controlid,attr"`
		GetDimensions struct{} `xml:"getDimensions"`
	} `xml:"function"`
}

type GetDimensionsResponseBody

type GetDimensionsResponseBody struct {
	Response
}

type GetInvoiceItemObjectDefinitionPathParams

type GetInvoiceItemObjectDefinitionPathParams struct {
}

func (*GetInvoiceItemObjectDefinitionPathParams) Params

type GetInvoiceItemObjectDefinitionQueryParams

type GetInvoiceItemObjectDefinitionQueryParams struct{}

func (GetInvoiceItemObjectDefinitionQueryParams) ToURLValues

type GetInvoiceItemObjectDefinitionRequest

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

func (*GetInvoiceItemObjectDefinitionRequest) Do

func (*GetInvoiceItemObjectDefinitionRequest) Method

func (GetInvoiceItemObjectDefinitionRequest) NewContent

func (GetInvoiceItemObjectDefinitionRequest) NewPathParams

func (GetInvoiceItemObjectDefinitionRequest) NewQueryParams

func (*GetInvoiceItemObjectDefinitionRequest) NewRequestBody

func (*GetInvoiceItemObjectDefinitionRequest) NewResponseBody

func (*GetInvoiceItemObjectDefinitionRequest) PathParams

func (*GetInvoiceItemObjectDefinitionRequest) QueryParams

func (*GetInvoiceItemObjectDefinitionRequest) RequestBody

func (*GetInvoiceItemObjectDefinitionRequest) SetMethod

func (r *GetInvoiceItemObjectDefinitionRequest) SetMethod(method string)

func (*GetInvoiceItemObjectDefinitionRequest) SetRequestBody

func (*GetInvoiceItemObjectDefinitionRequest) URL

type GetInvoiceItemObjectDefinitionRequestBody

type GetInvoiceItemObjectDefinitionRequestBody struct {
	Request
}

func (GetInvoiceItemObjectDefinitionRequestBody) Content

type GetInvoiceItemObjectDefinitionRequestContent

type GetInvoiceItemObjectDefinitionRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Lookup    struct {
			Object string `xml:"object"`
		} `xml:"lookup"`
	} `xml:"function"`
}

type GetInvoiceItemObjectDefinitionResponseBody

type GetInvoiceItemObjectDefinitionResponseBody struct {
	Response
}

type GetInvoiceItemsPathParams

type GetInvoiceItemsPathParams struct {
}

func (*GetInvoiceItemsPathParams) Params

func (p *GetInvoiceItemsPathParams) Params() map[string]string

type GetInvoiceItemsQueryParams

type GetInvoiceItemsQueryParams struct{}

func (GetInvoiceItemsQueryParams) ToURLValues

func (p GetInvoiceItemsQueryParams) ToURLValues() (url.Values, error)

type GetInvoiceItemsRequest

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

func (*GetInvoiceItemsRequest) Do

func (*GetInvoiceItemsRequest) Method

func (r *GetInvoiceItemsRequest) Method() string

func (GetInvoiceItemsRequest) NewContent

func (GetInvoiceItemsRequest) NewPathParams

func (GetInvoiceItemsRequest) NewQueryParams

func (*GetInvoiceItemsRequest) NewRequestBody

func (*GetInvoiceItemsRequest) NewResponseBody

func (*GetInvoiceItemsRequest) PathParams

func (*GetInvoiceItemsRequest) QueryParams

func (*GetInvoiceItemsRequest) RequestBody

func (*GetInvoiceItemsRequest) SetMethod

func (r *GetInvoiceItemsRequest) SetMethod(method string)

func (*GetInvoiceItemsRequest) SetRequestBody

func (r *GetInvoiceItemsRequest) SetRequestBody(body GetInvoiceItemsRequestBody)

func (*GetInvoiceItemsRequest) URL

func (r *GetInvoiceItemsRequest) URL() url.URL

type GetInvoiceItemsRequestBody

type GetInvoiceItemsRequestBody struct {
	Request
}

func (GetInvoiceItemsRequestBody) Content

type GetInvoiceItemsRequestContent

type GetInvoiceItemsRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Query     struct {
			Object  string  `xml:"object"`
			Select  Select  `xml:"select"`
			Filters Filters `xml:"filter"`
		} `xml:"query"`
	} `xml:"function"`
}

type GetInvoiceItemsResponseBody

type GetInvoiceItemsResponseBody struct {
	Response
}

type GetInvoiceObjectDefinitionPathParams

type GetInvoiceObjectDefinitionPathParams struct {
}

func (*GetInvoiceObjectDefinitionPathParams) Params

type GetInvoiceObjectDefinitionQueryParams

type GetInvoiceObjectDefinitionQueryParams struct{}

func (GetInvoiceObjectDefinitionQueryParams) ToURLValues

type GetInvoiceObjectDefinitionRequest

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

func (*GetInvoiceObjectDefinitionRequest) Do

func (*GetInvoiceObjectDefinitionRequest) Method

func (GetInvoiceObjectDefinitionRequest) NewContent

func (GetInvoiceObjectDefinitionRequest) NewPathParams

func (GetInvoiceObjectDefinitionRequest) NewQueryParams

func (*GetInvoiceObjectDefinitionRequest) NewRequestBody

func (*GetInvoiceObjectDefinitionRequest) NewResponseBody

func (*GetInvoiceObjectDefinitionRequest) PathParams

func (*GetInvoiceObjectDefinitionRequest) QueryParams

func (*GetInvoiceObjectDefinitionRequest) RequestBody

func (*GetInvoiceObjectDefinitionRequest) SetMethod

func (r *GetInvoiceObjectDefinitionRequest) SetMethod(method string)

func (*GetInvoiceObjectDefinitionRequest) SetRequestBody

func (*GetInvoiceObjectDefinitionRequest) URL

type GetInvoiceObjectDefinitionRequestBody

type GetInvoiceObjectDefinitionRequestBody struct {
	Request
}

func (GetInvoiceObjectDefinitionRequestBody) Content

type GetInvoiceObjectDefinitionRequestContent

type GetInvoiceObjectDefinitionRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Lookup    struct {
			Object string `xml:"object"`
		} `xml:"lookup"`
	} `xml:"function"`
}

type GetInvoiceObjectDefinitionResponseBody

type GetInvoiceObjectDefinitionResponseBody struct {
	Response
}

type GetInvoicesPathParams

type GetInvoicesPathParams struct {
}

func (*GetInvoicesPathParams) Params

func (p *GetInvoicesPathParams) Params() map[string]string

type GetInvoicesQueryParams

type GetInvoicesQueryParams struct{}

func (GetInvoicesQueryParams) ToURLValues

func (p GetInvoicesQueryParams) ToURLValues() (url.Values, error)

type GetInvoicesRequest

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

func (*GetInvoicesRequest) Do

func (*GetInvoicesRequest) Method

func (r *GetInvoicesRequest) Method() string

func (GetInvoicesRequest) NewContent

func (GetInvoicesRequest) NewPathParams

func (r GetInvoicesRequest) NewPathParams() *GetInvoicesPathParams

func (GetInvoicesRequest) NewQueryParams

func (r GetInvoicesRequest) NewQueryParams() *GetInvoicesQueryParams

func (*GetInvoicesRequest) NewRequestBody

func (r *GetInvoicesRequest) NewRequestBody() GetInvoicesRequestBody

func (*GetInvoicesRequest) NewResponseBody

func (r *GetInvoicesRequest) NewResponseBody() *GetInvoicesResponseBody

func (*GetInvoicesRequest) PathParams

func (r *GetInvoicesRequest) PathParams() *GetInvoicesPathParams

func (*GetInvoicesRequest) QueryParams

func (r *GetInvoicesRequest) QueryParams() *GetInvoicesQueryParams

func (*GetInvoicesRequest) RequestBody

func (r *GetInvoicesRequest) RequestBody() *GetInvoicesRequestBody

func (*GetInvoicesRequest) SetMethod

func (r *GetInvoicesRequest) SetMethod(method string)

func (*GetInvoicesRequest) SetRequestBody

func (r *GetInvoicesRequest) SetRequestBody(body GetInvoicesRequestBody)

func (*GetInvoicesRequest) URL

func (r *GetInvoicesRequest) URL() url.URL

type GetInvoicesRequestBody

type GetInvoicesRequestBody struct {
	Request
}

func (GetInvoicesRequestBody) Content

type GetInvoicesRequestContent

type GetInvoicesRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Query     struct {
			Object  string  `xml:"object"`
			Select  Select  `xml:"select"`
			Filters Filters `xml:"filter"`
		} `xml:"query"`
	} `xml:"function"`
}

type GetInvoicesResponseBody

type GetInvoicesResponseBody struct {
	Response
}

type GetJournalEntriesPathParams

type GetJournalEntriesPathParams struct {
}

func (*GetJournalEntriesPathParams) Params

func (p *GetJournalEntriesPathParams) Params() map[string]string

type GetJournalEntriesQueryParams

type GetJournalEntriesQueryParams struct{}

func (GetJournalEntriesQueryParams) ToURLValues

func (p GetJournalEntriesQueryParams) ToURLValues() (url.Values, error)

type GetJournalEntriesRequest

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

func (*GetJournalEntriesRequest) Do

func (*GetJournalEntriesRequest) Method

func (r *GetJournalEntriesRequest) Method() string

func (GetJournalEntriesRequest) NewContent

func (GetJournalEntriesRequest) NewPathParams

func (GetJournalEntriesRequest) NewQueryParams

func (*GetJournalEntriesRequest) NewRequestBody

func (*GetJournalEntriesRequest) NewResponseBody

func (*GetJournalEntriesRequest) PathParams

func (*GetJournalEntriesRequest) QueryParams

func (*GetJournalEntriesRequest) RequestBody

func (*GetJournalEntriesRequest) SetMethod

func (r *GetJournalEntriesRequest) SetMethod(method string)

func (*GetJournalEntriesRequest) SetRequestBody

func (*GetJournalEntriesRequest) URL

func (r *GetJournalEntriesRequest) URL() url.URL

type GetJournalEntriesRequestBody

type GetJournalEntriesRequestBody struct {
	Request
}

func (GetJournalEntriesRequestBody) Content

type GetJournalEntriesRequestContent

type GetJournalEntriesRequestContent struct {
	Function struct {
		ControlID   string      `xml:"controlid,attr"`
		ReadByQuery ReadByQuery `xml:"readByQuery"`
	} `xml:"function"`
}

type GetJournalEntriesResponseBody

type GetJournalEntriesResponseBody struct {
	Response
}

type GetJournalEntryLineObjectDefinitionPathParams

type GetJournalEntryLineObjectDefinitionPathParams struct {
}

func (*GetJournalEntryLineObjectDefinitionPathParams) Params

type GetJournalEntryLineObjectDefinitionQueryParams

type GetJournalEntryLineObjectDefinitionQueryParams struct{}

func (GetJournalEntryLineObjectDefinitionQueryParams) ToURLValues

type GetJournalEntryLineObjectDefinitionRequest

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

func (*GetJournalEntryLineObjectDefinitionRequest) Do

func (*GetJournalEntryLineObjectDefinitionRequest) Method

func (GetJournalEntryLineObjectDefinitionRequest) NewContent

func (GetJournalEntryLineObjectDefinitionRequest) NewPathParams

func (GetJournalEntryLineObjectDefinitionRequest) NewQueryParams

func (*GetJournalEntryLineObjectDefinitionRequest) NewRequestBody

func (*GetJournalEntryLineObjectDefinitionRequest) NewResponseBody

func (*GetJournalEntryLineObjectDefinitionRequest) PathParams

func (*GetJournalEntryLineObjectDefinitionRequest) QueryParams

func (*GetJournalEntryLineObjectDefinitionRequest) RequestBody

func (*GetJournalEntryLineObjectDefinitionRequest) SetMethod

func (*GetJournalEntryLineObjectDefinitionRequest) SetRequestBody

func (*GetJournalEntryLineObjectDefinitionRequest) URL

type GetJournalEntryLineObjectDefinitionRequestBody

type GetJournalEntryLineObjectDefinitionRequestBody struct {
	Request
}

func (GetJournalEntryLineObjectDefinitionRequestBody) Content

type GetJournalEntryLineObjectDefinitionRequestContent

type GetJournalEntryLineObjectDefinitionRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Lookup    struct {
			Object string `xml:"object"`
		} `xml:"lookup"`
	} `xml:"function"`
}

type GetJournalEntryLineObjectDefinitionResponseBody

type GetJournalEntryLineObjectDefinitionResponseBody struct {
	Response
}

type GetJournalEntryLinesPathParams

type GetJournalEntryLinesPathParams struct {
}

func (*GetJournalEntryLinesPathParams) Params

type GetJournalEntryLinesQueryParams

type GetJournalEntryLinesQueryParams struct{}

func (GetJournalEntryLinesQueryParams) ToURLValues

func (p GetJournalEntryLinesQueryParams) ToURLValues() (url.Values, error)

type GetJournalEntryLinesRequest

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

func (*GetJournalEntryLinesRequest) Do

func (*GetJournalEntryLinesRequest) Method

func (r *GetJournalEntryLinesRequest) Method() string

func (GetJournalEntryLinesRequest) NewContent

func (GetJournalEntryLinesRequest) NewPathParams

func (GetJournalEntryLinesRequest) NewQueryParams

func (*GetJournalEntryLinesRequest) NewRequestBody

func (*GetJournalEntryLinesRequest) NewResponseBody

func (*GetJournalEntryLinesRequest) PathParams

func (*GetJournalEntryLinesRequest) QueryParams

func (*GetJournalEntryLinesRequest) RequestBody

func (*GetJournalEntryLinesRequest) SetMethod

func (r *GetJournalEntryLinesRequest) SetMethod(method string)

func (*GetJournalEntryLinesRequest) SetRequestBody

func (*GetJournalEntryLinesRequest) URL

type GetJournalEntryLinesRequestBody

type GetJournalEntryLinesRequestBody struct {
	Request
}

func (GetJournalEntryLinesRequestBody) Content

type GetJournalEntryLinesRequestContent

type GetJournalEntryLinesRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Query     struct {
			Object  string  `xml:"object"`
			Select  Select  `xml:"select"`
			Filters Filters `xml:"filter"`
		} `xml:"query"`
	} `xml:"function"`
}

type GetJournalEntryLinesResponseBody

type GetJournalEntryLinesResponseBody struct {
	Response
}

type GetLocationsPathParams

type GetLocationsPathParams struct {
}

func (*GetLocationsPathParams) Params

func (p *GetLocationsPathParams) Params() map[string]string

type GetLocationsQueryParams

type GetLocationsQueryParams struct{}

func (GetLocationsQueryParams) ToURLValues

func (p GetLocationsQueryParams) ToURLValues() (url.Values, error)

type GetLocationsRequest

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

func (*GetLocationsRequest) Do

func (*GetLocationsRequest) Method

func (r *GetLocationsRequest) Method() string

func (GetLocationsRequest) NewContent

func (GetLocationsRequest) NewPathParams

func (r GetLocationsRequest) NewPathParams() *GetLocationsPathParams

func (GetLocationsRequest) NewQueryParams

func (r GetLocationsRequest) NewQueryParams() *GetLocationsQueryParams

func (*GetLocationsRequest) NewRequestBody

func (r *GetLocationsRequest) NewRequestBody() GetLocationsRequestBody

func (*GetLocationsRequest) NewResponseBody

func (r *GetLocationsRequest) NewResponseBody() *GetLocationsResponseBody

func (*GetLocationsRequest) PathParams

func (*GetLocationsRequest) QueryParams

func (r *GetLocationsRequest) QueryParams() *GetLocationsQueryParams

func (*GetLocationsRequest) RequestBody

func (r *GetLocationsRequest) RequestBody() *GetLocationsRequestBody

func (*GetLocationsRequest) SetMethod

func (r *GetLocationsRequest) SetMethod(method string)

func (*GetLocationsRequest) SetRequestBody

func (r *GetLocationsRequest) SetRequestBody(body GetLocationsRequestBody)

func (*GetLocationsRequest) URL

func (r *GetLocationsRequest) URL() url.URL

type GetLocationsRequestBody

type GetLocationsRequestBody struct {
	Request
}

func (GetLocationsRequestBody) Content

type GetLocationsRequestContent

type GetLocationsRequestContent struct {
	Function struct {
		ControlID   string      `xml:"controlid,attr"`
		ReadByQuery ReadByQuery `xml:"readByQuery"`
	} `xml:"function"`
}

type GetLocationsResponseBody

type GetLocationsResponseBody struct {
	Response
}

type GetObjectsPathParams

type GetObjectsPathParams struct {
}

func (*GetObjectsPathParams) Params

func (p *GetObjectsPathParams) Params() map[string]string

type GetObjectsQueryParams

type GetObjectsQueryParams struct{}

func (GetObjectsQueryParams) ToURLValues

func (p GetObjectsQueryParams) ToURLValues() (url.Values, error)

type GetObjectsRequest

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

func (*GetObjectsRequest) Do

func (*GetObjectsRequest) Method

func (r *GetObjectsRequest) Method() string

func (GetObjectsRequest) NewContent

func (GetObjectsRequest) NewPathParams

func (r GetObjectsRequest) NewPathParams() *GetObjectsPathParams

func (GetObjectsRequest) NewQueryParams

func (r GetObjectsRequest) NewQueryParams() *GetObjectsQueryParams

func (*GetObjectsRequest) NewRequestBody

func (r *GetObjectsRequest) NewRequestBody() GetObjectsRequestBody

func (*GetObjectsRequest) NewResponseBody

func (r *GetObjectsRequest) NewResponseBody() *GetObjectsResponseBody

func (*GetObjectsRequest) PathParams

func (r *GetObjectsRequest) PathParams() *GetObjectsPathParams

func (*GetObjectsRequest) QueryParams

func (r *GetObjectsRequest) QueryParams() *GetObjectsQueryParams

func (*GetObjectsRequest) RequestBody

func (r *GetObjectsRequest) RequestBody() *GetObjectsRequestBody

func (*GetObjectsRequest) SetMethod

func (r *GetObjectsRequest) SetMethod(method string)

func (*GetObjectsRequest) SetRequestBody

func (r *GetObjectsRequest) SetRequestBody(body GetObjectsRequestBody)

func (*GetObjectsRequest) URL

func (r *GetObjectsRequest) URL() url.URL

type GetObjectsRequestBody

type GetObjectsRequestBody struct {
	Request
}

func (GetObjectsRequestBody) Content

type GetObjectsRequestContent

type GetObjectsRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Inspect   struct {
			Object string `xml:"object"`
		} `xml:"inspect"`
	} `xml:"function"`
}

type GetObjectsResponseBody

type GetObjectsResponseBody struct {
	Response
}

type GetProjectsPathParams

type GetProjectsPathParams struct {
}

func (*GetProjectsPathParams) Params

func (p *GetProjectsPathParams) Params() map[string]string

type GetProjectsQueryParams

type GetProjectsQueryParams struct{}

func (GetProjectsQueryParams) ToURLValues

func (p GetProjectsQueryParams) ToURLValues() (url.Values, error)

type GetProjectsRequest

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

func (*GetProjectsRequest) Do

func (*GetProjectsRequest) Method

func (r *GetProjectsRequest) Method() string

func (GetProjectsRequest) NewContent

func (GetProjectsRequest) NewPathParams

func (r GetProjectsRequest) NewPathParams() *GetProjectsPathParams

func (GetProjectsRequest) NewQueryParams

func (r GetProjectsRequest) NewQueryParams() *GetProjectsQueryParams

func (*GetProjectsRequest) NewRequestBody

func (r *GetProjectsRequest) NewRequestBody() GetProjectsRequestBody

func (*GetProjectsRequest) NewResponseBody

func (r *GetProjectsRequest) NewResponseBody() *GetProjectsResponseBody

func (*GetProjectsRequest) PathParams

func (r *GetProjectsRequest) PathParams() *GetProjectsPathParams

func (*GetProjectsRequest) QueryParams

func (r *GetProjectsRequest) QueryParams() *GetProjectsQueryParams

func (*GetProjectsRequest) RequestBody

func (r *GetProjectsRequest) RequestBody() *GetProjectsRequestBody

func (*GetProjectsRequest) SetMethod

func (r *GetProjectsRequest) SetMethod(method string)

func (*GetProjectsRequest) SetRequestBody

func (r *GetProjectsRequest) SetRequestBody(body GetProjectsRequestBody)

func (*GetProjectsRequest) URL

func (r *GetProjectsRequest) URL() url.URL

type GetProjectsRequestBody

type GetProjectsRequestBody struct {
	Request
}

func (GetProjectsRequestBody) Content

type GetProjectsRequestContent

type GetProjectsRequestContent struct {
	Function struct {
		ControlID   string      `xml:"controlid,attr"`
		ReadByQuery ReadByQuery `xml:"readByQuery"`
	} `xml:"function"`
}

type GetProjectsResponseBody

type GetProjectsResponseBody struct {
	Response
}

type GetTaxDetailObjectDefinitionPathParams

type GetTaxDetailObjectDefinitionPathParams struct {
}

func (*GetTaxDetailObjectDefinitionPathParams) Params

type GetTaxDetailObjectDefinitionQueryParams

type GetTaxDetailObjectDefinitionQueryParams struct{}

func (GetTaxDetailObjectDefinitionQueryParams) ToURLValues

type GetTaxDetailObjectDefinitionRequest

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

func (*GetTaxDetailObjectDefinitionRequest) Do

func (*GetTaxDetailObjectDefinitionRequest) Method

func (GetTaxDetailObjectDefinitionRequest) NewContent

func (GetTaxDetailObjectDefinitionRequest) NewPathParams

func (GetTaxDetailObjectDefinitionRequest) NewQueryParams

func (*GetTaxDetailObjectDefinitionRequest) NewRequestBody

func (*GetTaxDetailObjectDefinitionRequest) NewResponseBody

func (*GetTaxDetailObjectDefinitionRequest) PathParams

func (*GetTaxDetailObjectDefinitionRequest) QueryParams

func (*GetTaxDetailObjectDefinitionRequest) RequestBody

func (*GetTaxDetailObjectDefinitionRequest) SetMethod

func (r *GetTaxDetailObjectDefinitionRequest) SetMethod(method string)

func (*GetTaxDetailObjectDefinitionRequest) SetRequestBody

func (*GetTaxDetailObjectDefinitionRequest) URL

type GetTaxDetailObjectDefinitionRequestBody

type GetTaxDetailObjectDefinitionRequestBody struct {
	Request
}

func (GetTaxDetailObjectDefinitionRequestBody) Content

type GetTaxDetailObjectDefinitionRequestContent

type GetTaxDetailObjectDefinitionRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Lookup    struct {
			Object string `xml:"object"`
		} `xml:"lookup"`
	} `xml:"function"`
}

type GetTaxDetailObjectDefinitionResponseBody

type GetTaxDetailObjectDefinitionResponseBody struct {
	Response
}

type GetTaxDetailsPathParams

type GetTaxDetailsPathParams struct {
}

func (*GetTaxDetailsPathParams) Params

func (p *GetTaxDetailsPathParams) Params() map[string]string

type GetTaxDetailsQueryParams

type GetTaxDetailsQueryParams struct{}

func (GetTaxDetailsQueryParams) ToURLValues

func (p GetTaxDetailsQueryParams) ToURLValues() (url.Values, error)

type GetTaxDetailsRequest

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

func (*GetTaxDetailsRequest) Do

func (*GetTaxDetailsRequest) Method

func (r *GetTaxDetailsRequest) Method() string

func (GetTaxDetailsRequest) NewContent

func (GetTaxDetailsRequest) NewPathParams

func (r GetTaxDetailsRequest) NewPathParams() *GetTaxDetailsPathParams

func (GetTaxDetailsRequest) NewQueryParams

func (r GetTaxDetailsRequest) NewQueryParams() *GetTaxDetailsQueryParams

func (*GetTaxDetailsRequest) NewRequestBody

func (r *GetTaxDetailsRequest) NewRequestBody() GetTaxDetailsRequestBody

func (*GetTaxDetailsRequest) NewResponseBody

func (r *GetTaxDetailsRequest) NewResponseBody() *GetTaxDetailsResponseBody

func (*GetTaxDetailsRequest) PathParams

func (*GetTaxDetailsRequest) QueryParams

func (*GetTaxDetailsRequest) RequestBody

func (*GetTaxDetailsRequest) SetMethod

func (r *GetTaxDetailsRequest) SetMethod(method string)

func (*GetTaxDetailsRequest) SetRequestBody

func (r *GetTaxDetailsRequest) SetRequestBody(body GetTaxDetailsRequestBody)

func (*GetTaxDetailsRequest) URL

func (r *GetTaxDetailsRequest) URL() url.URL

type GetTaxDetailsRequestBody

type GetTaxDetailsRequestBody struct {
	Request
}

func (GetTaxDetailsRequestBody) Content

type GetTaxDetailsRequestContent

type GetTaxDetailsRequestContent struct {
	Function struct {
		ControlID string `xml:"controlid,attr"`
		Query     struct {
			Object  string  `xml:"object"`
			Select  Select  `xml:"select"`
			Filters Filters `xml:"filter,omitempty"`
		} `xml:"query"`
	} `xml:"function"`
}

type GetTaxDetailsResponseBody

type GetTaxDetailsResponseBody struct {
	Response
}

type GreaterThan

type GreaterThan struct {
	Field string `xml:"field"`
	Value string `xml:"value"`
}

func (GreaterThan) IsFilter

func (gt GreaterThan) IsFilter() bool

func (GreaterThan) MarshalXML

func (gt GreaterThan) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type Invoice

type Invoice struct {
	RecordNo                   string `xml:"RECORDNO,omitempty"`
	RecordType                 string `xml:"RECORDTYPE,omitempty"`
	RecordID                   string `xml:"RECORDID,omitempty"`
	ContactTaxGroup            string `xml:"CONTACTTAXGROUP,omitempty"`
	State                      string `xml:"STATE,omitempty"`
	RawStState                 string `xml:"RAWSTATE,omitempty"`
	CustomerID                 string `xml:"CUSTOMERID,omitempty"`
	CustomerName               string `xml:"CUSTOMERNAME,omitempty"`
	CustEmailOption            string `xml:"CUSTEMAILOPTIN,omitempty"`
	TrxEntityDue               string `xml:"TRX_ENTITYDUE,omitempty"`
	CustMessageID              string `xml:"CUSTMESSAGEID,omitempty"`
	CustMessageMessage         string `xml:"CUSTMESSAGE.MESSAGE,omitempty"`
	DeliveryOptions            string `xml:"DELIVERY_OPTIONS,omitempty"`
	DocNumber                  string `xml:"DOCNUMBER,omitempty"`
	Description                string `xml:"DESCRIPTION,omitempty"`
	Description2               string `xml:"DESCRIPTION2,omitempty"`
	TermName                   string `xml:"TERMNAME,omitempty"`
	TermKey                    string `xml:"TERMKEY,omitempty"`
	TermValue                  string `xml:"TERMVALUE,omitempty"`
	WhenCreated                string `xml:"WHENCREATED,omitempty"`
	WhenPosted                 string `xml:"WHENPOSTED,omitempty"`
	WhenDiscount               string `xml:"WHENDISCOUNT,omitempty"`
	WhenDue                    string `xml:"WHENDUE,omitempty"`
	WhenPaid                   string `xml:"WHENPAID,omitempty"`
	BaseCurr                   string `xml:"BASECURR,omitempty"`
	Currency                   string `xml:"CURRENCY,omitempty"`
	ExchRateDate               string `xml:"EXCH_RATE_DATE,omitempty"`
	ExchRateTypeID             string `xml:"EXCH_RATE_TYPE_ID,omitempty"`
	ExchangeRate               string `xml:"EXCHANGE_RATE,omitempty"`
	TotalEntered               string `xml:"TOTALENTERED,omitempty"`
	TotalSelected              string `xml:"TOTALSELECTED,omitempty"`
	TotalPaid                  string `xml:"TOTALPAID,omitempty"`
	TotalDue                   string `xml:"TOTALDUE,omitempty"`
	TrxTotalEntered            string `xml:"TRX_TOTALENTERED,omitempty"`
	TrxTotalSelected           string `xml:"TRX_TOTALSELECTED,omitempty"`
	TrxTotalPaid               string `xml:"TRX_TOTALPAID,omitempty"`
	TrxTotalDue                string `xml:"TRX_TOTALDUE,omitempty"`
	BillToPayToContactName     string `xml:"BILLTOPAYTOCONTACTNAME,omitempty"`
	ShipToReturnToContactName  string `xml:"SHIPTORETURNTOCONTACTNAME,omitempty"`
	BillToPayToKey             string `xml:"BILLTOPAYTOKEY,omitempty"`
	ShopToReturnToKey          string `xml:"SHIPTORETURNTOKEY,omitempty"`
	ContactContactName         string `xml:"CONTACT.CONTACTNAME,omitempty"`
	ContactPrefix              string `xml:"CONTACT.PREFIX,omitempty"`
	ContactFirstName           string `xml:"CONTACT.FIRSTNAME,omitempty"`
	ContactInitial             string `xml:"CONTACT.INITIAL,omitempty"`
	ContactLastName            string `xml:"CONTACT.LASTNAME,omitempty"`
	ContactCompanyName         string `xml:"CONTACT.COMPANYNAME,omitempty"`
	ContactPrintAs             string `xml:"CONTACT.PRINTAS,omitempty"`
	ContactPhone1              string `xml:"CONTACT.PHONE1,omitempty"`
	ContactPhone2              string `xml:"CONTACT.PHONE2,omitempty"`
	ContactCellphone           string `xml:"CONTACT.CELLPHONE,omitempty"`
	ContactPager               string `xml:"CONTACT.PAGER,omitempty"`
	ContactFax                 string `xml:"CONTACT.FAX,omitempty"`
	ContactEmail1              string `xml:"CONTACT.EMAIL1,omitempty"`
	ContactEmail2              string `xml:"CONTACT.EMAIL2,omitempty"`
	ContactURL1                string `xml:"CONTACT.URL1,omitempty"`
	ContactURL2                string `xml:"CONTACT.URL2,omitempty"`
	ContactVissible            string `xml:"CONTACT.VISIBLE,omitempty"`
	ContactMailAddressAddress1 string `xml:"CONTACT.MAILADDRESS.ADDRESS1,omitempty"`
	ContactMailAddressAddress2 string `xml:"CONTACT.MAILADDRESS.ADDRESS2,omitempty"`

	ContactMailAddressState       string       `xml:"CONTACT.MAILADDRESS.STATE,omitempty"`
	ContactMailAddressZip         string       `xml:"CONTACT.MAILADDRESS.ZIP,omitempty"`
	ContactMailAddressCountry     string       `xml:"CONTACT.MAILADDRESS.COUNTRY,omitempty"`
	ContactMailAddressCountryCode string       `xml:"CONTACT.MAILADDRESS.COUNTRYCODE,omitempty"`
	ShipToContactName             string       `xml:"SHIPTO.CONTACTNAME,omitempty"`
	ShipToPrefix                  string       `xml:"SHIPTO.PREFIX,omitempty"`
	ShipToFirstName               string       `xml:"SHIPTO.FIRSTNAME,omitempty"`
	ShipToInitial                 string       `xml:"SHIPTO.INITIAL,omitempty"`
	ShipToLastName                string       `xml:"SHIPTO.LASTNAME,omitempty"`
	ShipToCompanyName             string       `xml:"SHIPTO.COMPANYNAME,omitempty"`
	ShipToPrintAs                 string       `xml:"SHIPTO.PRINTAS,omitempty"`
	ShipToPhone1                  string       `xml:"SHIPTO.PHONE1,omitempty"`
	ShipToPhone2                  string       `xml:"SHIPTO.PHONE2,omitempty"`
	ShipToCellphone               string       `xml:"SHIPTO.CELLPHONE,omitempty"`
	ShipToPager                   string       `xml:"SHIPTO.PAGER,omitempty"`
	ShipToFax                     string       `xml:"SHIPTO.FAX,omitempty"`
	ShipToEmail1                  string       `xml:"SHIPTO.EMAIL1,omitempty"`
	ShipToEmail2                  string       `xml:"SHIPTO.EMAIL2,omitempty"`
	ShipToURL1                    string       `xml:"SHIPTO.URL1,omitempty"`
	ShipToURL2                    string       `xml:"SHIPTO.URL2,omitempty"`
	ShipToVisible                 string       `xml:"SHIPTO.VISIBLE,omitempty"`
	ShipToMailAddressAddress1     string       `xml:"SHIPTO.MAILADDRESS.ADDRESS1,omitempty"`
	ShipToMailAddressAddress2     string       `xml:"SHIPTO.MAILADDRESS.ADDRESS2,omitempty"`
	ShipToMailAddressCity         string       `xml:"SHIPTO.MAILADDRESS.CITY,omitempty"`
	ShipToMailAddressState        string       `xml:"SHIPTO.MAILADDRESS.STATE,omitempty"`
	ShipToMailAddressZip          string       `xml:"SHIPTO.MAILADDRESS.ZIP,omitempty"`
	ShipToMailAddressCountry      string       `xml:"SHIPTO.MAILADDRESS.COUNTRY,omitempty"`
	ShipToMailAddressCountryCode  string       `xml:"SHIPTO.MAILADDRESS.COUNTRYCODE,omitempty"`
	BillToContactName             string       `xml:"BILLTO.CONTACTNAME,omitempty"`
	BillToPrefix                  string       `xml:"BILLTO.PREFIX,omitempty"`
	BillToFirstName               string       `xml:"BILLTO.FIRSTNAME,omitempty"`
	BillToInitial                 string       `xml:"BILLTO.INITIAL,omitempty"`
	BillToLastName                string       `xml:"BILLTO.LASTNAME,omitempty"`
	BillToCompanyName             string       `xml:"BILLTO.COMPANYNAME,omitempty"`
	BillToPrintAs                 string       `xml:"BILLTO.PRINTAS,omitempty"`
	BillToPhone1                  string       `xml:"BILLTO.PHONE1,omitempty"`
	BillToPhone2                  string       `xml:"BILLTO.PHONE2,omitempty"`
	BillToCellphone               string       `xml:"BILLTO.CELLPHONE,omitempty"`
	BillToPager                   string       `xml:"BILLTO.PAGER,omitempty"`
	BillToFax                     string       `xml:"BILLTO.FAX,omitempty"`
	BillToEmail1                  string       `xml:"BILLTO.EMAIL1,omitempty"`
	BillToEmail2                  string       `xml:"BILLTO.EMAIL2,omitempty"`
	BillToURL1                    string       `xml:"BILLTO.URL1,omitempty"`
	BillToURL2                    string       `xml:"BILLTO.URL2,omitempty"`
	BillToVisible                 string       `xml:"BILLTO.VISIBLE,omitempty"`
	BillToMailAddressAddress1     string       `xml:"BILLTO.MAILADDRESS.ADDRESS1,omitempty"`
	BillToMailAddressAddress2     string       `xml:"BILLTO.MAILADDRESS.ADDRESS2,omitempty"`
	BillToMailAddressCity         string       `xml:"BILLTO.MAILADDRESS.CITY,omitempty"`
	BillToMailAddressState        string       `xml:"BILLTO.MAILADDRESS.STATE,omitempty"`
	BillToMailAddressZip          string       `xml:"BILLTO.MAILADDRESS.ZIP,omitempty"`
	BillToMailAddressCountry      string       `xml:"BILLTO.MAILADDRESS.COUNTRY,omitempty"`
	BillToMailAddressCountryCode  string       `xml:"BILLTO.MAILADDRESS.COUNTRYCODE,omitempty"`
	PRBatch                       string       `xml:"PRBATCH,omitempty"`
	PRBatchKey                    string       `xml:"PRBATCHKEY,omitempty"`
	ModuleKey                     string       `xml:"MODULEKEY,omitempty"`
	SchopKye                      string       `xml:"SCHOPKEY,omitempty"`
	SystemGenerated               string       `xml:"SYSTEMGENERATED,omitempty"`
	HasPostedRevRec               string       `xml:"HASPOSTEDREVREC,omitempty"`
	BillBackTemplateKey           string       `xml:"BILLBACKTEMPLATEKEY,omitempty"`
	AUWhenCreated                 string       `xml:"AUWHENCREATED,omitempty"`
	WhenModified                  string       `xml:"WHENMODIFIED,omitempty"`
	CreatedBy                     string       `xml:"CREATEDBY,omitempty"`
	ModifiedBy                    string       `xml:"MODIFIEDBY,omitempty"`
	DueInDays                     string       `xml:"DUE_IN_DAYS,omitempty"`
	ShopToTaxGroupName            string       `xml:"SHIPTO.TAXGROUP.NAME,omitempty"`
	ShipToTaxGroupRecordNo        string       `xml:"SHIPTO.TAXGROUP.RECORDNO,omitempty"`
	ShipToTaxID                   string       `xml:"SHIPTO.TAXID,omitempty"`
	TaxSolutionID                 string       `xml:"TAXSOLUTIONID,omitempty"`
	RetainagePercentage           string       `xml:"RETAINAGEPERCENTAGE,omitempty"`
	TrxTotalRetained              string       `xml:"TRX_TOTALRETAINED,omitempty"`
	TrxTotalReleased              string       `xml:"TRX_TOTALRELEASED,omitempty"`
	TotalRetained                 string       `xml:"TOTALRETAINED,omitempty"`
	SupDocID                      string       `xml:"SUPDOCID,omitempty"`
	ProjectContractKey            string       `xml:"PROJECTCONTRACTKEY,omitempty"`
	ProjectContractID             string       `xml:"PROJECTCONTRACTID,omitempty"`
	DunningCount                  string       `xml:"DUNNINGCOUNT,omitempty"`
	MegaEntityKey                 string       `xml:"MEGAENTITYKEY,omitempty"`
	MegaEntityID                  string       `xml:"MEGAENTITYID,omitempty"`
	MegaEntityName                string       `xml:"MEGAENTITYNAME,omitempty"`
	RecordURL                     string       `xml:"RECORD_URL,omitempty"`
	InvoiceItems                  InvoiceItems `xml:"INVOICEITEM>LINEITEM"`
	// contains filtered or unexported fields
}

type InvoiceItem

type InvoiceItem struct {
	RecordNo                   string `xml:"RECORDNO,omitempty"`
	RecordKey                  string `xml:"RECORDKEY,omitempty"`
	AccountKey                 string `xml:"ACCOUNTKEY,omitempty"`
	AccountNo                  string `xml:"ACCOUNTNO,omitempty"`
	OffsetAccountKey           string `xml:"OFFSETACCOUNTKEY,omitempty"`
	OffsetGLAccountNo          string `xml:"OFFSETGLACCOUNTNO,omitempty"`
	OffsetGLAccountTitle       string `xml:"OFFSETGLACCOUNTTITLE,omitempty"`
	AccountTitle               string `xml:"ACCOUNTTITLE,omitempty"`
	AccountLabelKey            string `xml:"ACCOUNTLABELKEY,omitempty"`
	AccountLabel               string `xml:"ACCOUNTLABEL,omitempty"`
	EntryDate                  string `xml:"ENTRY_DATE,omitempty"`
	Amount                     Number `xml:"AMOUNT,omitempty"`
	TrxAmount                  Number `xml:"TRX_AMOUNT,omitempty"`
	DepartmentID               string `xml:"DEPARTMENTID,omitempty"`
	DepartmentName             string `xml:"DEPARTMENTNAME,omitempty"`
	LocationID                 string `xml:"LOCATIONID,omitempty"`
	LocationName               string `xml:"LOCATIONNAME,omitempty"`
	EntryDescription           string `xml:"ENTRYDESCRIPTION,omitempty"`
	ExchRateDate               string `xml:"EXCH_RATE_DATE,omitempty"`
	ExchRateTypeID             string `xml:"EXCH_RATE_TYPE_ID,omitempty"`
	ExchangeRate               string `xml:"EXCHANGE_RATE,omitempty"`
	AllocationKey              string `xml:"ALLOCATIONKEY,omitempty"`
	Allocation                 string `xml:"ALLOCATION,omitempty"`
	LineItem                   string `xml:"LINEITEM,omitempty"`
	LineNo                     string `xml:"LINE_NO,omitempty"`
	Currency                   string `xml:"CURRENCY,omitempty"`
	BaseCurr                   string `xml:"BASECURR,omitempty"`
	TotalPaid                  string `xml:"TOTALPAID,omitempty"`
	TrxTotalPaid               string `xml:"TRX_TOTALPAID,omitempty"`
	TotalSelected              string `xml:"TOTALSELECTED,omitempty"`
	TrxTotalSelected           string `xml:"TRX_TOTALSELECTED,omitempty"`
	Subtotal                   string `xml:"SUBTOTAL,omitempty"`
	ParentEntry                string `xml:"PARENTENTRY,omitempty"`
	DeferredRevenue            string `xml:"DEFERREVENUE,omitempty"`
	RevRecTemplateKey          string `xml:"REVRECTEMPLATEKEY,omitempty"`
	RevRecTemplate             string `xml:"REVRECTEMPLATE,omitempty"`
	DeferredRevAcctKey         string `xml:"DEFERREDREVACCTKEY,omitempty"`
	DeferredRevActNo           string `xml:"DEFERREDREVACCTNO,omitempty"`
	DeferredRevActTitle        string `xml:"DEFERREDREVACCTTITLE,omitempty"`
	RevRecStartDate            string `xml:"REVRECSTARTDATE,omitempty"`
	RevRecEndDate              string `xml:"REVRECENDDATE,omitempty"`
	BaseLocation               string `xml:"BASELOCATION,omitempty"`
	State                      string `xml:"STATE,omitempty"`
	RecordType                 string `xml:"RECORDTYPE,omitempty"`
	DetailKey                  string `xml:"DETAILKEY,omitempty"`
	WhenCreated                string `xml:"WHENCREATED,omitempty"`
	WhenModified               string `xml:"WHENMODIFIED,omitempty"`
	CreatedBy                  string `xml:"CREATEDBY,omitempty"`
	ModifiedBy                 string `xml:"MODIFIEDBY,omitempty"`
	RetainagePercentage        string `xml:"RETAINAGEPERCENTAGE,omitempty"`
	TrxAmountRetained          string `xml:"TRX_AMOUNTRETAINED,omitempty"`
	AmountRetained             string `xml:"AMOUNTRETAINED,omitempty"`
	TrxAmountReleased          string `xml:"TRX_AMOUNTRELEASED,omitempty"`
	RetainageOffsetGLAccountNo string `xml:"RETAINAGE_OFFSETGLACCOUNTNO,omitempty"`
	ProjectContractID          string `xml:"PROJECTCONTRACTID,omitempty"`
	ProjectContractKey         string `xml:"PROJECTCONTRACTKEY,omitempty"`
	ProjectContractLineID      string `xml:"PROJECTCONTRACTLINEID,omitempty"`
	ProjectContractLineKey     string `xml:"PROJECTCONTRACTLINEKEY,omitempty"`
	ProjectDimKey              string `xml:"PROJECTDIMKEY,omitempty"`
	ProjectID                  string `xml:"PROJECTID,omitempty"`
	ProjectName                string `xml:"PROJECTNAME,omitempty"`
	CustomerDimKey             string `xml:"CUSTOMERDIMKEY,omitempty"`
	CustomerID                 string `xml:"CUSTOMERID,omitempty"`
	CustomerName               string `xml:"CUSTOMERNAME,omitempty"`
	VendorDimKey               string `xml:"VENDORDIMKEY,omitempty"`
	VendorID                   string `xml:"VENDORID,omitempty"`
	VendorName                 string `xml:"VENDORNAME,omitempty"`
	EmployeeDimKey             string `xml:"EMPLOYEEDIMKEY,omitempty"`
	EmployeeID                 string `xml:"EMPLOYEEID,omitempty"`
	EmployeeName               string `xml:"EMPLOYEENAME,omitempty"`
	ItemDimKey                 string `xml:"ITEMDIMKEY,omitempty"`
	ItemID                     string `xml:"ITEMID,omitempty"`
	ItemName                   string `xml:"ITEMNAME,omitempty"`
	ClassDimKey                string `xml:"CLASSDIMKEY,omitempty"`
	ClassID                    string `xml:"CLASSID,omitempty"`
	ClassName                  string `xml:"CLASSNAME,omitempty"`
	RecordURL                  string `xml:"RECORD_URL,omitempty"`
}

type InvoiceItems

type InvoiceItems []InvoiceItem

type InvoiceLineItem

type InvoiceLineItem struct {
	GLAccountNo       string `xml:"glaccountno,omitempty"`
	AccountLabel      string `xml:"accountlabel,omitempty"`
	OffsetGLAccountNo string `xml:"offsetglaccountno,omitempty"`
	Amount            Number `xml:"amount"`
	Memo              string `xml:"memo,omitempty"`
	LocationID        string `xml:"locationid,omitempty"`
	DepartmentID      string `xml:"departmentid,omitempty"`
	Key               string `xml:"key,omitempty"`
	TotalPaid         string `xml:"totalpaid,omitempty"`
	TotalDue          string `xml:"totaldue,omitempty"`
	// CustomFields      struct {
	// 	CustomField struct {
	// 		CustomFieldName  string `xml:"customfieldname,omitempty"`
	// 		CustomFieldValue string `xml:"customfieldvalue,omitempty"`
	// 	} `xml:"customfield,omitempty"`
	// } `xml:"customfields,omitempty"`
	// RevRecTemplate  string `xml:"revrectemplate,omitempty"`
	// DefRevAccount   string `xml:"defrevaccount,omitempty"`
	// RevRecStartDate struct {
	// 	Year  string `xml:"year,omitempty"`
	// 	Month string `xml:"month,omitempty"`
	// 	Day   string `xml:"day,omitempty"`
	// } `xml:"revrecstartdate,omitempty"`
	// RevRecEndDate struct {
	// 	Year  string `xml:"year,omitempty"`
	// 	Month string `xml:"month,omitempty"`
	// 	Day   string `xml:"day,omitempty"`
	// } `xml:"revrecenddate"`
	ProjectID   string     `xml:"projectid,omitempty"`
	CustomerID  string     `xml:"customerid,omitempty"`
	VendorID    string     `xml:"vendorid,omitempty"`
	EmployeeID  string     `xml:"employeeid,omitempty"`
	ItemID      string     `xml:"itemid,omitempty"`
	ClassID     string     `xml:"classid,omitempty"`
	WarehouseID string     `xml:"warehouseid,omitempty"`
	TaxEntries  TaxEntries `xml:"taxentries>taxentry,omitempty"`
}

func (InvoiceLineItem) MarshalXML

func (i InvoiceLineItem) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type InvoiceLineItems

type InvoiceLineItems []InvoiceLineItem

type Invoices

type Invoices []Invoice

type Like

type Like struct {
	Field string `xml:"field"`
	Value string `xml:"value"`
}

func (Like) IsFilter

func (l Like) IsFilter() bool

func (Like) MarshalXML

func (l Like) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type Location

type Location struct {
	LocationID                        string `xml:"LOCATIONID"`
	RecordNo                          string `xml:"RECORDNO"`
	Name                              string `xml:"NAME"`
	ParentID                          string `xml:"PARENTID"`
	SupervisorName                    string `xml:"SUPERVISORNAME"`
	SupervisorID                      int    `xml:"SUPERVISORID"`
	ContactinfoContactName            string `xml:"CONTACTINFO.CONTACTNAME"`
	ContactinfoPrintAs                string `xml:"CONTACTINFO.PRINTAS"`
	ContactinfoPhone1                 string `xml:"CONTACTINFO.PHONE1"`
	ContactinfoPhon2                  string `xml:"CONTACTINFO.PHONE2"`
	ContactinfoEmail1                 string `xml:"CONTACTINFO.EMAIL1"`
	ContactinfoEmail2                 string `xml:"CONTACTINFO.EMAIL2"`
	ContactinfoFax                    string `xml:"CONTACTINFO.FAX"`
	ContactinfoMailaddressAddress1    string `xml:"CONTACTINFO.MAILADDRESS.ADDRESS1"`
	ContactinfoMailaddressAddress2    string `xml:"CONTACTINFO.MAILADDRESS.ADDRESS2"`
	ContactinfoMailaddressCity        string `xml:"CONTACTINFO.MAILADDRESS.CITY"`
	ContactinfoMailaddressState       string `xml:"CONTACTINFO.MAILADDRESS.STATE"`
	CONTACTINFOMAILADDRESSZIP         string `xml:"CONTACTINFO.MAILADDRESS.ZIP"`
	CONTACTINFOMAILADDRESSCOUNTRY     string `xml:"CONTACTINFO.MAILADDRESS.COUNTRY"`
	CONTACTINFOMAILADDRESSCOUNTRYCODE string `xml:"CONTACTINFO.MAILADDRESS.COUNTRYCODE"`
	STARTDATE                         string `xml:"STARTDATE"`
	ENDDATE                           string `xml:"ENDDATE"`
	SHIPTOCONTACTNAME                 string `xml:"SHIPTO.CONTACTNAME"`
	SHIPTOPHONE1                      string `xml:"SHIPTO.PHONE1"`
	SHIPTOPHONE2                      string `xml:"SHIPTO.PHONE2"`
	SHIPTOMAILADDRESSADDRESS1         string `xml:"SHIPTO.MAILADDRESS.ADDRESS1"`
	SHIPTOMAILADDRESSADDRESS2         string `xml:"SHIPTO.MAILADDRESS.ADDRESS2"`
	SHIPTOMAILADDRESSCITY             string `xml:"SHIPTO.MAILADDRESS.CITY"`
	SHIPTOMAILADDRESSSTATE            string `xml:"SHIPTO.MAILADDRESS.STATE"`
	SHIPTOMAILADDRESSZIP              string `xml:"SHIPTO.MAILADDRESS.ZIP"`
	SHIPTOMAILADDRESSCOUNTRY          string `xml:"SHIPTO.MAILADDRESS.COUNTRY"`
	SHIPTOMAILADDRESSCOUNTRYCODE      string `xml:"SHIPTO.MAILADDRESS.COUNTRYCODE"`
	STATUS                            string `xml:"STATUS"`
	WHENCREATED                       string `xml:"WHENCREATED"`
	WHENMODIFIED                      string `xml:"WHENMODIFIED"`
	FederalID                         string `xml:"FEDERALID"`
	FirstMonth                        string `xml:"FIRSTMONTH"`
	WeekStart                         string `xml:"WEEKSTART"`
	IEPAYABLEACCOUNT                  string `xml:"IEPAYABLE.ACCOUNT"`
	IEPAYABLENUMBER                   string `xml:"IEPAYABLE.NUMBER"`
	IERECEIVABLEACCOUNT               string `xml:"IERECEIVABLE.ACCOUNT"`
	IERECEIVABLENUMBER                string `xml:"IERECEIVABLE.NUMBER"`
	MessageText                       string `xml:"MESSAGE_TEXT"`
	MarketingText                     string `xml:"MARKETING_TEXT"`
	FOOTNOTETEXT                      string `xml:"FOOTNOTETEXT"`
	REPORTPRINTAS                     string `xml:"REPORTPRINTAS"`
	IsRoot                            string `xml:"ISROOT"`
	RESERVEAMT                        string `xml:"RESERVEAMT"`
	VendorName                        string `xml:"VENDORNAME"`
	VendorID                          int    `xml:"VENDORID"`
	CustomerID                        int    `xml:"CUSTOMERID"`
	CustomerName                      string `xml:"CUSTOMERNAME"`
	Currency                          string `xml:"CURRENCY"`
	Entity                            string `xml:"ENTITY"`
	ENTITYRECORDNO                    string `xml:"ENTITYRECORDNO"`
	HASIERELATION                     string `xml:"HAS_IE_RELATION"`
	CustTitle                         string `xml:"CUSTTITLE"`
	BusinessDays                      string `xml:"BUSINESSDAYS"`
	Weekend                           string `xml:"WEEKENDS"`
	FIRSTMONTHTAX                     string `xml:"FIRSTMONTHTAX"`
	ContactKey                        string `xml:"CONTACTKEY"`
	SUPERVISORKEY                     string `xml:"SUPERVISORKEY"`
	ParentKey                         string `xml:"PARENTKEY"`
	SHIPTOKEY                         string `xml:"SHIPTOKEY"`
	IEPAYABLEACCTKEY                  string `xml:"IEPAYABLEACCTKEY"`
	IERECEIVABLEACCTKEY               string `xml:"IERECEIVABLEACCTKEY"`
	VENDENTITY                        string `xml:"VENDENTITY"`
	CUSTENTITY                        string `xml:"CUSTENTITY"`
	TaxID                             string `xml:"TAXID"`
	CreatedBy                         string `xml:"CREATEDBY"`
	ModifiedBy                        string `xml:"MODIFIEDBY"`
	ADDRESSCOUNTRYDEFAULT             string `xml:"ADDRESSCOUNTRYDEFAULT"`
}

type Locations

type Locations []Location

type NoQuery

type NoQuery struct{}

func (NoQuery) Query

func (r NoQuery) Query() string

type Number

type Number float64

func (Number) MarshalXML

func (n Number) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type ObjectDefinitionType

type ObjectDefinitionType struct {
	Name         string `xml:"Name,attr"`
	DocumentType string `xml:"DocumentType,attr"`
	Fields       struct {
		Field []struct {
			ID          string `xml:"ID"`
			LABEL       string `xml:"LABEL"`
			DESCRIPTION string `xml:"DESCRIPTION"`
			REQUIRED    string `xml:"REQUIRED"`
			READONLY    string `xml:"READONLY"`
			DATATYPE    string `xml:"DATATYPE"`
			ISCUSTOM    string `xml:"ISCUSTOM"`
			VALIDVALUES struct {
				VALIDVALUE []string `xml:"VALIDVALUE"`
			} `xml:"VALIDVALUES"`
		} `xml:"Field"`
	} `xml:"Fields"`
	Relationships struct {
		Relationship []struct {
			OBJECTPATH       string `xml:"OBJECTPATH"`
			OBJECTNAME       string `xml:"OBJECTNAME"`
			LABEL            string `xml:"LABEL"`
			RELATIONSHIPTYPE string `xml:"RELATIONSHIPTYPE"`
			RELATEDBY        string `xml:"RELATEDBY"`
		} `xml:"Relationship"`
	} `xml:"Relationships"`
}

type PathParams

type PathParams interface {
	Params() map[string]string
}

type Project

type Project struct {
	RecordNo          string `xml:"RECORDNO"`
	ProjectID         string `xml:"PROJECTID"`
	Name              string `xml:"NAME"`
	Description       string `xml:"DESCRIPTION"`
	Currency          string `xml:"CURRENCY"`
	ProjectCategory   string `xml:"PROJECTCATEGORY"`
	ProjectStatusKey  string `xml:"PROJECTSTATUSKEY"`
	ProjectStatus     string `xml:"PROJECTSTATUS"`
	PreventTimesheet  string `xml:"PREVENTTIMESHEET"`
	PreventExpense    string `xml:"PREVENTEXPENSE"`
	PreventAppo       string `xml:"PREVENTAPPO"`
	PreventGenInvoice string `xml:"PREVENTGENINVOICE"`
	Status            string `xml:"STATUS"`
	BeginDate         string `xml:"BEGINDATE"`
	EndDate           string `xml:"ENDDATE"`
	BudgetAmount      string `xml:"BUDGETAMOUNT"`

	ActualAmount           string `xml:"ACTUALAMOUNT"`
	BudgetQty              string `xml:"BUDGETQTY"`
	EstQty                 string `xml:"ESTQTY"`
	ActualQty              string `xml:"ACTUALQTY"`
	ApprovedQty            string `xml:"APPROVEDQTY"`
	RemainingQty           string `xml:"REMAININGQTY"`
	PercentComplete        string `xml:"PERCENTCOMPLETE"`
	ObsPercentComplete     string `xml:"OBSPERCENTCOMPLETE"`
	BillingType            string `xml:"BILLINGTYPE"`
	SONumber               string `xml:"SONUMBER"`
	PONumber               string `xml:"PONUMBER"`
	POAmount               string `xml:"POAMOUNT"`
	PQNumber               string `xml:"PQNUMBER"`
	SFDCKey                string `xml:"SFDCKEY"`
	QarrowKey              string `xml:"QARROWKEY"`
	OAKey                  string `xml:"OAKEY"`
	ParentKey              string `xml:"PARENTKEY"`
	ParentID               string `xml:"PARENTID"`
	ParentName             string `xml:"PARENTNAME"`
	InvoiceWithParent      string `xml:"INVOICEWITHPARENT"`
	CustomerKey            string `xml:"CUSTOMERKEY"`
	CustomerID             string `xml:"CUSTOMERID"`
	CustomerName           string `xml:"CUSTOMERNAME"`
	SalesContactKey        string `xml:"SALESCONTACTKEY"`
	SalesContactID         string `xml:"SALESCONTACTID"`
	SalesContactName       string `xml:"SALESCONTACTNAME"`
	ProjectTypeKey         string `xml:"PROJECTTYPEKEY"`
	ProjectType            string `xml:"PROJECTTYPE"`
	ManagerKey             string `xml:"MANAGERKEY"`
	ManagerID              string `xml:"MANAGERID"`
	ManagerContactName     string `xml:"MANAGERCONTACTNAME"`
	ProjectDeptKey         string `xml:"PROJECTDEPTKEY"`
	DepartmentID           string `xml:"DEPARTMENTID"`
	DepartmentName         string `xml:"DEPARTMENTNAME"`
	ProjectLocationKey     string `xml:"PROJECTLOCATIONKEY"`
	LocationID             string `xml:"LOCATIONID"`
	LocationName           string `xml:"LOCATIONNAME"`
	ContactInfoContactName string `xml:"CONTACTINFO.CONTACTNAME"`
	ShipToContactName      string `xml:"SHIPTO.CONTACTNAME"`
	BillToContactName      string `xml:"BILLTO.CONTACTNAME"`
	TermsKey               string `xml:"TERMSKEY"`
	TermName               string `xml:"TERMNAME"`
	DocNumber              string `xml:"DOCNUMBER"`
	CustUserKey            string `xml:"CUSTUSERKEY"`
	CustUserID             string `xml:"CUSTUSERID"`
	WhenCreated            string `xml:"WHENCREATED"`
	WhenModified           string `xml:"WHENMODIFIED"`
	CreatedBy              string `xml:"CREATEDBY"`
	ModifiedBy             string `xml:"MODIFIEDBY"`
	BudgetCost             string `xml:"BUDGETEDCOST"`

	ClassName          string `xml:"CLASSNAME"`
	ClassKey           string `xml:"CLASSKEY"`
	UserRestrictions   string `xml:"USERRESTRICTIONS"`
	BillableExpDefault string `xml:"BILLABLEEXPDEFAULT"`
	BillablePODefault  string `xml:"BILLABLEAPPODEFAULT"`
	BudgetID           string `xml:"BUDGETID"`
	BudgetKey          string `xml:"BUDGETKEY"`
	BillingRate        string `xml:"BILLINGRATE"`
	BillingPrice       string `xml:"BILLINGPRICING"`
	ExpenseRate        string `xml:"EXPENSERATE"`
	ExpensePricing     string `xml:"EXPENSEPRICING"`
	POAPRate           string `xml:"POAPRATE"`
	POAPPricing        string `xml:"POAPPRICING"`
	ContactKey         string `xml:"CONTACTKEY"`
	ShipTokey          string `xml:"SHIPTOKEY"`
	BillTokey          string `xml:"BILLTOKEY"`
	InvoiceMessage     string `xml:"INVOICEMESSAGE"`
	InvoiceCurrency    string `xml:"INVOICECURRENCY"`
	BillingOverMax     string `xml:"BILLINGOVERMAX"`
	ExcludeExpenses    string `xml:"EXCLUDEEXPENSES"`
	ContractKey        string `xml:"CONTRACTKEY"`
	ContractID         string `xml:"CONTRACTID"`
	RootParentKey      string `xml:"ROOTPARENTKEY"`
	RootParentID       string `xml:"ROOTPARENTID"`
	RootParentName     string `xml:"ROOTPARENTNAME"`
	MegaEntityKey      string `xml:"MEGAENTITYKEY"`
	MegaEntityID       string `xml:"MEGAENTITYID"`
	MegaEntityName     string `xml:"MEGAENTITYNAME"`
	RCIP               string `xml:"RCIP"`
	CIPProject         string `xml:"CIP_PROJECT"`
	// contains filtered or unexported fields
}

type Projects

type Projects []Project

type Query

type Query interface {
	Query() string
}

type RawQuery

type RawQuery string

func (RawQuery) Query

func (r RawQuery) Query() string

type ReadByQuery

type ReadByQuery struct {
	Object   string `xml:"object"`
	Fields   string `xml:"fields"`
	Query    Query  `xml:"query"`
	PageSize int    `xml:"pagesize"`
}

type Request

type Request struct {
	XMLName   xml.Name         `xml:"request" json:"-"`
	Control   RequestControl   `xml:"control"`
	Operation RequestOperation `xml:"operation"`
}

func NewRequest

func NewRequest() Request

func (*Request) SetSessionID

func (r *Request) SetSessionID(sessionID string)

type RequestAuthentication

type RequestAuthentication struct {
	SessionID string        `xml:"sessionid,omitempty"`
	Login     *RequestLogin `xml:"login,omitempty"`
}

type RequestCompletionCallback

type RequestCompletionCallback func(*http.Request, *http.Response)

RequestCompletionCallback defines the type of the request callback function

type RequestControl

type RequestControl struct {
	SenderID          string `xml:"senderid"`
	SenderPassword    CData  `xml:"password"`
	ControlID         string `xml:"controlid"`
	UniqueID          bool   `xml:"uniqueid"`
	DTDVersion        string `xml:"dtdversion"`
	IncludeWhitespace bool   `xml:"includewhitespace"`
}

type RequestLogin

type RequestLogin struct {
	UserID    string `xml:"userid"`
	CompanyID string `xml:"companyid"`
	Password  string `xml:"password"`
}

type RequestOperation

type RequestOperation struct {
	Authentication RequestAuthentication `xml:"authentication"`
	Content        interface{}           `xml:"content"`
}

type Response

type Response struct {
	XMLName   xml.Name          `xml:"response" json:"-"`
	Control   ResponseControl   `xml:"control"`
	Operation ResponseOperation `xml:"operation"`
}

func NewResponse

func NewResponse() Response

type ResponseAuthentication

type ResponseAuthentication struct {
	Status           string    `xml:"status"`
	UserID           string    `xml:"userid"`
	CompanyID        string    `xml:"companyid"`
	LocationID       string    `xml:"locationid"`
	SessionTimestamp time.Time `xml:"sessiontimestamp"`
	SessionTimeout   time.Time `xml:"sessiontimeout"`
}

type ResponseControl

type ResponseControl struct {
	Status     string `xml:"status"`
	SenderID   string `xml:"senderid"`
	ControlID  string `xml:"controlid"`
	UniqueID   bool   `xml:"uniqueid"`
	DTDVersion string `xml:"dtdversion"`
}

type ResponseOperation

type ResponseOperation struct {
	Authentication ResponseAuthentication `xml:"authentication"`
	Result         ResponseResult         `xml:"result"`
}

type ResponseResult

type ResponseResult struct {
	Status    string `xml:"status"`
	Function  string `xml:"function"`
	ControlID string `xml:"controlid"`
	// Data      interface{} `xml:"data"`
	Data struct {
		Listtype     string `xml:"listtype,attr"`
		Count        int    `xml:"count"`
		TotalCount   int    `xml:"totalcount,attr"`
		NumRemaining int    `xml:"numremaining,attr"`
		ResultID     string `xml:"resultId,attr"`

		API struct {
			SessionID  string `xml:"sessionid"`
			Endpoint   string `xml:"endpoint"`
			LocationID string `xml:"locationid"`
		} `xml:"api"`
		GLAccounts   GLAccounts           `xml:"GLACCOUNT"`
		Classes      Classes              `xml:"class"`
		Customers    Customers            `xml:"CUSTOMER"`
		Departments  Departments          `xml:"department"`
		Type         ObjectDefinitionType `xml:"Type"`
		Locations    Locations            `xml:"location"`
		Projects     Projects             `xml:"project"`
		TaxDetails   TaxDetails           `xml:"TAXDETAIL"`
		Invoices     Invoices             `xml:"ARINVOICE"`
		InvoiceItems InvoiceItems         `xml:"ARINVOICEITEM"`
		SupDoc       SupDoc               `xml:"supdoc"`
	} `xml:"data"`
	ErrorMessage ErrorMessage `xml:"errormessage"`
}

type Select

type Select []string

func (Select) MarshalXML

func (s Select) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type SupDoc

type SupDoc struct {
	RecordNo     string `xml:"recordno"`
	SupDocID     string `xml:"supdocid"`
	SupDocName   string `xml:"supdocname"`
	Folder       string `xml:"folder"`
	Description  string `xml:"description"`
	Creationdate string `xml:"creationdate"`
	Createdby    string `xml:"createdby"`
	Attachments  struct {
		Attachment struct {
			AttachmentName string `xml:"attachmentname"`
			AttachmentType string `xml:"attachmenttype"`
			AttachmentData string `xml:"attachmentdata"`
		} `xml:"attachment"`
	} `xml:"attachments"`
}

type TaxDetail

type TaxDetail struct {
	// Text           string `xml:",chardata"`
	RECORDNO       string `xml:"RECORDNO"`
	DETAILID       string `xml:"DETAILID"`
	TAXUID         string `xml:"TAXUID"`
	DESCRIPTION    string `xml:"DESCRIPTION"`
	TAXTYPE        string `xml:"TAXTYPE"`
	VALUE          string `xml:"VALUE"`
	MINTAXABLE     string `xml:"MINTAXABLE"`
	MAXTAXABLE     string `xml:"MAXTAXABLE"`
	INCLUDE        string `xml:"INCLUDE"`
	MINTAX         string `xml:"MINTAX"`
	MAXTAX         string `xml:"MAXTAX"`
	GLACCOUNT      string `xml:"GLACCOUNT"`
	TAXAUTHORITY   string `xml:"TAXAUTHORITY"`
	STATUS         string `xml:"STATUS"`
	SYSGENERATED   string `xml:"SYSGENERATED"`
	REVERSECHARGE  string `xml:"REVERSECHARGE"`
	TAXRATE        string `xml:"TAXRATE"`
	TAXSOLUTIONID  string `xml:"TAXSOLUTIONID"`
	USEEXPENSEACCT string `xml:"USEEXPENSEACCT"`
	MEGAENTITYKEY  string `xml:"MEGAENTITYKEY"`
	MEGAENTITYID   string `xml:"MEGAENTITYID"`
	MEGAENTITYNAME string `xml:"MEGAENTITYNAME"`
	RECORDURL      string `xml:"RECORD_URL"`
}

type TaxDetails

type TaxDetails []TaxDetail

type TaxEntries

type TaxEntries []TaxEntry

func (TaxEntries) IsEmpty

func (ee TaxEntries) IsEmpty() bool

type TaxEntry

type TaxEntry struct {
	DetailID string `xml:"detailid"`
	TrxTax   Number `xml:"trx_tax"`
}

func (TaxEntry) IsEmpty

func (e TaxEntry) IsEmpty() bool

func (TaxEntry) MarshalXML

func (te TaxEntry) MarshalXML(e *xml.Encoder, start xml.StartElement) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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