Skip to main content

The openIMIS Backend payment_cycle reference module.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openimis_be_payment_cycle-1.1.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

openimis_be_payment_cycle-1.1.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file openimis_be_payment_cycle-1.1.0.tar.gz.

File metadata

File hashes

Hashes for openimis_be_payment_cycle-1.1.0.tar.gz
Algorithm Hash digest
SHA256 799bdd43568d1a94af2b93ceb4d5bdb4db222cfd7547cd38109f38c049651b2c
MD5 0a64afb081dc40abb434479250dd88f3
BLAKE2b-256 640489ae28eda9ec635a35737705cd7e286a1f3a5758e25be698059544ff06f2

See more details on using hashes here.

File details

Details for the file openimis_be_payment_cycle-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openimis_be_payment_cycle-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 575388763f21c52ec8178bdefefe9ad1a68df98528da0bf5c8cd6cd9cef60921
MD5 6d497aeb6b4541c52f5a008d7acb7322
BLAKE2b-256 a1934cf5b110a8c7cce4d5a1c0fac2b2094be2649c9d3d978de180bf7d32b2e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page