Skip to content

Persistent storage of invoice data

License

Notifications You must be signed in to change notification settings

folio-org/mod-invoice-storage

Repository files navigation

mod-invoice-storage

Copyright (C) 2019-2023 The Open Library Foundation

This software is distributed under the terms of the Apache License, Version 2.0. See the file "LICENSE" for more information.

Introduction

This is the Invoice storage module.

NOTE: This module requires postgresql v10 or later

Additional information

Kafka domain event pattern

The pattern means that every time when a domain entity is created/updated a message is posted to kafka topic. Currently, domain events are supported for orders, order lines and pieces The events are posted into the following topics:

  • ACQ_ORDER_CHANGED - for orders
  • ACQ_ORDER_LINE_CHANGED - for order lines
  • ACQ_PIECE_CHANGED - for pieces

The event payload has the following structure:

{
  "id": "12bb13f6-d0fa-41b5-b0ad-d6561975121b",
  "action": "CREATED|UPDATED|DELETED",
  "userId": "1d4f3f6-d0fa-41b5-b0ad-d6561975121b",
  "eventDate": "2024-11-14T10:00:00.000+0000",
  "actionDate": "2024-11-14T10:00:00.000+0000",
  "entitySnapshot": { } // entity being either: order, orderLine, piece
}

Default value for all partitions is 1. Kafka partition key for all the events is entity id.

Issue tracker

See project MODINVOSTO at the FOLIO issue tracker.

Other documentation

Other modules are described, with further FOLIO Developer documentation at dev.folio.org

About

Persistent storage of invoice data

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 30

Languages