Skip to main content

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.17
  • Package version: 1.0.17
  • 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

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

nextgenapi@cashfree.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cashfree_lrs_client-1.0.17.tar.gz (71.7 kB view details)

Uploaded Source

Built Distribution

cashfree_lrs_client-1.0.17-py3-none-any.whl (155.2 kB view details)

Uploaded Python 3

File details

Details for the file cashfree_lrs_client-1.0.17.tar.gz.

File metadata

  • Download URL: cashfree_lrs_client-1.0.17.tar.gz
  • Upload date:
  • Size: 71.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1042-azure

File hashes

Hashes for cashfree_lrs_client-1.0.17.tar.gz
Algorithm Hash digest
SHA256 4a629d7e5ff34359d4cc95e729b28d9bd11f619644a98fa651f083397a3516d4
MD5 725b89a7c402a3b6a512bf181901dada
BLAKE2b-256 f73a44ca79f08626ab36ec2635957b110d316544ac6aa17bc080b020d988433a

See more details on using hashes here.

File details

Details for the file cashfree_lrs_client-1.0.17-py3-none-any.whl.

File metadata

File hashes

Hashes for cashfree_lrs_client-1.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 1d7a084f028d9f8a43c1fde6bfa35fffc788e876115cf705c8a72c6585a9d534
MD5 e499e534e19937c85a9777ace7bb5a6e
BLAKE2b-256 4f52b0a07513650ae465fce666b5d927baa10f6c1332e0fe54f673c6b8248b36

See more details on using hashes here.

Supported by

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