public interface XeroSyncPlugin
Modifier and Type | Method and Description |
---|---|
XeroLineItem |
adjustInvoiceLineItem(XeroLineItem item,
JSONObject itemsJSON) |
XeroLineItem |
adjustPurchaseLineItem(XeroLineItem item,
JSONObject itemsJSON) |
long |
getInvoiceBillTo(JSONObject invoice,
long currentBillToId) |
java.lang.String |
getInvoiceFields(java.lang.String fields) |
java.lang.String |
getPOFields(java.lang.String fields) |
java.lang.String |
makeXeroInvoiceNumber(JSONObject jsonInvoice,
java.lang.String invNumber) |
java.lang.String |
makeXeroPurchaseNumber(JSONObject jsonPurchase,
java.lang.String purchaseId) |
void |
postSyncInvoice(XeroClient client,
ReSTPlugin xeroAuth,
java.lang.String endpointUrl,
org.w3c.dom.Document response,
JSONObject invoice) |
void |
processInvoiceItemXML(JSONObject json,
org.w3c.dom.Document doc,
org.w3c.dom.Element lineItem,
XeroLineItem xli) |
void |
processInvoiceXML(JSONObject json,
org.w3c.dom.Document doc) |
void |
processPOItemXML(JSONObject json,
org.w3c.dom.Document doc,
org.w3c.dom.Element lineItem,
XeroLineItem xli) |
void |
processPOXML(JSONObject json,
org.w3c.dom.Document doc) |
boolean |
shouldCreateInvoice(JSONObject jsonInvoice,
boolean isProcessed)
run this method after checking invoice date within 90 days
|
boolean |
shouldCreatePO(JSONObject jsonPurchase,
boolean isProcessed,
java.net.URL remoteURL)
run this method after checking PO date within 90 days
|
java.lang.String getPOFields(java.lang.String fields)
long getInvoiceBillTo(JSONObject invoice, long currentBillToId)
void processPOXML(JSONObject json, org.w3c.dom.Document doc)
void processPOItemXML(JSONObject json, org.w3c.dom.Document doc, org.w3c.dom.Element lineItem, XeroLineItem xli)
java.lang.String getInvoiceFields(java.lang.String fields)
void processInvoiceXML(JSONObject json, org.w3c.dom.Document doc)
void processInvoiceItemXML(JSONObject json, org.w3c.dom.Document doc, org.w3c.dom.Element lineItem, XeroLineItem xli)
java.lang.String makeXeroInvoiceNumber(JSONObject jsonInvoice, java.lang.String invNumber)
java.lang.String makeXeroPurchaseNumber(JSONObject jsonPurchase, java.lang.String purchaseId)
XeroLineItem adjustInvoiceLineItem(XeroLineItem item, JSONObject itemsJSON)
XeroLineItem adjustPurchaseLineItem(XeroLineItem item, JSONObject itemsJSON)
void postSyncInvoice(XeroClient client, ReSTPlugin xeroAuth, java.lang.String endpointUrl, org.w3c.dom.Document response, JSONObject invoice) throws XeroSyncInvoiceException
XeroSyncInvoiceException
boolean shouldCreateInvoice(JSONObject jsonInvoice, boolean isProcessed)
jsonInvoice
- isProcessed
- boolean shouldCreatePO(JSONObject jsonPurchase, boolean isProcessed, java.net.URL remoteURL)
jsonPurchase
- isProcessed
- remoteURL
- stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.