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.3.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openimis_be_payment_cycle-1.3.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for openimis_be_payment_cycle-1.3.1.tar.gz
Algorithm Hash digest
SHA256 c54664597f8065a5243f524903f8d1d37c2bd1eecbecb47c1357ee5bf6cf40fd
MD5 9d23fcbc9b1c7f9d5a0315cb3b19429d
BLAKE2b-256 08ddd7236a24111c05e97ada188de11f449da03c18acc93f88cf042c7ce7d8d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openimis_be_payment_cycle-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0cc6a8d781132714a5824de105545d7dcfd3d106c7d32d4e5122de52f19f6542
MD5 d3a428530af48ae98c7021aface83a98
BLAKE2b-256 bb869c41350713570886cb3e53807d60ab5d7fee11f3e5f04bcc140ee74a3ee2

See more details on using hashes here.

Supported by

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