Versions in this module Expand all Collapse all v1 v1.0.0 Feb 10, 2022 Changes in this version + const AccountsPayableAccountType + const AccountsReceivableAccountType + const BankAccountType + const CostOfGoodsSoldAccountType + const CreditCardAccountType + const EquityAccountType + const ExpenseAccountType + const FixedAssetAccountType + const IncomeAccountType + const LongTermLiabilityAccountType + const OtherAssetAccountType + const OtherCurrentAssetAccountType + const OtherCurrentLiabilityAccountType + const OtherExpenseAccountType + const OtherIncomeAccountType + type Account struct + AccountAlias string + AccountSubType string + AccountType string + AcctNum string + Active bool + Classification string + CurrencyRef ReferenceType + CurrentBalance json.Number + CurrentBalanceWithSubAccounts json.Number + Description string + FullyQualifiedName string + ID string + MetaData MetaData + Name string + ParentRef ReferenceType + SubAccount bool + SyncToken string + TaxCodeRef ReferenceType + TxnLocationType string + type AccountBasedExpenseLineDetail struct + AccountRef ReferenceType + TaxAmount json.Number + type Attachable struct + AttachableRef []AttachableRef + Category string + ContentType ContentType + FileAccessUri string + FileName string + ID string + Lat string + Long string + MetaData MetaData + Note string + PlaceName string + Size json.Number + SyncToken string + Tag string + TempDownloadUri string + ThumbnailFileAccessUri string + ThumbnailTempDownloadUri string + type AttachableRef struct + EntityRef ReferenceType + Inactive bool + IncludeOnSend bool + LineInfo string + NoRefOnly bool + type BearerToken struct + AccessToken string + ExpiresIn int64 + IdToken string + RefreshToken string + TokenType string + XRefreshTokenExpiresIn int64 + type Bill struct + APAccountRef ReferenceType + Balance json.Number + CurrencyRef ReferenceType + DepartmentRef ReferenceType + DocNumber string + DueDate Date + ExchangeRate json.Number + HomeBalance json.Number + ID string + IncludeInAnnualTPAR bool + Line []Line + MetaData MetaData + PrivateNote string + RecurDataRef ReferenceType + SalesTermRef ReferenceType + SyncToken string + TotalAmt json.Number + TransactionLocationType string + TxnDate Date + TxnTaxDetail TxnTaxDetail + VendorRef ReferenceType + type Client struct + Client *http.Client + Endpoint EndpointURL + RealmID string + func NewQuickbooksClient(clientId string, clientSecret string, realmID string, isProduction bool, ...) (c *Client, err error) + func (c *Client) CreateAccount(account *Account) (*Account, error) + func (c *Client) CreateAttachable(attachable *Attachable) (*Attachable, error) + func (c *Client) CreateBill(bill *Bill) (*Bill, error) + func (c *Client) CreateCustomer(customer *Customer) (*Customer, error) + func (c *Client) CreateInvoice(inv *Invoice) (*Invoice, error) + func (c *Client) CreateVendor(vendor *Vendor) (*Vendor, error) + func (c *Client) DeleteAttachable(attachable *Attachable) error + func (c *Client) DeleteInvoice(id, syncToken string) error + func (c *Client) DownloadAttachable(attachableId string) (string, error) + func (c *Client) FetchCompanyInfo() (*CompanyInfo, error) + func (c *Client) FetchCustomerByID(id string) (*Customer, error) + func (c *Client) FetchCustomers() ([]Customer, error) + func (c *Client) FetchInvoices() ([]Invoice, error) + func (c *Client) FetchItem(id string) (*Item, error) + func (c *Client) FetchItems() ([]Item, error) + func (c *Client) GetAccountByID(id string) (*Account, error) + func (c *Client) GetAccounts(startpos int, pagesize int) ([]Account, error) + func (c *Client) GetAttachable(attachableId string) (*Attachable, error) + func (c *Client) GetAttachables(startpos int) ([]Attachable, error) + func (c *Client) GetVendors(startpos int) ([]Vendor, error) + func (c *Client) QueryAccount(selectStatement string) ([]Account, error) + func (c *Client) QueryCustomerByName(name string) (*Customer, error) + func (c *Client) RefreshToken(refreshToken string) (*BearerToken, error) + func (c *Client) RetrieveBearerToken(authorizationCode, redirectURI string) (*BearerToken, error) + func (c *Client) RevokeToken(refreshToken string) error + func (c *Client) UpdateAccount(account *Account) (*Account, error) + func (c *Client) UpdateAttachable(attachable *Attachable) (*Attachable, error) + func (c *Client) UpdateCustomer(customer *Customer) (*Customer, error) + func (c *Client) UpdateVendor(vendor *Vendor) (*Vendor, error) + func (c *Client) UploadAttachable(attachable *Attachable, data io.Reader) (*Attachable, error) + type CompanyInfo struct + CompanyName string + CompanyStartDate string + Country string + Domain string + FiscalYearStartMonth string + ID string + LegalName string + Metadata MetaData + SupportedLanguages string + SyncToken string + type ContentType string + const AI + const CSV + const DOC + const DOCX + const EPS + const GIF + const JPEG + const JPG + const ODS + const PDF + const PNG + const RTF + const TIF + const TXT + const XLS + const XLSX + const XML + type Customer struct + Active bool + AlternatePhone TelephoneNumber + Balance json.Number + BalanceWithJobs json.Number + BillAddr *PhysicalAddress + BillWithParent bool + CompanyName null.String + DisplayName string + FamilyName null.String + Fax TelephoneNumber + FullyQualifiedName null.String + GivenName null.String + ID string + Job null.Bool + Level int + MetaData MetaData + MiddleName null.String + Mobile TelephoneNumber + Notes string + OpenBalanceDate Date + ParentRef ReferenceType + PrimaryEmailAddr *EmailAddress + PrimaryPhone TelephoneNumber + PrintOnCheckName string + ShipAddr *PhysicalAddress + Suffix null.String + SyncToken string + TaxExemptionReasonID *string + Taxable *bool + Title null.String + WebAddr *WebSiteAddress + func (c Customer) GetAddress() PhysicalAddress + func (c Customer) GetPrimaryEmail() string + func (c Customer) GetWebsite() string + type Date struct + func (d *Date) UnmarshalJSON(b []byte) (err error) + func (d Date) String() string + type DiscountLineDetail struct + DiscountPercent float32 + PercentBased bool + type DiscoveryAPI struct + AuthorizationEndpoint string + Issuer string + JwksUri string + RevocationEndpoint string + TokenEndpoint string + UserinfoEndpoint string + func CallDiscoveryAPI(discoveryEndpoint EndpointURL) *DiscoveryAPI + type EmailAddress struct + Address string + type EndpointURL string + const DiscoveryProductionEndpoint + const DiscoverySandboxEndpoint + const ProductionEndpoint + const SandboxEndpoint + type Failure struct + Fault struct{ ... } + Time Date + func (f Failure) Error() string + type Invoice struct + AllowOnlineACHPayment bool + AllowOnlineCreditCardPayment bool + ApplyTaxAfterDiscount bool + Balance json.Number + BillAddr PhysicalAddress + BillEmail EmailAddress + BillEmailBCC EmailAddress + BillEmailCC EmailAddress + ClassRef ReferenceType + CustomerMemo MemoRef + CustomerRef ReferenceType + Deposit json.Number + DepositToAccountRef ReferenceType + DocNumber string + DueDate Date + EmailStatus string + ExchangeRate json.Number + HomeAmtTotal json.Number + HomeBalance json.Number + ID string + Line []Line + MetaData MetaData + PrintStatus string + PrivateNote string + SalesTermRef ReferenceType + ShipAddr PhysicalAddress + ShipDate Date + ShipMethodRef ReferenceType + SyncToken string + TotalAmt json.Number + TrackingNum string + TxnDate Date + TxnSource string + TxnTaxDetail TxnTaxDetail + type Item struct + Active bool + AssetAccountRef ReferenceType + Description string + ExpenseAccountRef ReferenceType + ID string + IncomeAccountRef ReferenceType + Name string + PurchaseCost json.Number + PurchaseDesc string + PurchaseTaxCodeRef ReferenceType + PurchaseTaxIncluded bool + QtyOnHand json.Number + SKU string + SalesTaxCodeRef ReferenceType + SalesTaxIncluded bool + SyncToken string + Taxable bool + TrackQtyOnHand bool + Type string + UnitPrice json.Number + type Line struct + AccountBasedExpenseLineDetail AccountBasedExpenseLineDetail + Amount json.Number + Description string + DetailType string + DiscountLineDetail DiscountLineDetail + ID string + LineNum int + SalesItemLineDetail SalesItemLineDetail + TaxLineDetail TaxLineDetail + type MemoRef struct + Value string + type MetaData struct + CreateTime Date + LastUpdatedTime Date + type PhysicalAddress struct + City string + Country string + CountrySubDivisionCode string + ID string + Lat string + Line1 string + Line2 string + Line3 string + Line4 string + Line5 string + Long string + PostalCode string + type ReferenceType struct + Name string + Type string + Value string + type SalesItemLineDetail struct + ClassRef ReferenceType + DiscountAmt json.Number + DiscountRate json.Number + ItemAccountRef ReferenceType + ItemRef ReferenceType + Qty float32 + ServiceDate Date + TaxCodeRef ReferenceType + TaxInclusiveAmt json.Number + UnitPrice json.Number + type TaxLineDetail struct + NetAmountTaxable json.Number + PercentBased bool + TaxPercent json.Number + TaxRateRef ReferenceType + type TelephoneNumber struct + FreeFormNumber string + type TxnTaxDetail struct + TaxLine []Line + TotalTax json.Number + TxnTaxCodeRef ReferenceType + type Vendor struct + APAccountRef ReferenceType + AcctNum string + Active bool + AlternatePhone TelephoneNumber + Balance json.Number + BillAddr *PhysicalAddress + BillRate json.Number + BusinessNumber string + CompanyName string + DisplayName string + FamilyName string + Fax TelephoneNumber + GSTIN string + GSTRegistrationType string + GivenName string + HasTPAR bool + ID string + MetaData MetaData + MiddleName string + Mobile TelephoneNumber + PrimaryEmailAddr EmailAddress + PrimaryPhone TelephoneNumber + PrintOnCheckName string + Suffix string + SyncToken string + TaxIdentifier string + TaxReportingBasis string + TermRef ReferenceType + Title string + Vendor1099 bool + WebAddr *WebSiteAddress + type WebSiteAddress struct + URI string