openIMIS Backend payment_cycle reference module
This repository holds the files of the openIMIS Backend Payment Cycle reference module. It is dedicated to be deployed as a module of openimis-be_py.
ORM mapping:
- payment_cycle_paymentcycle, payment_cycle_historicalpaymentcycle > Individual
GraphQl Queries
- paymentCycle
GraphQL Mutations - each mutation emits default signals and return standard error lists (cfr. openimis-be-core_py)
- processBenefitPlanPaymentCycle
Services
- PaymentCycleService - Generic service containing workflow for payment cycle calculation
- BenefitPlanPaymentCycleService - Service customized for Benefit Plan payment cycle calculation
Configuration options (can be changed via core.ModuleConfiguration)
- gql_query_payment_cycle_perms: required rights to query PaymentCycle (default: ["200001"])
- gql_create_payment_cycle_perms: required rights to create PaymentCycle (default: ["200002"])
- gql_update_payment_cycle_perms: required rights to update PaymentCycle (default: ["200003"])
- gql_delete_payment_cycle_perms: required rights to delete PaymentCycle (default: ["200004"])
- gql_mutation_process_payment_cycle_perms: required rights to call processBenefitPlanPaymentCycle GraphQL Mutation (default: ["200005"])
openIMIS Modules Dependencies
- core
- social_protection
- contribution_plan
- calculation
Payment Cycle Service
Payment cycle service specifies generic workflow for performing a calculation of periodical payments
for any king of business object connected to payment plans. This service includes a service specific
to BenefitPlan objects. To trigger a calculation The service requires a user reference, year, and month.
Any additional keyword arguments can be passed to the process() method to be used in calculations.
result = BenefitPlanPaymentCycleService(user).process(year=year, month=month)
the result is a dict containing status of the operation, indicating if the operation completed successfully or not, message and details of an error if occurred and any additional data that was returned from psecific implementation of the services and calculation rules grouped by the id of main queryset entry (BenefitPlan id in this case).
Metadata
Release files for openimis-be-payment-cycle 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openimis_be_payment_cycle-1.3.2.tar.gz | 11.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openimis_be_payment_cycle-1.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.8 kB
Release files / openimis_be_payment_cycle-1.3.2.tar.gz
| Download URL | openimis_be_payment_cycle-1.3.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b577ae17bcbf820f1b7c5bdd9ebe4b381668e16ee9b5ddb6dba3e7e31b5397a2
|
|
BLAKE2b-256 checksum How to use checksums |
1124d8bb7a055bff8ded6989d7968c1206811a812fef700554f7dac6c6923cb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / openimis_be_payment_cycle-1.3.2-py3-none-any.whl
| Download URL | openimis_be_payment_cycle-1.3.2-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa26db30094a853e47e1b30e7f4b037e2b8633c4de46194e0cffb1f33cc880d4
|
|
BLAKE2b-256 checksum How to use checksums |
05c395e467dabba0f2f1e72bcf6edfc83c0d19331bccea1be289d54bac4f340b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|