Skip to content

Commit

Permalink
added pdf method to refund_receipt.rb (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicho1991 authored Nov 25, 2024
1 parent ed8dc2d commit 568b0aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/quickbooks/service/refund_receipt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ def delete(refund_receipt)
delete_by_query_string(refund_receipt)
end

def pdf(refund_receipt)
url = "#{url_for_resource(model::REST_RESOURCE)}/#{refund_receipt.id}/pdf"
response = do_http_raw_get(url, {}, {'Accept' => 'application/pdf'})
response.plain_body
end

private

def model
Expand Down

0 comments on commit 568b0aa

Please sign in to comment.