tstmedia/active_zuora — pull request #9 by timsegraves (2013-02-14 16:16:00+00:00)
Title: Support For Batched Creates

### Overview
This PR adds support for batched creates. It adds a new class method .save() to all objects which accepts an array of objects to save. The method is smart enough to separate out new from existing objects and save each set independently.

In addition, it also batches the calls into sets of 50 since that is the maximum number allowed by Zuora. This batching was also added in for deletes as well since the same rules apply there as well.

Finally, I added the :regenerate_invoice_pdf to the list of fields excluded from being queried on the Invoice object to fix the problem noted in issue #7. I can remove this or put it in a different PR if you'd prefer.

### Tests
I added a simple test to the zobject_integration_spec to test the batch creation and deletion of objects.

All changes made should be fully backwards compatible and not break any existing integrations. Please let me know if you have any questions or concerns.