xeroapi / xero-cfml Goto Github PK
View Code? Open in Web Editor NEWThis project forked from sidneyallen/xero-cfml
CFML wrapper for Xero
This project forked from sidneyallen/xero-cfml
CFML wrapper for Xero
Please note, I am using Lucee. Therefore this maybe a compatibility issue....
CFC: Contact.cfc
FUNCTION: toJSON
CHANGE:
Changes to the address weren't updating Xero - the toJSON function resulted in empty address structures. Finally tracked this down to around line 194 . Here is my edited code:
if (structKeyExists(variables.instance,"Addresses"))
{
if (NOT listFindNoCase(arguments.exclude, "Addresses"))
{
myStruct["Addresses"] = [];
if (ArrayLen(variables.instance.Addresses) GT 0)
{
for(n = 1; n lte arrayLen(getAddresses()); n = n+1)
{
str = getAddresses()[n].toStruct();
arrayAppend(myStruct["Addresses"], str);
}
}
}
}
I think this may have something to do with the cfproperty's of Address.cfc.
Xero are deprecating OAuth 1.0a and switching to oAuth 2.0. Are there any plans to update this SDK to support oAuth 2.0? Looks like it could use this: https://github.com/coldfumonkeh/oauth2/blob/master/xero.cfc as a starting point?
Please note, I am using Lucee. Therefore this maybe a compatibility issue....
CFC: Contact.cfc:
FUNCTION: setBatchPayments
CHANGE: this function should accept a struct, not a string
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.