Xero API type constants, status codes, and helper functions.
Covers all enumerations referenced in the Xero API documentation for all 13 APIs (Accounting, Assets, Bank Feeds, Files, Finance, Projects, Payroll AU/NZ/UK, Practice Manager, App Store, eInvoicing).
Usage
Xero.Types.invoice_statuses()
#=> ["DRAFT", "SUBMITTED", "DELETED", "AUTHORISED", "PAID", "VOIDED"]
Xero.Types.valid_invoice_status?("AUTHORISED")
#=> true
Xero.Types.tax_types_for_region(:au)
#=> ["OUTPUT", "INPUT", ...]
Summary
Functions
Returns tax types for the given region atom (:au | :nz | :uk | :us).
Returns true if the string is a valid Xero account type.
Returns true if the string is a valid Xero asset status.
Returns true if the string is a valid Xero contact status.
Returns true if the string is a valid depreciation method.
Returns true if the string is a valid Xero invoice status.
Returns true if the string is a valid project status.
Returns true if the string is a valid Xero purchase order status.
Returns true if the string is a valid Xero quote status.
Functions
Returns tax types for the given region atom (:au | :nz | :uk | :us).
Returns true if the string is a valid Xero account type.
Returns true if the string is a valid Xero asset status.
Returns true if the string is a valid Xero contact status.
Returns true if the string is a valid depreciation method.
Returns true if the string is a valid Xero invoice status.
Returns true if the string is a valid project status.
Returns true if the string is a valid Xero purchase order status.
Returns true if the string is a valid Xero quote status.