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

Updated Alex Sherstinsky pull request with fixes to get it working with current Zoho API #13

Open
wants to merge 278 commits into
base: master
Choose a base branch
from

Conversation

rept
Copy link

@rept rept commented Oct 23, 2014

  • Fixed error in build_attributes build_attributes refl_h => refl_a
  • Removed InvoiceItem class since it doesn't exist (anymore) in Zoho, and replaced it with LineItem
  • Fixed error in to_hash that forced any class into ZohoInvoice::Invoice, this now checks the class
  • Fixed error (probably due to change by Zoho) in save of base object result.body => result.env.body
  • Expanded the mapping after an object is saved to Zoho so all values that are returned in the response (result.env.body) are mapped back to the known attributes. This will lower the number of calls needed to the API. After you save an invoice, it will now automatically fill the invoice_number from Zoho (as well as other values).
  • Changed the attributes of LineItem so they match the ones returned by Zoho. Used READ_ATTRIBUTES (similar as Alex Sherstinsky did).
  • Updated Contact so it matches definition of Zoho, and used READ_ATTRIBUTES similar to other classes.

Alex Sherstinsky and others added 14 commits March 21, 2014 02:52
- Removed InvoiceItem class since it doesn't exist (anymore) in Zoho, and replaced it with LineItem
- Fixed error in to_hash that forced any class into ZohoInvoice::Invoice, this now checks the class
- Fixed error (probably due to change by Zoho) in save of base object result.body => result.env.body
- Expanded the mapping after an object is saved to Zoho so all values that are returned in the response (result.env.body) are mapped back to the known attributes. This will lower the number of calls needed to the API.  After you save an invoice, it will now automatically fill the invoice_number from Zoho (as well as other values).
- Changed the attributes of LineItem so they match the ones returned by Zoho.  Used READ_ATTRIBUTES (similar as Alex Sherstinsky did).
- Removed InvoiceItem class since it doesn't exist (anymore) in Zoho, and replaced it with LineItem
- Fixed error in to_hash that forced any class into ZohoInvoice::Invoice, this now checks the class
- Fixed error (probably due to change by Zoho) in save of base object result.body => result.env.body
- Expanded the mapping after an object is saved to Zoho so all values that are returned in the response (result.env.body) are mapped back to the known attributes. This will lower the number of calls needed to the API.  After you save an invoice, it will now automatically fill the invoice_number from Zoho (as well as other values).
- Changed the attributes of LineItem so they match the ones returned by Zoho.  Used READ_ATTRIBUTES (similar as Alex Sherstinsky did).
@coveralls
Copy link

Coverage Status

Coverage decreased (-32.91%) when pulling 218654c on rept:master into eb271c5 on neovintage:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-32.8%) when pulling 82f54ec on rept:master into eb271c5 on neovintage:master.

…mimosa-master

Conflicts:
	lib/zoho_invoice/contact.rb
@coveralls
Copy link

Coverage Status

Coverage decreased (-21.56%) when pulling ee711ee on rept:master into eb271c5 on neovintage:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-21.72%) when pulling a872f82 on rept:master into eb271c5 on neovintage:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants