Cashfree LRS
Project description
cashfree-lrs-client
CashFree LRS APIs (v2)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.6
- Package version: 1.0.6
- Build package: org.openapitools.codegen.languages.PythonNextgenClientCodegen For more information, please visit https://docs.cashfree.com
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import cashfree_lrs_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import cashfree_lrs_client
Tests
Execute pytest
to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import time
import cashfree_lrs_client
from cashfree_lrs_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://sandbox.cashfree.com/pg/lrs
# See configuration.py for a list of all supported configuration parameters.
configuration = cashfree_lrs_client.Configuration(
host = "https://sandbox.cashfree.com/pg/lrs"
)
# 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 API key authorization: X-Client-ID
configuration.api_key['X-Client-ID'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Client-ID'] = 'Bearer'
# Configure API key authorization: X-Client-Secret
configuration.api_key['X-Client-Secret'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Client-Secret'] = 'Bearer'
# Configure API key authorization: X-API-Version
configuration.api_key['X-API-Version'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Version'] = 'Bearer'
# Enter a context with an instance of the API client
with cashfree_lrs_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cashfree_lrs_client.LrsApi(api_client)
files = None # List[bytearray] | Upload multiple document at a time. Accepted file type - .pdf. Maximum file size - 20 MB
try:
# Upload Documents in Bulk
api_instance.bulk_documents_upload(files)
except ApiException as e:
print("Exception when calling LrsApi->bulk_documents_upload: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://sandbox.cashfree.com/pg/lrs
Class | Method | HTTP request | Description |
---|---|---|---|
LrsApi | bulk_documents_upload | POST /orders/documents/upload | Upload Documents in Bulk |
LrsApi | create_beneficiary | POST /beneficiaries | Create Beneficiary |
LrsApi | create_order | POST /orders | Create LRS Order |
LrsApi | create_remitter | POST /remitters | Create Remitter |
LrsApi | fetch_forex_rate | POST /fx-rate/details | Fetch FX Rate |
LrsApi | process_order | POST /orders/{order_id}/process | Process Order |
LrsApi | setup_webhooks | POST /webhooks | Setup Webhooks |
LrsApi | upload_documents | POST /orders/{order_id}/documents/upload | Upload Documents |
Documentation For Models
- Country
- CreateBeneficiaryRequest
- CreateOrderRequest
- CreateOrderResponse
- CreateRemitterRequest
- Currency
- Error
- FetchForexRateRequest
- FetchForexRateResponse
- Purpose
- SetupWebhooksRequest
- SuccessMessage
Documentation For Authorization
X-API-Version
- Type: API key
- API key parameter name: X-API-Version
- Location: HTTP header
X-Client-ID
- Type: API key
- API key parameter name: X-Client-ID
- Location: HTTP header
X-Client-Secret
- Type: API key
- API key parameter name: X-Client-Secret
- Location: HTTP header
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cashfree_lrs_client-1.0.6.tar.gz
(69.4 kB
view hashes)
Built Distribution
Close
Hashes for cashfree_lrs_client-1.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3fa80ee9cb30a70134ce862997dcf2e6f26be95151169d32897706f75de7fae |
|
MD5 | 8bdbbbd12e9f4fe6b7fe5f0346b92f26 |
|
BLAKE2b-256 | 3d2dd899910f9d75ea9904194be984c88cfa116b5bf5db1352992c8f14c46f04 |
Close
Hashes for cashfree_lrs_client-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1cf0f61b206eec2ef114937142ee2d93f04208439f3dba37d924992e666a9ad |
|
MD5 | c9e3b4abb40dbe8283d799a1845dcf57 |
|
BLAKE2b-256 | 53fda46fd033f63d38e66347b56404ccb91304cae84e161b6e0cf9fde6eb099b |