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.15
- Package version: 1.0.15
- 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_response = api_instance.bulk_documents_upload(files)
print("The response of LrsApi->bulk_documents_upload:\n")
pprint(api_response)
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
- BulkDocumentsUploadResponse
- Country
- CreateBeneficiaryRequest
- CreateOrderRequest
- CreateOrderResponse
- CreateRemitterRequest
- Currency
- Document
- Error
- FetchForexRateRequest
- FetchForexRateResponse
- FetchForexRateResponseTcs
- Purpose
- SetupWebhooksRequest
- SuccessMessage
Documentation For Authorization
Authentication schemes defined for the API:
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
Built Distribution
Hashes for cashfree_lrs_client-1.0.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fee6eb87895c3ba0352eec3521f833b57a58a954cfbb05a2c1dedb3cd819b076 |
|
MD5 | ef589be7996b94ca578a811fb0ed8c45 |
|
BLAKE2b-256 | 4c8d69e54175c395f98cf520ff8189895e18ddbd7d7efa31dfe1f428f560ac82 |
Hashes for cashfree_lrs_client-1.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68ebb086e1b37963555c0498caaa0a6c6e865c31f356a339d791c2103b1665a0 |
|
MD5 | 15afdb4023bf8820d483c16652b21157 |
|
BLAKE2b-256 | ae360c274fb82878ee545172d24845161cdc44a11d17b9daa70eaf9df9873889 |