apigrate / quickbooks

Connection library for Intuit QuickBooks
Apache License 2.0
12 stars 4 forks source link

Support void #9

Closed geoffcorey closed 1 year ago

geoffcorey commented 1 year ago

Currently the library does not support void. The fix is easy by overriding the operation based on opts. See Quickbook docs

operation=void for invoices https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice#void-an-invoice

include=void for payment https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/payment#void-a-payment

geoffcorey commented 1 year ago

bump

gaumeister commented 1 year ago

@geoffcorey take a look at the void-impl branch. I implemented a little differently because:

  1. Intuit doesn't support voids on every entity,
  2. and they don't even support void consistently within their own API (Invoice void form is different than SalesReceipt, Payment, and BillPayment

Take a look and see if this meets your needs.