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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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