lib/paddle/models/transaction.rb in paddle-2.5.0 vs lib/paddle/models/transaction.rb in paddle-2.5.1

- old
+ new

@@ -21,11 +21,11 @@ def update(id:, **params) response = Client.patch_request("transactions/#{id}", body: params) Transaction.new(response.body["data"]) end - def invoice(id:) - response = Client.get_request("transactions/#{id}/invoice") + def invoice(id:, disposition: "attachment") + response = Client.get_request("transactions/#{id}/invoice?disposition=#{disposition}") if response.success? response.body["data"]["url"] end end