class Sagekit::PO::ReceiptsResource
Public Instance Methods
create(company, **attributes)
click to toggle source
# File lib/sagekit/resources/PO/receipts.rb, line 12 def create(company, **attributes) Receipt.new post_request("#{company}/PO/POReceipts", body: attributes).body end
list(company, **params)
click to toggle source
# File lib/sagekit/resources/PO/receipts.rb, line 4 def list(company, **params) Collection.from_response get_request("#{company}/PO/POReceipts?$count=true", params: params), type: Receipt end
retreive(company, receipt_id, **params)
click to toggle source
# File lib/sagekit/resources/PO/receipts.rb, line 8 def retreive(company, receipt_id, **params) Receipt.new get_request("#{company}/PO/POReceipts(#{receipt_id})", params: params).body end