aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Never retry a call that creates somethingSimen A. W. Olsen3 days2-4/+40
|
* Make UpdateContact read, merge and writev0.3.1Simen A. W. Olsen2026-10-182-9/+100
| | | | | | | | | Fiken's PUT replaces the whole contact and rejects a body missing required fields ("'name' er påkrevd"), so a partial update cannot work. Merging over the raw JSON rather than over Contact keeps every field Fiken holds, including the ones this package does not model — a struct round-trip would silently blank an address, its contact people and its notes.
* Carry a contact's currency, and let it be read and changedv0.3.0Simen A. W. Olsen2026-10-182-0/+121
| | | | | | | | | Fiken refuses an invoice draft whose currency differs from the contact's: "Currency for given customer {} is different from currency for the invoice draft {}". A contact created without one defaults to NOK, so anything invoiced in another currency failed at the draft with nothing to explain it. Adds Currency and Language to NewContact, plus Contact and UpdateContact for fixing one already made.
* Add CreateContactv0.2.0Simen A. W. Olsen2026-10-172-0/+73
| | | | | | Needed to link an order to Fiken without leaving the terminal: the signed order already carries the legal name, organisation number and address, so the contact can be made from it.
* Fiken API client and OAuth2 for Gov0.1.0Simen A. W. Olsen2026-10-1714-0/+2467
Extracted from gcbill, where it was internal/fiken and internal/fikenauth, so adaa and sokkel-billing can use the same client instead of each carrying its own. The login command named when a grant cannot be renewed is now injected (Source.LoginCommand): it was hardcoded to gcbill's, which would have sent every other caller's operator to a command that does not exist.