Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QBModel Validation #6

Open
TeknoloGenie opened this issue Nov 1, 2016 · 0 comments
Open

QBModel Validation #6

TeknoloGenie opened this issue Nov 1, 2016 · 0 comments

Comments

@TeknoloGenie
Copy link
Member

TeknoloGenie commented Nov 1, 2016

QuickBooks has strict guidelines to QBxml request and what data can be passed, how its formatted, the order its sent in... needless to say its ridiculous. But we must conform to their ridiculousness lol.

Each QBModel has a .json schema file, validation should be defined within the appropriate schema file. In order to accomplish this we will need to do a major refactor within the buildXMLRequest method. Heres an example of what i would like this to look like.

"Add" : {
...
"4": {
"CompanyName": {
"type":"STRTYPE",
"required": true
}
},
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant