Skip to main content

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.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openimis-be-payment-cycle 1.4.1
File Size Uploaded Provenance Actions
openimis_be_payment_cycle-1.4.1.tar.gz 13.0 kB Without provenance Details for openimis_be_payment_cycle-1.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openimis-be-payment-cycle 1.4.1
File Interpreter ABI Platform Actions
openimis_be_payment_cycle-1.4.1-py3-none-any.whl Python 3 none any Details for openimis_be_payment_cycle-1.4.1-py3-none-any.whl

Total release size: 32.5 kB

Release files / openimis_be_payment_cycle-1.4.1.tar.gz

Download URL openimis_be_payment_cycle-1.4.1.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
eca586a33863263baaa0ef2b3958c8b13d1404cb3660505debe8e3243846ed5a
BLAKE2b-256 checksum
How to use checksums
50152e1afac3c16f5b993b530f335eae1bb3c9742721569b365f21038f9bd6bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / openimis_be_payment_cycle-1.4.1-py3-none-any.whl

Download URL openimis_be_payment_cycle-1.4.1-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf140341cb427dfb68afe7cf46e151f7d49be4d8f40903ea44f8013c61abd2e7
BLAKE2b-256 checksum
How to use checksums
e6b70d6d5b6c3d510ec0ff348f594db9758b1c7eb7b3a5fdb16c103939b8200e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for openimis-be-payment-cycle 1.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page