Add resource definitions for all 22 API tags, wire client accessors and require tree

This commit is contained in:
2026-05-29 15:01:12 +02:00
parent 8185659f9c
commit 3b4d5ae5c3
21 changed files with 566 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# frozen_string_literal: true
module Fiken
module Resources
# /companies/{slug}/journalEntries
class JournalEntries < Resource::Base
include Resource::Listable
include Resource::Findable
include Resource::Attachable
def resource_path
"journalEntries"
end
# Creation posts to a sibling path: POST /generalJournalEntries
def create_general(attributes)
post_create("/companies/#{company_slug}/generalJournalEntries", attributes)
end
end
end
end