Skip to content

Commit

Permalink
Merge pull request #92 from killbill/fix-integration-test-failure
Browse files Browse the repository at this point in the history
Fix for integration test failure
  • Loading branch information
reshmabidikar authored Dec 14, 2023
2 parents b0c6603 + bd81c04 commit 3b83dd2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/killbill_client/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,13 @@ def bundles(options = {})
end

def invoices(options = {})
params_hash = options.delete(:params)
options_to_merge = params_hash.nil? ? {} : params_hash
merged_options = { :includeInvoiceComponents => true }.merge(options_to_merge)
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/invoices",
{
:includeInvoiceComponents => true
}.merge(options.delete(:params)),
options,
Invoice
merged_options,
options,
Invoice
end

def migration_invoices(options = {})
Expand Down

0 comments on commit 3b83dd2

Please sign in to comment.