ruckus / quickbooks-ruby

Quickbooks Online REST API V3 - Ruby
MIT License
374 stars 302 forks source link

adding LinkedTxn collection into Quickbooks::Model::Bill per v3 API spec #452

Closed thaiden closed 5 years ago

thaiden commented 5 years ago

Intent

To un parse LinkedTxn attribute into QuickBooks::Model::Bill from XML per API description

Example of XML payload

<Bill xmlns="http://schema.intuit.com/finance/v3">
  .....
  <LinkedTxn>
    <TxnId>3527</TxnId>
    <TxnType>BillPaymentCheck</TxnType>
  </LinkedTxn>
   .....
</Bill>

Usage:

bill.linked_transactions.each do |txn|
  # some logic
end
ruckus commented 5 years ago

Thank you!

thaiden commented 5 years ago

@ruckus thank you for the fast review, btw you might take a look at your CI, it was failing with The command "gem install bundler -v '>= 1.13.0'" failed and exited with 1 during