Skip to content

Commit ac5c6ad

Browse files
nicho1991ruckus
authored andcommitted
added pdf method to refund_receipt.rb (#617)
1 parent c490847 commit ac5c6ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/quickbooks/service/refund_receipt.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ def delete(refund_receipt)
66
delete_by_query_string(refund_receipt)
77
end
88

9+
def pdf(refund_receipt)
10+
url = "#{url_for_resource(model::REST_RESOURCE)}/#{refund_receipt.id}/pdf"
11+
response = do_http_raw_get(url, {}, {'Accept' => 'application/pdf'})
12+
response.plain_body
13+
end
14+
915
private
1016

1117
def model

0 commit comments

Comments
 (0)