class Sagekit::OE::CreditNotesResource

Public Instance Methods

create(company, **attributes) click to toggle source
# File lib/sagekit/resources/OE/credit_notes.rb, line 12
def create(company, **attributes)
  CreditNote.new post_request("#{company}/OE/OECreditDebitNotes", body: attributes).body
end
list(company, **params) click to toggle source
# File lib/sagekit/resources/OE/credit_notes.rb, line 4
def list(company, **params)
  Collection.from_response get_request("#{company}/OE/OECreditDebitNotes?$count=true", params: params), type: CreditNote
end
retreive(company, id, **params) click to toggle source
# File lib/sagekit/resources/OE/credit_notes.rb, line 8
def retreive(company, id, **params)
  CreditNote.new get_request("#{company}/OE/OECreditDebitNotes('#{id}')", params: params).body
end