OpenG2P Program Payments: In Files
Module name
g2p_payment_files
Module title
OpenG2P Program Payments: In Files
Technology base
Functionality
Payment File Configuration:
Configuration for payment files, possibly specifying file formats, fields, etc.
Batch Tagging:
Allows tagging batches of payments for easy identification and processing.
Payment Management:
A central view for managing payments, batches, and configurations.
FastAPI Endpoint:
This module integrates with FastAPI to expose endpoints for programmatic interaction. One notable endpoint is the
/jwks.json
API, which dynamically generates a pair of JSON Web Keys (JWKs) – a public key and a private key – when vouchers are created.
Design notes
Security Model:
The
ir.model.access.csv
file suggests access control considerations. Ensure proper permissions are set for the views and functionalities exposed.
API Integration:
Leverage FastAPI for creating robust APIs. The
data/fastapi_endpoint.xml
file suggests the presence of API endpoints. Define API routes and handlers in accordance with your module's requirements.
Payment File Handling:
Design how payment files are processed. Consider supporting multiple file formats, validation checks, and error handling.
Relationships with other entities
Internal Interactions: Collaborates with the
g2p.program.payment.manager
class for overall payment coordination and batch management.External Integration: Connects to the external payment interoperability layer API for secure and efficient disbursement execution.
Dependencies
Internal Dependencies:
Ensure that the listed dependencies (
g2p_programs
,g2p_program_documents
,fastapi
,mail
) are properly installed and configured in your OpenG2P environment.
External Dependencies:
Install the specified Python libraries (
base45
,cryptography
,cose
,python-jose
,python-barcode
,pdfkit
,qrcode
,wkhtmltopdf
). Use a virtual environment to manage dependencies.
User interface
NA
Configuration
Error codes
NA
Source code
https://github.com/OpenG2P/openg2p-program/tree/15.0-develop/g2p_payment_files
Installation
Standard odoo package installation
Last updated