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

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.0
File Size Uploaded Provenance Actions
openimis_be_payment_cycle-1.4.0.tar.gz 12.3 kB Without provenance Details for openimis_be_payment_cycle-1.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 30.6 kB

Release files / openimis_be_payment_cycle-1.4.0.tar.gz

Download URL openimis_be_payment_cycle-1.4.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0421dadddb2af281e8cee2642f74bcffee3254a3b29c2b448c5474c52e7911cd
BLAKE2b-256 checksum
How to use checksums
9225e2dae46b4a82744f67441574d2d44e80bca8e351a4651ff4e441a070ab09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

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

Download URL openimis_be_payment_cycle-1.4.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b783ece2a89c4678a925c60d8e46bdee28299f44542dc580354f3c2350224fb
BLAKE2b-256 checksum
How to use checksums
8fc6c8263e54005fa9d555b4133892e3f52642a5160d57a59f775335e9f2046f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for openimis-be-payment-cycle 1.4.0

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