-
Notifications
You must be signed in to change notification settings - Fork 14
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
Missing fields TaxRatePercent and CountryOfPublication #11
Comments
Hi Daniel, Yes, I would definitely welcome the pull request! Thanks for any contribution, Aaron |
Great, probably you will have to give me contributor access, because right now, I'm getting a forbidden 403 error: Pushing Added_TaxRatePercent_CountryOfPublication
Error encountered while pushing branch to the remote repository: Git failed with a fatal error.
Git failed with a fatal error.
unable to access 'https://github.com/jaerith/ONIX-Data.git/': The requested URL returned error: 403
Pushing to https://github.com/jaerith/ONIX-Data.git
Failed to push the branch to the remote repository. See the Output window for more details. Btw, I've treated the Regards, |
@dgil-unedbarbastro Maybe you could fork this repository and make pull request from your fork? It is usually better way than giving access directly to "source" repo and GitHub have really nice support for such use case. |
Yes, @Stanislaw000 is correct. Perhaps one day I will add other contributors as authors to the project, but for now, I prefer to go with the route of pull requests. |
Thanks for the enhancements, @dgil-unedbarbastro! Yes, I tend to treat numeric fields as strings, mainly since the XML/JSON libraries will fail deserialization in the face of a bad number, and then the entire record becomes unavailable. But that's where the helper methods come into play. For example, on Price, you'll find PriceAmountNum, which does the work of providing a numeric version for you. However, if something bad does actually happen upon deserialization, you can detect and observe the error by calling IsValid() and GetParsingError() on the Product class, as well as GetInputXml() to identify the problematic record. |
Done! Forked and created a new Pull Request |
Cool! I merged the pull, and I add some properties for the short tags, along with a helper method for that numeric field. |
Hi,
I need to receive those fields which currently are not being parsed:
OnixPriceTax.TaxRatePercent
OnixPublishingDetail.CountryOfPublication
I've already added to my local cloned ONIX-Data repo, if you want, I can create a pull-request so we can contribute to this repo.
Regards,
Daniel
The text was updated successfully, but these errors were encountered: