Skip to main content

This module checks and validates your bills and returns the required information

Project description

This module checks and validates your bills and returns the required information

Dependencies

To use this module you need to install jdatetime and python

Install

pip install iranian-bills-validation

Usage

from IranianBillsValidation.Bill import Receipt

receipt = Receipt('9985235404124', '0000880000568')
if receipt.billing_isvalid():
    print(receipt.billing_info())

if receipt.payment_isvalid():
    print(receipt.payment_info())

print(receipt.result())

Output

{"billing_service": "Electricity", "billing_companycode": "041", "billing_filecode": "99852354"}

{"payment_periodcode": "05", "payment_yearcode": "1400", "payment_amount": "8800000"}

{"billing": {"is_valid": true, "billing_service": "Electricity", "billing_companycode": "041", "billing_filecode": "99852354"}, "payment": {"is_valid": true, "payment_periodcode": "05", "payment_yearcode": "1400", "payment_amount": "8800000"}}

اعتبارسنجی قبوض ایرانی

این ماژول قبض های شما را بررسی و اعتبارسنجی می کند و اطلاعات مورد نیاز را برمی گرداند

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

IranianBillsValidation-1.1.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file IranianBillsValidation-1.1.1.tar.gz.

File metadata

  • Download URL: IranianBillsValidation-1.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for IranianBillsValidation-1.1.1.tar.gz
Algorithm Hash digest
SHA256 18935d8840dcf4052f77136cb410c0da43b27bd23e729cc9b8f127786db4645e
MD5 b5eb5ae933c758f4978ef9b31060fe3f
BLAKE2b-256 2bcbba631c4c143f2437826a14a8e7217c2c48ea70b8f6c5ec267f8d5bea82e3

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