public class XeroClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
MESSAGE_PATTERN |
protected com.xero.model.ObjectFactory |
objFactory |
protected static DateFormat |
utcFormatter |
| Constructor and Description |
|---|
XeroClient() |
XeroClient(Config config) |
XeroClient(Config config,
SignerFactory signerFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToMapIfNotNull(Map<String,String> map,
String key,
Object value) |
List<com.xero.model.Account> |
createAccounts(List<com.xero.model.Account> objects) |
com.xero.model.Attachment |
createAttachment(String endpoint,
String guid,
String filename,
String contentType,
byte[] bytes) |
com.xero.model.Attachment |
createAttachment(String endpoint,
String guid,
String filename,
String contentType,
byte[] bytes,
boolean includeOnline) |
List<com.xero.model.BankTransaction> |
createBankTransactions(List<com.xero.model.BankTransaction> bankTransactions) |
List<com.xero.model.BankTransaction> |
createBankTransactions(List<com.xero.model.BankTransaction> bankTransactions,
String unitdp) |
List<com.xero.model.BankTransfer> |
createBankTransfers(List<com.xero.model.BankTransfer> bankTransfers) |
List<com.xero.model.Contact> |
createContact(List<com.xero.model.Contact> contacts) |
List<com.xero.model.Contact> |
createContactGroupContacts(List<com.xero.model.Contact> objects,
String id) |
List<com.xero.model.ContactGroup> |
createContactGroups(List<com.xero.model.ContactGroup> ContactGroups) |
List<com.xero.model.Allocation> |
createCreditNoteAllocations(List<com.xero.model.Allocation> objects,
String id) |
List<com.xero.model.CreditNote> |
createCreditNotes(List<com.xero.model.CreditNote> objects) |
List<com.xero.model.CreditNote> |
createCreditNotes(List<com.xero.model.CreditNote> objects,
String unitdp) |
List<com.xero.model.Currency> |
createCurrencies(List<com.xero.model.Currency> objects) |
List<com.xero.model.Employee> |
createEmployees(List<com.xero.model.Employee> objects) |
List<com.xero.model.ExpenseClaim> |
createExpenseClaims(List<com.xero.model.ExpenseClaim> objects) |
List<com.xero.model.Invoice> |
createInvoices(List<com.xero.model.Invoice> invoices) |
List<com.xero.model.Invoice> |
createInvoices(List<com.xero.model.Invoice> invoices,
String unitdp) |
List<com.xero.model.Invoice> |
createInvoices(List<com.xero.model.Invoice> invoices,
String unitdp,
Boolean summarizeErrors) |
List<com.xero.model.Item> |
createItems(List<com.xero.model.Item> objects) |
List<com.xero.model.Item> |
createItems(List<com.xero.model.Item> objects,
String unitdp) |
List<com.xero.model.LinkedTransaction> |
createLinkedTransactions(List<com.xero.model.LinkedTransaction> objects) |
List<com.xero.model.ManualJournal> |
createManualJournals(List<com.xero.model.ManualJournal> objects) |
List<com.xero.model.Allocation> |
createOverpaymentAllocations(List<com.xero.model.Allocation> objects,
String id) |
List<com.xero.model.Payment> |
createPayments(List<com.xero.model.Payment> objects) |
List<com.xero.model.Allocation> |
createPrepaymentAllocations(List<com.xero.model.Allocation> objects,
String id) |
List<com.xero.model.PurchaseOrder> |
createPurchaseOrders(List<com.xero.model.PurchaseOrder> objects) |
List<com.xero.model.Receipt> |
createReceipts(List<com.xero.model.Receipt> objects) |
List<com.xero.model.Receipt> |
createReceipts(List<com.xero.model.Receipt> objects,
String unitdp) |
List<com.xero.model.TaxRate> |
createTaxRates(List<com.xero.model.TaxRate> objects) |
List<com.xero.model.TrackingCategory> |
createTrackingCategories(List<com.xero.model.TrackingCategory> objects) |
List<com.xero.model.TrackingCategory> |
createTrackingCategories(List<com.xero.model.TrackingCategory> objects,
boolean summarizeErrors) |
List<com.xero.model.TrackingCategoryOption> |
createTrackingCategoryOption(List<com.xero.model.TrackingCategoryOption> objects,
String id) |
List<com.xero.model.TrackingCategoryOption> |
createTrackingCategoryOption(List<com.xero.model.TrackingCategoryOption> objects,
String id,
boolean summarizeErrors) |
protected com.xero.model.Response |
delete(String endPoint) |
String |
deleteAccount(String id) |
String |
deleteAllContactsFromContactGroup(String ContactGroupId) |
List<com.xero.model.ContactGroup> |
deleteContactGroup(com.xero.model.ContactGroup object) |
String |
deleteItem(String id) |
String |
deleteLinkedTransaction(String id) |
List<com.xero.model.Payment> |
deletePayment(List<com.xero.model.Payment> objects) |
List<com.xero.model.Payment> |
deletePayment(com.xero.model.Payment object) |
String |
deleteSingleContactFromContactGroup(String ContactGroupId,
String ContactId) |
String |
deleteTrackingCategory(String id) |
String |
deleteTrackingCategoryOption(String TrackingCategoryID,
String TrackingOptionID) |
protected com.xero.model.Response |
get(String endPoint) |
protected com.xero.model.Response |
get(String endPoint,
Date modifiedAfter,
Map<String,String> params) |
protected String |
get2(String resource,
Date modifiedAfter,
Map<String,String> params) |
com.xero.model.Account |
getAccount(String id) |
List<com.xero.model.Account> |
getAccounts() |
List<com.xero.model.Account> |
getAccounts(Date modifiedAfter,
String where,
String order) |
Assets |
getAssets() |
ByteArrayInputStream |
getAttachmentContent(String endpoint,
String guid,
String filename,
String accept) |
String |
getAttachmentContent(String endpoint,
String guid,
String filename,
String accept,
String dirPath) |
ByteArrayInputStream |
getAttachmentContentById(String endpoint,
String guid,
String attachmentid,
String accept) |
List<com.xero.model.Attachment> |
getAttachments(String endpoint,
String guid) |
com.xero.model.BankTransaction |
getBankTransaction(String id) |
com.xero.model.BankTransaction |
getBankTransaction(String id,
String unitdp) |
List<com.xero.model.BankTransaction> |
getBankTransactions() |
List<com.xero.model.BankTransaction> |
getBankTransactions(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.BankTransaction> |
getBankTransactions(Date modifiedAfter,
String where,
String order,
String page) |
List<com.xero.model.BankTransaction> |
getBankTransactions(Date modifiedAfter,
String where,
String order,
String page,
String unitdp) |
com.xero.model.BankTransfer |
getBankTransfer(String id) |
List<com.xero.model.BankTransfer> |
getBankTransfers() |
List<com.xero.model.BankTransfer> |
getBankTransfers(Date modifiedAfter,
String where,
String order) |
com.xero.model.BrandingTheme |
getBrandingTheme(String id) |
List<com.xero.model.BrandingTheme> |
getBrandingThemes() |
List<com.xero.model.BrandingTheme> |
getBrandingThemes(Date modifiedAfter,
String where,
String order) |
com.xero.model.Contact |
getContact(String id) |
com.xero.model.ContactGroup |
getContactGroup(String id) |
List<com.xero.model.ContactGroup> |
getContactGroups() |
List<com.xero.model.ContactGroup> |
getContactGroups(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.Contact> |
getContacts() |
List<com.xero.model.Contact> |
getContacts(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.Contact> |
getContacts(Date modifiedAfter,
String where,
String order,
String page) |
List<com.xero.model.Contact> |
getContacts(Date modifiedAfter,
String where,
String order,
String page,
Boolean includeArchived) |
com.xero.model.CreditNote |
getCreditNote(String id) |
String |
getCreditNotePdf(String id,
String dirPath)
Deprecated.
|
ByteArrayInputStream |
getCreditNotePdfContent(String id) |
List<com.xero.model.CreditNote> |
getCreditNotes() |
List<com.xero.model.CreditNote> |
getCreditNotes(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.CreditNote> |
getCreditNotes(Date modifiedAfter,
String where,
String order,
String page) |
List<com.xero.model.Currency> |
getCurrencies() |
List<com.xero.model.Currency> |
getCurrencies(Date modifiedAfter,
String where,
String order) |
com.xero.model.Currency |
getCurrency(String id) |
com.xero.model.Employee |
getEmployee(String id) |
List<com.xero.model.Employee> |
getEmployees() |
List<com.xero.model.Employee> |
getEmployees(Date modifiedAfter,
String where,
String order) |
com.xero.model.Report |
getExecutiveSummary(String where,
String order,
String date) |
com.xero.model.ExpenseClaim |
getExpenseClaim(String id) |
List<com.xero.model.ExpenseClaim> |
getExpenseClaims() |
List<com.xero.model.ExpenseClaim> |
getExpenseClaims(Date modifiedAfter,
String where,
String order) |
protected String |
getFile(String endPoint,
Date modifiedAfter,
Map<String,String> params,
String accept,
String dirPath)
Deprecated.
|
protected ByteArrayInputStream |
getInputStream(String endPoint,
Date modifiedAfter,
Map<String,String> params,
String accept) |
com.xero.model.Invoice |
getInvoice(String id) |
com.xero.model.Invoice |
getInvoice(String id,
String unitdp) |
String |
getInvoicePdf(String id,
String dirPath)
Deprecated.
|
ByteArrayInputStream |
getInvoicePdfContent(String id) |
List<com.xero.model.InvoiceReminder> |
getInvoiceReminders() |
List<com.xero.model.Invoice> |
getInvoices() |
List<com.xero.model.Invoice> |
getInvoices(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.Invoice> |
getInvoices(Date modifiedAfter,
String where,
String order,
String page) |
List<com.xero.model.Invoice> |
getInvoices(Date modifiedAfter,
String where,
String order,
String page,
String ids) |
List<com.xero.model.Invoice> |
getInvoices(Date modifiedAfter,
String where,
String order,
String page,
String unitdp,
Map<String,String> filter) |
List<com.xero.model.Invoice> |
getInvoices(Date modifiedAfter,
String where,
String order,
String page,
String unitdp,
String ids)
Deprecated.
|
com.xero.model.Item |
getItem(String id) |
com.xero.model.Item |
getItem(String id,
String unitdp) |
List<com.xero.model.Item> |
getItems() |
List<com.xero.model.Item> |
getItems(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.Item> |
getItems(Date modifiedAfter,
String where,
String order,
String unitdp) |
com.xero.model.Journal |
getJournal(String id) |
List<com.xero.model.Journal> |
getJournals() |
List<com.xero.model.Journal> |
getJournals(Date modifiedAfter,
String offset,
boolean paymentsOnly) |
List<com.xero.model.Journal> |
getJournals(Date modifiedAfter,
String where,
String order) |
com.xero.model.LinkedTransaction |
getLinkedTransaction(String id) |
List<com.xero.model.LinkedTransaction> |
getLinkedTransactions() |
List<com.xero.model.LinkedTransaction> |
getLinkedTransactions(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.LinkedTransaction> |
getLinkedTransactions(Date modifiedAfter,
String where,
String order,
String page) |
com.xero.model.ManualJournal |
getManualJournal(String id) |
List<com.xero.model.ManualJournal> |
getManualJournals() |
List<com.xero.model.ManualJournal> |
getManualJournals(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.ManualJournal> |
getManualJournals(Date modifiedAfter,
String where,
String order,
String page) |
com.xero.model.OnlineInvoice |
getOnlineInvoice(String id) |
List<com.xero.model.Organisation> |
getOrganisations() |
com.xero.model.Overpayment |
getOverpayment(String id) |
List<com.xero.model.Overpayment> |
getOverpayments() |
List<com.xero.model.Overpayment> |
getOverpayments(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.Overpayment> |
getOverpayments(Date modifiedAfter,
String where,
String order,
String page) |
com.xero.model.Payment |
getPayment(String id) |
List<com.xero.model.Payment> |
getPayments() |
List<com.xero.model.Payment> |
getPayments(Date modifiedAfter,
String where,
String order) |
com.xero.model.Prepayment |
getPrepayment(String id) |
List<com.xero.model.Prepayment> |
getPrepayments() |
List<com.xero.model.Prepayment> |
getPrepayments(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.Prepayment> |
getPrepayments(Date modifiedAfter,
String where,
String order,
String page) |
com.xero.model.PurchaseOrder |
getPurchaseOrder(String id) |
String |
getPurchaseOrderPdf(String id,
String dirPath)
Deprecated.
|
ByteArrayInputStream |
getPurchaseOrderPdfContent(String id) |
List<com.xero.model.PurchaseOrder> |
getPurchaseOrders() |
List<com.xero.model.PurchaseOrder> |
getPurchaseOrders(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.PurchaseOrder> |
getPurchaseOrders(Date modifiedAfter,
String where,
String order,
String page) |
com.xero.model.Receipt |
getReceipt(String id) |
List<com.xero.model.Receipt> |
getReceipts() |
List<com.xero.model.Receipt> |
getReceipts(Date modifiedAfter,
String where,
String order) |
com.xero.model.RepeatingInvoice |
getRepeatingInvoice(String id) |
List<com.xero.model.RepeatingInvoice> |
getRepeatingInvoices() |
List<com.xero.model.RepeatingInvoice> |
getRepeatingInvoices(Date modifiedAfter,
String where,
String order) |
com.xero.model.Report |
getReport(String id,
String where,
String order) |
com.xero.model.Report |
getReportAgedPayablesByContact(String contactId,
String where,
String order,
String date,
String fromDate,
String toDate) |
com.xero.model.Report |
getReportAgedReceivablesByContact(String contactId,
String where,
String order,
String date,
String fromDate,
String toDate) |
com.xero.model.Report |
getReportBalanceSheet(String where,
String order,
String date,
String trackingOptionId1,
String trackingOptionId2,
boolean standardLayout,
boolean paymentsOnly) |
com.xero.model.Report |
getReportBalanceSheet(String where,
String order,
String date,
String trackingOptionId1,
String trackingOptionId2,
boolean standardLayout,
boolean paymentsOnly,
Integer periods,
String timeframe) |
com.xero.model.Report |
getReportBankStatement(String accountId,
String where,
String order,
String fromDate,
String toDate) |
com.xero.model.Report |
getReportBudgetSummary(String where,
String order,
String date,
Integer periods,
Integer timeframe) |
com.xero.model.Report |
getReportProfitLoss(String where,
String order,
String fromDate,
String toDate,
String trackingCategoryId,
String trackingOptionId1,
String trackingCategoryId2,
String trackingOptionId2,
boolean standardLayout,
boolean paymentsOnly) |
com.xero.model.Report |
getReportProfitLoss(String where,
String order,
String fromDate,
String toDate,
String trackingCategoryId,
String trackingOptionId1,
String trackingCategoryId2,
String trackingOptionId2,
boolean standardLayout,
boolean paymentsOnly,
Integer periods,
String timeframe) |
com.xero.model.Report |
getReportTrialBalance(String date,
boolean paymentsOnly) |
com.xero.model.TaxRate |
getTaxRate(String id) |
List<com.xero.model.TaxRate> |
getTaxRates() |
List<com.xero.model.TaxRate> |
getTaxRates(Date modifiedAfter,
String where,
String order) |
List<com.xero.model.TrackingCategory> |
getTrackingCategories() |
List<com.xero.model.TrackingCategory> |
getTrackingCategories(Date modifiedAfter,
String where,
String order,
Boolean includeArchived) |
com.xero.model.TrackingCategory |
getTrackingCategory(String id) |
com.xero.model.User |
getUser(String id) |
List<com.xero.model.User> |
getUsers() |
List<com.xero.model.User> |
getUsers(Date modifiedAfter,
String where,
String order) |
protected String |
normalizeFileNameForURI(String fileName)
Normalizes file name with respect to https://tools.ietf.org/html/rfc3986#section-2.3
|
protected com.xero.model.Response |
post(String endPoint,
JAXBElement<?> object) |
protected com.xero.model.Response |
post(String endPoint,
JAXBElement<?> object,
Map<String,String> params) |
protected com.xero.model.Response |
put(String endPoint,
JAXBElement<?> object) |
protected com.xero.model.Response |
put(String endPoint,
JAXBElement<?> object,
Map<String,String> params) |
protected com.xero.model.Response |
put(String endPoint,
String contentType,
byte[] bytes) |
protected com.xero.model.Response |
put(String endPoint,
String contentType,
byte[] bytes,
Map<? extends String,?> params) |
protected com.xero.model.Response |
put(String endPoint,
String contentType,
File file) |
void |
setOAuthToken(String token,
String tokenSecret) |
protected <T> T |
singleResult(List<T> list) |
List<com.xero.model.Account> |
updateAccount(List<com.xero.model.Account> objects) |
List<com.xero.model.BankTransaction> |
updateBankTransactions(List<com.xero.model.BankTransaction> bankTransactions) |
List<com.xero.model.BankTransaction> |
updateBankTransactions(List<com.xero.model.BankTransaction> bankTransactions,
String unitdp) |
List<com.xero.model.Contact> |
updateContact(List<com.xero.model.Contact> contacts) |
List<com.xero.model.ContactGroup> |
updateContactGroup(List<com.xero.model.ContactGroup> objects) |
List<com.xero.model.CreditNote> |
updateCreditNote(List<com.xero.model.CreditNote> objects) |
List<com.xero.model.Employee> |
updateEmployee(List<com.xero.model.Employee> objects) |
List<com.xero.model.ExpenseClaim> |
updateExpenseClaim(List<com.xero.model.ExpenseClaim> objects) |
List<com.xero.model.Invoice> |
updateInvoice(List<com.xero.model.Invoice> objects) |
List<com.xero.model.Invoice> |
updateInvoice(List<com.xero.model.Invoice> objects,
String unitdp) |
List<com.xero.model.Item> |
updateItem(List<com.xero.model.Item> objects) |
List<com.xero.model.Item> |
updateItem(List<com.xero.model.Item> objects,
String unitdp) |
List<com.xero.model.LinkedTransaction> |
updateLinkedTransaction(List<com.xero.model.LinkedTransaction> objects) |
List<com.xero.model.ManualJournal> |
updateManualJournal(List<com.xero.model.ManualJournal> objects) |
List<com.xero.model.PurchaseOrder> |
updatePurchaseOrder(List<com.xero.model.PurchaseOrder> objects) |
List<com.xero.model.Receipt> |
updateReceipt(List<com.xero.model.Receipt> objects) |
List<com.xero.model.TaxRate> |
updateTaxRate(List<com.xero.model.TaxRate> objects) |
List<com.xero.model.TrackingCategory> |
updateTrackingCategory(List<com.xero.model.TrackingCategory> objects) |
List<com.xero.model.TrackingCategory> |
updateTrackingCategory(List<com.xero.model.TrackingCategory> objects,
boolean summarizeErrors) |
com.xero.model.TrackingCategoryOption |
updateTrackingCategoryOption(com.xero.model.TrackingCategoryOption object,
String TrackingCategoryID,
String TrackingOptionID) |
com.xero.model.TrackingCategoryOption |
updateTrackingCategoryOption(com.xero.model.TrackingCategoryOption object,
String TrackingCategoryID,
String TrackingOptionID,
boolean summarizeErrors) |
protected static final DateFormat utcFormatter
protected static final Pattern MESSAGE_PATTERN
protected final com.xero.model.ObjectFactory objFactory
public XeroClient()
public XeroClient(Config config)
public XeroClient(Config config, SignerFactory signerFactory)
protected com.xero.model.Response get(String endPoint) throws IOException
IOExceptionprotected com.xero.model.Response get(String endPoint, Date modifiedAfter, Map<String,String> params) throws IOException
IOException@Deprecated protected String getFile(String endPoint, Date modifiedAfter, Map<String,String> params, String accept, String dirPath) throws IOException
IOExceptionprotected ByteArrayInputStream getInputStream(String endPoint, Date modifiedAfter, Map<String,String> params, String accept) throws IOException
IOExceptionprotected com.xero.model.Response put(String endPoint, JAXBElement<?> object)
protected com.xero.model.Response put(String endPoint, String contentType, byte[] bytes) throws IOException
IOExceptionprotected com.xero.model.Response put(String endPoint, String contentType, byte[] bytes, Map<? extends String,?> params) throws IOException
IOExceptionprotected com.xero.model.Response put(String endPoint, JAXBElement<?> object, Map<String,String> params)
protected com.xero.model.Response put(String endPoint, String contentType, File file) throws IOException
IOExceptionprotected com.xero.model.Response post(String endPoint, JAXBElement<?> object) throws IOException
IOExceptionprotected com.xero.model.Response post(String endPoint, JAXBElement<?> object, Map<String,String> params) throws IOException
IOExceptionprotected com.xero.model.Response delete(String endPoint) throws IOException
IOExceptionprotected void addToMapIfNotNull(Map<String,String> map, String key, Object value)
protected <T> T singleResult(List<T> list)
public List<com.xero.model.Account> getAccounts() throws IOException
IOExceptionpublic List<com.xero.model.Account> getAccounts(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.Account> createAccounts(List<com.xero.model.Account> objects) throws IOException
IOExceptionpublic List<com.xero.model.Account> updateAccount(List<com.xero.model.Account> objects) throws IOException
IOExceptionpublic com.xero.model.Account getAccount(String id) throws IOException
IOExceptionpublic String deleteAccount(String id) throws IOException
IOExceptionpublic List<com.xero.model.BankTransaction> getBankTransactions() throws IOException
IOExceptionpublic List<com.xero.model.BankTransaction> getBankTransactions(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.BankTransaction> getBankTransactions(Date modifiedAfter, String where, String order, String page) throws IOException
IOExceptionpublic List<com.xero.model.BankTransaction> getBankTransactions(Date modifiedAfter, String where, String order, String page, String unitdp) throws IOException
IOExceptionpublic List<com.xero.model.BankTransaction> createBankTransactions(List<com.xero.model.BankTransaction> bankTransactions) throws IOException
IOExceptionpublic List<com.xero.model.BankTransaction> createBankTransactions(List<com.xero.model.BankTransaction> bankTransactions, String unitdp) throws IOException
IOExceptionpublic List<com.xero.model.BankTransaction> updateBankTransactions(List<com.xero.model.BankTransaction> bankTransactions) throws IOException
IOExceptionpublic List<com.xero.model.BankTransaction> updateBankTransactions(List<com.xero.model.BankTransaction> bankTransactions, String unitdp) throws IOException
IOExceptionpublic com.xero.model.BankTransaction getBankTransaction(String id) throws IOException
IOExceptionpublic com.xero.model.BankTransaction getBankTransaction(String id, String unitdp) throws IOException
IOExceptionpublic List<com.xero.model.BankTransfer> getBankTransfers() throws IOException
IOExceptionpublic List<com.xero.model.BankTransfer> getBankTransfers(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.BankTransfer> createBankTransfers(List<com.xero.model.BankTransfer> bankTransfers) throws IOException
IOExceptionpublic com.xero.model.BankTransfer getBankTransfer(String id) throws IOException
IOExceptionpublic List<com.xero.model.BrandingTheme> getBrandingThemes() throws IOException
IOExceptionpublic List<com.xero.model.BrandingTheme> getBrandingThemes(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic com.xero.model.BrandingTheme getBrandingTheme(String id) throws IOException
IOExceptionpublic List<com.xero.model.Contact> getContacts() throws IOException
IOExceptionpublic List<com.xero.model.Contact> getContacts(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.Contact> getContacts(Date modifiedAfter, String where, String order, String page) throws IOException
IOExceptionpublic List<com.xero.model.Contact> getContacts(Date modifiedAfter, String where, String order, String page, Boolean includeArchived) throws IOException
IOExceptionpublic List<com.xero.model.Contact> createContact(List<com.xero.model.Contact> contacts) throws IOException
IOExceptionpublic List<com.xero.model.Contact> updateContact(List<com.xero.model.Contact> contacts) throws IOException
IOExceptionpublic com.xero.model.Contact getContact(String id) throws IOException
IOExceptionpublic List<com.xero.model.ContactGroup> getContactGroups() throws IOException
IOExceptionpublic List<com.xero.model.ContactGroup> getContactGroups(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.ContactGroup> createContactGroups(List<com.xero.model.ContactGroup> ContactGroups) throws IOException
IOExceptionpublic List<com.xero.model.ContactGroup> updateContactGroup(List<com.xero.model.ContactGroup> objects) throws IOException
IOExceptionpublic com.xero.model.ContactGroup getContactGroup(String id) throws IOException
IOExceptionpublic List<com.xero.model.ContactGroup> deleteContactGroup(com.xero.model.ContactGroup object) throws IOException
IOExceptionpublic List<com.xero.model.Contact> createContactGroupContacts(List<com.xero.model.Contact> objects, String id) throws IOException
IOExceptionpublic String deleteSingleContactFromContactGroup(String ContactGroupId, String ContactId) throws IOException
IOExceptionpublic String deleteAllContactsFromContactGroup(String ContactGroupId) throws IOException
IOExceptionpublic List<com.xero.model.CreditNote> getCreditNotes() throws IOException
IOExceptionpublic List<com.xero.model.CreditNote> getCreditNotes(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.CreditNote> getCreditNotes(Date modifiedAfter, String where, String order, String page) throws IOException
IOExceptionpublic List<com.xero.model.CreditNote> createCreditNotes(List<com.xero.model.CreditNote> objects) throws IOException
IOExceptionpublic List<com.xero.model.CreditNote> createCreditNotes(List<com.xero.model.CreditNote> objects, String unitdp) throws IOException
IOExceptionpublic List<com.xero.model.CreditNote> updateCreditNote(List<com.xero.model.CreditNote> objects) throws IOException
IOExceptionpublic com.xero.model.CreditNote getCreditNote(String id) throws IOException
IOException@Deprecated public String getCreditNotePdf(String id, String dirPath) throws IOException
IOExceptionpublic ByteArrayInputStream getCreditNotePdfContent(String id) throws IOException
IOExceptionpublic List<com.xero.model.Allocation> createCreditNoteAllocations(List<com.xero.model.Allocation> objects, String id) throws IOException
IOExceptionpublic List<com.xero.model.Currency> getCurrencies() throws IOException
IOExceptionpublic List<com.xero.model.Currency> getCurrencies(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic com.xero.model.Currency getCurrency(String id) throws IOException
IOExceptionpublic List<com.xero.model.Currency> createCurrencies(List<com.xero.model.Currency> objects)
public List<com.xero.model.Employee> getEmployees() throws IOException
IOExceptionpublic List<com.xero.model.Employee> getEmployees(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.Employee> createEmployees(List<com.xero.model.Employee> objects) throws IOException
IOExceptionpublic List<com.xero.model.Employee> updateEmployee(List<com.xero.model.Employee> objects) throws IOException
IOExceptionpublic com.xero.model.Employee getEmployee(String id) throws IOException
IOExceptionpublic List<com.xero.model.ExpenseClaim> getExpenseClaims() throws IOException
IOExceptionpublic List<com.xero.model.ExpenseClaim> getExpenseClaims(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.ExpenseClaim> createExpenseClaims(List<com.xero.model.ExpenseClaim> objects) throws IOException
IOExceptionpublic List<com.xero.model.ExpenseClaim> updateExpenseClaim(List<com.xero.model.ExpenseClaim> objects) throws IOException
IOExceptionpublic com.xero.model.ExpenseClaim getExpenseClaim(String id) throws IOException
IOExceptionpublic List<com.xero.model.Invoice> getInvoices() throws IOException
IOExceptionpublic List<com.xero.model.Invoice> getInvoices(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.Invoice> getInvoices(Date modifiedAfter, String where, String order, String page) throws IOException
IOExceptionpublic List<com.xero.model.Invoice> getInvoices(Date modifiedAfter, String where, String order, String page, String ids) throws IOException
IOExceptionpublic List<com.xero.model.Invoice> getInvoices(Date modifiedAfter, String where, String order, String page, String unitdp, Map<String,String> filter) throws IOException
IOException@Deprecated public List<com.xero.model.Invoice> getInvoices(Date modifiedAfter, String where, String order, String page, String unitdp, String ids) throws IOException
IOExceptionpublic List<com.xero.model.Invoice> createInvoices(List<com.xero.model.Invoice> invoices) throws IOException
IOExceptionpublic List<com.xero.model.Invoice> createInvoices(List<com.xero.model.Invoice> invoices, String unitdp) throws IOException
IOExceptionpublic List<com.xero.model.Invoice> createInvoices(List<com.xero.model.Invoice> invoices, String unitdp, Boolean summarizeErrors) throws IOException
IOExceptionpublic List<com.xero.model.Invoice> updateInvoice(List<com.xero.model.Invoice> objects) throws IOException
IOExceptionpublic List<com.xero.model.Invoice> updateInvoice(List<com.xero.model.Invoice> objects, String unitdp) throws IOException
IOExceptionpublic com.xero.model.Invoice getInvoice(String id) throws IOException
IOExceptionpublic com.xero.model.Invoice getInvoice(String id, String unitdp) throws IOException
IOException@Deprecated public String getInvoicePdf(String id, String dirPath) throws IOException
IOExceptionpublic ByteArrayInputStream getInvoicePdfContent(String id) throws IOException
IOExceptionpublic com.xero.model.OnlineInvoice getOnlineInvoice(String id) throws IOException
IOExceptionpublic List<com.xero.model.InvoiceReminder> getInvoiceReminders() throws IOException
IOExceptionpublic List<com.xero.model.Item> getItems() throws IOException
IOExceptionpublic List<com.xero.model.Item> getItems(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.Item> getItems(Date modifiedAfter, String where, String order, String unitdp) throws IOException
IOExceptionpublic List<com.xero.model.Item> createItems(List<com.xero.model.Item> objects) throws IOException
IOExceptionpublic List<com.xero.model.Item> createItems(List<com.xero.model.Item> objects, String unitdp) throws IOException
IOExceptionpublic List<com.xero.model.Item> updateItem(List<com.xero.model.Item> objects) throws IOException
IOExceptionpublic List<com.xero.model.Item> updateItem(List<com.xero.model.Item> objects, String unitdp) throws IOException
IOExceptionpublic com.xero.model.Item getItem(String id) throws IOException
IOExceptionpublic com.xero.model.Item getItem(String id, String unitdp) throws IOException
IOExceptionpublic String deleteItem(String id) throws IOException
IOExceptionpublic List<com.xero.model.Journal> getJournals() throws IOException
IOExceptionpublic List<com.xero.model.Journal> getJournals(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.Journal> getJournals(Date modifiedAfter, String offset, boolean paymentsOnly) throws IOException
IOExceptionpublic com.xero.model.Journal getJournal(String id) throws IOException
IOExceptionpublic List<com.xero.model.LinkedTransaction> getLinkedTransactions() throws IOException
IOExceptionpublic List<com.xero.model.LinkedTransaction> getLinkedTransactions(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.LinkedTransaction> getLinkedTransactions(Date modifiedAfter, String where, String order, String page) throws IOException
IOExceptionpublic List<com.xero.model.LinkedTransaction> createLinkedTransactions(List<com.xero.model.LinkedTransaction> objects) throws IOException
IOExceptionpublic List<com.xero.model.LinkedTransaction> updateLinkedTransaction(List<com.xero.model.LinkedTransaction> objects) throws IOException
IOExceptionpublic com.xero.model.LinkedTransaction getLinkedTransaction(String id) throws IOException
IOExceptionpublic String deleteLinkedTransaction(String id) throws IOException
IOExceptionpublic List<com.xero.model.ManualJournal> getManualJournals() throws IOException
IOExceptionpublic List<com.xero.model.ManualJournal> getManualJournals(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.ManualJournal> getManualJournals(Date modifiedAfter, String where, String order, String page) throws IOException
IOExceptionpublic List<com.xero.model.ManualJournal> createManualJournals(List<com.xero.model.ManualJournal> objects) throws IOException
IOExceptionpublic List<com.xero.model.ManualJournal> updateManualJournal(List<com.xero.model.ManualJournal> objects) throws IOException
IOExceptionpublic com.xero.model.ManualJournal getManualJournal(String id) throws IOException
IOExceptionpublic List<com.xero.model.Organisation> getOrganisations() throws IOException
IOExceptionpublic List<com.xero.model.Overpayment> getOverpayments() throws IOException
IOExceptionpublic List<com.xero.model.Overpayment> getOverpayments(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.Overpayment> getOverpayments(Date modifiedAfter, String where, String order, String page) throws IOException
IOExceptionpublic List<com.xero.model.Allocation> createOverpaymentAllocations(List<com.xero.model.Allocation> objects, String id) throws IOException
IOExceptionpublic com.xero.model.Overpayment getOverpayment(String id) throws IOException
IOExceptionpublic List<com.xero.model.Payment> getPayments() throws IOException
IOExceptionpublic List<com.xero.model.Payment> getPayments(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.Payment> createPayments(List<com.xero.model.Payment> objects) throws IOException
IOExceptionpublic List<com.xero.model.Payment> deletePayment(com.xero.model.Payment object) throws IOException
IOExceptionpublic List<com.xero.model.Payment> deletePayment(List<com.xero.model.Payment> objects) throws IOException
IOExceptionpublic com.xero.model.Payment getPayment(String id) throws IOException
IOExceptionpublic List<com.xero.model.Prepayment> getPrepayments() throws IOException
IOExceptionpublic List<com.xero.model.Prepayment> getPrepayments(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.Prepayment> getPrepayments(Date modifiedAfter, String where, String order, String page) throws IOException
IOExceptionpublic List<com.xero.model.Allocation> createPrepaymentAllocations(List<com.xero.model.Allocation> objects, String id) throws IOException
IOExceptionpublic com.xero.model.Prepayment getPrepayment(String id) throws IOException
IOExceptionpublic List<com.xero.model.PurchaseOrder> getPurchaseOrders() throws IOException
IOExceptionpublic List<com.xero.model.PurchaseOrder> getPurchaseOrders(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.PurchaseOrder> getPurchaseOrders(Date modifiedAfter, String where, String order, String page) throws IOException
IOExceptionpublic List<com.xero.model.PurchaseOrder> createPurchaseOrders(List<com.xero.model.PurchaseOrder> objects) throws IOException
IOExceptionpublic List<com.xero.model.PurchaseOrder> updatePurchaseOrder(List<com.xero.model.PurchaseOrder> objects) throws IOException
IOExceptionpublic com.xero.model.PurchaseOrder getPurchaseOrder(String id) throws IOException
IOException@Deprecated public String getPurchaseOrderPdf(String id, String dirPath) throws IOException
IOExceptionpublic ByteArrayInputStream getPurchaseOrderPdfContent(String id) throws IOException
IOExceptionpublic List<com.xero.model.Receipt> getReceipts() throws IOException
IOExceptionpublic List<com.xero.model.Receipt> getReceipts(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.Receipt> createReceipts(List<com.xero.model.Receipt> objects) throws IOException
IOExceptionpublic List<com.xero.model.Receipt> createReceipts(List<com.xero.model.Receipt> objects, String unitdp) throws IOException
IOExceptionpublic List<com.xero.model.Receipt> updateReceipt(List<com.xero.model.Receipt> objects) throws IOException
IOExceptionpublic com.xero.model.Receipt getReceipt(String id) throws IOException
IOExceptionpublic List<com.xero.model.RepeatingInvoice> getRepeatingInvoices() throws IOException
IOExceptionpublic List<com.xero.model.RepeatingInvoice> getRepeatingInvoices(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic com.xero.model.RepeatingInvoice getRepeatingInvoice(String id) throws IOException
IOExceptionpublic com.xero.model.Report getReport(String id, String where, String order) throws IOException
IOExceptionpublic com.xero.model.Report getReportAgedPayablesByContact(String contactId, String where, String order, String date, String fromDate, String toDate) throws IOException
IOExceptionpublic com.xero.model.Report getReportAgedReceivablesByContact(String contactId, String where, String order, String date, String fromDate, String toDate) throws IOException
IOExceptionpublic com.xero.model.Report getReportBalanceSheet(String where, String order, String date, String trackingOptionId1, String trackingOptionId2, boolean standardLayout, boolean paymentsOnly, Integer periods, String timeframe) throws IOException
IOExceptionpublic com.xero.model.Report getReportBalanceSheet(String where, String order, String date, String trackingOptionId1, String trackingOptionId2, boolean standardLayout, boolean paymentsOnly) throws IOException
IOExceptionpublic com.xero.model.Report getReportBankStatement(String accountId, String where, String order, String fromDate, String toDate) throws IOException
IOExceptionpublic com.xero.model.Report getReportBudgetSummary(String where, String order, String date, Integer periods, Integer timeframe) throws IOException
IOExceptionpublic com.xero.model.Report getExecutiveSummary(String where, String order, String date) throws IOException
IOExceptionpublic com.xero.model.Report getReportProfitLoss(String where, String order, String fromDate, String toDate, String trackingCategoryId, String trackingOptionId1, String trackingCategoryId2, String trackingOptionId2, boolean standardLayout, boolean paymentsOnly) throws IOException
IOExceptionpublic com.xero.model.Report getReportProfitLoss(String where, String order, String fromDate, String toDate, String trackingCategoryId, String trackingOptionId1, String trackingCategoryId2, String trackingOptionId2, boolean standardLayout, boolean paymentsOnly, Integer periods, String timeframe) throws IOException
IOExceptionpublic com.xero.model.Report getReportTrialBalance(String date, boolean paymentsOnly) throws IOException
IOExceptionpublic List<com.xero.model.TaxRate> getTaxRates() throws IOException
IOExceptionpublic List<com.xero.model.TaxRate> getTaxRates(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic List<com.xero.model.TaxRate> createTaxRates(List<com.xero.model.TaxRate> objects) throws IOException
IOExceptionpublic List<com.xero.model.TaxRate> updateTaxRate(List<com.xero.model.TaxRate> objects) throws IOException
IOExceptionpublic com.xero.model.TaxRate getTaxRate(String id) throws IOException
IOExceptionpublic List<com.xero.model.TrackingCategory> getTrackingCategories() throws IOException
IOExceptionpublic List<com.xero.model.TrackingCategory> getTrackingCategories(Date modifiedAfter, String where, String order, Boolean includeArchived) throws IOException
IOExceptionpublic List<com.xero.model.TrackingCategory> createTrackingCategories(List<com.xero.model.TrackingCategory> objects) throws IOException
IOExceptionpublic List<com.xero.model.TrackingCategory> createTrackingCategories(List<com.xero.model.TrackingCategory> objects, boolean summarizeErrors) throws IOException
IOExceptionpublic List<com.xero.model.TrackingCategory> updateTrackingCategory(List<com.xero.model.TrackingCategory> objects) throws IOException
IOExceptionpublic List<com.xero.model.TrackingCategory> updateTrackingCategory(List<com.xero.model.TrackingCategory> objects, boolean summarizeErrors) throws IOException
IOExceptionpublic com.xero.model.TrackingCategory getTrackingCategory(String id) throws IOException
IOExceptionpublic String deleteTrackingCategory(String id) throws IOException
IOExceptionpublic List<com.xero.model.TrackingCategoryOption> createTrackingCategoryOption(List<com.xero.model.TrackingCategoryOption> objects, String id) throws IOException
IOExceptionpublic List<com.xero.model.TrackingCategoryOption> createTrackingCategoryOption(List<com.xero.model.TrackingCategoryOption> objects, String id, boolean summarizeErrors) throws IOException
IOExceptionpublic com.xero.model.TrackingCategoryOption updateTrackingCategoryOption(com.xero.model.TrackingCategoryOption object,
String TrackingCategoryID,
String TrackingOptionID)
throws IOException
IOExceptionpublic com.xero.model.TrackingCategoryOption updateTrackingCategoryOption(com.xero.model.TrackingCategoryOption object,
String TrackingCategoryID,
String TrackingOptionID,
boolean summarizeErrors)
throws IOException
IOExceptionpublic String deleteTrackingCategoryOption(String TrackingCategoryID, String TrackingOptionID) throws IOException
IOExceptionpublic List<com.xero.model.User> getUsers() throws IOException
IOExceptionpublic List<com.xero.model.User> getUsers(Date modifiedAfter, String where, String order) throws IOException
IOExceptionpublic com.xero.model.User getUser(String id) throws IOException
IOExceptionpublic List<com.xero.model.Attachment> getAttachments(String endpoint, String guid) throws IOException
IOExceptionpublic com.xero.model.Attachment createAttachment(String endpoint, String guid, String filename, String contentType, byte[] bytes) throws IOException
IOExceptionpublic com.xero.model.Attachment createAttachment(String endpoint, String guid, String filename, String contentType, byte[] bytes, boolean includeOnline) throws IOException
IOExceptionprotected String normalizeFileNameForURI(String fileName)
fileName - the name of the file you are posting or putting to the APIpublic String getAttachmentContent(String endpoint, String guid, String filename, String accept, String dirPath) throws IOException
IOExceptionpublic ByteArrayInputStream getAttachmentContent(String endpoint, String guid, String filename, String accept) throws IOException
IOExceptionpublic ByteArrayInputStream getAttachmentContentById(String endpoint, String guid, String attachmentid, String accept) throws IOException
IOExceptionpublic Assets getAssets() throws XeroApiException, org.json.simple.parser.ParseException
XeroApiExceptionorg.json.simple.parser.ParseExceptionprotected String get2(String resource, Date modifiedAfter, Map<String,String> params) throws IOException
IOExceptionCopyright © 2019. All rights reserved.