diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..9031b26
Binary files /dev/null and b/.DS_Store differ
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 68bc17f..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,160 +0,0 @@
-# Byte-compiled / optimized / DLL files
-__pycache__/
-*.py[cod]
-*$py.class
-
-# C extensions
-*.so
-
-# Distribution / packaging
-.Python
-build/
-develop-eggs/
-dist/
-downloads/
-eggs/
-.eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-wheels/
-share/python-wheels/
-*.egg-info/
-.installed.cfg
-*.egg
-MANIFEST
-
-# PyInstaller
-# Usually these files are written by a python script from a template
-# before PyInstaller builds the exe, so as to inject date/other infos into it.
-*.manifest
-*.spec
-
-# Installer logs
-pip-log.txt
-pip-delete-this-directory.txt
-
-# Unit test / coverage reports
-htmlcov/
-.tox/
-.nox/
-.coverage
-.coverage.*
-.cache
-nosetests.xml
-coverage.xml
-*.cover
-*.py,cover
-.hypothesis/
-.pytest_cache/
-cover/
-
-# Translations
-*.mo
-*.pot
-
-# Django stuff:
-*.log
-local_settings.py
-db.sqlite3
-db.sqlite3-journal
-
-# Flask stuff:
-instance/
-.webassets-cache
-
-# Scrapy stuff:
-.scrapy
-
-# Sphinx documentation
-docs/_build/
-
-# PyBuilder
-.pybuilder/
-target/
-
-# Jupyter Notebook
-.ipynb_checkpoints
-
-# IPython
-profile_default/
-ipython_config.py
-
-# pyenv
-# For a library or package, you might want to ignore these files since the code is
-# intended to run in multiple environments; otherwise, check them in:
-# .python-version
-
-# pipenv
-# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
-# However, in case of collaboration, if having platform-specific dependencies or dependencies
-# having no cross-platform support, pipenv may install dependencies that don't work, or not
-# install all needed dependencies.
-#Pipfile.lock
-
-# poetry
-# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
-# This is especially recommended for binary packages to ensure reproducibility, and is more
-# commonly ignored for libraries.
-# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
-#poetry.lock
-
-# pdm
-# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
-#pdm.lock
-# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
-# in version control.
-# https://pdm.fming.dev/#use-with-ide
-.pdm.toml
-
-# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
-__pypackages__/
-
-# Celery stuff
-celerybeat-schedule
-celerybeat.pid
-
-# SageMath parsed files
-*.sage.py
-
-# Environments
-.env
-.venv
-env/
-venv/
-ENV/
-env.bak/
-venv.bak/
-
-# Spyder project settings
-.spyderproject
-.spyproject
-
-# Rope project settings
-.ropeproject
-
-# mkdocs documentation
-/site
-
-# mypy
-.mypy_cache/
-.dmypy.json
-dmypy.json
-
-# Pyre type checker
-.pyre/
-
-# pytype static type analyzer
-.pytype/
-
-# Cython debug symbols
-cython_debug/
-
-# PyCharm
-# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
-# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
-# and can be added to the global gitignore or merged into this file. For a more nuclear
-# option (not recommended) you can uncomment the following to ignore the entire idea folder.
-#.idea/
diff --git a/README.md b/README.md
index 28e37a0..56b049f 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
- API version: 1.0.0
- Package version: 1.0.0
-- Generator version: 7.5.0
+- Generator version: 7.6.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
## Requirements.
@@ -76,15 +76,15 @@ configuration = abha.Configuration(
with abha.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = abha.DefaultApi(api_client)
- create_health_id_with_pre_verified_request = abha.CreateHealthIdWithPreVerifiedRequest() # CreateHealthIdWithPreVerifiedRequest |
+ auth_aadhar_init_request = abha.AuthAadharInitRequest() # AuthAadharInitRequest |
try:
- # Health ID creation
- api_response = api_instance.create_health_id_with_pre_verified(create_health_id_with_pre_verified_request)
- print("The response of DefaultApi->create_health_id_with_pre_verified:\n")
+ # auth-aadhar-init
+ api_response = api_instance.auth_aadhar_init(auth_aadhar_init_request)
+ print("The response of DefaultApi->auth_aadhar_init:\n")
pprint(api_response)
except ApiException as e:
- print("Exception when calling DefaultApi->create_health_id_with_pre_verified: %s\n" % e)
+ print("Exception when calling DefaultApi->auth_aadhar_init: %s\n" % e)
```
@@ -94,20 +94,32 @@ All URIs are relative to *https://healthidsbx.abdm.gov.in/api/v1*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
+*DefaultApi* | [**auth_aadhar_init**](docs/DefaultApi.md#auth_aadhar_init) | **POST** /auth/init | auth-aadhar-init
+*DefaultApi* | [**confirm_with_aadhaar_otp**](docs/DefaultApi.md#confirm_with_aadhaar_otp) | **POST** /auth/confirmWithAadhaarOtp | aadhar-otp-confirm
*DefaultApi* | [**create_health_id_with_pre_verified**](docs/DefaultApi.md#create_health_id_with_pre_verified) | **POST** /registration/aadhaar/createHealthIdWithPreVerified | Health ID creation
+*DefaultApi* | [**generate_card_using_get**](docs/DefaultApi.md#generate_card_using_get) | **GET** /account/getCard | Generate ABHA card in PDF format
*DefaultApi* | [**generate_mobile_otp**](docs/DefaultApi.md#generate_mobile_otp) | **POST** /registration/aadhaar/generateMobileOTP | Generate Mobile OTP
*DefaultApi* | [**generate_otp**](docs/DefaultApi.md#generate_otp) | **POST** /registration/aadhaar/generateOtp | Generate OTP
+*DefaultApi* | [**generate_png_card_using_get**](docs/DefaultApi.md#generate_png_card_using_get) | **GET** /account/getPngCard | Generate ABHA card PNG
+*DefaultApi* | [**generate_svg_card_using_get**](docs/DefaultApi.md#generate_svg_card_using_get) | **GET** /account/getSvgCard | Generate ABHA card SVG
+*DefaultApi* | [**get_account_information_using_get**](docs/DefaultApi.md#get_account_information_using_get) | **GET** /account/profile | Get account information.
+*DefaultApi* | [**get_qr_code_using_get**](docs/DefaultApi.md#get_qr_code_using_get) | **GET** /account/qrCode | Get Quick Response code in PNG format for this account.
+*DefaultApi* | [**resend_auth_otp**](docs/DefaultApi.md#resend_auth_otp) | **POST** /auth/resendAuthOTP | resend-auth-aadhar-init
*DefaultApi* | [**verify_mobile_otp**](docs/DefaultApi.md#verify_mobile_otp) | **POST** /registration/aadhaar/verifyMobileOTP | Verify Mobile OTP
*DefaultApi* | [**verify_otp**](docs/DefaultApi.md#verify_otp) | **POST** /registration/aadhaar/verifyOTP | Verify OTP
## Documentation For Models
+ - [AuthAadharInitRequest](docs/AuthAadharInitRequest.md)
- [CreateHealthIdWithPreVerified200Response](docs/CreateHealthIdWithPreVerified200Response.md)
- [CreateHealthIdWithPreVerifiedRequest](docs/CreateHealthIdWithPreVerifiedRequest.md)
- [GenerateMobileOtpRequest](docs/GenerateMobileOtpRequest.md)
- [GenerateOtp200Response](docs/GenerateOtp200Response.md)
- [GenerateOtpRequest](docs/GenerateOtpRequest.md)
+ - [GeneratePngCardUsingGET200Response](docs/GeneratePngCardUsingGET200Response.md)
+ - [GetAccountInformationUsingGET200Response](docs/GetAccountInformationUsingGET200Response.md)
+ - [ResendAuthOTPRequest](docs/ResendAuthOTPRequest.md)
- [VerifyOtpRequest](docs/VerifyOtpRequest.md)
diff --git a/abha.yaml b/abha.yaml
index ee6d4ff..0c8abc5 100644
--- a/abha.yaml
+++ b/abha.yaml
@@ -314,11 +314,509 @@ paths:
description: Internal server error
security:
- bearerAuth: []
+ /auth/init:
+ post:
+ summary: auth-aadhar-init
+ description: This endpoint Initiates Aadhar Authentication
+ operationId: authAadharInit
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+
+ type: object
+ required:
+ - authMethod
+ - healthid
+ properties:
+ authMethod:
+ type: string
+ healthid:
+ type: string
+
+ responses:
+ '200':
+ description: Transaction Id
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ txnId:
+ type: string
+ format: uuid
+ example: 'a825f76b-0696-40f3-864c-5a3a5b389a83'
+ description: Based on UUID
+
+ '400':
+ description: Bad request (e.g., missing or invalid Aadhaar number)
+ '401':
+ description: Unauthorized (invalid or missing bearer token)
+ '500':
+ description: Internal server error
+ security:
+ - bearerAuth: []
+ /auth/resendAuthOTP:
+ post:
+ summary: resend-auth-aadhar-init
+ description: This endpoint Initiates Resends Aadhar Authentication
+ operationId: resendAuthOTP
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+
+ type: object
+ required:
+ - authMethod
+ - txnId
+ properties:
+ authMethod:
+ type: string
+ txnId:
+ type: string
+ format: uuid
+ example: 'a825f76b-0696-40f3-864c-5a3a5b389a83'
+ description: Based on UUID
+ responses:
+ '200':
+ description: Transaction Id
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ txnId:
+ type: string
+ format: uuid
+ example: 'a825f76b-0696-40f3-864c-5a3a5b389a83'
+ description: Based on UUID
+
+ '400':
+ description: Bad request (e.g., missing or invalid Aadhaar number)
+ '401':
+ description: Unauthorized (invalid or missing bearer token)
+ '500':
+ description: Internal server error
+ security:
+ - bearerAuth: []
+ /auth/confirmWithAadhaarOtp:
+ post:
+ summary: aadhar-otp-confirm
+ description: This endpoint Confirms Aadhar Authentication
+ operationId: confirmWithAadhaarOtp
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+
+ type: object
+ required:
+ - authMethod
+ - txnId
+ properties:
+ authMethod:
+ type: string
+ txnId:
+ type: string
+ format: uuid
+ example: 'a825f76b-0696-40f3-864c-5a3a5b389a83'
+ description: Based on UUID
+ responses:
+ '200':
+ description: Transaction Id
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ txnId:
+ type: string
+ format: uuid
+ example: 'a825f76b-0696-40f3-864c-5a3a5b389a83'
+ description: Based on UUID
+
+ '400':
+ description: Bad request (e.g., missing or invalid Aadhaar number)
+ '401':
+ description: Unauthorized (invalid or missing bearer token)
+ '500':
+ description: Internal server error
+ security:
+ - bearerAuth: []
+ /account/profile:
+ get:
+ summary: Get account information.
+ description: "Explanation\t- Api Accepts Auth Token and then Returns Account Details.\r\n\r\nRequest Body\t- Required\r\n\r\nResponce\t- Api Accepts Auth Token and then Returns Account Details. Returns Error for Unauthorized Auth Token."
+ operationId: getAccountInformationUsingGET
+
+ parameters:
+ - name: Accept-Language
+ in: header
+ description: Access Token.
+ required: true
+ schema:
+ type: string
+ - name: X-Token
+ in: header
+ description: Access Token.
+ required: true
+ schema:
+ type: string
+
+ responses:
+ '200':
+ description: Return Account details in case of success
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ address:
+ type: string
+ example: b-14 someshwar nagar
+ authMethods:
+ type: array
+ example: AADHAAR_OTP
+ description: Based on authMethods
+ items:
+ type: string
+ enum:
+ - AADHAAR_OTP
+ - MOBILE_OTP
+ - PASSWORD
+ - DEMOGRAPHICS
+ - AADHAAR_BIO
+ dayOfBirth:
+ type: string
+ example: 31
+ districtCode:
+ type: string
+ example: 401
+ districtName:
+ type: string
+ example: Pune
+ email:
+ type: string
+ example: example@demo.com
+ emailVerified:
+ type: boolean
+ firstName:
+ type: string
+ example: kishan
+ gender:
+ type: string
+ example: Male
+ healthId:
+ type: string
+ example: deepakndhm
+ healthIdNumber:
+ type: string
+ example: 43-4221-5105-6749
+ kycPhoto:
+ type: string
+ example: sw1uD+gpv3fj6NHBNhtcII3GksVtkLT9bvcz0svYDyUt/x3jTtedXSYgw4b90GTwfLfs1eow056VsOw9HFS/wB8uH5Ysx+QzpL7PxmAY1WOHwOj04sPKN6Dw8XY8vcXovtvZc1dUB+TPAlGGPNu8iqMVPetukysjRxgbNdLLKMxn46rIRb8NieeyuDx1EHa90jJP9KwKGZdsLr08BysrmMJExzTO9FT93CzoNg50/nxzaQgmkBSbu9D8DxJm7XrLzWSUB05YCknHbokm4iXwyYBsrmfFDE/xCDfzYPhYyhtEmOi4J/GMp+lO+gAHQFQtxkIADhoSR8WXGcAbCUj7uTjFsBU/tc+RtvSotso4FXy8v+Ylzj28jbFTmmOWyAwYi9pThQjXnmRnq43dVdd5OXmxIII6SXs0JzoFvKwSk7VxhuLIRYzKqrkfcnWMrrmRgE8xZ6ZLft6O3IeiHb9WA8b/6/qO8Hdd17FKsSF6te59gSpoajS0FtQIgFn/c+NHzQYo5ZdsuRGM9v+bhHTInI=
+ description: Encoded with Base 64
+ kycVerified:
+ type: boolean
+ example: true
+ lastName:
+ type: string
+ example: singh
+ middleName:
+ type: string
+ example: kumar
+ mobile:
+ type: string
+ example: 9545812125
+ monthOfBirth:
+ type: string
+ example: '05'
+ name:
+ type: string
+ example: kishan kumar singh
+ new:
+ type: boolean
+ phrAddress:
+ type: array
+ items:
+ type: string
+ pincode:
+ type: string
+ example: 412306
+ profilePhoto:
+ type: string
+ example: /9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkJCQkJCQoLCwoODw0PDhQSERESFB4WFxYXFh4uHSEdHSEdLikxKCUoMSlJOTMzOUlUR0NHVGZbW2aBeoGoqOIBCQkJCQkJCgsLCg4PDQ8OFBIRERIUHhYXFhcWHi4dIR0dIR0uKTEoJSgxKUk5MzM5SVRHQ0dUZltbZoF6gaio4v/CABEIBLAHgAMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAACAwABBAUGB//aAAgBAQAAAADwawLpMspcK7qrlE5F0Vtul2bVywMUNeBHUkW/bmxvYELGuNjh2VDvixxo5ViljKjDRMoahCULjs2JCShjhjh2OGxo0Y2MoXHOLszsKLhw7tD99mpZQxj8xceofmLEKFwXLTIyHwY1Ls+iEotjHY0M0pjRYxtGj4VFKLPohQlFQyy4Qipc0XG9pS+CP/2Q==
+ description: Encoded with Base 64
+ stateCode:
+ type: string
+ example: 27
+ stateName:
+ type: string
+ example: MAHARASHTRA
+ subDistrictCode:
+ type: string
+ example: 213
+ subdistrictName:
+ type: string
+ example: Baramati
+ tags:
+ type: object
+ additionalProperties:
+ type: string
+ townCode:
+ type: string
+ example: 27
+ townName:
+ type: string
+ example: Baramati
+ verificationStatus:
+ type: string
+ example: verified
+ verificationType:
+ type: string
+ example: testing
+ villageCode:
+ type: string
+ example: 412
+ villageName:
+ type: string
+ example: Someshwar Nagar
+ wardCode:
+ type: string
+ example: '08'
+ wardName:
+ type: string
+ example: Sinhgad fort ward
+ yearOfBirth:
+ type: string
+ example: 1994
+
+ '400':
+ description: Bad request, check request before retrying
+
+ '401':
+ description: Unauthorized Access.
+ '403':
+ description: Forbidden
+ '404':
+ description: Not Found
+ '422':
+ description: Could not Get account information or Invalid Token
+
+ '500':
+ description: |-
+ Downstream system(s) is down.
+ Unhandled exceptions.
+
+ security:
+ - bearerAuth: []
+
+ /account/qrCode:
+ get:
+ summary: Get Quick Response code in PNG format for this account.
+ description: "Explanation\t- Api Accepts Auth Token and then returns Account Info for QR Code.\r\n\r\nRequest Body\t- Required\r\n\r\nResponce\t- Api Accepts Auth Token and then returns Account Info for QR Code. Returns Error for Unauthorized Token."
+ operationId: getQrCodeUsingGET
+ parameters:
+ - name: Accept-Language
+ in: header
+ description: Access Token.
+ required: true
+ schema:
+ type: string
+ - name: X-Token
+ in: header
+ description: Access Token.
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Return QR Code in Byte Array Form in case of success
+ content:
+ application/json:
+ schema:
+ type: string
+ format: byte
+ '400':
+ description: Bad request, check request before retrying
+
+ '401':
+ description: Unauthorized Access.
+ '403':
+ description: Forbidden
+ '404':
+ description: Not Found
+ '422':
+ description: Expired or Invalid Token
+
+ '500':
+ description: |-
+ Downstream system(s) is down.
+ Unhandled exceptions.
+
+ security:
+ - bearerAuth: []
+ /account/getSvgCard:
+ get:
+ summary: Generate ABHA card SVG
+ description: "Explanation\t- Api Accepts Auth Token and then Returns Account Details for SVG format.\r\n\r\nRequest Body\t- Required\r\n\r\nResponce\t- Api Accepts Auth Token and then Returns Account Details for SVG format. Returns Error for Unauthorized Auth Token."
+ operationId: generateSvgCardUsingGET
+ parameters:
+ - name: Accept-Language
+ in: header
+ description: Access Token.
+ required: true
+ schema:
+ type: string
+ - name: X-Token
+ in: header
+ description: Access Token.
+ required: true
+ schema:
+ type: string
+
+ responses:
+ '200':
+ description: Return details in case of success
+ content:
+ application/json:
+ schema:
+ type: string
+ format: byte
+ '400':
+ description: Bad request, check request before retrying
+
+ '401':
+ description: Unauthorized Access.
+ '403':
+ description: Forbidden
+ '404':
+ description: Not Found
+ '422':
+ description: Could not generate Card or Invalid Token
+
+ '500':
+ description: |-
+ Downstream system(s) is down.
+ Unhandled exceptions.
+ security:
+
+ - bearerAuth: []
+ /account/getPngCard:
+ get:
+ summary: Generate ABHA card PNG
+ description: "Explanation\t- Api Accepts Auth Token and then Returns Account Details for PNG format.\r\n\r\nRequest Body\t- Required\r\n\r\nResponce\t- Api Accepts Auth Token and then Returns Account Details for PNG format. Returns Error for Unauthorized Auth Token."
+ operationId: generatePngCardUsingGET
+
+ parameters:
+ - name: Accept-Language
+ in: header
+ description: Access Token.
+ required: true
+ schema:
+ type: string
+ - name: X-Token
+ in: header
+ description: Access Token.
+ required: true
+ schema:
+ type: string
+
+ responses:
+ '200':
+ description: Return details in case of success
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ byteArray:
+ type: string
+ format: byte
+ description:
+ type: string
+ filename:
+ type: string
+ open:
+ type: boolean
+ readable:
+ type: boolean
+
+ '400':
+ description: Bad request, check request before retrying
+
+ '401':
+ description: Unauthorized Access.
+ '403':
+ description: Forbidden
+ '404':
+ description: Not Found
+ '422':
+ description: Could not generate Card or Invalid Token
+
+ '500':
+ description: |-
+ Downstream system(s) is down.
+ Unhandled exceptions.
+
+ security:
+ - bearerAuth: []
+ /account/getCard:
+ get:
+ summary: Generate ABHA card in PDF format
+ description: "Explanation\t- Api Accepts Auth Token and then Returns Account Details for PDF format.\r\n\r\nRequest Body\t- Required\r\n\r\nResponce\t- Api Accepts Auth Token and then Returns Account Details for PDF format. Returns Error for Unauthorized Auth Token."
+ operationId: generateCardUsingGET
+
+ parameters:
+ - name: Accept-Language
+ in: header
+ description: Access Token.
+ required: true
+ schema:
+ type: string
+ - name: X-Token
+ in: header
+ description: Access Token.
+ required: true
+ schema:
+ type: string
+
+ responses:
+ '200':
+ description: Return details in case of success
+
+ '400':
+ description: Bad request, check request before retrying
+
+ '401':
+ description: Unauthorized Access.
+ '403':
+ description: Forbidden
+ '404':
+ description: Not Found
+ '422':
+ description: Could not generate Card or Invalid Token
+
+ '500':
+ description: |-
+ Downstream system(s) is down.
+ Unhandled exceptions.
+
+ security:
+ - bearerAuth: []
+
+
components:
+
securitySchemes:
bearerAuth:
type: http
scheme: bearer
- bearerFormat: JWT
\ No newline at end of file
+ bearerFormat: JWT
+
\ No newline at end of file
diff --git a/abha/__init__.py b/abha/__init__.py
index 1e60fe3..54bfcde 100644
--- a/abha/__init__.py
+++ b/abha/__init__.py
@@ -30,6 +30,7 @@
from abha.exceptions import ApiException
# import models into sdk package
+from abha.models.auth_aadhar_init_request import AuthAadharInitRequest
from abha.models.create_health_id_with_pre_verified200_response import (
CreateHealthIdWithPreVerified200Response,
)
@@ -39,4 +40,11 @@
from abha.models.generate_mobile_otp_request import GenerateMobileOtpRequest
from abha.models.generate_otp200_response import GenerateOtp200Response
from abha.models.generate_otp_request import GenerateOtpRequest
+from abha.models.generate_png_card_using_get200_response import (
+ GeneratePngCardUsingGET200Response,
+)
+from abha.models.get_account_information_using_get200_response import (
+ GetAccountInformationUsingGET200Response,
+)
+from abha.models.resend_auth_otp_request import ResendAuthOTPRequest
from abha.models.verify_otp_request import VerifyOtpRequest
diff --git a/abha/__pycache__/__init__.cpython-312.pyc b/abha/__pycache__/__init__.cpython-312.pyc
new file mode 100644
index 0000000..e604515
Binary files /dev/null and b/abha/__pycache__/__init__.cpython-312.pyc differ
diff --git a/abha/__pycache__/api_client.cpython-312.pyc b/abha/__pycache__/api_client.cpython-312.pyc
new file mode 100644
index 0000000..a0e2901
Binary files /dev/null and b/abha/__pycache__/api_client.cpython-312.pyc differ
diff --git a/abha/__pycache__/api_response.cpython-312.pyc b/abha/__pycache__/api_response.cpython-312.pyc
new file mode 100644
index 0000000..fbbcf57
Binary files /dev/null and b/abha/__pycache__/api_response.cpython-312.pyc differ
diff --git a/abha/__pycache__/configuration.cpython-312.pyc b/abha/__pycache__/configuration.cpython-312.pyc
new file mode 100644
index 0000000..4af72d5
Binary files /dev/null and b/abha/__pycache__/configuration.cpython-312.pyc differ
diff --git a/abha/__pycache__/exceptions.cpython-312.pyc b/abha/__pycache__/exceptions.cpython-312.pyc
new file mode 100644
index 0000000..3192bcb
Binary files /dev/null and b/abha/__pycache__/exceptions.cpython-312.pyc differ
diff --git a/abha/__pycache__/rest.cpython-312.pyc b/abha/__pycache__/rest.cpython-312.pyc
new file mode 100644
index 0000000..8657f20
Binary files /dev/null and b/abha/__pycache__/rest.cpython-312.pyc differ
diff --git a/abha/api/__pycache__/__init__.cpython-312.pyc b/abha/api/__pycache__/__init__.cpython-312.pyc
new file mode 100644
index 0000000..a2ee329
Binary files /dev/null and b/abha/api/__pycache__/__init__.cpython-312.pyc differ
diff --git a/abha/api/__pycache__/default_api.cpython-312.pyc b/abha/api/__pycache__/default_api.cpython-312.pyc
new file mode 100644
index 0000000..80ba58c
Binary files /dev/null and b/abha/api/__pycache__/default_api.cpython-312.pyc differ
diff --git a/abha/api/default_api.py b/abha/api/default_api.py
index 90de959..bfcec9d 100644
--- a/abha/api/default_api.py
+++ b/abha/api/default_api.py
@@ -15,6 +15,7 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
+from abha.models.auth_aadhar_init_request import AuthAadharInitRequest
from abha.models.create_health_id_with_pre_verified200_response import (
CreateHealthIdWithPreVerified200Response,
)
@@ -24,6 +25,13 @@
from abha.models.generate_mobile_otp_request import GenerateMobileOtpRequest
from abha.models.generate_otp200_response import GenerateOtp200Response
from abha.models.generate_otp_request import GenerateOtpRequest
+from abha.models.generate_png_card_using_get200_response import (
+ GeneratePngCardUsingGET200Response,
+)
+from abha.models.get_account_information_using_get200_response import (
+ GetAccountInformationUsingGET200Response,
+)
+from abha.models.resend_auth_otp_request import ResendAuthOTPRequest
from abha.models.verify_otp_request import VerifyOtpRequest
from abha.api_client import ApiClient, RequestSerialized
@@ -44,9 +52,9 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
@validate_call
- def create_health_id_with_pre_verified(
+ def auth_aadhar_init(
self,
- create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest,
+ auth_aadhar_init_request: AuthAadharInitRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -58,13 +66,13 @@ def create_health_id_with_pre_verified(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> CreateHealthIdWithPreVerified200Response:
- """Health ID creation
+ ) -> GenerateOtp200Response:
+ """auth-aadhar-init
- This endpoint Creates Health Id .
+ This endpoint Initiates Aadhar Authentication
- :param create_health_id_with_pre_verified_request: (required)
- :type create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest
+ :param auth_aadhar_init_request: (required)
+ :type auth_aadhar_init_request: AuthAadharInitRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -87,8 +95,8 @@ def create_health_id_with_pre_verified(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_health_id_with_pre_verified_serialize(
- create_health_id_with_pre_verified_request=create_health_id_with_pre_verified_request,
+ _param = self._auth_aadhar_init_serialize(
+ auth_aadhar_init_request=auth_aadhar_init_request,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -96,7 +104,7 @@ def create_health_id_with_pre_verified(
)
_response_types_map: Dict[str, Optional[str]] = {
- "200": "CreateHealthIdWithPreVerified200Response",
+ "200": "GenerateOtp200Response",
"400": None,
"401": None,
"500": None,
@@ -111,9 +119,9 @@ def create_health_id_with_pre_verified(
).data
@validate_call
- def create_health_id_with_pre_verified_with_http_info(
+ def auth_aadhar_init_with_http_info(
self,
- create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest,
+ auth_aadhar_init_request: AuthAadharInitRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -125,13 +133,13 @@ def create_health_id_with_pre_verified_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[CreateHealthIdWithPreVerified200Response]:
- """Health ID creation
+ ) -> ApiResponse[GenerateOtp200Response]:
+ """auth-aadhar-init
- This endpoint Creates Health Id .
+ This endpoint Initiates Aadhar Authentication
- :param create_health_id_with_pre_verified_request: (required)
- :type create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest
+ :param auth_aadhar_init_request: (required)
+ :type auth_aadhar_init_request: AuthAadharInitRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -154,8 +162,8 @@ def create_health_id_with_pre_verified_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_health_id_with_pre_verified_serialize(
- create_health_id_with_pre_verified_request=create_health_id_with_pre_verified_request,
+ _param = self._auth_aadhar_init_serialize(
+ auth_aadhar_init_request=auth_aadhar_init_request,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -163,7 +171,7 @@ def create_health_id_with_pre_verified_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- "200": "CreateHealthIdWithPreVerified200Response",
+ "200": "GenerateOtp200Response",
"400": None,
"401": None,
"500": None,
@@ -178,9 +186,9 @@ def create_health_id_with_pre_verified_with_http_info(
)
@validate_call
- def create_health_id_with_pre_verified_without_preload_content(
+ def auth_aadhar_init_without_preload_content(
self,
- create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest,
+ auth_aadhar_init_request: AuthAadharInitRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -193,12 +201,12 @@ def create_health_id_with_pre_verified_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Health ID creation
+ """auth-aadhar-init
- This endpoint Creates Health Id .
+ This endpoint Initiates Aadhar Authentication
- :param create_health_id_with_pre_verified_request: (required)
- :type create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest
+ :param auth_aadhar_init_request: (required)
+ :type auth_aadhar_init_request: AuthAadharInitRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -221,8 +229,8 @@ def create_health_id_with_pre_verified_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_health_id_with_pre_verified_serialize(
- create_health_id_with_pre_verified_request=create_health_id_with_pre_verified_request,
+ _param = self._auth_aadhar_init_serialize(
+ auth_aadhar_init_request=auth_aadhar_init_request,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -230,7 +238,7 @@ def create_health_id_with_pre_verified_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- "200": "CreateHealthIdWithPreVerified200Response",
+ "200": "GenerateOtp200Response",
"400": None,
"401": None,
"500": None,
@@ -240,9 +248,9 @@ def create_health_id_with_pre_verified_without_preload_content(
)
return response_data.response
- def _create_health_id_with_pre_verified_serialize(
+ def _auth_aadhar_init_serialize(
self,
- create_health_id_with_pre_verified_request,
+ auth_aadhar_init_request,
_request_auth,
_content_type,
_headers,
@@ -264,8 +272,8 @@ def _create_health_id_with_pre_verified_serialize(
# process the header parameters
# process the form parameters
# process the body parameter
- if create_health_id_with_pre_verified_request is not None:
- _body_params = create_health_id_with_pre_verified_request
+ if auth_aadhar_init_request is not None:
+ _body_params = auth_aadhar_init_request
# set the HTTP header `Accept`
_header_params["Accept"] = self.api_client.select_header_accept(
@@ -287,7 +295,7 @@ def _create_health_id_with_pre_verified_serialize(
return self.api_client.param_serialize(
method="POST",
- resource_path="/registration/aadhaar/createHealthIdWithPreVerified",
+ resource_path="/auth/init",
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -301,9 +309,9 @@ def _create_health_id_with_pre_verified_serialize(
)
@validate_call
- def generate_mobile_otp(
+ def confirm_with_aadhaar_otp(
self,
- generate_mobile_otp_request: GenerateMobileOtpRequest,
+ resend_auth_otp_request: ResendAuthOTPRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -316,12 +324,12 @@ def generate_mobile_otp(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> GenerateOtp200Response:
- """Generate Mobile OTP
+ """aadhar-otp-confirm
- This endpoint Generates OTP for Abha verification.
+ This endpoint Confirms Aadhar Authentication
- :param generate_mobile_otp_request: (required)
- :type generate_mobile_otp_request: GenerateMobileOtpRequest
+ :param resend_auth_otp_request: (required)
+ :type resend_auth_otp_request: ResendAuthOTPRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -344,8 +352,8 @@ def generate_mobile_otp(
:return: Returns the result object.
""" # noqa: E501
- _param = self._generate_mobile_otp_serialize(
- generate_mobile_otp_request=generate_mobile_otp_request,
+ _param = self._confirm_with_aadhaar_otp_serialize(
+ resend_auth_otp_request=resend_auth_otp_request,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -368,9 +376,9 @@ def generate_mobile_otp(
).data
@validate_call
- def generate_mobile_otp_with_http_info(
+ def confirm_with_aadhaar_otp_with_http_info(
self,
- generate_mobile_otp_request: GenerateMobileOtpRequest,
+ resend_auth_otp_request: ResendAuthOTPRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -383,12 +391,12 @@ def generate_mobile_otp_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[GenerateOtp200Response]:
- """Generate Mobile OTP
+ """aadhar-otp-confirm
- This endpoint Generates OTP for Abha verification.
+ This endpoint Confirms Aadhar Authentication
- :param generate_mobile_otp_request: (required)
- :type generate_mobile_otp_request: GenerateMobileOtpRequest
+ :param resend_auth_otp_request: (required)
+ :type resend_auth_otp_request: ResendAuthOTPRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -411,8 +419,8 @@ def generate_mobile_otp_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._generate_mobile_otp_serialize(
- generate_mobile_otp_request=generate_mobile_otp_request,
+ _param = self._confirm_with_aadhaar_otp_serialize(
+ resend_auth_otp_request=resend_auth_otp_request,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -435,9 +443,9 @@ def generate_mobile_otp_with_http_info(
)
@validate_call
- def generate_mobile_otp_without_preload_content(
+ def confirm_with_aadhaar_otp_without_preload_content(
self,
- generate_mobile_otp_request: GenerateMobileOtpRequest,
+ resend_auth_otp_request: ResendAuthOTPRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -450,12 +458,12 @@ def generate_mobile_otp_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Generate Mobile OTP
+ """aadhar-otp-confirm
- This endpoint Generates OTP for Abha verification.
+ This endpoint Confirms Aadhar Authentication
- :param generate_mobile_otp_request: (required)
- :type generate_mobile_otp_request: GenerateMobileOtpRequest
+ :param resend_auth_otp_request: (required)
+ :type resend_auth_otp_request: ResendAuthOTPRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -478,8 +486,8 @@ def generate_mobile_otp_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._generate_mobile_otp_serialize(
- generate_mobile_otp_request=generate_mobile_otp_request,
+ _param = self._confirm_with_aadhaar_otp_serialize(
+ resend_auth_otp_request=resend_auth_otp_request,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -497,9 +505,9 @@ def generate_mobile_otp_without_preload_content(
)
return response_data.response
- def _generate_mobile_otp_serialize(
+ def _confirm_with_aadhaar_otp_serialize(
self,
- generate_mobile_otp_request,
+ resend_auth_otp_request,
_request_auth,
_content_type,
_headers,
@@ -521,8 +529,8 @@ def _generate_mobile_otp_serialize(
# process the header parameters
# process the form parameters
# process the body parameter
- if generate_mobile_otp_request is not None:
- _body_params = generate_mobile_otp_request
+ if resend_auth_otp_request is not None:
+ _body_params = resend_auth_otp_request
# set the HTTP header `Accept`
_header_params["Accept"] = self.api_client.select_header_accept(
@@ -544,7 +552,7 @@ def _generate_mobile_otp_serialize(
return self.api_client.param_serialize(
method="POST",
- resource_path="/registration/aadhaar/generateMobileOTP",
+ resource_path="/auth/confirmWithAadhaarOtp",
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -558,9 +566,9 @@ def _generate_mobile_otp_serialize(
)
@validate_call
- def generate_otp(
+ def create_health_id_with_pre_verified(
self,
- generate_otp_request: GenerateOtpRequest,
+ create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -572,13 +580,13 @@ def generate_otp(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> GenerateOtp200Response:
- """Generate OTP
+ ) -> CreateHealthIdWithPreVerified200Response:
+ """Health ID creation
- This endpoint generates an OTP for Aadhaar number verification.
+ This endpoint Creates Health Id .
- :param generate_otp_request: (required)
- :type generate_otp_request: GenerateOtpRequest
+ :param create_health_id_with_pre_verified_request: (required)
+ :type create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -601,8 +609,8 @@ def generate_otp(
:return: Returns the result object.
""" # noqa: E501
- _param = self._generate_otp_serialize(
- generate_otp_request=generate_otp_request,
+ _param = self._create_health_id_with_pre_verified_serialize(
+ create_health_id_with_pre_verified_request=create_health_id_with_pre_verified_request,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -610,7 +618,7 @@ def generate_otp(
)
_response_types_map: Dict[str, Optional[str]] = {
- "200": "GenerateOtp200Response",
+ "200": "CreateHealthIdWithPreVerified200Response",
"400": None,
"401": None,
"500": None,
@@ -625,9 +633,9 @@ def generate_otp(
).data
@validate_call
- def generate_otp_with_http_info(
+ def create_health_id_with_pre_verified_with_http_info(
self,
- generate_otp_request: GenerateOtpRequest,
+ create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -639,13 +647,13 @@ def generate_otp_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[GenerateOtp200Response]:
- """Generate OTP
+ ) -> ApiResponse[CreateHealthIdWithPreVerified200Response]:
+ """Health ID creation
- This endpoint generates an OTP for Aadhaar number verification.
+ This endpoint Creates Health Id .
- :param generate_otp_request: (required)
- :type generate_otp_request: GenerateOtpRequest
+ :param create_health_id_with_pre_verified_request: (required)
+ :type create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -668,8 +676,8 @@ def generate_otp_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._generate_otp_serialize(
- generate_otp_request=generate_otp_request,
+ _param = self._create_health_id_with_pre_verified_serialize(
+ create_health_id_with_pre_verified_request=create_health_id_with_pre_verified_request,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -677,7 +685,7 @@ def generate_otp_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- "200": "GenerateOtp200Response",
+ "200": "CreateHealthIdWithPreVerified200Response",
"400": None,
"401": None,
"500": None,
@@ -692,9 +700,9 @@ def generate_otp_with_http_info(
)
@validate_call
- def generate_otp_without_preload_content(
+ def create_health_id_with_pre_verified_without_preload_content(
self,
- generate_otp_request: GenerateOtpRequest,
+ create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -707,12 +715,12 @@ def generate_otp_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Generate OTP
+ """Health ID creation
- This endpoint generates an OTP for Aadhaar number verification.
+ This endpoint Creates Health Id .
- :param generate_otp_request: (required)
- :type generate_otp_request: GenerateOtpRequest
+ :param create_health_id_with_pre_verified_request: (required)
+ :type create_health_id_with_pre_verified_request: CreateHealthIdWithPreVerifiedRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -735,8 +743,8 @@ def generate_otp_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._generate_otp_serialize(
- generate_otp_request=generate_otp_request,
+ _param = self._create_health_id_with_pre_verified_serialize(
+ create_health_id_with_pre_verified_request=create_health_id_with_pre_verified_request,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -744,7 +752,7 @@ def generate_otp_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- "200": "GenerateOtp200Response",
+ "200": "CreateHealthIdWithPreVerified200Response",
"400": None,
"401": None,
"500": None,
@@ -754,9 +762,9 @@ def generate_otp_without_preload_content(
)
return response_data.response
- def _generate_otp_serialize(
+ def _create_health_id_with_pre_verified_serialize(
self,
- generate_otp_request,
+ create_health_id_with_pre_verified_request,
_request_auth,
_content_type,
_headers,
@@ -778,8 +786,8 @@ def _generate_otp_serialize(
# process the header parameters
# process the form parameters
# process the body parameter
- if generate_otp_request is not None:
- _body_params = generate_otp_request
+ if create_health_id_with_pre_verified_request is not None:
+ _body_params = create_health_id_with_pre_verified_request
# set the HTTP header `Accept`
_header_params["Accept"] = self.api_client.select_header_accept(
@@ -801,7 +809,2128 @@ def _generate_otp_serialize(
return self.api_client.param_serialize(
method="POST",
- resource_path="/registration/aadhaar/generateOtp",
+ resource_path="/registration/aadhaar/createHealthIdWithPreVerified",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def generate_card_using_get(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Generate ABHA card in PDF format
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details for PDF format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for PDF format. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_card_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": None,
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def generate_card_using_get_with_http_info(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Generate ABHA card in PDF format
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details for PDF format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for PDF format. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_card_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": None,
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def generate_card_using_get_without_preload_content(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Generate ABHA card in PDF format
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details for PDF format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for PDF format. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_card_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": None,
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _generate_card_using_get_serialize(
+ self,
+ accept_language,
+ x_token,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[str, Union[str, bytes]] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ if accept_language is not None:
+ _header_params["Accept-Language"] = accept_language
+ if x_token is not None:
+ _header_params["X-Token"] = x_token
+ # process the form parameters
+ # process the body parameter
+
+ # authentication setting
+ _auth_settings: List[str] = ["bearerAuth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/account/getCard",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def generate_mobile_otp(
+ self,
+ generate_mobile_otp_request: GenerateMobileOtpRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GenerateOtp200Response:
+ """Generate Mobile OTP
+
+ This endpoint Generates OTP for Abha verification.
+
+ :param generate_mobile_otp_request: (required)
+ :type generate_mobile_otp_request: GenerateMobileOtpRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_mobile_otp_serialize(
+ generate_mobile_otp_request=generate_mobile_otp_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GenerateOtp200Response",
+ "400": None,
+ "401": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def generate_mobile_otp_with_http_info(
+ self,
+ generate_mobile_otp_request: GenerateMobileOtpRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GenerateOtp200Response]:
+ """Generate Mobile OTP
+
+ This endpoint Generates OTP for Abha verification.
+
+ :param generate_mobile_otp_request: (required)
+ :type generate_mobile_otp_request: GenerateMobileOtpRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_mobile_otp_serialize(
+ generate_mobile_otp_request=generate_mobile_otp_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GenerateOtp200Response",
+ "400": None,
+ "401": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def generate_mobile_otp_without_preload_content(
+ self,
+ generate_mobile_otp_request: GenerateMobileOtpRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Generate Mobile OTP
+
+ This endpoint Generates OTP for Abha verification.
+
+ :param generate_mobile_otp_request: (required)
+ :type generate_mobile_otp_request: GenerateMobileOtpRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_mobile_otp_serialize(
+ generate_mobile_otp_request=generate_mobile_otp_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GenerateOtp200Response",
+ "400": None,
+ "401": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _generate_mobile_otp_serialize(
+ self,
+ generate_mobile_otp_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[str, Union[str, bytes]] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if generate_mobile_otp_request is not None:
+ _body_params = generate_mobile_otp_request
+
+ # set the HTTP header `Accept`
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json"]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params["Content-Type"] = _content_type
+ else:
+ _default_content_type = self.api_client.select_header_content_type(
+ ["application/json"]
+ )
+ if _default_content_type is not None:
+ _header_params["Content-Type"] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = ["bearerAuth"]
+
+ return self.api_client.param_serialize(
+ method="POST",
+ resource_path="/registration/aadhaar/generateMobileOTP",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def generate_otp(
+ self,
+ generate_otp_request: GenerateOtpRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GenerateOtp200Response:
+ """Generate OTP
+
+ This endpoint generates an OTP for Aadhaar number verification.
+
+ :param generate_otp_request: (required)
+ :type generate_otp_request: GenerateOtpRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_otp_serialize(
+ generate_otp_request=generate_otp_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GenerateOtp200Response",
+ "400": None,
+ "401": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def generate_otp_with_http_info(
+ self,
+ generate_otp_request: GenerateOtpRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GenerateOtp200Response]:
+ """Generate OTP
+
+ This endpoint generates an OTP for Aadhaar number verification.
+
+ :param generate_otp_request: (required)
+ :type generate_otp_request: GenerateOtpRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_otp_serialize(
+ generate_otp_request=generate_otp_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GenerateOtp200Response",
+ "400": None,
+ "401": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def generate_otp_without_preload_content(
+ self,
+ generate_otp_request: GenerateOtpRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Generate OTP
+
+ This endpoint generates an OTP for Aadhaar number verification.
+
+ :param generate_otp_request: (required)
+ :type generate_otp_request: GenerateOtpRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_otp_serialize(
+ generate_otp_request=generate_otp_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GenerateOtp200Response",
+ "400": None,
+ "401": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _generate_otp_serialize(
+ self,
+ generate_otp_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[str, Union[str, bytes]] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if generate_otp_request is not None:
+ _body_params = generate_otp_request
+
+ # set the HTTP header `Accept`
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json"]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params["Content-Type"] = _content_type
+ else:
+ _default_content_type = self.api_client.select_header_content_type(
+ ["application/json"]
+ )
+ if _default_content_type is not None:
+ _header_params["Content-Type"] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = ["bearerAuth"]
+
+ return self.api_client.param_serialize(
+ method="POST",
+ resource_path="/registration/aadhaar/generateOtp",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def generate_png_card_using_get(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GeneratePngCardUsingGET200Response:
+ """Generate ABHA card PNG
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details for PNG format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for PNG format. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_png_card_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GeneratePngCardUsingGET200Response",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def generate_png_card_using_get_with_http_info(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GeneratePngCardUsingGET200Response]:
+ """Generate ABHA card PNG
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details for PNG format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for PNG format. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_png_card_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GeneratePngCardUsingGET200Response",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def generate_png_card_using_get_without_preload_content(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Generate ABHA card PNG
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details for PNG format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for PNG format. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_png_card_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GeneratePngCardUsingGET200Response",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _generate_png_card_using_get_serialize(
+ self,
+ accept_language,
+ x_token,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[str, Union[str, bytes]] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ if accept_language is not None:
+ _header_params["Accept-Language"] = accept_language
+ if x_token is not None:
+ _header_params["X-Token"] = x_token
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["bearerAuth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/account/getPngCard",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def generate_svg_card_using_get(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> bytearray:
+ """Generate ABHA card SVG
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details for SVG format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for SVG format. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_svg_card_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def generate_svg_card_using_get_with_http_info(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[bytearray]:
+ """Generate ABHA card SVG
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details for SVG format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for SVG format. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_svg_card_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def generate_svg_card_using_get_without_preload_content(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Generate ABHA card SVG
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details for SVG format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for SVG format. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_svg_card_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _generate_svg_card_using_get_serialize(
+ self,
+ accept_language,
+ x_token,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[str, Union[str, bytes]] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ if accept_language is not None:
+ _header_params["Accept-Language"] = accept_language
+ if x_token is not None:
+ _header_params["X-Token"] = x_token
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["bearerAuth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/account/getSvgCard",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def get_account_information_using_get(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetAccountInformationUsingGET200Response:
+ """Get account information.
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_account_information_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GetAccountInformationUsingGET200Response",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_account_information_using_get_with_http_info(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetAccountInformationUsingGET200Response]:
+ """Get account information.
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_account_information_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GetAccountInformationUsingGET200Response",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_account_information_using_get_without_preload_content(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get account information.
+
+ Explanation - Api Accepts Auth Token and then Returns Account Details. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details. Returns Error for Unauthorized Auth Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_account_information_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GetAccountInformationUsingGET200Response",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_account_information_using_get_serialize(
+ self,
+ accept_language,
+ x_token,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[str, Union[str, bytes]] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ if accept_language is not None:
+ _header_params["Accept-Language"] = accept_language
+ if x_token is not None:
+ _header_params["X-Token"] = x_token
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["bearerAuth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/account/profile",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def get_qr_code_using_get(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> bytearray:
+ """Get Quick Response code in PNG format for this account.
+
+ Explanation - Api Accepts Auth Token and then returns Account Info for QR Code. Request Body - Required Responce - Api Accepts Auth Token and then returns Account Info for QR Code. Returns Error for Unauthorized Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_qr_code_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def get_qr_code_using_get_with_http_info(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[bytearray]:
+ """Get Quick Response code in PNG format for this account.
+
+ Explanation - Api Accepts Auth Token and then returns Account Info for QR Code. Request Body - Required Responce - Api Accepts Auth Token and then returns Account Info for QR Code. Returns Error for Unauthorized Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_qr_code_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def get_qr_code_using_get_without_preload_content(
+ self,
+ accept_language: Annotated[StrictStr, Field(description="Access Token.")],
+ x_token: Annotated[StrictStr, Field(description="Access Token.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Quick Response code in PNG format for this account.
+
+ Explanation - Api Accepts Auth Token and then returns Account Info for QR Code. Request Body - Required Responce - Api Accepts Auth Token and then returns Account Info for QR Code. Returns Error for Unauthorized Token.
+
+ :param accept_language: Access Token. (required)
+ :type accept_language: str
+ :param x_token: Access Token. (required)
+ :type x_token: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_qr_code_using_get_serialize(
+ accept_language=accept_language,
+ x_token=x_token,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "bytearray",
+ "400": None,
+ "401": None,
+ "403": None,
+ "404": None,
+ "422": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _get_qr_code_using_get_serialize(
+ self,
+ accept_language,
+ x_token,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[str, Union[str, bytes]] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ if accept_language is not None:
+ _header_params["Accept-Language"] = accept_language
+ if x_token is not None:
+ _header_params["X-Token"] = x_token
+ # process the form parameters
+ # process the body parameter
+
+ # set the HTTP header `Accept`
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json"]
+ )
+
+ # authentication setting
+ _auth_settings: List[str] = ["bearerAuth"]
+
+ return self.api_client.param_serialize(
+ method="GET",
+ resource_path="/account/qrCode",
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth,
+ )
+
+ @validate_call
+ def resend_auth_otp(
+ self,
+ resend_auth_otp_request: ResendAuthOTPRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GenerateOtp200Response:
+ """resend-auth-aadhar-init
+
+ This endpoint Initiates Resends Aadhar Authentication
+
+ :param resend_auth_otp_request: (required)
+ :type resend_auth_otp_request: ResendAuthOTPRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._resend_auth_otp_serialize(
+ resend_auth_otp_request=resend_auth_otp_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GenerateOtp200Response",
+ "400": None,
+ "401": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+ @validate_call
+ def resend_auth_otp_with_http_info(
+ self,
+ resend_auth_otp_request: ResendAuthOTPRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GenerateOtp200Response]:
+ """resend-auth-aadhar-init
+
+ This endpoint Initiates Resends Aadhar Authentication
+
+ :param resend_auth_otp_request: (required)
+ :type resend_auth_otp_request: ResendAuthOTPRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._resend_auth_otp_serialize(
+ resend_auth_otp_request=resend_auth_otp_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GenerateOtp200Response",
+ "400": None,
+ "401": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+ @validate_call
+ def resend_auth_otp_without_preload_content(
+ self,
+ resend_auth_otp_request: ResendAuthOTPRequest,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
+ ],
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """resend-auth-aadhar-init
+
+ This endpoint Initiates Resends Aadhar Authentication
+
+ :param resend_auth_otp_request: (required)
+ :type resend_auth_otp_request: ResendAuthOTPRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._resend_auth_otp_serialize(
+ resend_auth_otp_request=resend_auth_otp_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index,
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ "200": "GenerateOtp200Response",
+ "400": None,
+ "401": None,
+ "500": None,
+ }
+ response_data = self.api_client.call_api(
+ *_param, _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+ def _resend_auth_otp_serialize(
+ self,
+ resend_auth_otp_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+ _host = None
+
+ _collection_formats: Dict[str, str] = {}
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[str, Union[str, bytes]] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if resend_auth_otp_request is not None:
+ _body_params = resend_auth_otp_request
+
+ # set the HTTP header `Accept`
+ _header_params["Accept"] = self.api_client.select_header_accept(
+ ["application/json"]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params["Content-Type"] = _content_type
+ else:
+ _default_content_type = self.api_client.select_header_content_type(
+ ["application/json"]
+ )
+ if _default_content_type is not None:
+ _header_params["Content-Type"] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = ["bearerAuth"]
+
+ return self.api_client.param_serialize(
+ method="POST",
+ resource_path="/auth/resendAuthOTP",
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/abha/models/__init__.py b/abha/models/__init__.py
index de91e10..d7a79ef 100644
--- a/abha/models/__init__.py
+++ b/abha/models/__init__.py
@@ -13,6 +13,7 @@
""" # noqa: E501
# import models into model package
+from abha.models.auth_aadhar_init_request import AuthAadharInitRequest
from abha.models.create_health_id_with_pre_verified200_response import (
CreateHealthIdWithPreVerified200Response,
)
@@ -22,4 +23,11 @@
from abha.models.generate_mobile_otp_request import GenerateMobileOtpRequest
from abha.models.generate_otp200_response import GenerateOtp200Response
from abha.models.generate_otp_request import GenerateOtpRequest
+from abha.models.generate_png_card_using_get200_response import (
+ GeneratePngCardUsingGET200Response,
+)
+from abha.models.get_account_information_using_get200_response import (
+ GetAccountInformationUsingGET200Response,
+)
+from abha.models.resend_auth_otp_request import ResendAuthOTPRequest
from abha.models.verify_otp_request import VerifyOtpRequest
diff --git a/abha/models/__pycache__/__init__.cpython-312.pyc b/abha/models/__pycache__/__init__.cpython-312.pyc
new file mode 100644
index 0000000..1852901
Binary files /dev/null and b/abha/models/__pycache__/__init__.cpython-312.pyc differ
diff --git a/abha/models/__pycache__/auth_aadhar_init_request.cpython-312.pyc b/abha/models/__pycache__/auth_aadhar_init_request.cpython-312.pyc
new file mode 100644
index 0000000..d9f2d43
Binary files /dev/null and b/abha/models/__pycache__/auth_aadhar_init_request.cpython-312.pyc differ
diff --git a/abha/models/__pycache__/create_health_id_with_pre_verified200_response.cpython-312.pyc b/abha/models/__pycache__/create_health_id_with_pre_verified200_response.cpython-312.pyc
new file mode 100644
index 0000000..a5e11f0
Binary files /dev/null and b/abha/models/__pycache__/create_health_id_with_pre_verified200_response.cpython-312.pyc differ
diff --git a/abha/models/__pycache__/create_health_id_with_pre_verified_request.cpython-312.pyc b/abha/models/__pycache__/create_health_id_with_pre_verified_request.cpython-312.pyc
new file mode 100644
index 0000000..b203f87
Binary files /dev/null and b/abha/models/__pycache__/create_health_id_with_pre_verified_request.cpython-312.pyc differ
diff --git a/abha/models/__pycache__/generate_mobile_otp_request.cpython-312.pyc b/abha/models/__pycache__/generate_mobile_otp_request.cpython-312.pyc
new file mode 100644
index 0000000..597617b
Binary files /dev/null and b/abha/models/__pycache__/generate_mobile_otp_request.cpython-312.pyc differ
diff --git a/abha/models/__pycache__/generate_otp200_response.cpython-312.pyc b/abha/models/__pycache__/generate_otp200_response.cpython-312.pyc
new file mode 100644
index 0000000..4e244e4
Binary files /dev/null and b/abha/models/__pycache__/generate_otp200_response.cpython-312.pyc differ
diff --git a/abha/models/__pycache__/generate_otp_request.cpython-312.pyc b/abha/models/__pycache__/generate_otp_request.cpython-312.pyc
new file mode 100644
index 0000000..8378d5b
Binary files /dev/null and b/abha/models/__pycache__/generate_otp_request.cpython-312.pyc differ
diff --git a/abha/models/__pycache__/generate_png_card_using_get200_response.cpython-312.pyc b/abha/models/__pycache__/generate_png_card_using_get200_response.cpython-312.pyc
new file mode 100644
index 0000000..a983d27
Binary files /dev/null and b/abha/models/__pycache__/generate_png_card_using_get200_response.cpython-312.pyc differ
diff --git a/abha/models/__pycache__/get_account_information_using_get200_response.cpython-312.pyc b/abha/models/__pycache__/get_account_information_using_get200_response.cpython-312.pyc
new file mode 100644
index 0000000..62a5016
Binary files /dev/null and b/abha/models/__pycache__/get_account_information_using_get200_response.cpython-312.pyc differ
diff --git a/abha/models/__pycache__/resend_auth_otp_request.cpython-312.pyc b/abha/models/__pycache__/resend_auth_otp_request.cpython-312.pyc
new file mode 100644
index 0000000..569d4be
Binary files /dev/null and b/abha/models/__pycache__/resend_auth_otp_request.cpython-312.pyc differ
diff --git a/abha/models/__pycache__/verify_otp_request.cpython-312.pyc b/abha/models/__pycache__/verify_otp_request.cpython-312.pyc
new file mode 100644
index 0000000..b9c7d6c
Binary files /dev/null and b/abha/models/__pycache__/verify_otp_request.cpython-312.pyc differ
diff --git a/abha/models/auth_aadhar_init_request.py b/abha/models/auth_aadhar_init_request.py
new file mode 100644
index 0000000..2d32b49
--- /dev/null
+++ b/abha/models/auth_aadhar_init_request.py
@@ -0,0 +1,85 @@
+# coding: utf-8
+
+"""
+Abdm Abha
+
+Abdm SDK for abha
+
+The version of the OpenAPI document: 1.0.0
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+""" # noqa: E501
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class AuthAadharInitRequest(BaseModel):
+ """
+ AuthAadharInitRequest
+ """ # noqa: E501
+
+ auth_method: StrictStr = Field(alias="authMethod")
+ healthid: StrictStr
+ __properties: ClassVar[List[str]] = ["authMethod", "healthid"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AuthAadharInitRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AuthAadharInitRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {"authMethod": obj.get("authMethod"), "healthid": obj.get("healthid")}
+ )
+ return _obj
diff --git a/abha/models/generate_png_card_using_get200_response.py b/abha/models/generate_png_card_using_get200_response.py
new file mode 100644
index 0000000..d0cdd20
--- /dev/null
+++ b/abha/models/generate_png_card_using_get200_response.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+Abdm Abha
+
+Abdm SDK for abha
+
+The version of the OpenAPI document: 1.0.0
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+""" # noqa: E501
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictBytes, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional, Union
+from typing import Set
+from typing_extensions import Self
+
+
+class GeneratePngCardUsingGET200Response(BaseModel):
+ """
+ GeneratePngCardUsingGET200Response
+ """ # noqa: E501
+
+ byte_array: Optional[Union[StrictBytes, StrictStr]] = Field(
+ default=None, alias="byteArray"
+ )
+ description: Optional[StrictStr] = None
+ filename: Optional[StrictStr] = None
+ open: Optional[StrictBool] = None
+ readable: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = [
+ "byteArray",
+ "description",
+ "filename",
+ "open",
+ "readable",
+ ]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GeneratePngCardUsingGET200Response from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GeneratePngCardUsingGET200Response from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "byteArray": obj.get("byteArray"),
+ "description": obj.get("description"),
+ "filename": obj.get("filename"),
+ "open": obj.get("open"),
+ "readable": obj.get("readable"),
+ }
+ )
+ return _obj
diff --git a/abha/models/get_account_information_using_get200_response.py b/abha/models/get_account_information_using_get200_response.py
new file mode 100644
index 0000000..fce5337
--- /dev/null
+++ b/abha/models/get_account_information_using_get200_response.py
@@ -0,0 +1,227 @@
+# coding: utf-8
+
+"""
+Abdm Abha
+
+Abdm SDK for abha
+
+The version of the OpenAPI document: 1.0.0
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+""" # noqa: E501
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictStr,
+ field_validator,
+)
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Set
+from typing_extensions import Self
+
+
+class GetAccountInformationUsingGET200Response(BaseModel):
+ """
+ GetAccountInformationUsingGET200Response
+ """ # noqa: E501
+
+ address: Optional[StrictStr] = None
+ auth_methods: Optional[List[StrictStr]] = Field(
+ default=None, description="Based on authMethods", alias="authMethods"
+ )
+ day_of_birth: Optional[StrictStr] = Field(default=None, alias="dayOfBirth")
+ district_code: Optional[StrictStr] = Field(default=None, alias="districtCode")
+ district_name: Optional[StrictStr] = Field(default=None, alias="districtName")
+ email: Optional[StrictStr] = None
+ email_verified: Optional[StrictBool] = Field(default=None, alias="emailVerified")
+ first_name: Optional[StrictStr] = Field(default=None, alias="firstName")
+ gender: Optional[StrictStr] = None
+ health_id: Optional[StrictStr] = Field(default=None, alias="healthId")
+ health_id_number: Optional[StrictStr] = Field(default=None, alias="healthIdNumber")
+ kyc_photo: Optional[StrictStr] = Field(
+ default=None, description="Encoded with Base 64", alias="kycPhoto"
+ )
+ kyc_verified: Optional[StrictBool] = Field(default=None, alias="kycVerified")
+ last_name: Optional[StrictStr] = Field(default=None, alias="lastName")
+ middle_name: Optional[StrictStr] = Field(default=None, alias="middleName")
+ mobile: Optional[StrictStr] = None
+ month_of_birth: Optional[StrictStr] = Field(default=None, alias="monthOfBirth")
+ name: Optional[StrictStr] = None
+ new: Optional[StrictBool] = None
+ phr_address: Optional[List[StrictStr]] = Field(default=None, alias="phrAddress")
+ pincode: Optional[StrictStr] = None
+ profile_photo: Optional[StrictStr] = Field(
+ default=None, description="Encoded with Base 64", alias="profilePhoto"
+ )
+ state_code: Optional[StrictStr] = Field(default=None, alias="stateCode")
+ state_name: Optional[StrictStr] = Field(default=None, alias="stateName")
+ sub_district_code: Optional[StrictStr] = Field(
+ default=None, alias="subDistrictCode"
+ )
+ subdistrict_name: Optional[StrictStr] = Field(default=None, alias="subdistrictName")
+ tags: Optional[Dict[str, StrictStr]] = None
+ town_code: Optional[StrictStr] = Field(default=None, alias="townCode")
+ town_name: Optional[StrictStr] = Field(default=None, alias="townName")
+ verification_status: Optional[StrictStr] = Field(
+ default=None, alias="verificationStatus"
+ )
+ verification_type: Optional[StrictStr] = Field(
+ default=None, alias="verificationType"
+ )
+ village_code: Optional[StrictStr] = Field(default=None, alias="villageCode")
+ village_name: Optional[StrictStr] = Field(default=None, alias="villageName")
+ ward_code: Optional[StrictStr] = Field(default=None, alias="wardCode")
+ ward_name: Optional[StrictStr] = Field(default=None, alias="wardName")
+ year_of_birth: Optional[StrictStr] = Field(default=None, alias="yearOfBirth")
+ __properties: ClassVar[List[str]] = [
+ "address",
+ "authMethods",
+ "dayOfBirth",
+ "districtCode",
+ "districtName",
+ "email",
+ "emailVerified",
+ "firstName",
+ "gender",
+ "healthId",
+ "healthIdNumber",
+ "kycPhoto",
+ "kycVerified",
+ "lastName",
+ "middleName",
+ "mobile",
+ "monthOfBirth",
+ "name",
+ "new",
+ "phrAddress",
+ "pincode",
+ "profilePhoto",
+ "stateCode",
+ "stateName",
+ "subDistrictCode",
+ "subdistrictName",
+ "tags",
+ "townCode",
+ "townName",
+ "verificationStatus",
+ "verificationType",
+ "villageCode",
+ "villageName",
+ "wardCode",
+ "wardName",
+ "yearOfBirth",
+ ]
+
+ @field_validator("auth_methods")
+ def auth_methods_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ for i in value:
+ if i not in set(
+ ["AADHAAR_OTP", "MOBILE_OTP", "PASSWORD", "DEMOGRAPHICS", "AADHAAR_BIO"]
+ ):
+ raise ValueError(
+ "each list item must be one of ('AADHAAR_OTP', 'MOBILE_OTP', 'PASSWORD', 'DEMOGRAPHICS', 'AADHAAR_BIO')"
+ )
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetAccountInformationUsingGET200Response from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetAccountInformationUsingGET200Response from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {
+ "address": obj.get("address"),
+ "authMethods": obj.get("authMethods"),
+ "dayOfBirth": obj.get("dayOfBirth"),
+ "districtCode": obj.get("districtCode"),
+ "districtName": obj.get("districtName"),
+ "email": obj.get("email"),
+ "emailVerified": obj.get("emailVerified"),
+ "firstName": obj.get("firstName"),
+ "gender": obj.get("gender"),
+ "healthId": obj.get("healthId"),
+ "healthIdNumber": obj.get("healthIdNumber"),
+ "kycPhoto": obj.get("kycPhoto"),
+ "kycVerified": obj.get("kycVerified"),
+ "lastName": obj.get("lastName"),
+ "middleName": obj.get("middleName"),
+ "mobile": obj.get("mobile"),
+ "monthOfBirth": obj.get("monthOfBirth"),
+ "name": obj.get("name"),
+ "new": obj.get("new"),
+ "phrAddress": obj.get("phrAddress"),
+ "pincode": obj.get("pincode"),
+ "profilePhoto": obj.get("profilePhoto"),
+ "stateCode": obj.get("stateCode"),
+ "stateName": obj.get("stateName"),
+ "subDistrictCode": obj.get("subDistrictCode"),
+ "subdistrictName": obj.get("subdistrictName"),
+ "tags": obj.get("tags"),
+ "townCode": obj.get("townCode"),
+ "townName": obj.get("townName"),
+ "verificationStatus": obj.get("verificationStatus"),
+ "verificationType": obj.get("verificationType"),
+ "villageCode": obj.get("villageCode"),
+ "villageName": obj.get("villageName"),
+ "wardCode": obj.get("wardCode"),
+ "wardName": obj.get("wardName"),
+ "yearOfBirth": obj.get("yearOfBirth"),
+ }
+ )
+ return _obj
diff --git a/abha/models/resend_auth_otp_request.py b/abha/models/resend_auth_otp_request.py
new file mode 100644
index 0000000..36d8966
--- /dev/null
+++ b/abha/models/resend_auth_otp_request.py
@@ -0,0 +1,85 @@
+# coding: utf-8
+
+"""
+Abdm Abha
+
+Abdm SDK for abha
+
+The version of the OpenAPI document: 1.0.0
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+""" # noqa: E501
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+
+class ResendAuthOTPRequest(BaseModel):
+ """
+ ResendAuthOTPRequest
+ """ # noqa: E501
+
+ auth_method: StrictStr = Field(alias="authMethod")
+ txn_id: StrictStr = Field(description="Based on UUID", alias="txnId")
+ __properties: ClassVar[List[str]] = ["authMethod", "txnId"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ResendAuthOTPRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ResendAuthOTPRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {"authMethod": obj.get("authMethod"), "txnId": obj.get("txnId")}
+ )
+ return _obj
diff --git a/app.py b/app.py
new file mode 100644
index 0000000..e574464
--- /dev/null
+++ b/app.py
@@ -0,0 +1,24 @@
+import abha
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://healthidsbx.abdm.gov.in/api/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = abha.Configuration(host="https://healthidsbx.abdm.gov.in/api/v1")
+
+
+# Configure Bearer authorization (JWT): bearerAuth
+configuration = abha.Configuration(access_token="")
+
+# Enter a context with an instance of the API client
+with abha.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = abha.DefaultApi(api_client)
+ auth_aadhar_init_request = abha.AuthAadharInitRequest() # AuthAadharInitRequest |
+
+ try:
+ # auth-aadhar-init
+ api_response = api_instance.auth_aadhar_init(auth_aadhar_init_request)
+ print("The response of DefaultApi->auth_aadhar_init:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->auth_aadhar_init: %s\n" % e)
diff --git a/docs/AuthAadharInitRequest.md b/docs/AuthAadharInitRequest.md
new file mode 100644
index 0000000..8bb1172
--- /dev/null
+++ b/docs/AuthAadharInitRequest.md
@@ -0,0 +1,30 @@
+# AuthAadharInitRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**auth_method** | **str** | |
+**healthid** | **str** | |
+
+## Example
+
+```python
+from abha.models.auth_aadhar_init_request import AuthAadharInitRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AuthAadharInitRequest from a JSON string
+auth_aadhar_init_request_instance = AuthAadharInitRequest.from_json(json)
+# print the JSON string representation of the object
+print(AuthAadharInitRequest.to_json())
+
+# convert the object into a dict
+auth_aadhar_init_request_dict = auth_aadhar_init_request_instance.to_dict()
+# create an instance of AuthAadharInitRequest from a dict
+auth_aadhar_init_request_from_dict = AuthAadharInitRequest.from_dict(auth_aadhar_init_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md
index c501d61..3236a59 100644
--- a/docs/DefaultApi.md
+++ b/docs/DefaultApi.md
@@ -4,13 +4,185 @@ All URIs are relative to *https://healthidsbx.abdm.gov.in/api/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**auth_aadhar_init**](DefaultApi.md#auth_aadhar_init) | **POST** /auth/init | auth-aadhar-init
+[**confirm_with_aadhaar_otp**](DefaultApi.md#confirm_with_aadhaar_otp) | **POST** /auth/confirmWithAadhaarOtp | aadhar-otp-confirm
[**create_health_id_with_pre_verified**](DefaultApi.md#create_health_id_with_pre_verified) | **POST** /registration/aadhaar/createHealthIdWithPreVerified | Health ID creation
+[**generate_card_using_get**](DefaultApi.md#generate_card_using_get) | **GET** /account/getCard | Generate ABHA card in PDF format
[**generate_mobile_otp**](DefaultApi.md#generate_mobile_otp) | **POST** /registration/aadhaar/generateMobileOTP | Generate Mobile OTP
[**generate_otp**](DefaultApi.md#generate_otp) | **POST** /registration/aadhaar/generateOtp | Generate OTP
+[**generate_png_card_using_get**](DefaultApi.md#generate_png_card_using_get) | **GET** /account/getPngCard | Generate ABHA card PNG
+[**generate_svg_card_using_get**](DefaultApi.md#generate_svg_card_using_get) | **GET** /account/getSvgCard | Generate ABHA card SVG
+[**get_account_information_using_get**](DefaultApi.md#get_account_information_using_get) | **GET** /account/profile | Get account information.
+[**get_qr_code_using_get**](DefaultApi.md#get_qr_code_using_get) | **GET** /account/qrCode | Get Quick Response code in PNG format for this account.
+[**resend_auth_otp**](DefaultApi.md#resend_auth_otp) | **POST** /auth/resendAuthOTP | resend-auth-aadhar-init
[**verify_mobile_otp**](DefaultApi.md#verify_mobile_otp) | **POST** /registration/aadhaar/verifyMobileOTP | Verify Mobile OTP
[**verify_otp**](DefaultApi.md#verify_otp) | **POST** /registration/aadhaar/verifyOTP | Verify OTP
+# **auth_aadhar_init**
+> GenerateOtp200Response auth_aadhar_init(auth_aadhar_init_request)
+
+auth-aadhar-init
+
+This endpoint Initiates Aadhar Authentication
+
+### Example
+
+* Bearer (JWT) Authentication (bearerAuth):
+
+```python
+import abha
+from abha.models.auth_aadhar_init_request import AuthAadharInitRequest
+from abha.models.generate_otp200_response import GenerateOtp200Response
+from abha.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://healthidsbx.abdm.gov.in/api/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = abha.Configuration(
+ host = "https://healthidsbx.abdm.gov.in/api/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): bearerAuth
+configuration = abha.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with abha.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = abha.DefaultApi(api_client)
+ auth_aadhar_init_request = abha.AuthAadharInitRequest() # AuthAadharInitRequest |
+
+ try:
+ # auth-aadhar-init
+ api_response = api_instance.auth_aadhar_init(auth_aadhar_init_request)
+ print("The response of DefaultApi->auth_aadhar_init:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->auth_aadhar_init: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **auth_aadhar_init_request** | [**AuthAadharInitRequest**](AuthAadharInitRequest.md)| |
+
+### Return type
+
+[**GenerateOtp200Response**](GenerateOtp200Response.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Transaction Id | - |
+**400** | Bad request (e.g., missing or invalid Aadhaar number) | - |
+**401** | Unauthorized (invalid or missing bearer token) | - |
+**500** | Internal server error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **confirm_with_aadhaar_otp**
+> GenerateOtp200Response confirm_with_aadhaar_otp(resend_auth_otp_request)
+
+aadhar-otp-confirm
+
+This endpoint Confirms Aadhar Authentication
+
+### Example
+
+* Bearer (JWT) Authentication (bearerAuth):
+
+```python
+import abha
+from abha.models.generate_otp200_response import GenerateOtp200Response
+from abha.models.resend_auth_otp_request import ResendAuthOTPRequest
+from abha.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://healthidsbx.abdm.gov.in/api/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = abha.Configuration(
+ host = "https://healthidsbx.abdm.gov.in/api/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): bearerAuth
+configuration = abha.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with abha.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = abha.DefaultApi(api_client)
+ resend_auth_otp_request = abha.ResendAuthOTPRequest() # ResendAuthOTPRequest |
+
+ try:
+ # aadhar-otp-confirm
+ api_response = api_instance.confirm_with_aadhaar_otp(resend_auth_otp_request)
+ print("The response of DefaultApi->confirm_with_aadhaar_otp:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->confirm_with_aadhaar_otp: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **resend_auth_otp_request** | [**ResendAuthOTPRequest**](ResendAuthOTPRequest.md)| |
+
+### Return type
+
+[**GenerateOtp200Response**](GenerateOtp200Response.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Transaction Id | - |
+**400** | Bad request (e.g., missing or invalid Aadhaar number) | - |
+**401** | Unauthorized (invalid or missing bearer token) | - |
+**500** | Internal server error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **create_health_id_with_pre_verified**
> CreateHealthIdWithPreVerified200Response create_health_id_with_pre_verified(create_health_id_with_pre_verified_request)
@@ -93,6 +265,89 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **generate_card_using_get**
+> generate_card_using_get(accept_language, x_token)
+
+Generate ABHA card in PDF format
+
+Explanation - Api Accepts Auth Token and then Returns Account Details for PDF format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for PDF format. Returns Error for Unauthorized Auth Token.
+
+### Example
+
+* Bearer (JWT) Authentication (bearerAuth):
+
+```python
+import abha
+from abha.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://healthidsbx.abdm.gov.in/api/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = abha.Configuration(
+ host = "https://healthidsbx.abdm.gov.in/api/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): bearerAuth
+configuration = abha.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with abha.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = abha.DefaultApi(api_client)
+ accept_language = 'accept_language_example' # str | Access Token.
+ x_token = 'x_token_example' # str | Access Token.
+
+ try:
+ # Generate ABHA card in PDF format
+ api_instance.generate_card_using_get(accept_language, x_token)
+ except Exception as e:
+ print("Exception when calling DefaultApi->generate_card_using_get: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **accept_language** | **str**| Access Token. |
+ **x_token** | **str**| Access Token. |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Return details in case of success | - |
+**400** | Bad request, check request before retrying | - |
+**401** | Unauthorized Access. | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**422** | Could not generate Card or Invalid Token | - |
+**500** | Downstream system(s) is down. Unhandled exceptions. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **generate_mobile_otp**
> GenerateOtp200Response generate_mobile_otp(generate_mobile_otp_request)
@@ -257,6 +512,430 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **generate_png_card_using_get**
+> GeneratePngCardUsingGET200Response generate_png_card_using_get(accept_language, x_token)
+
+Generate ABHA card PNG
+
+Explanation - Api Accepts Auth Token and then Returns Account Details for PNG format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for PNG format. Returns Error for Unauthorized Auth Token.
+
+### Example
+
+* Bearer (JWT) Authentication (bearerAuth):
+
+```python
+import abha
+from abha.models.generate_png_card_using_get200_response import GeneratePngCardUsingGET200Response
+from abha.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://healthidsbx.abdm.gov.in/api/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = abha.Configuration(
+ host = "https://healthidsbx.abdm.gov.in/api/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): bearerAuth
+configuration = abha.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with abha.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = abha.DefaultApi(api_client)
+ accept_language = 'accept_language_example' # str | Access Token.
+ x_token = 'x_token_example' # str | Access Token.
+
+ try:
+ # Generate ABHA card PNG
+ api_response = api_instance.generate_png_card_using_get(accept_language, x_token)
+ print("The response of DefaultApi->generate_png_card_using_get:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->generate_png_card_using_get: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **accept_language** | **str**| Access Token. |
+ **x_token** | **str**| Access Token. |
+
+### Return type
+
+[**GeneratePngCardUsingGET200Response**](GeneratePngCardUsingGET200Response.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Return details in case of success | - |
+**400** | Bad request, check request before retrying | - |
+**401** | Unauthorized Access. | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**422** | Could not generate Card or Invalid Token | - |
+**500** | Downstream system(s) is down. Unhandled exceptions. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **generate_svg_card_using_get**
+> bytearray generate_svg_card_using_get(accept_language, x_token)
+
+Generate ABHA card SVG
+
+Explanation - Api Accepts Auth Token and then Returns Account Details for SVG format. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details for SVG format. Returns Error for Unauthorized Auth Token.
+
+### Example
+
+* Bearer (JWT) Authentication (bearerAuth):
+
+```python
+import abha
+from abha.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://healthidsbx.abdm.gov.in/api/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = abha.Configuration(
+ host = "https://healthidsbx.abdm.gov.in/api/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): bearerAuth
+configuration = abha.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with abha.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = abha.DefaultApi(api_client)
+ accept_language = 'accept_language_example' # str | Access Token.
+ x_token = 'x_token_example' # str | Access Token.
+
+ try:
+ # Generate ABHA card SVG
+ api_response = api_instance.generate_svg_card_using_get(accept_language, x_token)
+ print("The response of DefaultApi->generate_svg_card_using_get:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->generate_svg_card_using_get: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **accept_language** | **str**| Access Token. |
+ **x_token** | **str**| Access Token. |
+
+### Return type
+
+**bytearray**
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Return details in case of success | - |
+**400** | Bad request, check request before retrying | - |
+**401** | Unauthorized Access. | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**422** | Could not generate Card or Invalid Token | - |
+**500** | Downstream system(s) is down. Unhandled exceptions. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_account_information_using_get**
+> GetAccountInformationUsingGET200Response get_account_information_using_get(accept_language, x_token)
+
+Get account information.
+
+Explanation - Api Accepts Auth Token and then Returns Account Details. Request Body - Required Responce - Api Accepts Auth Token and then Returns Account Details. Returns Error for Unauthorized Auth Token.
+
+### Example
+
+* Bearer (JWT) Authentication (bearerAuth):
+
+```python
+import abha
+from abha.models.get_account_information_using_get200_response import GetAccountInformationUsingGET200Response
+from abha.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://healthidsbx.abdm.gov.in/api/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = abha.Configuration(
+ host = "https://healthidsbx.abdm.gov.in/api/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): bearerAuth
+configuration = abha.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with abha.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = abha.DefaultApi(api_client)
+ accept_language = 'accept_language_example' # str | Access Token.
+ x_token = 'x_token_example' # str | Access Token.
+
+ try:
+ # Get account information.
+ api_response = api_instance.get_account_information_using_get(accept_language, x_token)
+ print("The response of DefaultApi->get_account_information_using_get:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->get_account_information_using_get: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **accept_language** | **str**| Access Token. |
+ **x_token** | **str**| Access Token. |
+
+### Return type
+
+[**GetAccountInformationUsingGET200Response**](GetAccountInformationUsingGET200Response.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Return Account details in case of success | - |
+**400** | Bad request, check request before retrying | - |
+**401** | Unauthorized Access. | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**422** | Could not Get account information or Invalid Token | - |
+**500** | Downstream system(s) is down. Unhandled exceptions. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_qr_code_using_get**
+> bytearray get_qr_code_using_get(accept_language, x_token)
+
+Get Quick Response code in PNG format for this account.
+
+Explanation - Api Accepts Auth Token and then returns Account Info for QR Code. Request Body - Required Responce - Api Accepts Auth Token and then returns Account Info for QR Code. Returns Error for Unauthorized Token.
+
+### Example
+
+* Bearer (JWT) Authentication (bearerAuth):
+
+```python
+import abha
+from abha.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://healthidsbx.abdm.gov.in/api/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = abha.Configuration(
+ host = "https://healthidsbx.abdm.gov.in/api/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): bearerAuth
+configuration = abha.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with abha.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = abha.DefaultApi(api_client)
+ accept_language = 'accept_language_example' # str | Access Token.
+ x_token = 'x_token_example' # str | Access Token.
+
+ try:
+ # Get Quick Response code in PNG format for this account.
+ api_response = api_instance.get_qr_code_using_get(accept_language, x_token)
+ print("The response of DefaultApi->get_qr_code_using_get:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->get_qr_code_using_get: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **accept_language** | **str**| Access Token. |
+ **x_token** | **str**| Access Token. |
+
+### Return type
+
+**bytearray**
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Return QR Code in Byte Array Form in case of success | - |
+**400** | Bad request, check request before retrying | - |
+**401** | Unauthorized Access. | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**422** | Expired or Invalid Token | - |
+**500** | Downstream system(s) is down. Unhandled exceptions. | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **resend_auth_otp**
+> GenerateOtp200Response resend_auth_otp(resend_auth_otp_request)
+
+resend-auth-aadhar-init
+
+This endpoint Initiates Resends Aadhar Authentication
+
+### Example
+
+* Bearer (JWT) Authentication (bearerAuth):
+
+```python
+import abha
+from abha.models.generate_otp200_response import GenerateOtp200Response
+from abha.models.resend_auth_otp_request import ResendAuthOTPRequest
+from abha.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://healthidsbx.abdm.gov.in/api/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = abha.Configuration(
+ host = "https://healthidsbx.abdm.gov.in/api/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization (JWT): bearerAuth
+configuration = abha.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with abha.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = abha.DefaultApi(api_client)
+ resend_auth_otp_request = abha.ResendAuthOTPRequest() # ResendAuthOTPRequest |
+
+ try:
+ # resend-auth-aadhar-init
+ api_response = api_instance.resend_auth_otp(resend_auth_otp_request)
+ print("The response of DefaultApi->resend_auth_otp:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->resend_auth_otp: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **resend_auth_otp_request** | [**ResendAuthOTPRequest**](ResendAuthOTPRequest.md)| |
+
+### Return type
+
+[**GenerateOtp200Response**](GenerateOtp200Response.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Transaction Id | - |
+**400** | Bad request (e.g., missing or invalid Aadhaar number) | - |
+**401** | Unauthorized (invalid or missing bearer token) | - |
+**500** | Internal server error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **verify_mobile_otp**
> GenerateOtp200Response verify_mobile_otp(verify_otp_request)
diff --git a/docs/GeneratePngCardUsingGET200Response.md b/docs/GeneratePngCardUsingGET200Response.md
new file mode 100644
index 0000000..881fecb
--- /dev/null
+++ b/docs/GeneratePngCardUsingGET200Response.md
@@ -0,0 +1,33 @@
+# GeneratePngCardUsingGET200Response
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**byte_array** | **bytearray** | | [optional]
+**description** | **str** | | [optional]
+**filename** | **str** | | [optional]
+**open** | **bool** | | [optional]
+**readable** | **bool** | | [optional]
+
+## Example
+
+```python
+from abha.models.generate_png_card_using_get200_response import GeneratePngCardUsingGET200Response
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GeneratePngCardUsingGET200Response from a JSON string
+generate_png_card_using_get200_response_instance = GeneratePngCardUsingGET200Response.from_json(json)
+# print the JSON string representation of the object
+print(GeneratePngCardUsingGET200Response.to_json())
+
+# convert the object into a dict
+generate_png_card_using_get200_response_dict = generate_png_card_using_get200_response_instance.to_dict()
+# create an instance of GeneratePngCardUsingGET200Response from a dict
+generate_png_card_using_get200_response_from_dict = GeneratePngCardUsingGET200Response.from_dict(generate_png_card_using_get200_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetAccountInformationUsingGET200Response.md b/docs/GetAccountInformationUsingGET200Response.md
new file mode 100644
index 0000000..548a2b2
--- /dev/null
+++ b/docs/GetAccountInformationUsingGET200Response.md
@@ -0,0 +1,64 @@
+# GetAccountInformationUsingGET200Response
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**address** | **str** | | [optional]
+**auth_methods** | **List[str]** | Based on authMethods | [optional]
+**day_of_birth** | **str** | | [optional]
+**district_code** | **str** | | [optional]
+**district_name** | **str** | | [optional]
+**email** | **str** | | [optional]
+**email_verified** | **bool** | | [optional]
+**first_name** | **str** | | [optional]
+**gender** | **str** | | [optional]
+**health_id** | **str** | | [optional]
+**health_id_number** | **str** | | [optional]
+**kyc_photo** | **str** | Encoded with Base 64 | [optional]
+**kyc_verified** | **bool** | | [optional]
+**last_name** | **str** | | [optional]
+**middle_name** | **str** | | [optional]
+**mobile** | **str** | | [optional]
+**month_of_birth** | **str** | | [optional]
+**name** | **str** | | [optional]
+**new** | **bool** | | [optional]
+**phr_address** | **List[str]** | | [optional]
+**pincode** | **str** | | [optional]
+**profile_photo** | **str** | Encoded with Base 64 | [optional]
+**state_code** | **str** | | [optional]
+**state_name** | **str** | | [optional]
+**sub_district_code** | **str** | | [optional]
+**subdistrict_name** | **str** | | [optional]
+**tags** | **Dict[str, str]** | | [optional]
+**town_code** | **str** | | [optional]
+**town_name** | **str** | | [optional]
+**verification_status** | **str** | | [optional]
+**verification_type** | **str** | | [optional]
+**village_code** | **str** | | [optional]
+**village_name** | **str** | | [optional]
+**ward_code** | **str** | | [optional]
+**ward_name** | **str** | | [optional]
+**year_of_birth** | **str** | | [optional]
+
+## Example
+
+```python
+from abha.models.get_account_information_using_get200_response import GetAccountInformationUsingGET200Response
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetAccountInformationUsingGET200Response from a JSON string
+get_account_information_using_get200_response_instance = GetAccountInformationUsingGET200Response.from_json(json)
+# print the JSON string representation of the object
+print(GetAccountInformationUsingGET200Response.to_json())
+
+# convert the object into a dict
+get_account_information_using_get200_response_dict = get_account_information_using_get200_response_instance.to_dict()
+# create an instance of GetAccountInformationUsingGET200Response from a dict
+get_account_information_using_get200_response_from_dict = GetAccountInformationUsingGET200Response.from_dict(get_account_information_using_get200_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ResendAuthOTPRequest.md b/docs/ResendAuthOTPRequest.md
new file mode 100644
index 0000000..663aec5
--- /dev/null
+++ b/docs/ResendAuthOTPRequest.md
@@ -0,0 +1,30 @@
+# ResendAuthOTPRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**auth_method** | **str** | |
+**txn_id** | **str** | Based on UUID |
+
+## Example
+
+```python
+from abha.models.resend_auth_otp_request import ResendAuthOTPRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ResendAuthOTPRequest from a JSON string
+resend_auth_otp_request_instance = ResendAuthOTPRequest.from_json(json)
+# print the JSON string representation of the object
+print(ResendAuthOTPRequest.to_json())
+
+# convert the object into a dict
+resend_auth_otp_request_dict = resend_auth_otp_request_instance.to_dict()
+# create an instance of ResendAuthOTPRequest from a dict
+resend_auth_otp_request_from_dict = ResendAuthOTPRequest.from_dict(resend_auth_otp_request_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/poetry.lock b/poetry.lock
index 10c74b8..e77e769 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -437,28 +437,28 @@ six = ">=1.5"
[[package]]
name = "ruff"
-version = "0.4.4"
+version = "0.4.8"
description = "An extremely fast Python linter and code formatter, written in Rust."
optional = false
python-versions = ">=3.7"
files = [
- {file = "ruff-0.4.4-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:29d44ef5bb6a08e235c8249294fa8d431adc1426bfda99ed493119e6f9ea1bf6"},
- {file = "ruff-0.4.4-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c4efe62b5bbb24178c950732ddd40712b878a9b96b1d02b0ff0b08a090cbd891"},
- {file = "ruff-0.4.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4c8e2f1e8fc12d07ab521a9005d68a969e167b589cbcaee354cb61e9d9de9c15"},
- {file = "ruff-0.4.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:60ed88b636a463214905c002fa3eaab19795679ed55529f91e488db3fe8976ab"},
- {file = "ruff-0.4.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b90fc5e170fc71c712cc4d9ab0e24ea505c6a9e4ebf346787a67e691dfb72e85"},
- {file = "ruff-0.4.4-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:8e7e6ebc10ef16dcdc77fd5557ee60647512b400e4a60bdc4849468f076f6eef"},
- {file = "ruff-0.4.4-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b9ddb2c494fb79fc208cd15ffe08f32b7682519e067413dbaf5f4b01a6087bcd"},
- {file = "ruff-0.4.4-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c51c928a14f9f0a871082603e25a1588059b7e08a920f2f9fa7157b5bf08cfe9"},
- {file = "ruff-0.4.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b5eb0a4bfd6400b7d07c09a7725e1a98c3b838be557fee229ac0f84d9aa49c36"},
- {file = "ruff-0.4.4-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:b1867ee9bf3acc21778dcb293db504692eda5f7a11a6e6cc40890182a9f9e595"},
- {file = "ruff-0.4.4-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:1aecced1269481ef2894cc495647392a34b0bf3e28ff53ed95a385b13aa45768"},
- {file = "ruff-0.4.4-py3-none-musllinux_1_2_i686.whl", hash = "sha256:9da73eb616b3241a307b837f32756dc20a0b07e2bcb694fec73699c93d04a69e"},
- {file = "ruff-0.4.4-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:958b4ea5589706a81065e2a776237de2ecc3e763342e5cc8e02a4a4d8a5e6f95"},
- {file = "ruff-0.4.4-py3-none-win32.whl", hash = "sha256:cb53473849f011bca6e754f2cdf47cafc9c4f4ff4570003a0dad0b9b6890e876"},
- {file = "ruff-0.4.4-py3-none-win_amd64.whl", hash = "sha256:424e5b72597482543b684c11def82669cc6b395aa8cc69acc1858b5ef3e5daae"},
- {file = "ruff-0.4.4-py3-none-win_arm64.whl", hash = "sha256:39df0537b47d3b597293edbb95baf54ff5b49589eb7ff41926d8243caa995ea6"},
- {file = "ruff-0.4.4.tar.gz", hash = "sha256:f87ea42d5cdebdc6a69761a9d0bc83ae9b3b30d0ad78952005ba6568d6c022af"},
+ {file = "ruff-0.4.8-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:7663a6d78f6adb0eab270fa9cf1ff2d28618ca3a652b60f2a234d92b9ec89066"},
+ {file = "ruff-0.4.8-py3-none-macosx_11_0_arm64.whl", hash = "sha256:eeceb78da8afb6de0ddada93112869852d04f1cd0f6b80fe464fd4e35c330913"},
+ {file = "ruff-0.4.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aad360893e92486662ef3be0a339c5ca3c1b109e0134fcd37d534d4be9fb8de3"},
+ {file = "ruff-0.4.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:284c2e3f3396fb05f5f803c9fffb53ebbe09a3ebe7dda2929ed8d73ded736deb"},
+ {file = "ruff-0.4.8-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a7354f921e3fbe04d2a62d46707e569f9315e1a613307f7311a935743c51a764"},
+ {file = "ruff-0.4.8-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:72584676164e15a68a15778fd1b17c28a519e7a0622161eb2debdcdabdc71883"},
+ {file = "ruff-0.4.8-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9678d5c9b43315f323af2233a04d747409d1e3aa6789620083a82d1066a35199"},
+ {file = "ruff-0.4.8-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704977a658131651a22b5ebeb28b717ef42ac6ee3b11e91dc87b633b5d83142b"},
+ {file = "ruff-0.4.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d05f8d6f0c3cce5026cecd83b7a143dcad503045857bc49662f736437380ad45"},
+ {file = "ruff-0.4.8-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:6ea874950daca5697309d976c9afba830d3bf0ed66887481d6bca1673fc5b66a"},
+ {file = "ruff-0.4.8-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:fc95aac2943ddf360376be9aa3107c8cf9640083940a8c5bd824be692d2216dc"},
+ {file = "ruff-0.4.8-py3-none-musllinux_1_2_i686.whl", hash = "sha256:384154a1c3f4bf537bac69f33720957ee49ac8d484bfc91720cc94172026ceed"},
+ {file = "ruff-0.4.8-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:e9d5ce97cacc99878aa0d084c626a15cd21e6b3d53fd6f9112b7fc485918e1fa"},
+ {file = "ruff-0.4.8-py3-none-win32.whl", hash = "sha256:6d795d7639212c2dfd01991259460101c22aabf420d9b943f153ab9d9706e6a9"},
+ {file = "ruff-0.4.8-py3-none-win_amd64.whl", hash = "sha256:e14a3a095d07560a9d6769a72f781d73259655919d9b396c650fc98a8157555d"},
+ {file = "ruff-0.4.8-py3-none-win_arm64.whl", hash = "sha256:14019a06dbe29b608f6b7cbcec300e3170a8d86efaddb7b23405cb7f7dcaf780"},
+ {file = "ruff-0.4.8.tar.gz", hash = "sha256:16d717b1d57b2e2fd68bd0bf80fb43931b79d05a7131aa477d66fc40fbd86268"},
]
[[package]]
@@ -637,4 +637,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more
[metadata]
lock-version = "2.0"
python-versions = "^3.7"
-content-hash = "20d58909680102a8f6c188b0007b9a044d8d156461045e5c1505b68b68fe03a7"
+content-hash = "897502db241544068e29291658982649e4a8e1014422c3dff87d7f09e6f373e5"
diff --git a/pyproject.toml b/pyproject.toml
index db37f35..20f2565 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,7 +16,7 @@ urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2"
pydantic = ">=2"
typing-extensions = ">=4.7.1"
-ruff = "^0.4.4"
+ruff = "^0.4.8"
[tool.poetry.dev-dependencies]
pytest = ">=7.2.1"
diff --git a/test/__pycache__/__init__.cpython-312.pyc b/test/__pycache__/__init__.cpython-312.pyc
new file mode 100644
index 0000000..e0c5396
Binary files /dev/null and b/test/__pycache__/__init__.cpython-312.pyc differ
diff --git a/test/__pycache__/test_auth_aadhar_init_request.cpython-312-pytest-7.4.4.pyc b/test/__pycache__/test_auth_aadhar_init_request.cpython-312-pytest-7.4.4.pyc
new file mode 100644
index 0000000..dfcceec
Binary files /dev/null and b/test/__pycache__/test_auth_aadhar_init_request.cpython-312-pytest-7.4.4.pyc differ
diff --git a/test/__pycache__/test_create_health_id_with_pre_verified200_response.cpython-312-pytest-7.4.4.pyc b/test/__pycache__/test_create_health_id_with_pre_verified200_response.cpython-312-pytest-7.4.4.pyc
new file mode 100644
index 0000000..b6c84e5
Binary files /dev/null and b/test/__pycache__/test_create_health_id_with_pre_verified200_response.cpython-312-pytest-7.4.4.pyc differ
diff --git a/test/__pycache__/test_create_health_id_with_pre_verified_request.cpython-312-pytest-7.4.4.pyc b/test/__pycache__/test_create_health_id_with_pre_verified_request.cpython-312-pytest-7.4.4.pyc
new file mode 100644
index 0000000..5dc52d7
Binary files /dev/null and b/test/__pycache__/test_create_health_id_with_pre_verified_request.cpython-312-pytest-7.4.4.pyc differ
diff --git a/test/__pycache__/test_default_api.cpython-312-pytest-7.4.4.pyc b/test/__pycache__/test_default_api.cpython-312-pytest-7.4.4.pyc
new file mode 100644
index 0000000..ee14a9e
Binary files /dev/null and b/test/__pycache__/test_default_api.cpython-312-pytest-7.4.4.pyc differ
diff --git a/test/__pycache__/test_generate_mobile_otp_request.cpython-312-pytest-7.4.4.pyc b/test/__pycache__/test_generate_mobile_otp_request.cpython-312-pytest-7.4.4.pyc
new file mode 100644
index 0000000..36376f3
Binary files /dev/null and b/test/__pycache__/test_generate_mobile_otp_request.cpython-312-pytest-7.4.4.pyc differ
diff --git a/test/__pycache__/test_generate_otp200_response.cpython-312-pytest-7.4.4.pyc b/test/__pycache__/test_generate_otp200_response.cpython-312-pytest-7.4.4.pyc
new file mode 100644
index 0000000..5146fca
Binary files /dev/null and b/test/__pycache__/test_generate_otp200_response.cpython-312-pytest-7.4.4.pyc differ
diff --git a/test/__pycache__/test_generate_otp_request.cpython-312-pytest-7.4.4.pyc b/test/__pycache__/test_generate_otp_request.cpython-312-pytest-7.4.4.pyc
new file mode 100644
index 0000000..868cffa
Binary files /dev/null and b/test/__pycache__/test_generate_otp_request.cpython-312-pytest-7.4.4.pyc differ
diff --git a/test/__pycache__/test_generate_png_card_using_get200_response.cpython-312-pytest-7.4.4.pyc b/test/__pycache__/test_generate_png_card_using_get200_response.cpython-312-pytest-7.4.4.pyc
new file mode 100644
index 0000000..ed5db57
Binary files /dev/null and b/test/__pycache__/test_generate_png_card_using_get200_response.cpython-312-pytest-7.4.4.pyc differ
diff --git a/test/__pycache__/test_get_account_information_using_get200_response.cpython-312-pytest-7.4.4.pyc b/test/__pycache__/test_get_account_information_using_get200_response.cpython-312-pytest-7.4.4.pyc
new file mode 100644
index 0000000..1a2d7ec
Binary files /dev/null and b/test/__pycache__/test_get_account_information_using_get200_response.cpython-312-pytest-7.4.4.pyc differ
diff --git a/test/__pycache__/test_resend_auth_otp_request.cpython-312-pytest-7.4.4.pyc b/test/__pycache__/test_resend_auth_otp_request.cpython-312-pytest-7.4.4.pyc
new file mode 100644
index 0000000..017e41d
Binary files /dev/null and b/test/__pycache__/test_resend_auth_otp_request.cpython-312-pytest-7.4.4.pyc differ
diff --git a/test/__pycache__/test_verify_otp_request.cpython-312-pytest-7.4.4.pyc b/test/__pycache__/test_verify_otp_request.cpython-312-pytest-7.4.4.pyc
new file mode 100644
index 0000000..fdc56df
Binary files /dev/null and b/test/__pycache__/test_verify_otp_request.cpython-312-pytest-7.4.4.pyc differ
diff --git a/test/test_auth_aadhar_init_request.py b/test/test_auth_aadhar_init_request.py
new file mode 100644
index 0000000..9e31c80
--- /dev/null
+++ b/test/test_auth_aadhar_init_request.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+Abdm Abha
+
+Abdm SDK for abha
+
+The version of the OpenAPI document: 1.0.0
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+""" # noqa: E501
+
+import unittest
+
+from abha.models.auth_aadhar_init_request import AuthAadharInitRequest
+
+
+class TestAuthAadharInitRequest(unittest.TestCase):
+ """AuthAadharInitRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AuthAadharInitRequest:
+ """Test AuthAadharInitRequest
+ include_option is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included"""
+ # uncomment below to create an instance of `AuthAadharInitRequest`
+ """
+ model = AuthAadharInitRequest()
+ if include_optional:
+ return AuthAadharInitRequest(
+ auth_method = '',
+ healthid = ''
+ )
+ else:
+ return AuthAadharInitRequest(
+ auth_method = '',
+ healthid = '',
+ )
+ """
+
+ def testAuthAadharInitRequest(self):
+ """Test AuthAadharInitRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/test/test_default_api.py b/test/test_default_api.py
index 2ba2e60..7e67629 100644
--- a/test/test_default_api.py
+++ b/test/test_default_api.py
@@ -25,6 +25,20 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
+ def test_auth_aadhar_init(self) -> None:
+ """Test case for auth_aadhar_init
+
+ auth-aadhar-init
+ """
+ pass
+
+ def test_confirm_with_aadhaar_otp(self) -> None:
+ """Test case for confirm_with_aadhaar_otp
+
+ aadhar-otp-confirm
+ """
+ pass
+
def test_create_health_id_with_pre_verified(self) -> None:
"""Test case for create_health_id_with_pre_verified
@@ -32,6 +46,13 @@ def test_create_health_id_with_pre_verified(self) -> None:
"""
pass
+ def test_generate_card_using_get(self) -> None:
+ """Test case for generate_card_using_get
+
+ Generate ABHA card in PDF format
+ """
+ pass
+
def test_generate_mobile_otp(self) -> None:
"""Test case for generate_mobile_otp
@@ -46,6 +67,41 @@ def test_generate_otp(self) -> None:
"""
pass
+ def test_generate_png_card_using_get(self) -> None:
+ """Test case for generate_png_card_using_get
+
+ Generate ABHA card PNG
+ """
+ pass
+
+ def test_generate_svg_card_using_get(self) -> None:
+ """Test case for generate_svg_card_using_get
+
+ Generate ABHA card SVG
+ """
+ pass
+
+ def test_get_account_information_using_get(self) -> None:
+ """Test case for get_account_information_using_get
+
+ Get account information.
+ """
+ pass
+
+ def test_get_qr_code_using_get(self) -> None:
+ """Test case for get_qr_code_using_get
+
+ Get Quick Response code in PNG format for this account.
+ """
+ pass
+
+ def test_resend_auth_otp(self) -> None:
+ """Test case for resend_auth_otp
+
+ resend-auth-aadhar-init
+ """
+ pass
+
def test_verify_mobile_otp(self) -> None:
"""Test case for verify_mobile_otp
diff --git a/test/test_generate_png_card_using_get200_response.py b/test/test_generate_png_card_using_get200_response.py
new file mode 100644
index 0000000..f876074
--- /dev/null
+++ b/test/test_generate_png_card_using_get200_response.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+Abdm Abha
+
+Abdm SDK for abha
+
+The version of the OpenAPI document: 1.0.0
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+""" # noqa: E501
+
+import unittest
+
+from abha.models.generate_png_card_using_get200_response import (
+ GeneratePngCardUsingGET200Response,
+)
+
+
+class TestGeneratePngCardUsingGET200Response(unittest.TestCase):
+ """GeneratePngCardUsingGET200Response unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GeneratePngCardUsingGET200Response:
+ """Test GeneratePngCardUsingGET200Response
+ include_option is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included"""
+ # uncomment below to create an instance of `GeneratePngCardUsingGET200Response`
+ """
+ model = GeneratePngCardUsingGET200Response()
+ if include_optional:
+ return GeneratePngCardUsingGET200Response(
+ byte_array = 'YQ==',
+ description = '',
+ filename = '',
+ open = True,
+ readable = True
+ )
+ else:
+ return GeneratePngCardUsingGET200Response(
+ )
+ """
+
+ def testGeneratePngCardUsingGET200Response(self):
+ """Test GeneratePngCardUsingGET200Response"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/test/test_get_account_information_using_get200_response.py b/test/test_get_account_information_using_get200_response.py
new file mode 100644
index 0000000..61131e5
--- /dev/null
+++ b/test/test_get_account_information_using_get200_response.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+Abdm Abha
+
+Abdm SDK for abha
+
+The version of the OpenAPI document: 1.0.0
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+""" # noqa: E501
+
+import unittest
+
+from abha.models.get_account_information_using_get200_response import (
+ GetAccountInformationUsingGET200Response,
+)
+
+
+class TestGetAccountInformationUsingGET200Response(unittest.TestCase):
+ """GetAccountInformationUsingGET200Response unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(
+ self, include_optional
+ ) -> GetAccountInformationUsingGET200Response:
+ """Test GetAccountInformationUsingGET200Response
+ include_option is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included"""
+ # uncomment below to create an instance of `GetAccountInformationUsingGET200Response`
+ """
+ model = GetAccountInformationUsingGET200Response()
+ if include_optional:
+ return GetAccountInformationUsingGET200Response(
+ address = 'b-14 someshwar nagar',
+ auth_methods = AADHAAR_OTP,
+ day_of_birth = '31',
+ district_code = '401',
+ district_name = 'Pune',
+ email = 'example@demo.com',
+ email_verified = True,
+ first_name = 'kishan',
+ gender = 'Male',
+ health_id = 'deepakndhm',
+ health_id_number = '43-4221-5105-6749',
+ kyc_photo = 'sw1uD+gpv3fj6NHBNhtcII3GksVtkLT9bvcz0svYDyUt/x3jTtedXSYgw4b90GTwfLfs1eow056VsOw9HFS/wB8uH5Ysx+QzpL7PxmAY1WOHwOj04sPKN6Dw8XY8vcXovtvZc1dUB+TPAlGGPNu8iqMVPetukysjRxgbNdLLKMxn46rIRb8NieeyuDx1EHa90jJP9KwKGZdsLr08BysrmMJExzTO9FT93CzoNg50/nxzaQgmkBSbu9D8DxJm7XrLzWSUB05YCknHbokm4iXwyYBsrmfFDE/xCDfzYPhYyhtEmOi4J/GMp+lO+gAHQFQtxkIADhoSR8WXGcAbCUj7uTjFsBU/tc+RtvSotso4FXy8v+Ylzj28jbFTmmOWyAwYi9pThQjXnmRnq43dVdd5OXmxIII6SXs0JzoFvKwSk7VxhuLIRYzKqrkfcnWMrrmRgE8xZ6ZLft6O3IeiHb9WA8b/6/qO8Hdd17FKsSF6te59gSpoajS0FtQIgFn/c+NHzQYo5ZdsuRGM9v+bhHTInI=',
+ kyc_verified = True,
+ last_name = 'singh',
+ middle_name = 'kumar',
+ mobile = '9545812125',
+ month_of_birth = '05',
+ name = 'kishan kumar singh',
+ new = True,
+ phr_address = [
+ ''
+ ],
+ pincode = '412306',
+ profile_photo = '/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkJCQkJCQoLCwoODw0PDhQSERESFB4WFxYXFh4uHSEdHSEdLikxKCUoMSlJOTMzOUlUR0NHVGZbW2aBeoGoqOIBCQkJCQkJCgsLCg4PDQ8OFBIRERIUHhYXFhcWHi4dIR0dIR0uKTEoJSgxKUk5MzM5SVRHQ0dUZltbZoF6gaio4v/CABEIBLAHgAMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAACAwABBAUGB//aAAgBAQAAAADwawLpMspcK7qrlE5F0Vtul2bVywMUNeBHUkW/bmxvYELGuNjh2VDvixxo5ViljKjDRMoahCULjs2JCShjhjh2OGxo0Y2MoXHOLszsKLhw7tD99mpZQxj8xceofmLEKFwXLTIyHwY1Ls+iEotjHY0M0pjRYxtGj4VFKLPohQlFQyy4Qipc0XG9pS+CP/2Q==',
+ state_code = '27',
+ state_name = 'MAHARASHTRA',
+ sub_district_code = '213',
+ subdistrict_name = 'Baramati',
+ tags = {
+ 'key' : ''
+ },
+ town_code = '27',
+ town_name = 'Baramati',
+ verification_status = 'verified',
+ verification_type = 'testing',
+ village_code = '412',
+ village_name = 'Someshwar Nagar',
+ ward_code = '08',
+ ward_name = 'Sinhgad fort ward',
+ year_of_birth = '1994'
+ )
+ else:
+ return GetAccountInformationUsingGET200Response(
+ )
+ """
+
+ def testGetAccountInformationUsingGET200Response(self):
+ """Test GetAccountInformationUsingGET200Response"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/test/test_resend_auth_otp_request.py b/test/test_resend_auth_otp_request.py
new file mode 100644
index 0000000..f020476
--- /dev/null
+++ b/test/test_resend_auth_otp_request.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+Abdm Abha
+
+Abdm SDK for abha
+
+The version of the OpenAPI document: 1.0.0
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+""" # noqa: E501
+
+import unittest
+
+from abha.models.resend_auth_otp_request import ResendAuthOTPRequest
+
+
+class TestResendAuthOTPRequest(unittest.TestCase):
+ """ResendAuthOTPRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ResendAuthOTPRequest:
+ """Test ResendAuthOTPRequest
+ include_option is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included"""
+ # uncomment below to create an instance of `ResendAuthOTPRequest`
+ """
+ model = ResendAuthOTPRequest()
+ if include_optional:
+ return ResendAuthOTPRequest(
+ auth_method = '',
+ txn_id = 'a825f76b-0696-40f3-864c-5a3a5b389a83'
+ )
+ else:
+ return ResendAuthOTPRequest(
+ auth_method = '',
+ txn_id = 'a825f76b-0696-40f3-864c-5a3a5b389a83',
+ )
+ """
+
+ def testResendAuthOTPRequest(self):
+ """Test ResendAuthOTPRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+
+if __name__ == "__main__":
+ unittest.main()